Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_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_4.0.0_ModelicaTest.Blocks.MuxDemux") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001169/0.001168, allocations: 111 kB / 17.75 MB, free: 5.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001594/0.001594, allocations: 191 kB / 18.68 MB, free: 4.395 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.318/1.318, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2013/0.2013, allocations: 44.19 MB / 336.7 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 67.84 kB / 470.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3727/0.3739, allocations: 60.83 MB / 0.5188 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002577/0.3766, allocations: 1.554 MB / 0.5204 GB, free: 2.523 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001319/0.3767, allocations: 49.92 kB / 0.5204 GB, free: 2.488 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.148e-05/0.3768, allocations: 2.406 kB / 0.5204 GB, free: 2.488 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001437/0.3769, allocations: 27.41 kB / 0.5204 GB, free: 2.469 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.625e-05/0.377, allocations: 4.547 kB / 0.5204 GB, free: 2.465 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.506e-05/0.3771, allocations: 23.86 kB / 0.5205 GB, free: 2.453 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001155/0.3772, allocations: 75.16 kB / 0.5205 GB, free: 2.422 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002755/0.3775, allocations: 128.4 kB / 0.5207 GB, free: 2.363 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.343e-05/0.3775, allocations: 31.55 kB / 0.5207 GB, free: 2.352 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.678e-05/0.3776, allocations: 42.55 kB / 0.5207 GB, free: 2.328 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.22e-05/0.3776, allocations: 8.156 kB / 0.5207 GB, free: 2.328 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.553e-05/0.3776, allocations: 9.031 kB / 0.5207 GB, free: 2.328 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.116e-05/0.3777, allocations: 66.61 kB / 0.5208 GB, free: 2.305 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.992e-05/0.3778, allocations: 64.38 kB / 0.5209 GB, free: 2.262 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001852/0.378, allocations: 155 kB / 0.521 GB, free: 2.191 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.378, allocations: 4 kB / 0.521 GB, free: 2.188 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.378, allocations: 0 / 0.521 GB, free: 2.188 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.562e-06/0.378, allocations: 1.062 kB / 0.521 GB, free: 2.188 MB / 382.1 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.0004264/0.3785, allocations: 438.6 kB / 0.5214 GB, free: 1.781 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.156e-05/0.3785, allocations: 10.25 kB / 0.5215 GB, free: 1.781 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.908e-05/0.3786, allocations: 17.09 kB / 0.5215 GB, free: 1.773 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001849/0.3788, allocations: 212.5 kB / 0.5217 GB, free: 1.559 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.738e-05/0.3788, allocations: 12.12 kB / 0.5217 GB, free: 1.555 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.83e-05/0.3788, allocations: 20.78 kB / 0.5217 GB, free: 1.547 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003304/0.3792, allocations: 203.7 kB / 0.5219 GB, free: 1.453 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.3792, allocations: 5.25 kB / 0.5219 GB, free: 1.449 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.661e-05/0.3792, allocations: 5.281 kB / 0.5219 GB, free: 1.445 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.223e-06/0.3792, allocations: 4.219 kB / 0.5219 GB, free: 1.445 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002168/0.3794, allocations: 126.6 kB / 0.522 GB, free: 1.414 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005649/0.38, allocations: 496.5 kB / 0.5225 GB, free: 1.047 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.355e-05/0.3801, allocations: 37.73 kB / 0.5225 GB, free: 1.02 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.768e-05/0.3802, allocations: 32.56 kB / 0.5226 GB, free: 1.004 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.184e-06/0.3802, allocations: 0 / 0.5226 GB, free: 1.004 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.622e-05/0.3802, allocations: 36.19 kB / 0.5226 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of pre-optimization done (n=5): time 1.272e-06/0.3802, allocations: 0 / 0.5226 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002169/0.3804, allocations: 81.88 kB / 0.5227 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.727e-05/0.3805, allocations: 52.47 kB / 0.5227 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.492e-05/0.3805, allocations: 107.1 kB / 0.5228 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.915e-06/0.3805, allocations: 29.7 kB / 0.5229 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.085e-05/0.3806, allocations: 134.8 kB / 0.523 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.95e-05/0.3806, allocations: 15.55 kB / 0.523 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.696e-05/0.3806, allocations: 17.67 kB / 0.523 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.864e-05/0.3807, allocations: 321.9 kB / 0.5233 GB, free: 244 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.168e-05/0.3807, allocations: 13.02 kB / 0.5233 GB, free: 240 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.204e-05/0.3808, allocations: 9.641 kB / 0.5234 GB, free: 240 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.094e-05/0.3809, allocations: 36.2 kB / 0.5234 GB, free: 220 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.3809, allocations: 0 / 0.5234 GB, free: 220 kB / 382.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000104/0.381, allocations: 73.2 kB / 0.5235 GB, free: 168 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.381, allocations: 5.625 kB / 0.5235 GB, free: 168 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.381, allocations: 4.797 kB / 0.5235 GB, free: 164 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.43e-05/0.381, allocations: 1.156 kB / 0.5235 GB, free: 164 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.644e-05/0.3811, allocations: 9.469 kB / 0.5235 GB, free: 164 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.071e-06/0.3811, allocations: 0.6562 kB / 0.5235 GB, free: 164 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.525e-05/0.3812, allocations: 7.297 kB / 0.5235 GB, free: 160 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.373e-06/0.3812, allocations: 1.188 kB / 0.5235 GB, free: 160 kB / 382.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.432e-05/0.3812, allocations: 132.8 kB / 0.5236 GB, free: 36 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.367e-05/0.3813, allocations: 10.95 kB / 0.5236 GB, free: 28 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.936e-05/0.3813, allocations: 9.859 kB / 0.5236 GB, free: 20 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-06/0.3813, allocations: 5.125 kB / 0.5236 GB, free: 16 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.3813, allocations: 0 / 0.5236 GB, free: 16 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.3813, allocations: 2.016 kB / 0.5236 GB, free: 16 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003924/0.3817, allocations: 364.4 kB / 0.524 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.3817, allocations: 0.5 kB / 0.524 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.798e-05/0.3818, allocations: 10.62 kB / 0.524 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.519e-06/0.3818, allocations: 3.984 kB / 0.524 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.935e-06/0.3818, allocations: 6.297 kB / 0.524 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.3818, allocations: 0 / 0.524 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.3818, allocations: 5.469 kB / 0.524 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001561/0.382, allocations: 164.4 kB / 0.5242 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.78e-05/0.382, allocations: 83.17 kB / 0.5242 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.107e-05/0.382, allocations: 1.25 kB / 0.5242 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.229e-05/0.3821, allocations: 2.578 kB / 0.5243 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.836e-05/0.3821, allocations: 3.469 kB / 0.5243 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.926e-06/0.3821, allocations: 1.094 kB / 0.5243 GB, free: 15.43 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.245e-05/0.3822, allocations: 91.47 kB / 0.5243 GB, free: 15.34 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3822, allocations: 1.219 kB / 0.5243 GB, free: 15.34 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002232/0.3824, allocations: 29.62 kB / 0.5244 GB, free: 15.33 MB / 398.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.639e-05/0.3825, allocations: 90.95 kB / 0.5245 GB, free: 15.24 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001449/0.3827, allocations: 42.09 kB / 0.5245 GB, free: 15.23 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.3827, allocations: 0 / 0.5245 GB, free: 15.23 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.742e-05/0.3827, allocations: 17.89 kB / 0.5245 GB, free: 15.22 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002901/0.383, allocations: 17.44 kB / 0.5245 GB, free: 15.21 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005467/0.3836, allocations: 263.4 kB / 0.5248 GB, free: 15.04 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003579/0.384, allocations: 0.7298 MB / 0.5255 GB, free: 14.33 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 2.865e-05/0.384, allocations: 4.297 kB / 0.5255 GB, free: 14.33 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.443e-05/0.384, allocations: 15.31 kB / 0.5255 GB, free: 14.32 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.384, allocations: 3.938 kB / 0.5255 GB, free: 14.32 MB / 398.1 MB Notification: Performance of Templates: time 0.002942/0.387, allocations: 0.6671 MB / 0.5262 GB, free: 14.24 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches