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.001737/0.001737, allocations: 118.4 kB / 17.78 MB, free: 5.254 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.001142/0.001142, allocations: 183.8 kB / 18.72 MB, free: 4.332 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.37/1.37, 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.2111/0.2111, allocations: 44.19 MB / 336.8 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 67.89 kB / 470.5 MB, free: 13.15 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3626/0.3638, allocations: 60.81 MB / 0.5189 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002714/0.3666, allocations: 1.56 MB / 0.5204 GB, free: 2.508 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001442/0.3667, allocations: 54.61 kB / 0.5205 GB, free: 2.469 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.132e-05/0.3668, allocations: 1.469 kB / 0.5205 GB, free: 2.469 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001559/0.3669, allocations: 21.02 kB / 0.5205 GB, free: 2.457 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.367e-05/0.3669, allocations: 3.938 kB / 0.5205 GB, free: 2.453 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.231e-05/0.367, allocations: 29.06 kB / 0.5205 GB, free: 2.438 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001214/0.3672, allocations: 67 kB / 0.5206 GB, free: 2.414 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002706/0.3674, allocations: 110.2 kB / 0.5207 GB, free: 2.363 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.146e-05/0.3675, allocations: 39.42 kB / 0.5207 GB, free: 2.344 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.972e-05/0.3675, allocations: 43.7 kB / 0.5208 GB, free: 2.32 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.516e-05/0.3676, allocations: 7.625 kB / 0.5208 GB, free: 2.32 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.821e-05/0.3676, allocations: 7.781 kB / 0.5208 GB, free: 2.32 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001025/0.3677, allocations: 66.61 kB / 0.5209 GB, free: 2.297 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.766e-05/0.3678, allocations: 64.31 kB / 0.5209 GB, free: 2.254 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002138/0.368, allocations: 151.3 kB / 0.5211 GB, free: 2.191 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.368, allocations: 2.078 kB / 0.5211 GB, free: 2.191 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.368, allocations: 0 / 0.5211 GB, free: 2.191 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.162e-05/0.368, allocations: 0 / 0.5211 GB, free: 2.191 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.0004721/0.3685, allocations: 441.2 kB / 0.5215 GB, free: 1.777 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.3685, allocations: 9.438 kB / 0.5215 GB, free: 1.777 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.531e-05/0.3686, allocations: 22.2 kB / 0.5215 GB, free: 1.766 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001911/0.3688, allocations: 212.3 kB / 0.5217 GB, free: 1.551 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.284e-05/0.3688, allocations: 20.59 kB / 0.5217 GB, free: 1.539 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.486e-05/0.3688, allocations: 15.75 kB / 0.5217 GB, free: 1.535 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004041/0.3692, allocations: 196.4 kB / 0.5219 GB, free: 1.449 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/0.3692, allocations: 3.938 kB / 0.5219 GB, free: 1.445 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.909e-05/0.3692, allocations: 10.31 kB / 0.5219 GB, free: 1.438 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/0.3693, allocations: 5.328 kB / 0.522 GB, free: 1.438 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002481/0.3695, allocations: 125.4 kB / 0.5221 GB, free: 1.406 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006469/0.3702, allocations: 0.4888 MB / 0.5226 GB, free: 1.035 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.939e-05/0.3703, allocations: 43.86 kB / 0.5226 GB, free: 1 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.618e-05/0.3703, allocations: 30.03 kB / 0.5226 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.597e-05/0.3703, allocations: 1.5 kB / 0.5226 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.176e-05/0.3704, allocations: 35.17 kB / 0.5227 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of pre-optimization done (n=5): time 1.142e-06/0.3704, allocations: 1.469 kB / 0.5227 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of matching and sorting (n=5): time 0.000257/0.3706, allocations: 80.3 kB / 0.5227 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.599e-05/0.3706, allocations: 56.75 kB / 0.5228 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.646e-05/0.3707, allocations: 107.9 kB / 0.5229 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.909e-06/0.3707, allocations: 29.7 kB / 0.5229 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.86e-05/0.3708, allocations: 137.3 kB / 0.5231 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.48e-05/0.3708, allocations: 12.62 kB / 0.5231 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.207e-05/0.3709, allocations: 18.45 kB / 0.5231 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.381e-05/0.3709, allocations: 313.8 kB / 0.5234 GB, free: 228 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.619e-05/0.371, allocations: 17.23 kB / 0.5234 GB, free: 220 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.636e-05/0.371, allocations: 9.047 kB / 0.5234 GB, free: 220 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.716e-05/0.3711, allocations: 36.27 kB / 0.5234 GB, free: 200 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.3711, allocations: 5.781 kB / 0.5234 GB, free: 196 kB / 382.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001178/0.3712, allocations: 67.45 kB / 0.5235 GB, free: 148 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.3712, allocations: 5.984 kB / 0.5235 GB, free: 148 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.3712, allocations: 0 / 0.5235 GB, free: 148 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.795e-05/0.3713, allocations: 1.125 kB / 0.5235 GB, free: 148 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.943e-05/0.3713, allocations: 9.734 kB / 0.5235 GB, free: 148 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.3714, allocations: 4 kB / 0.5235 GB, free: 144 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.56e-05/0.3714, allocations: 3.703 kB / 0.5235 GB, free: 144 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.033e-06/0.3714, allocations: 1.125 kB / 0.5235 GB, free: 144 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 8.853e-05/0.3715, allocations: 133.8 kB / 0.5237 GB, free: 20 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.48e-05/0.3715, allocations: 11.03 kB / 0.5237 GB, free: 12 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.393e-05/0.3715, allocations: 13.72 kB / 0.5237 GB, free: 0 / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.554e-06/0.3715, allocations: 0.7031 kB / 0.5237 GB, free: 0 / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.3715, allocations: 1.609 kB / 0.5237 GB, free: 16 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.3715, allocations: 8.5 kB / 0.5237 GB, free: 15.99 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004011/0.3719, allocations: 364.6 kB / 0.524 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.3719, allocations: 0 / 0.524 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.425e-05/0.372, allocations: 11.03 kB / 0.5241 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.372, allocations: 1.375 kB / 0.5241 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.883e-06/0.372, allocations: 0 / 0.5241 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.372, allocations: 3.938 kB / 0.5241 GB, free: 15.65 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.372, allocations: 1.438 kB / 0.5241 GB, free: 15.65 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001742/0.3722, allocations: 165.1 kB / 0.5242 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.169e-05/0.3722, allocations: 83.06 kB / 0.5243 GB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.327e-05/0.3722, allocations: 1.469 kB / 0.5243 GB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.303e-05/0.3723, allocations: 2.688 kB / 0.5243 GB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.459e-05/0.3723, allocations: 3.281 kB / 0.5243 GB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.516e-06/0.3723, allocations: 1.188 kB / 0.5243 GB, free: 15.41 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.236e-05/0.3724, allocations: 87.91 kB / 0.5244 GB, free: 15.33 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3724, allocations: 0 / 0.5244 GB, free: 15.33 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002324/0.3726, allocations: 33.84 kB / 0.5244 GB, free: 15.31 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 0.0001067/0.3727, allocations: 94.92 kB / 0.5245 GB, free: 15.22 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001571/0.3729, allocations: 37.48 kB / 0.5245 GB, free: 15.21 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.3729, allocations: 0 / 0.5245 GB, free: 15.21 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.853e-05/0.3729, allocations: 17.34 kB / 0.5246 GB, free: 15.2 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002839/0.3732, allocations: 16.86 kB / 0.5246 GB, free: 15.2 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005261/0.3737, allocations: 275.5 kB / 0.5248 GB, free: 15.01 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002916/0.374, allocations: 0.7353 MB / 0.5256 GB, free: 14.3 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.126e-05/0.3741, allocations: 3.828 kB / 0.5256 GB, free: 14.3 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.356e-05/0.3741, allocations: 10.62 kB / 0.5256 GB, free: 14.29 MB / 398.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3741, allocations: 0 / 0.5256 GB, free: 14.29 MB / 398.1 MB Notification: Performance of Templates: time 0.003474/0.3775, allocations: 0.6739 MB / 0.5262 GB, free: 14.21 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