Xcos: fix memleak on MVC objects after 238f0650
[scilab.git] / scilab / modules / xcos / tests / nonreg_tests / bug_11975.unix.dia.ref
1 // =============================================================================
2 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 // Copyright (C) 2013 - Scilab Enterprises - Alexandre HERISSE
4 //
5 //  This file is distributed under the same license as the Scilab package.
6 // =============================================================================
7 // <-- XCOS TEST -->
8 //
9 // <-- ENGLISH IMPOSED -->
10 //
11 // <-- Non-regression test for bug 11975 -->
12 //
13 // <-- Bugzilla URL -->
14 // http://bugzilla.scilab.org/show_bug.cgi?id=12975
15 //
16 // <-- Short Description -->
17 // Some demos did not compile.
18 // 3 demonstration diagrams were not compiling :
19 // - Inverted_pendulum.zcos demonstration
20 // - IF_block.zcos demonstration
21 // - Hydraulics.zcos demonstration
22 ilib_verbose(0);
23 // Inverted_pendulum
24 if (~isdef("setw")) then
25     exec("SCI/modules/xcos/demos/setw.sci",-1)
26 end
27 assert_checktrue(importXcosDiagram(SCI + "/modules/xcos/demos/Inverted_pendulum.zcos"));
28 [cpr, ok] = xcos_compile(scs_m);
29 assert_checktrue(ok);
30 // IF_block
31 assert_checktrue(importXcosDiagram("SCI/modules/xcos/demos/IF_block.zcos"));
32 [cpr, ok] = xcos_compile(scs_m);
33 assert_checktrue(ok);
34 // Hydraulics
35 assert_checktrue(importXcosDiagram("SCI/modules/xcos/demos/ModelicaBlocks/Hydraulics.zcos"));
36 [cpr, ok] = xcos_compile(scs_m);
37 --------------------------------------------\
38  Main Modelica : TMPDIR/Hydraulics_im.mo
39  Flat Modelica : TMPDIR/Hydraulics_imf.mo
40  Simulation C code :TMPDIR/Hydraulics_im.c
41 !messagebox: Modelica blocks are reduced to a block with:             !
42 !                                                                     !
43 !messagebox: Number of differential states: 2                         !
44 !                                                                     !
45 !messagebox: Number of algebraic states: 5                            !
46 !                                                                     !
47 !messagebox: Number of discrete time states  : 0                      !
48 !                                                                     !
49 !messagebox: Number of zero-crossing surfaces: 19                     !
50 !                                                                     !
51 !messagebox: Number of modes  : 19                                    !
52 !                                                                     !
53 !messagebox: Number of inputs : 1                                     !
54 !                                                                     !
55 !messagebox: Number of outputs: 2                                     !
56 !                                                                     !
57 !messagebox: Input/output dependency:[F]                              !
58 !                                                                     !
59 !messagebox: Analytical Jacobian: enabled  (%Jacobian=%t)             !
60 !                                                                     !
61 !messagebox: Parameter embedding mode: enabled (%Modelica_ParEmb=%t)  !
62 !                                                                     !
63 !messagebox:                                                          !
64 !                                                                     !
65 !messagebox: Generated files path: TMPDIR/         !
66 !                                                                     !
67 !messagebox:                                                          !
68 WARNING: Diagram contains implicit blocks, compiling for implicit Solver.
69 assert_checktrue(ok);