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.0009377/0.0009376, allocations: 93.89 kB / 16.98 MB, free: 5.938 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.001019/0.001019, allocations: 187.4 kB / 17.88 MB, free: 5.594 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.395/1.395, allocations: 223.2 MB / 241.8 MB, free: 14.64 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.2355/0.2355, allocations: 44.22 MB / 337.1 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003207/0.0003207, allocations: 8 kB / 409.5 MB, free: 27.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1307, allocations: 61.93 MB / 471.4 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.001641/0.1324, allocations: 1.232 MB / 472.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001256/0.1325, allocations: 47.84 kB / 472.7 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.203e-05/0.1326, allocations: 7.938 kB / 472.7 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001283/0.1327, allocations: 15.92 kB / 472.8 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.067e-05/0.1328, allocations: 7.984 kB / 472.8 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.121e-05/0.1329, allocations: 15.98 kB / 472.8 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.216e-05/0.1329, allocations: 51.83 kB / 472.8 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002341/0.1332, allocations: 101.9 kB / 472.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.96e-05/0.1332, allocations: 15.92 kB / 472.9 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.24e-05/0.1333, allocations: 19.84 kB / 473 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.17e-05/0.1333, allocations: 7.938 kB / 473 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.805e-06/0.1333, allocations: 0 / 473 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.903e-05/0.1334, allocations: 55.89 kB / 473 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.142e-05/0.1334, allocations: 49.58 kB / 473.1 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001048/0.1335, allocations: 95.81 kB / 473.2 MB, free: 12 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.104e-06/0.1335, allocations: 0 / 473.2 MB, free: 12 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1336, allocations: 4 kB / 473.2 MB, free: 12 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.089e-06/0.1336, allocations: 0 / 473.2 MB, free: 12 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.0004432/0.134, allocations: 403.6 kB / 473.6 MB, free: 11.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/0.1341, allocations: 12.03 kB / 473.6 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.926e-05/0.1341, allocations: 15.81 kB / 473.6 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002187/0.1343, allocations: 218.8 kB / 473.8 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.998e-05/0.1344, allocations: 20.27 kB / 473.8 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.379e-05/0.1344, allocations: 16 kB / 473.8 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003236/0.1347, allocations: 188.6 kB / 474 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.1348, allocations: 3.984 kB / 474 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.891e-05/0.1348, allocations: 12 kB / 474 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.308e-06/0.1348, allocations: 4 kB / 474 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002109/0.135, allocations: 131.6 kB / 474.2 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006029/0.1356, allocations: 495.9 kB / 474.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.003e-05/0.1357, allocations: 54.5 kB / 474.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.144e-05/0.1357, allocations: 3.953 kB / 474.7 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.478e-05/0.1358, allocations: 34.56 kB / 474.7 MB, free: 10.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.052e-06/0.1358, allocations: 0 / 474.7 MB, free: 10.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.000234/0.136, allocations: 77.7 kB / 474.8 MB, free: 10.17 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.061e-05/0.1361, allocations: 55.41 kB / 474.9 MB, free: 10.11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.158e-05/0.1362, allocations: 117.8 kB / 475 MB, free: 9.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.325e-05/0.1362, allocations: 25.7 kB / 475 MB, free: 9.949 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.293e-05/0.1363, allocations: 135.9 kB / 475.1 MB, free: 9.812 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.1e-05/0.1363, allocations: 19.72 kB / 475.2 MB, free: 9.793 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.715e-06/0.1363, allocations: 4 kB / 475.2 MB, free: 9.789 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.1364, allocations: 314.8 kB / 475.5 MB, free: 9.473 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.233e-05/0.1365, allocations: 15.98 kB / 475.5 MB, free: 9.457 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.415e-05/0.1365, allocations: 12 kB / 475.5 MB, free: 9.445 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.573e-05/0.1366, allocations: 19.98 kB / 475.5 MB, free: 9.426 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1366, allocations: 0 / 475.5 MB, free: 9.426 MB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001366/0.1367, allocations: 61.69 kB / 475.6 MB, free: 9.359 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.928e-05/0.1367, allocations: 7.953 kB / 475.6 MB, free: 9.352 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/0.1367, allocations: 4 kB / 475.6 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/0.1368, allocations: 0 / 475.6 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.705e-05/0.1369, allocations: 19.92 kB / 475.6 MB, free: 9.328 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.379e-06/0.1369, allocations: 3.938 kB / 475.6 MB, free: 9.324 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.729e-05/0.1369, allocations: 7.906 kB / 475.6 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.352e-06/0.1369, allocations: 0 / 475.6 MB, free: 9.316 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001231/0.137, allocations: 137.8 kB / 475.8 MB, free: 9.172 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.117e-05/0.1371, allocations: 4 kB / 475.8 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.463e-05/0.1371, allocations: 15.92 kB / 475.8 MB, free: 9.156 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.1371, allocations: 0 / 475.8 MB, free: 9.156 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.1371, allocations: 0 / 475.8 MB, free: 9.156 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.1371, allocations: 4 kB / 475.8 MB, free: 9.152 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003693/0.1375, allocations: 362.5 kB / 476.1 MB, free: 8.742 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.1375, allocations: 0 / 476.1 MB, free: 8.742 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.352e-05/0.1376, allocations: 12.45 kB / 476.2 MB, free: 8.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.1376, allocations: 4 kB / 476.2 MB, free: 8.727 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.672e-06/0.1376, allocations: 3.938 kB / 476.2 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.1376, allocations: 4 kB / 476.2 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1376, allocations: 4 kB / 476.2 MB, free: 8.715 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000161/0.1378, allocations: 159.4 kB / 476.3 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.156e-05/0.1378, allocations: 81.11 kB / 476.4 MB, free: 8.445 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.683e-05/0.1378, allocations: 11.95 kB / 476.4 MB, free: 8.434 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.136e-05/0.1379, allocations: 3.984 kB / 476.4 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.907e-05/0.1379, allocations: 7.938 kB / 476.4 MB, free: 8.422 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.334e-06/0.1379, allocations: 0 / 476.4 MB, free: 8.422 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.085e-05/0.138, allocations: 91.27 kB / 476.5 MB, free: 8.332 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.138, allocations: 0 / 476.5 MB, free: 8.332 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002142/0.1382, allocations: 27.69 kB / 476.5 MB, free: 8.305 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001115/0.1383, allocations: 91.25 kB / 476.6 MB, free: 8.203 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001255/0.1384, allocations: 39.98 kB / 476.7 MB, free: 8.164 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.1385, allocations: 0 / 476.7 MB, free: 8.164 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.779e-05/0.1385, allocations: 19.92 kB / 476.7 MB, free: 8.145 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002082/0.1387, allocations: 12 kB / 476.7 MB, free: 8.133 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004764/0.1392, allocations: 318.6 kB / 477 MB, free: 7.793 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003978/0.1396, allocations: 0.7355 MB / 477.7 MB, free: 7.031 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.499e-05/0.1396, allocations: 4 kB / 477.8 MB, free: 7.027 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.889e-05/0.1397, allocations: 11.44 kB / 477.8 MB, free: 7.02 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1397, allocations: 0 / 477.8 MB, free: 7.02 MB / 350.1 MB Notification: Performance of Templates: time 0.002586/0.1423, allocations: 0.5857 MB / 478.3 MB, free: 6.438 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","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches