Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001414/0.001414, allocations: 124.5 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001606/0.001606, allocations: 207.2 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.639/1.639, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2815/0.2815, allocations: 46.92 MB / 357.1 MB, free: 10.3 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.MuxDemux,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,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.1.0_ModelicaTest.Blocks.MuxDemux") translateModel(ModelicaTest.Blocks.MuxDemux,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,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.1.0_ModelicaTest.Blocks.MuxDemux") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001937/0.001937, allocations: 71.89 kB / 0.4914 GB, free: 7.457 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1492/0.1511, allocations: 65.98 MB / 0.5558 GB, free: 5.344 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.003213/0.1543, allocations: 1.574 MB / 0.5574 GB, free: 3.758 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002532/0.1546, allocations: 55.77 kB / 0.5574 GB, free: 3.703 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.93e-05/0.1547, allocations: 7.938 kB / 0.5574 GB, free: 3.695 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001382/0.1548, allocations: 27.84 kB / 0.5575 GB, free: 3.668 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 2.363e-05/0.1548, allocations: 7.922 kB / 0.5575 GB, free: 3.66 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001336/0.155, allocations: 19.97 kB / 0.5575 GB, free: 3.641 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001335/0.1551, allocations: 71.77 kB / 0.5576 GB, free: 3.57 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002875/0.1554, allocations: 109.6 kB / 0.5577 GB, free: 3.457 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.872e-05/0.1554, allocations: 39.91 kB / 0.5577 GB, free: 3.418 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.934e-05/0.1555, allocations: 47.77 kB / 0.5577 GB, free: 3.371 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 3.241e-05/0.1556, allocations: 8 kB / 0.5578 GB, free: 3.363 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.957e-05/0.1556, allocations: 8 kB / 0.5578 GB, free: 3.355 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.095e-05/0.1557, allocations: 63.83 kB / 0.5578 GB, free: 3.293 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 8.505e-05/0.1558, allocations: 67.61 kB / 0.5579 GB, free: 3.227 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002216/0.156, allocations: 159.2 kB / 0.558 GB, free: 3.07 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.156, allocations: 0 / 0.558 GB, free: 3.07 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.156, allocations: 0 / 0.558 GB, free: 3.07 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.156, allocations: 0 / 0.558 GB, free: 3.07 MB / 414.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.0006501/0.1566, allocations: 447.2 kB / 0.5585 GB, free: 2.586 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.866e-05/0.1567, allocations: 8.031 kB / 0.5585 GB, free: 2.578 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.259e-05/0.1567, allocations: 16.84 kB / 0.5585 GB, free: 2.562 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002824/0.157, allocations: 212.1 kB / 0.5587 GB, free: 2.316 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.994e-05/0.1571, allocations: 16.75 kB / 0.5587 GB, free: 2.301 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.635e-05/0.1571, allocations: 20.38 kB / 0.5587 GB, free: 2.281 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003849/0.1575, allocations: 196.9 kB / 0.5589 GB, free: 2.082 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.848e-05/0.1575, allocations: 7.875 kB / 0.5589 GB, free: 2.074 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.713e-05/0.1575, allocations: 12 kB / 0.5589 GB, free: 2.062 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.1575, allocations: 4 kB / 0.5589 GB, free: 2.059 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002487/0.1578, allocations: 123.3 kB / 0.5591 GB, free: 1.941 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007149/0.1585, allocations: 493.7 kB / 0.5595 GB, free: 1.41 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001042/0.1586, allocations: 38.5 kB / 0.5596 GB, free: 1.363 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.751e-05/0.1587, allocations: 36.91 kB / 0.5596 GB, free: 1.324 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.657e-05/0.1587, allocations: 0 / 0.5596 GB, free: 1.324 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.595e-05/0.1587, allocations: 30.56 kB / 0.5596 GB, free: 1.285 MB / 414.1 MB Notification: Performance of pre-optimization done (n=5): time 1.323e-06/0.1587, allocations: 7.938 kB / 0.5596 GB, free: 1.277 MB / 414.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002891/0.159, allocations: 81.55 kB / 0.5597 GB, free: 1.191 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.172e-05/0.159, allocations: 55.41 kB / 0.5598 GB, free: 1.125 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001048/0.1592, allocations: 109.8 kB / 0.5599 GB, free: 1.008 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.006e-05/0.1592, allocations: 25.7 kB / 0.5599 GB, free: 0.9766 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.961e-05/0.1593, allocations: 136.1 kB / 0.56 GB, free: 0.8359 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.618e-05/0.1593, allocations: 15.86 kB / 0.56 GB, free: 0.8203 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.505e-05/0.1593, allocations: 21.72 kB / 0.5601 GB, free: 0.793 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001471/0.1595, allocations: 318.8 kB / 0.5604 GB, free: 484 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.402e-05/0.1595, allocations: 8 kB / 0.5604 GB, free: 476 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.908e-05/0.1596, allocations: 15.98 kB / 0.5604 GB, free: 460 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.241e-05/0.1597, allocations: 33.22 kB / 0.5604 GB, free: 424 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.1597, allocations: 0 / 0.5604 GB, free: 424 kB / 414.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001313/0.1598, allocations: 65.56 kB / 0.5605 GB, free: 352 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.064e-05/0.1598, allocations: 15.98 kB / 0.5605 GB, free: 336 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.1598, allocations: 0 / 0.5605 GB, free: 336 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.289e-05/0.1598, allocations: 0 / 0.5605 GB, free: 336 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.363e-05/0.1599, allocations: 11.94 kB / 0.5605 GB, free: 324 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.1599, allocations: 0 / 0.5605 GB, free: 324 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.749e-05/0.16, allocations: 4 kB / 0.5605 GB, free: 320 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.153e-05/0.16, allocations: 4 kB / 0.5605 GB, free: 316 kB / 414.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 0.0001141/0.1601, allocations: 133.8 kB / 0.5606 GB, free: 172 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.884e-05/0.1601, allocations: 11.89 kB / 0.5607 GB, free: 160 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.433e-05/0.1601, allocations: 11.97 kB / 0.5607 GB, free: 148 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.322e-06/0.1601, allocations: 0 / 0.5607 GB, free: 148 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.1601, allocations: 0 / 0.5607 GB, free: 148 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/0.1602, allocations: 11.97 kB / 0.5607 GB, free: 136 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004042/0.1606, allocations: 362.4 kB / 0.561 GB, free: 15.72 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.1606, allocations: 0 / 0.561 GB, free: 15.72 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.783e-05/0.1606, allocations: 11.98 kB / 0.561 GB, free: 15.71 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.1606, allocations: 0 / 0.561 GB, free: 15.71 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.576e-06/0.1606, allocations: 4 kB / 0.561 GB, free: 15.71 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.1606, allocations: 4 kB / 0.561 GB, free: 15.7 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.1606, allocations: 4 kB / 0.561 GB, free: 15.7 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001855/0.1608, allocations: 163.4 kB / 0.5612 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.576e-05/0.1608, allocations: 81.3 kB / 0.5613 GB, free: 15.43 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.403e-05/0.1609, allocations: 7.938 kB / 0.5613 GB, free: 15.42 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.187e-05/0.1609, allocations: 0 / 0.5613 GB, free: 15.42 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.513e-05/0.1609, allocations: 8 kB / 0.5613 GB, free: 15.41 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.015e-06/0.1609, allocations: 4 kB / 0.5613 GB, free: 15.41 MB / 430.1 MB Notification: Performance of sorting global known variables: time 5.888e-05/0.161, allocations: 91.56 kB / 0.5614 GB, free: 15.32 MB / 430.1 MB Notification: Performance of sort global known variables: time 6e-08/0.161, allocations: 0 / 0.5614 GB, free: 15.32 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002321/0.1612, allocations: 27.84 kB / 0.5614 GB, free: 15.29 MB / 430.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.0001005/0.1613, allocations: 91.25 kB / 0.5615 GB, free: 15.19 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001715/0.1615, allocations: 39.84 kB / 0.5615 GB, free: 15.15 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.1615, allocations: 0 / 0.5615 GB, free: 15.15 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 4.88e-05/0.1616, allocations: 20 kB / 0.5616 GB, free: 15.13 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002544/0.1618, allocations: 11.98 kB / 0.5616 GB, free: 15.12 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005512/0.1624, allocations: 263.2 kB / 0.5618 GB, free: 14.84 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004263/0.1628, allocations: 0.7275 MB / 0.5625 GB, free: 14.09 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 3.81e-05/0.1628, allocations: 11.77 kB / 0.5625 GB, free: 14.07 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.598e-05/0.1629, allocations: 7.438 kB / 0.5625 GB, free: 14.07 MB / 430.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1629, allocations: 4 kB / 0.5626 GB, free: 14.06 MB / 430.1 MB Notification: Performance of Templates: time 0.003491/0.1663, allocations: 0.6425 MB / 0.5632 GB, free: 13.43 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.5065815187990665]