Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 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 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 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_3.2.3_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_ModelicaTest.Blocks.MuxDemux") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001861/0.001861, allocations: 101.3 kB / 16.26 MB, free: 5.93 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.001869/0.00187, allocations: 192.8 kB / 17.2 MB, free: 5.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.588/1.588, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2246/0.2246, allocations: 43.52 MB / 313.9 MB, free: 0.5273 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001477/0.001478, allocations: 63.56 kB / 382.7 MB, free: 56.72 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1531/0.1546, allocations: 57.79 MB / 440.5 MB, free: 6.926 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002866/0.1576, allocations: 1.54 MB / 442.1 MB, free: 5.363 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001389/0.1577, allocations: 47.84 kB / 442.1 MB, free: 5.316 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.831e-05/0.1578, allocations: 3.938 kB / 442.1 MB, free: 5.312 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001671/0.158, allocations: 23.84 kB / 442.1 MB, free: 5.289 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 2.185e-05/0.158, allocations: 3.938 kB / 442.1 MB, free: 5.285 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.997e-05/0.1581, allocations: 23.97 kB / 442.2 MB, free: 5.262 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001098/0.1582, allocations: 67.83 kB / 442.2 MB, free: 5.195 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002948/0.1585, allocations: 123.7 kB / 442.3 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.81e-05/0.1586, allocations: 39.91 kB / 442.4 MB, free: 5.027 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.504e-05/0.1587, allocations: 39.84 kB / 442.4 MB, free: 4.988 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.643e-05/0.1587, allocations: 8 kB / 442.4 MB, free: 4.98 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.584e-05/0.1587, allocations: 8 kB / 442.4 MB, free: 4.973 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.598e-05/0.1588, allocations: 74.06 kB / 442.5 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.491e-05/0.1589, allocations: 67.59 kB / 442.6 MB, free: 4.836 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001521/0.159, allocations: 143.5 kB / 442.7 MB, free: 4.695 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.159, allocations: 0 / 442.7 MB, free: 4.695 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.1591, allocations: 0 / 442.7 MB, free: 4.695 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.796e-06/0.1591, allocations: 0 / 442.7 MB, free: 4.695 MB / 318.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.0005463/0.1596, allocations: 439.4 kB / 443.1 MB, free: 4.219 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/0.1597, allocations: 15.89 kB / 443.2 MB, free: 4.203 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.522e-05/0.1597, allocations: 16.75 kB / 443.2 MB, free: 4.188 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002273/0.16, allocations: 220.1 kB / 443.4 MB, free: 3.934 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.982e-05/0.16, allocations: 16.73 kB / 443.4 MB, free: 3.918 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.354e-05/0.16, allocations: 20.38 kB / 443.4 MB, free: 3.898 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003431/0.1604, allocations: 189.1 kB / 443.6 MB, free: 3.707 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.645e-05/0.1604, allocations: 3.938 kB / 443.6 MB, free: 3.703 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.282e-05/0.1604, allocations: 4 kB / 443.6 MB, free: 3.699 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.428e-06/0.1604, allocations: 8 kB / 443.6 MB, free: 3.691 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002023/0.1607, allocations: 131 kB / 443.8 MB, free: 3.566 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005818/0.1612, allocations: 499.7 kB / 444.2 MB, free: 3.027 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.425e-05/0.1613, allocations: 42.56 kB / 444.3 MB, free: 2.977 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.934e-05/0.1614, allocations: 36.91 kB / 444.3 MB, free: 2.938 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.401e-05/0.1614, allocations: 3.938 kB / 444.3 MB, free: 2.934 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.051e-05/0.1615, allocations: 30.56 kB / 444.4 MB, free: 2.895 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 1.002e-06/0.1615, allocations: 0 / 444.4 MB, free: 2.895 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002267/0.1617, allocations: 73.58 kB / 444.4 MB, free: 2.816 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.295e-05/0.1617, allocations: 55.41 kB / 444.5 MB, free: 2.75 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.161e-05/0.1618, allocations: 113.8 kB / 444.6 MB, free: 2.629 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.716e-06/0.1618, allocations: 25.7 kB / 444.6 MB, free: 2.598 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.966e-05/0.1619, allocations: 135.9 kB / 444.7 MB, free: 2.461 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.065e-05/0.1619, allocations: 15.8 kB / 444.8 MB, free: 2.445 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.886e-05/0.1619, allocations: 17.72 kB / 444.8 MB, free: 2.422 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.704e-05/0.162, allocations: 314.8 kB / 445.1 MB, free: 2.105 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.011e-05/0.1621, allocations: 15.92 kB / 445.1 MB, free: 2.09 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.343e-05/0.1621, allocations: 19.98 kB / 445.1 MB, free: 2.07 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.637e-05/0.1622, allocations: 29.22 kB / 445.1 MB, free: 2.039 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.1622, allocations: 4 kB / 445.2 MB, free: 2.035 MB / 318.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.645e-05/0.1623, allocations: 65.53 kB / 445.2 MB, free: 1.965 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/0.1623, allocations: 4 kB / 445.2 MB, free: 1.961 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.1623, allocations: 0 / 445.2 MB, free: 1.961 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.733e-05/0.1623, allocations: 11.92 kB / 445.2 MB, free: 1.949 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.987e-05/0.1624, allocations: 4 kB / 445.2 MB, free: 1.945 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.273e-06/0.1624, allocations: 15.92 kB / 445.3 MB, free: 1.93 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.228e-05/0.1625, allocations: 0 / 445.3 MB, free: 1.93 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.192e-06/0.1625, allocations: 4.25 kB / 445.3 MB, free: 1.926 MB / 318.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.308e-05/0.1626, allocations: 138.9 kB / 445.4 MB, free: 1.781 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.164e-05/0.1626, allocations: 3.938 kB / 445.4 MB, free: 1.777 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.203e-05/0.1626, allocations: 15.95 kB / 445.4 MB, free: 1.762 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/0.1626, allocations: 0 / 445.4 MB, free: 1.762 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.1626, allocations: 0 / 445.4 MB, free: 1.762 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.787e-05/0.1626, allocations: 0 / 445.4 MB, free: 1.762 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002737/0.1629, allocations: 374.3 kB / 445.8 MB, free: 1.34 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.1629, allocations: 0 / 445.8 MB, free: 1.34 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.716e-05/0.163, allocations: 15.98 kB / 445.8 MB, free: 1.324 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/0.163, allocations: 0 / 445.8 MB, free: 1.324 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.745e-06/0.163, allocations: 4 kB / 445.8 MB, free: 1.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.163, allocations: 0 / 445.8 MB, free: 1.32 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.163, allocations: 0 / 445.8 MB, free: 1.32 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001195/0.1631, allocations: 167.6 kB / 446 MB, free: 1.141 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.31e-05/0.1632, allocations: 81.02 kB / 446 MB, free: 1.043 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.397e-05/0.1632, allocations: 0 / 446 MB, free: 1.043 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.085e-05/0.1632, allocations: 4 kB / 446 MB, free: 1.039 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.306e-05/0.1633, allocations: 4 kB / 446 MB, free: 1.035 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.858e-06/0.1633, allocations: 11.92 kB / 446.1 MB, free: 1.023 MB / 318.1 MB Notification: Performance of sorting global known variables: time 2.718e-05/0.1633, allocations: 83.27 kB / 446.1 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1633, allocations: 4 kB / 446.1 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002167/0.1636, allocations: 27.84 kB / 446.2 MB, free: 0.9102 MB / 318.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 8.636e-05/0.1636, allocations: 91.25 kB / 446.3 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001426/0.1638, allocations: 35.91 kB / 446.3 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.1638, allocations: 4 kB / 446.3 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.09e-05/0.1638, allocations: 15.94 kB / 446.3 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003245/0.1642, allocations: 11.98 kB / 446.3 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005099/0.1647, allocations: 275.4 kB / 446.6 MB, free: 460 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003997/0.1651, allocations: 0.7314 MB / 447.3 MB, free: 15.69 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.34e-05/0.1652, allocations: 4 kB / 447.3 MB, free: 15.69 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.695e-05/0.1652, allocations: 15.38 kB / 447.3 MB, free: 15.67 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1652, allocations: 0 / 447.3 MB, free: 15.67 MB / 334.1 MB Notification: Performance of Templates: time 0.003118/0.1683, allocations: 0.6756 MB / 448 MB, free: 15.01 MB / 334.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches