Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.MuxDemux,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y1|y2|y3|y4|y5|clock.y|mux5.y.1.|mux5.y.2.|mux5.y.3.|mux5.y.4.|mux5.y.5.|demux5.y.1.|demux5.y.2.|demux5.y.3.|demux5.y.4.|demux5.y.5.|mux3.y.1.|mux3.y.2.|mux3.y.3.|mux2.y.1.|mux2.y.2.|demux2.y.1.|demux2.y.2.|demux3.y.1.|demux3.y.2.|demux3.y.3.",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux") translateModel(ModelicaTest.Blocks.MuxDemux,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y1|y2|y3|y4|y5|clock.y|mux5.y.1.|mux5.y.2.|mux5.y.3.|mux5.y.4.|mux5.y.5.|demux5.y.1.|demux5.y.2.|demux5.y.3.|demux5.y.4.|demux5.y.5.|mux3.y.1.|mux3.y.2.|mux3.y.3.|mux2.y.1.|mux2.y.2.|demux2.y.1.|demux2.y.2.|demux3.y.1.|demux3.y.2.|demux3.y.3.",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008821/0.000882, allocations: 181.6 kB / 17.41 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.507/1.507, allocations: 205.4 MB / 223.6 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007882/0.0007882, allocations: 89.44 kB / 271.9 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3583/0.3583, allocations: 43.56 MB / 363.8 MB, free: 52.09 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000389/0.0003892, allocations: 16 kB / 432.6 MB, free: 5.875 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.123/0.1234, allocations: 58.85 MB / 491.4 MB, free: 10.94 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3315/0.4549, allocations: 84.89 MB / 0.5628 GB, free: 1.512 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001646/0.4551, allocations: 55.98 kB / 0.5629 GB, free: 1.457 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002778/0.4579, allocations: 1.498 MB / 0.5643 GB, free: 15.98 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.096e-06/0.4579, allocations: 0 / 0.5643 GB, free: 15.98 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.249e-05/0.4579, allocations: 4.766 kB / 0.5643 GB, free: 15.97 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0003724/0.4583, allocations: 410.1 kB / 0.5647 GB, free: 15.53 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.4583, allocations: 12.03 kB / 0.5648 GB, free: 15.52 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.089e-05/0.4584, allocations: 16.75 kB / 0.5648 GB, free: 15.5 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002276/0.4586, allocations: 224.5 kB / 0.565 GB, free: 15.25 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.559e-05/0.4587, allocations: 20.75 kB / 0.565 GB, free: 15.23 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.767e-05/0.4587, allocations: 16.38 kB / 0.565 GB, free: 15.21 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003091/0.459, allocations: 196.8 kB / 0.5652 GB, free: 15.02 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.459, allocations: 0 / 0.5652 GB, free: 15.02 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.9e-05/0.459, allocations: 8 kB / 0.5652 GB, free: 15.01 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.558e-06/0.4591, allocations: 7.984 kB / 0.5652 GB, free: 15 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002068/0.4593, allocations: 127.4 kB / 0.5653 GB, free: 14.88 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005628/0.4598, allocations: 0.4969 MB / 0.5658 GB, free: 14.33 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.783e-05/0.4599, allocations: 50.5 kB / 0.5659 GB, free: 14.27 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.057e-05/0.46, allocations: 32.97 kB / 0.5659 GB, free: 14.23 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.133e-05/0.46, allocations: 0 / 0.5659 GB, free: 14.23 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.963e-05/0.4601, allocations: 30.56 kB / 0.5659 GB, free: 14.2 MB / 394.7 MB Notification: Performance of pre-optimization done (n=5): time 8.22e-07/0.4601, allocations: 0 / 0.5659 GB, free: 14.2 MB / 394.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002247/0.4603, allocations: 89.52 kB / 0.566 GB, free: 14.1 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.411e-05/0.4603, allocations: 55.41 kB / 0.5661 GB, free: 14.04 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.969e-05/0.4604, allocations: 107.2 kB / 0.5662 GB, free: 13.92 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.443e-05/0.4604, allocations: 25.7 kB / 0.5662 GB, free: 13.89 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.439e-05/0.4605, allocations: 143.9 kB / 0.5663 GB, free: 13.75 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.73e-05/0.4605, allocations: 7.812 kB / 0.5663 GB, free: 13.74 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.308e-06/0.4605, allocations: 6.906 kB / 0.5664 GB, free: 13.73 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001139/0.4607, allocations: 314.8 kB / 0.5667 GB, free: 13.42 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.105e-05/0.4607, allocations: 19.98 kB / 0.5667 GB, free: 13.4 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.235e-05/0.4608, allocations: 11.98 kB / 0.5667 GB, free: 13.39 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.657e-05/0.4608, allocations: 40.09 kB / 0.5667 GB, free: 13.35 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.4609, allocations: 0 / 0.5667 GB, free: 13.35 MB / 394.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001135/0.461, allocations: 77.47 kB / 0.5668 GB, free: 13.27 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/0.461, allocations: 4 kB / 0.5668 GB, free: 13.26 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.461, allocations: 4.219 kB / 0.5668 GB, free: 13.26 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.461, allocations: 0 / 0.5668 GB, free: 13.26 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.34e-05/0.4611, allocations: 11.94 kB / 0.5668 GB, free: 13.25 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.745e-06/0.4611, allocations: 3.984 kB / 0.5668 GB, free: 13.24 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.401e-05/0.4612, allocations: 4 kB / 0.5668 GB, free: 13.24 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.991e-06/0.4612, allocations: 0 / 0.5668 GB, free: 13.24 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.427e-05/0.4613, allocations: 141.8 kB / 0.567 GB, free: 13.09 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.06e-05/0.4613, allocations: 0 / 0.567 GB, free: 13.09 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.452e-05/0.4613, allocations: 11.95 kB / 0.567 GB, free: 13.08 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.4613, allocations: 4 kB / 0.567 GB, free: 13.08 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.4613, allocations: 0 / 0.567 GB, free: 13.08 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.4613, allocations: 0 / 0.567 GB, free: 13.08 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003126/0.4617, allocations: 366.4 kB / 0.5673 GB, free: 12.66 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.4617, allocations: 4 kB / 0.5673 GB, free: 12.66 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.954e-05/0.4617, allocations: 11.98 kB / 0.5673 GB, free: 12.65 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.4617, allocations: 0 / 0.5673 GB, free: 12.65 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.773e-06/0.4617, allocations: 4 kB / 0.5673 GB, free: 12.64 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.4617, allocations: 2.062 kB / 0.5673 GB, free: 12.64 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.4618, allocations: 0 / 0.5673 GB, free: 12.64 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001589/0.4619, allocations: 175.3 kB / 0.5675 GB, free: 12.46 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.091e-05/0.462, allocations: 89 kB / 0.5676 GB, free: 12.35 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.12e-05/0.462, allocations: 0 / 0.5676 GB, free: 12.35 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.944e-05/0.462, allocations: 4 kB / 0.5676 GB, free: 12.35 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.467e-05/0.4621, allocations: 5.016 kB / 0.5676 GB, free: 12.34 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.757e-06/0.4621, allocations: 4 kB / 0.5676 GB, free: 12.34 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.906e-05/0.4621, allocations: 86.17 kB / 0.5677 GB, free: 12.26 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4621, allocations: 0 / 0.5677 GB, free: 12.26 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000202/0.4623, allocations: 19.84 kB / 0.5677 GB, free: 12.24 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.651e-05/0.4624, allocations: 103.2 kB / 0.5678 GB, free: 12.13 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001469/0.4626, allocations: 39.91 kB / 0.5678 GB, free: 12.09 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.4626, allocations: 0 / 0.5678 GB, free: 12.09 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.622e-05/0.4627, allocations: 20 kB / 0.5679 GB, free: 12.07 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002307/0.4629, allocations: 11.55 kB / 0.5679 GB, free: 12.06 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005328/0.4634, allocations: 371.5 kB / 0.5682 GB, free: 11.68 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002914/0.4637, allocations: 0.7277 MB / 0.5689 GB, free: 10.92 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.63e-05/0.4638, allocations: 11.44 kB / 0.569 GB, free: 10.91 MB / 394.7 MB Notification: Performance of SimCode: time 2.1e-07/0.4638, allocations: 0 / 0.569 GB, free: 10.91 MB / 394.7 MB Notification: Performance of Templates: time 0.002339/0.4661, allocations: 1.205 MB / 0.5701 GB, free: 9.719 MB / 394.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches