// =============================================================================
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
// Copyright (C) 2010 - DIGITEO - Clément DAVID
+// Copyright (C) 2010 - Scilab Enterprises - Clément DAVID
//
// This file is distributed under the same license as the Scilab package.
// =============================================================================
//
// <-- ENGLISH IMPOSED -->
//
-// <-- TEST WITH XCOS -->
+// <-- XCOS TEST -->
//
// <-- Non-regression test for bug 8480 -->
//
// <-- Short Description -->
// The debug block did not have a valid function type.
//
-// start a clean scilab
-Result_ref=[1,4,0;
-1,4,0;
-2,4,0;
-2,4,0;
-3,4,0;
-3,4,0;
-8,4,0;
-8,4,0;
-9,4,0;
-9,4,0;
-1,6,0;
-1,6,0;
-2,6,0;
-2,6,0;
-3,6,0;
-3,6,0;
-8,6,0;
-8,6,0;
-9,6,0;
-9,6,0;
-1,6,0;
-1,6,0;
-2,6,0;
-2,6,0;
-3,6,0;
-3,6,0;
-8,6,0;
-8,6,0;
-9,6,0;
-9,6,0;
-1,6,0;
-1,6,0;
-2,6,0;
-2,6,0;
-3,6,0;
-3,6,0;
-8,6,0;
-8,6,0;
-9,6,0;
-9,6,0;
-1,1,0;
-1,1,0;
-3,1,0;
-3,1,0;
-8,1,0;
-8,1,0;
-9,1,0;
-9,1,0;
-2,1,0;
-2,1,0;
-3,2,0;
-3,2,0;
-8,3,0;
-8,3,0;
-8,2,0;
-8,2,0;
-9,2,0;
-9,2,0;
-1,1,0.5;
-1,1,0.5;
-3,1,0.5;
-3,1,0.5;
-8,1,0.5;
-8,1,0.5;
-9,1,0.5;
-9,1,0.5;
-2,1,0.5;
-2,1,0.5;
-3,2,0.5;
-3,2,0.5;
-8,3,0.5;
-8,3,0.5;
-8,2,0.5;
-8,2,0.5;
-9,2,0.5;
-9,2,0.5;
-1,5,1;
-1,5,1;
-2,5,1;
-2,5,1;
-3,5,1;
-3,5,1;
-8,5,1;
-8,5,1;
-9,5,1;
-9,5,1];
-importXcosDiagram('SCI/modules/xcos/tests/nonreg_tests/bug_8480.xcos');
global Result;Result=[];
+importXcosDiagram('SCI/modules/xcos/tests/nonreg_tests/bug_8480.zcos');
Info=scicos_simulate(scs_m,list());
-block 1 is called with flag 4 at time 0.000000
+block 1 [7b9ce3ac:12d299ba8fe:-7fd7] is called with flag 4 at time 0.000000
Entering the block
Leaving block 1
-block 2 is called with flag 4 at time 0.000000
+block 2 [7b9ce3ac:12d299ba8fe:-7fcd] is called with flag 4 at time 0.000000
Entering the block
Leaving block 2
-block 3 is called with flag 4 at time 0.000000
+block 3 [7b9ce3ac:12d299ba8fe:-7fc1] is called with flag 4 at time 0.000000
Entering the block
Leaving block 3
-block 5 is called with flag 4 at time 0.000000
+block 4 [7b9ce3ac:12d299ba8fe:-7fb4] is called with flag 4 at time 0.000000
Entering the block
-Leaving block 5
-block 6 is called with flag 4 at time 0.000000
+Leaving block 4
+block 6 [-10054033:12d2c0f9f25:-7f6c] is called with flag 4 at time 0.000000
Entering the block
Leaving block 6
-block 1 is called with flag 6 at time 0.000000
+block 1 [7b9ce3ac:12d299ba8fe:-7fd7] is called with flag 6 at time 0.000000
Entering the block
Leaving block 1
-block 2 is called with flag 6 at time 0.000000
+block 2 [7b9ce3ac:12d299ba8fe:-7fcd] is called with flag 6 at time 0.000000
Entering the block
Leaving block 2
-block 3 is called with flag 6 at time 0.000000
+block 3 [7b9ce3ac:12d299ba8fe:-7fc1] is called with flag 6 at time 0.000000
Entering the block
Leaving block 3
-block 5 is called with flag 6 at time 0.000000
+block 4 [7b9ce3ac:12d299ba8fe:-7fb4] is called with flag 6 at time 0.000000
Entering the block
-Leaving block 5
-block 6 is called with flag 6 at time 0.000000
+Leaving block 4
+block 6 [-10054033:12d2c0f9f25:-7f6c] is called with flag 6 at time 0.000000
Entering the block
Leaving block 6
-block 1 is called with flag 6 at time 0.000000
+block 1 [7b9ce3ac:12d299ba8fe:-7fd7] is called with flag 6 at time 0.000000
Entering the block
Leaving block 1
-block 2 is called with flag 6 at time 0.000000
+block 2 [7b9ce3ac:12d299ba8fe:-7fcd] is called with flag 6 at time 0.000000
Entering the block
Leaving block 2
-block 3 is called with flag 6 at time 0.000000
+block 3 [7b9ce3ac:12d299ba8fe:-7fc1] is called with flag 6 at time 0.000000
Entering the block
Leaving block 3
-block 5 is called with flag 6 at time 0.000000
+block 4 [7b9ce3ac:12d299ba8fe:-7fb4] is called with flag 6 at time 0.000000
Entering the block
-Leaving block 5
-block 6 is called with flag 6 at time 0.000000
-Entering the block
-Leaving block 6
-block 1 is called with flag 6 at time 0.000000
-Entering the block
-Leaving block 1
-block 2 is called with flag 6 at time 0.000000
-Entering the block
-Leaving block 2
-block 3 is called with flag 6 at time 0.000000
-Entering the block
-Leaving block 3
-block 5 is called with flag 6 at time 0.000000
-Entering the block
-Leaving block 5
-block 6 is called with flag 6 at time 0.000000
+Leaving block 4
+block 6 [-10054033:12d2c0f9f25:-7f6c] is called with flag 6 at time 0.000000
Entering the block
Leaving block 6
Event: 1 activated at t=0.000000
**mod**
-block 1 is called with flag 1 at time 0.000000
+block 1 [7b9ce3ac:12d299ba8fe:-7fd7] is called with flag 1 at time 0.000000
Entering the block
Leaving block 1
-block 3 is called with flag 1 at time 0.000000
+block 2 [7b9ce3ac:12d299ba8fe:-7fcd] is called with flag 1 at time 0.000000
Entering the block
-Leaving block 3
-block 5 is called with flag 1 at time 0.000000
+Leaving block 2
+block 4 [7b9ce3ac:12d299ba8fe:-7fb4] is called with flag 1 at time 0.000000
Entering the block
-Leaving block 5
-block 6 is called with flag 1 at time 0.000000
+Leaving block 4
+block 6 [-10054033:12d2c0f9f25:-7f6c] is called with flag 1 at time 0.000000
Entering the block
Leaving block 6
-block 2 is called with flag 1 at time 0.000000
-Entering the block
-Leaving block 2
-block 3 is called with flag 2 at time 0.000000
+block 3 [7b9ce3ac:12d299ba8fe:-7fc1] is called with flag 1 at time 0.000000
Entering the block
Leaving block 3
-block 5 is called with flag 3 at time 0.000000
+block 1 [7b9ce3ac:12d299ba8fe:-7fd7] is called with flag 2 at time 0.000000
+Entering the block
+Leaving block 1
+block 4 [7b9ce3ac:12d299ba8fe:-7fb4] is called with flag 2 at time 0.000000
Entering the block
-Leaving block 5
-block 5 is called with flag 2 at time 0.000000
+Leaving block 4
+block 6 [-10054033:12d2c0f9f25:-7f6c] is called with flag 3 at time 0.000000
Entering the block
-Leaving block 5
-block 6 is called with flag 2 at time 0.000000
+Leaving block 6
+block 6 [-10054033:12d2c0f9f25:-7f6c] is called with flag 2 at time 0.000000
Entering the block
Leaving block 6
End of activation
Event: 1 activated at t=0.500000
**mod**
-block 1 is called with flag 1 at time 0.500000
+block 1 [7b9ce3ac:12d299ba8fe:-7fd7] is called with flag 1 at time 0.500000
Entering the block
Leaving block 1
-block 3 is called with flag 1 at time 0.500000
+block 2 [7b9ce3ac:12d299ba8fe:-7fcd] is called with flag 1 at time 0.500000
Entering the block
-Leaving block 3
-block 5 is called with flag 1 at time 0.500000
+Leaving block 2
+block 4 [7b9ce3ac:12d299ba8fe:-7fb4] is called with flag 1 at time 0.500000
Entering the block
-Leaving block 5
-block 6 is called with flag 1 at time 0.500000
+Leaving block 4
+block 6 [-10054033:12d2c0f9f25:-7f6c] is called with flag 1 at time 0.500000
Entering the block
Leaving block 6
-block 2 is called with flag 1 at time 0.500000
-Entering the block
-Leaving block 2
-block 3 is called with flag 2 at time 0.500000
+block 3 [7b9ce3ac:12d299ba8fe:-7fc1] is called with flag 1 at time 0.500000
Entering the block
Leaving block 3
-block 5 is called with flag 3 at time 0.500000
+block 1 [7b9ce3ac:12d299ba8fe:-7fd7] is called with flag 2 at time 0.500000
Entering the block
-Leaving block 5
-block 5 is called with flag 2 at time 0.500000
+Leaving block 1
+block 4 [7b9ce3ac:12d299ba8fe:-7fb4] is called with flag 2 at time 0.500000
Entering the block
-Leaving block 5
-block 6 is called with flag 2 at time 0.500000
+Leaving block 4
+block 6 [-10054033:12d2c0f9f25:-7f6c] is called with flag 3 at time 0.500000
+Entering the block
+Leaving block 6
+block 6 [-10054033:12d2c0f9f25:-7f6c] is called with flag 2 at time 0.500000
Entering the block
Leaving block 6
End of activation
-block 1 is called with flag 5 at time 1.000000
+block 1 [7b9ce3ac:12d299ba8fe:-7fd7] is called with flag 5 at time 1.000000
Entering the block
Leaving block 1
-block 2 is called with flag 5 at time 1.000000
+block 2 [7b9ce3ac:12d299ba8fe:-7fcd] is called with flag 5 at time 1.000000
Entering the block
Leaving block 2
-block 3 is called with flag 5 at time 1.000000
+block 3 [7b9ce3ac:12d299ba8fe:-7fc1] is called with flag 5 at time 1.000000
Entering the block
Leaving block 3
-block 5 is called with flag 5 at time 1.000000
+block 4 [7b9ce3ac:12d299ba8fe:-7fb4] is called with flag 5 at time 1.000000
Entering the block
-Leaving block 5
-block 6 is called with flag 5 at time 1.000000
+Leaving block 4
+block 6 [-10054033:12d2c0f9f25:-7f6c] is called with flag 5 at time 1.000000
Entering the block
Leaving block 6
-if ~and(Result==Result_ref) then bugmes();quit;end
-//k=find(Result(:,1)<>Result_ref(:,1));
+if isempty(Result) then bugmes();quit;end
clearglobal Result