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.001259/0.001259, allocations: 107.7 kB / 17.21 MB, free: 6.27 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.001541/0.001541, allocations: 194 kB / 18.12 MB, free: 5.363 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.401/1.401, allocations: 222.9 MB / 241.8 MB, free: 15.54 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.2464/0.2464, allocations: 44.19 MB / 336.1 MB, free: 2.992 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00136/0.00136, allocations: 63.91 kB / 407.7 MB, free: 27.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1463/0.1476, allocations: 60.83 MB / 468.5 MB, free: 14.83 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.003127/0.1508, allocations: 1.598 MB / 470.1 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001444/0.151, allocations: 51.84 kB / 470.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.61e-05/0.1511, allocations: 3.938 kB / 470.2 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001643/0.1512, allocations: 7.922 kB / 470.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.747e-05/0.1513, allocations: 11.92 kB / 470.2 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.995e-05/0.1514, allocations: 16 kB / 470.2 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001124/0.1515, allocations: 67.83 kB / 470.3 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002774/0.1518, allocations: 123.4 kB / 470.4 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.544e-05/0.1518, allocations: 39.84 kB / 470.4 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.911e-05/0.1519, allocations: 39.84 kB / 470.5 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.425e-05/0.1519, allocations: 8 kB / 470.5 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.806e-05/0.152, allocations: 4 kB / 470.5 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.517e-05/0.152, allocations: 67.83 kB / 470.5 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.922e-05/0.1521, allocations: 63.61 kB / 470.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001641/0.1523, allocations: 135.6 kB / 470.7 MB, free: 12.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.1523, allocations: 0 / 470.7 MB, free: 12.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.126e-06/0.1523, allocations: 0 / 470.7 MB, free: 12.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.1523, allocations: 3.938 kB / 470.7 MB, free: 12.57 MB / 350.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.0005288/0.1529, allocations: 439.8 kB / 471.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.553e-05/0.1529, allocations: 8.031 kB / 471.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.814e-05/0.153, allocations: 16.75 kB / 471.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002339/0.1532, allocations: 216.1 kB / 471.4 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.879e-05/0.1532, allocations: 16.75 kB / 471.4 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.825e-05/0.1533, allocations: 16.38 kB / 471.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000382/0.1536, allocations: 200.8 kB / 471.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.1537, allocations: 3.938 kB / 471.6 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.915e-05/0.1537, allocations: 4 kB / 471.6 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.197e-05/0.1537, allocations: 11.98 kB / 471.7 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002191/0.1539, allocations: 127.3 kB / 471.8 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006746/0.1546, allocations: 499.7 kB / 472.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001047/0.1547, allocations: 42.56 kB / 472.3 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.74e-05/0.1548, allocations: 40.84 kB / 472.4 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.526e-05/0.1548, allocations: 0 / 472.4 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.699e-05/0.1549, allocations: 30.56 kB / 472.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 9.41e-07/0.1549, allocations: 0 / 472.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002657/0.1552, allocations: 73.61 kB / 472.5 MB, free: 10.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.675e-05/0.1552, allocations: 55.41 kB / 472.5 MB, free: 10.63 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001065/0.1553, allocations: 117.8 kB / 472.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.487e-05/0.1554, allocations: 25.7 kB / 472.6 MB, free: 10.47 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.189e-05/0.1554, allocations: 135.9 kB / 472.8 MB, free: 10.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.423e-05/0.1555, allocations: 15.75 kB / 472.8 MB, free: 10.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.64e-05/0.1555, allocations: 21.7 kB / 472.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.1557, allocations: 314.8 kB / 473.1 MB, free: 9.977 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.924e-05/0.1557, allocations: 15.98 kB / 473.1 MB, free: 9.961 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.721e-05/0.1557, allocations: 16.25 kB / 473.2 MB, free: 9.945 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.302e-05/0.1558, allocations: 28.84 kB / 473.2 MB, free: 9.914 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.1559, allocations: 0 / 473.2 MB, free: 9.914 MB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001365/0.156, allocations: 73.45 kB / 473.3 MB, free: 9.836 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.999e-05/0.156, allocations: 4 kB / 473.3 MB, free: 9.832 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.156, allocations: 0 / 473.3 MB, free: 9.832 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.671e-05/0.1561, allocations: 4 kB / 473.3 MB, free: 9.828 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.854e-05/0.1561, allocations: 8 kB / 473.3 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.483e-06/0.1562, allocations: 4 kB / 473.3 MB, free: 9.816 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.743e-05/0.1562, allocations: 7.984 kB / 473.3 MB, free: 9.809 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.294e-06/0.1562, allocations: 4 kB / 473.3 MB, free: 9.805 MB / 350.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.0001068/0.1563, allocations: 125.8 kB / 473.4 MB, free: 9.672 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.596e-05/0.1564, allocations: 11.84 kB / 473.4 MB, free: 9.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.087e-05/0.1564, allocations: 7.969 kB / 473.4 MB, free: 9.656 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/0.1564, allocations: 3.984 kB / 473.4 MB, free: 9.652 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.1564, allocations: 0 / 473.4 MB, free: 9.652 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.1564, allocations: 4 kB / 473.4 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004032/0.1568, allocations: 362.4 kB / 473.8 MB, free: 9.238 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.1568, allocations: 4 kB / 473.8 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.359e-05/0.1569, allocations: 19.92 kB / 473.8 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.1569, allocations: 0 / 473.8 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.226e-06/0.1569, allocations: 0 / 473.8 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.1569, allocations: 256 / 473.8 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.1569, allocations: 3.938 kB / 473.8 MB, free: 9.211 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001753/0.1571, allocations: 163.5 kB / 474 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.401e-05/0.1572, allocations: 85 kB / 474.1 MB, free: 8.934 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.395e-05/0.1572, allocations: 0 / 474.1 MB, free: 8.934 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.418e-05/0.1572, allocations: 8 kB / 474.1 MB, free: 8.926 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.737e-05/0.1573, allocations: 0 / 474.1 MB, free: 8.926 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.689e-06/0.1573, allocations: 7.938 kB / 474.1 MB, free: 8.918 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.155e-05/0.1574, allocations: 87.27 kB / 474.2 MB, free: 8.832 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1574, allocations: 4 kB / 474.2 MB, free: 8.828 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002435/0.1576, allocations: 31.69 kB / 474.2 MB, free: 8.797 MB / 350.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.0001138/0.1577, allocations: 95.23 kB / 474.3 MB, free: 8.691 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000154/0.1579, allocations: 35.86 kB / 474.3 MB, free: 8.656 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.1579, allocations: 0 / 474.3 MB, free: 8.656 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.181e-05/0.158, allocations: 19.98 kB / 474.3 MB, free: 8.637 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003754/0.1584, allocations: 15.98 kB / 474.4 MB, free: 8.621 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006193/0.159, allocations: 333.2 kB / 474.7 MB, free: 8.266 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003537/0.1594, allocations: 0.7277 MB / 475.4 MB, free: 7.512 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.416e-05/0.1594, allocations: 7.984 kB / 475.4 MB, free: 7.504 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.312e-05/0.1594, allocations: 7.438 kB / 475.4 MB, free: 7.5 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1594, allocations: 7.938 kB / 475.4 MB, free: 7.492 MB / 350.1 MB Notification: Performance of Templates: time 0.003044/0.1625, allocations: 0.6196 MB / 476.1 MB, free: 6.883 MB / 350.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