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.001005/0.001005, allocations: 95.34 kB / 17.35 MB, free: 6.344 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.001137/0.001137, allocations: 173.8 kB / 18.25 MB, free: 5.504 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.391/1.391, allocations: 223.3 MB / 242.3 MB, free: 228 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2104/0.2104, allocations: 44.26 MB / 337.7 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003521/0.0003521, allocations: 8.281 kB / 410.3 MB, free: 27.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1432/0.1435, allocations: 61.93 MB / 472.2 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002469/0.1461, allocations: 1.251 MB / 473.5 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002397/0.1463, allocations: 51.84 kB / 473.5 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.546e-05/0.1465, allocations: 3.938 kB / 473.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001868/0.1467, allocations: 23.86 kB / 473.6 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.007e-05/0.1467, allocations: 7.922 kB / 473.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001218/0.1469, allocations: 15.98 kB / 473.6 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001534/0.147, allocations: 67.78 kB / 473.7 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004184/0.1475, allocations: 119.4 kB / 473.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.353e-05/0.1475, allocations: 19.86 kB / 473.8 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.915e-05/0.1476, allocations: 15.86 kB / 473.8 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.15e-05/0.1476, allocations: 4 kB / 473.8 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.254e-05/0.1477, allocations: 0 / 473.8 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001011/0.1478, allocations: 55.89 kB / 473.9 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001153/0.1479, allocations: 73.33 kB / 473.9 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000213/0.1481, allocations: 127.5 kB / 474.1 MB, free: 11.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.1481, allocations: 3.984 kB / 474.1 MB, free: 11.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.1481, allocations: 0 / 474.1 MB, free: 11.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.814e-06/0.1482, allocations: 0 / 474.1 MB, free: 11.52 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.0006986/0.1489, allocations: 411.8 kB / 474.5 MB, free: 11.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.494e-05/0.1489, allocations: 8.031 kB / 474.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.733e-05/0.149, allocations: 16.75 kB / 474.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003206/0.1494, allocations: 224.1 kB / 474.7 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.089e-05/0.1494, allocations: 16.75 kB / 474.7 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.496e-05/0.1495, allocations: 16.38 kB / 474.8 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005298/0.15, allocations: 196.9 kB / 474.9 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.586e-05/0.15, allocations: 3.938 kB / 474.9 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.961e-05/0.1501, allocations: 8 kB / 475 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.101e-05/0.1501, allocations: 4 kB / 475 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003511/0.1504, allocations: 135.3 kB / 475.1 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009477/0.1514, allocations: 495.8 kB / 475.6 MB, free: 9.875 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001353/0.1515, allocations: 46.56 kB / 475.6 MB, free: 9.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001006/0.1517, allocations: 36.91 kB / 475.7 MB, free: 9.781 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.468e-05/0.1517, allocations: 0 / 475.7 MB, free: 9.781 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.173e-05/0.1517, allocations: 30.56 kB / 475.7 MB, free: 9.742 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 2.324e-06/0.1518, allocations: 0 / 475.7 MB, free: 9.742 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003539/0.1521, allocations: 93.52 kB / 475.8 MB, free: 9.645 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.039e-05/0.1522, allocations: 55.41 kB / 475.8 MB, free: 9.578 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001115/0.1523, allocations: 105.8 kB / 475.9 MB, free: 9.465 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.877e-05/0.1523, allocations: 29.64 kB / 476 MB, free: 9.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.25e-05/0.1524, allocations: 139.9 kB / 476.1 MB, free: 9.289 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.08e-05/0.1525, allocations: 15.73 kB / 476.1 MB, free: 9.273 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.724e-05/0.1525, allocations: 13.72 kB / 476.1 MB, free: 9.254 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.1527, allocations: 318.8 kB / 476.4 MB, free: 8.934 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.807e-05/0.1527, allocations: 15.98 kB / 476.5 MB, free: 8.918 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.636e-05/0.1528, allocations: 8 kB / 476.5 MB, free: 8.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000116/0.1529, allocations: 44.72 kB / 476.5 MB, free: 8.863 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.1529, allocations: 0 / 476.5 MB, free: 8.863 MB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000193/0.1531, allocations: 81.52 kB / 476.6 MB, free: 8.777 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.955e-05/0.1532, allocations: 6.656 kB / 476.6 MB, free: 8.773 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.1532, allocations: 0 / 476.6 MB, free: 8.773 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.829e-05/0.1532, allocations: 0 / 476.6 MB, free: 8.773 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001071/0.1533, allocations: 8 kB / 476.6 MB, free: 8.766 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.168e-05/0.1533, allocations: 4 kB / 476.6 MB, free: 8.762 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.798e-05/0.1534, allocations: 3.984 kB / 476.6 MB, free: 8.758 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.154e-05/0.1534, allocations: 4 kB / 476.6 MB, free: 8.754 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.0001472/0.1536, allocations: 133.8 kB / 476.7 MB, free: 8.613 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.983e-05/0.1536, allocations: 11.88 kB / 476.8 MB, free: 8.602 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.142e-05/0.1536, allocations: 11.95 kB / 476.8 MB, free: 8.594 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-06/0.1537, allocations: 0 / 476.8 MB, free: 8.594 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/0.1537, allocations: 0 / 476.8 MB, free: 8.594 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.1537, allocations: 0 / 476.8 MB, free: 8.594 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005574/0.1542, allocations: 370.4 kB / 477.1 MB, free: 8.176 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.12e-06/0.1543, allocations: 4 kB / 477.1 MB, free: 8.172 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.093e-05/0.1543, allocations: 16.42 kB / 477.2 MB, free: 8.156 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.1543, allocations: 0 / 477.2 MB, free: 8.156 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.584e-06/0.1544, allocations: 0 / 477.2 MB, free: 8.156 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.963e-06/0.1544, allocations: 0 / 477.2 MB, free: 8.156 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.1544, allocations: 4 kB / 477.2 MB, free: 8.152 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002247/0.1546, allocations: 167.5 kB / 477.3 MB, free: 7.973 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.845e-05/0.1547, allocations: 85 kB / 477.4 MB, free: 7.871 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.847e-05/0.1547, allocations: 4 kB / 477.4 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.698e-05/0.1548, allocations: 0 / 477.4 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.841e-05/0.1548, allocations: 4 kB / 477.4 MB, free: 7.863 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.47e-06/0.1548, allocations: 0 / 477.4 MB, free: 7.863 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.296e-05/0.1549, allocations: 95.2 kB / 477.5 MB, free: 7.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1549, allocations: 0 / 477.5 MB, free: 7.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003263/0.1553, allocations: 31.78 kB / 477.5 MB, free: 7.738 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.0001428/0.1554, allocations: 99.17 kB / 477.6 MB, free: 7.629 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001922/0.1556, allocations: 35.92 kB / 477.7 MB, free: 7.594 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1556, allocations: 0 / 477.7 MB, free: 7.594 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.959e-05/0.1557, allocations: 19.98 kB / 477.7 MB, free: 7.574 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004076/0.1561, allocations: 20.53 kB / 477.7 MB, free: 7.555 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008007/0.1569, allocations: 338.5 kB / 478 MB, free: 7.195 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004411/0.1574, allocations: 0.7316 MB / 478.8 MB, free: 6.438 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.853e-05/0.1574, allocations: 0 / 478.8 MB, free: 6.438 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.038e-05/0.1575, allocations: 19.36 kB / 478.8 MB, free: 6.422 MB / 350.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1575, allocations: 0 / 478.8 MB, free: 6.422 MB / 350.1 MB Notification: Performance of Templates: time 0.004013/0.1615, allocations: 0.6085 MB / 479.4 MB, free: 5.82 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