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.001127/0.001127, allocations: 97.33 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001453/0.001453, allocations: 185.3 kB / 16.92 MB, free: 6.891 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.317/2.317, allocations: 205.4 MB / 223.1 MB, free: 5.5 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5009/0.5009, allocations: 43.57 MB / 315 MB, free: 8.801 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.0005412/0.0005412, allocations: 16 kB / 384.6 MB, free: 7.648 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1485/0.1491, allocations: 58.87 MB / 443.4 MB, free: 12.68 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002029/0.1512, allocations: 1.259 MB / 444.7 MB, free: 11.41 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001747/0.1514, allocations: 43.83 kB / 444.7 MB, free: 11.36 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.208e-05/0.1515, allocations: 7.938 kB / 444.8 MB, free: 11.36 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001752/0.1517, allocations: 11.92 kB / 444.8 MB, free: 11.34 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.288e-05/0.1517, allocations: 3.938 kB / 444.8 MB, free: 11.34 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001106/0.1518, allocations: 19.98 kB / 444.8 MB, free: 11.32 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001219/0.152, allocations: 67.83 kB / 444.9 MB, free: 11.25 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003458/0.1523, allocations: 127.4 kB / 445 MB, free: 11.12 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.923e-05/0.1524, allocations: 11.94 kB / 445 MB, free: 11.11 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.067e-05/0.1524, allocations: 23.8 kB / 445 MB, free: 11.09 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.824e-05/0.1525, allocations: 0 / 445 MB, free: 11.09 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.248e-05/0.1525, allocations: 4 kB / 445 MB, free: 11.08 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.403e-05/0.1526, allocations: 47.89 kB / 445.1 MB, free: 11.04 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001031/0.1527, allocations: 73.31 kB / 445.1 MB, free: 10.96 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001711/0.1529, allocations: 127.5 kB / 445.3 MB, free: 10.83 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.1529, allocations: 8 kB / 445.3 MB, free: 10.82 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.1529, allocations: 0 / 445.3 MB, free: 10.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.344e-06/0.1529, allocations: 0 / 445.3 MB, free: 10.82 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.0006282/0.1535, allocations: 403.8 kB / 445.7 MB, free: 10.38 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.311e-05/0.1536, allocations: 19.91 kB / 445.7 MB, free: 10.36 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.315e-05/0.1537, allocations: 16.75 kB / 445.7 MB, free: 10.35 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002326/0.1539, allocations: 220 kB / 445.9 MB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.142e-05/0.1539, allocations: 16.69 kB / 445.9 MB, free: 10.08 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.635e-05/0.154, allocations: 24.38 kB / 446 MB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003496/0.1543, allocations: 193.1 kB / 446.1 MB, free: 9.859 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.687e-05/0.1544, allocations: 11.92 kB / 446.2 MB, free: 9.848 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.036e-05/0.1544, allocations: 4 kB / 446.2 MB, free: 9.844 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.881e-05/0.1544, allocations: 8 kB / 446.2 MB, free: 9.836 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000219/0.1546, allocations: 127 kB / 446.3 MB, free: 9.715 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006733/0.1553, allocations: 0.4997 MB / 446.8 MB, free: 9.164 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000108/0.1554, allocations: 38.56 kB / 446.8 MB, free: 9.117 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.015e-05/0.1555, allocations: 36.91 kB / 446.9 MB, free: 9.078 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.275e-05/0.1555, allocations: 0 / 446.9 MB, free: 9.078 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.179e-05/0.1556, allocations: 42.55 kB / 446.9 MB, free: 9.027 MB / 382.1 MB Notification: Performance of pre-optimization done (n=5): time 1.393e-06/0.1556, allocations: 0 / 446.9 MB, free: 9.027 MB / 382.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002541/0.1558, allocations: 77.53 kB / 447 MB, free: 8.945 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.012e-05/0.1559, allocations: 59.39 kB / 447 MB, free: 8.875 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.693e-05/0.156, allocations: 105.9 kB / 447.1 MB, free: 8.762 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.479e-05/0.156, allocations: 25.7 kB / 447.2 MB, free: 8.73 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.506e-05/0.1561, allocations: 135.9 kB / 447.3 MB, free: 8.594 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.684e-05/0.1561, allocations: 19.75 kB / 447.3 MB, free: 8.574 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.628e-05/0.1562, allocations: 9.719 kB / 447.3 MB, free: 8.559 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.1563, allocations: 318.8 kB / 447.6 MB, free: 8.238 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.834e-05/0.1564, allocations: 12 kB / 447.7 MB, free: 8.227 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.941e-05/0.1564, allocations: 19.98 kB / 447.7 MB, free: 8.207 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.858e-05/0.1565, allocations: 40.78 kB / 447.7 MB, free: 8.164 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.179e-06/0.1565, allocations: 0 / 447.7 MB, free: 8.164 MB / 382.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001208/0.1567, allocations: 69.56 kB / 447.8 MB, free: 8.09 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.1567, allocations: 8 kB / 447.8 MB, free: 8.082 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.1567, allocations: 4 kB / 447.8 MB, free: 8.078 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.1567, allocations: 0 / 447.8 MB, free: 8.078 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.132e-05/0.1568, allocations: 11.98 kB / 447.8 MB, free: 8.066 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.1568, allocations: 0 / 447.8 MB, free: 8.066 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.642e-05/0.1569, allocations: 4 kB / 447.8 MB, free: 8.062 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.264e-06/0.1569, allocations: 0 / 447.8 MB, free: 8.062 MB / 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 0.0001131/0.157, allocations: 137.8 kB / 447.9 MB, free: 7.918 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.405e-05/0.157, allocations: 7.844 kB / 448 MB, free: 7.91 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.276e-05/0.1571, allocations: 7.969 kB / 448 MB, free: 7.906 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.132e-06/0.1571, allocations: 4.438 kB / 448 MB, free: 7.902 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.1571, allocations: 3.938 kB / 448 MB, free: 7.898 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.696e-06/0.1571, allocations: 0 / 448 MB, free: 7.898 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003833/0.1575, allocations: 374.4 kB / 448.3 MB, free: 7.477 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.1575, allocations: 3.984 kB / 448.3 MB, free: 7.473 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.836e-05/0.1575, allocations: 12 kB / 448.3 MB, free: 7.461 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.129e-06/0.1575, allocations: 4 kB / 448.4 MB, free: 7.457 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.708e-06/0.1576, allocations: 7.922 kB / 448.4 MB, free: 7.449 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.1576, allocations: 0 / 448.4 MB, free: 7.449 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1576, allocations: 0 / 448.4 MB, free: 7.449 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001741/0.1578, allocations: 167.4 kB / 448.5 MB, free: 7.27 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.852e-05/0.1578, allocations: 85.05 kB / 448.6 MB, free: 7.168 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.353e-05/0.1578, allocations: 4 kB / 448.6 MB, free: 7.164 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.093e-05/0.1579, allocations: 4 kB / 448.6 MB, free: 7.16 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.71e-05/0.1579, allocations: 3.984 kB / 448.6 MB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.957e-06/0.1579, allocations: 4 kB / 448.6 MB, free: 7.152 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.502e-05/0.158, allocations: 83.28 kB / 448.7 MB, free: 7.07 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.158, allocations: 0 / 448.7 MB, free: 7.07 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002135/0.1582, allocations: 27.75 kB / 448.7 MB, free: 7.043 MB / 382.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.0001201/0.1583, allocations: 103.2 kB / 448.8 MB, free: 6.934 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001454/0.1585, allocations: 43.86 kB / 448.9 MB, free: 6.891 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1585, allocations: 0 / 448.9 MB, free: 6.891 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.742e-05/0.1586, allocations: 15.98 kB / 448.9 MB, free: 6.875 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003096/0.1589, allocations: 12.55 kB / 448.9 MB, free: 6.863 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005881/0.1595, allocations: 334.6 kB / 449.2 MB, free: 6.504 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003318/0.1598, allocations: 0.7394 MB / 450 MB, free: 5.738 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.877e-05/0.1598, allocations: 4 kB / 450 MB, free: 5.734 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.474e-05/0.1599, allocations: 11.44 kB / 450 MB, free: 5.723 MB / 382.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1599, allocations: 0 / 450 MB, free: 5.723 MB / 382.1 MB Notification: Performance of Templates: time 0.002966/0.1629, allocations: 0.614 MB / 450.6 MB, free: 5.113 MB / 382.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","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches