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.001264/0.001264, allocations: 92.17 kB / 15.71 MB, free: 452 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.001862/0.001863, allocations: 179.4 kB / 16.59 MB, free: 6.848 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.209/2.209, allocations: 205.4 MB / 222.8 MB, free: 5.645 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.5139/0.5139, allocations: 43.57 MB / 314.6 MB, free: 8.762 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.000578/0.0005783, allocations: 12 kB / 383.9 MB, free: 8.004 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1711/0.1717, allocations: 58.87 MB / 442.8 MB, free: 13.03 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002396/0.1742, allocations: 1.248 MB / 444.1 MB, free: 11.77 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002322/0.1744, allocations: 47.83 kB / 444.1 MB, free: 11.72 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.028e-05/0.1745, allocations: 4 kB / 444.1 MB, free: 11.72 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001556/0.1747, allocations: 15.86 kB / 444.1 MB, free: 11.7 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.082e-05/0.1748, allocations: 0 / 444.1 MB, free: 11.7 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001111/0.1749, allocations: 19.98 kB / 444.2 MB, free: 11.68 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001414/0.175, allocations: 63.81 kB / 444.2 MB, free: 11.62 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00032/0.1754, allocations: 109.9 kB / 444.3 MB, free: 11.51 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.842e-05/0.1754, allocations: 19.86 kB / 444.3 MB, free: 11.49 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.54e-05/0.1755, allocations: 11.94 kB / 444.4 MB, free: 11.48 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.611e-05/0.1755, allocations: 0 / 444.4 MB, free: 11.48 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.679e-05/0.1755, allocations: 4 kB / 444.4 MB, free: 11.47 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.493e-05/0.1757, allocations: 55.81 kB / 444.4 MB, free: 11.42 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.205e-05/0.1757, allocations: 41.64 kB / 444.5 MB, free: 11.37 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001637/0.1759, allocations: 95.83 kB / 444.5 MB, free: 11.28 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.1759, allocations: 0 / 444.5 MB, free: 11.28 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1759, allocations: 0 / 444.5 MB, free: 11.28 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.1759, allocations: 4 kB / 444.5 MB, free: 11.27 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.0006295/0.1766, allocations: 415.5 kB / 445 MB, free: 10.82 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.993e-05/0.1766, allocations: 8.031 kB / 445 MB, free: 10.81 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.276e-05/0.1767, allocations: 19.77 kB / 445 MB, free: 10.79 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003059/0.177, allocations: 214.8 kB / 445.2 MB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.821e-05/0.1771, allocations: 12.38 kB / 445.2 MB, free: 10.53 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.708e-05/0.1771, allocations: 23.94 kB / 445.2 MB, free: 10.5 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005063/0.1776, allocations: 196.3 kB / 445.4 MB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/0.1777, allocations: 0 / 445.4 MB, free: 10.31 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.796e-05/0.1777, allocations: 12 kB / 445.4 MB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.13e-05/0.1777, allocations: 4 kB / 445.4 MB, free: 10.29 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003293/0.1781, allocations: 131.6 kB / 445.6 MB, free: 10.16 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009656/0.179, allocations: 0.4998 MB / 446.1 MB, free: 9.613 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001195/0.1792, allocations: 42.56 kB / 446.1 MB, free: 9.562 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.719e-05/0.1793, allocations: 28.97 kB / 446.1 MB, free: 9.531 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.728e-05/0.1793, allocations: 4 kB / 446.1 MB, free: 9.527 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.719e-05/0.1793, allocations: 38.56 kB / 446.2 MB, free: 9.48 MB / 382.1 MB Notification: Performance of pre-optimization done (n=5): time 1.333e-06/0.1794, allocations: 0 / 446.2 MB, free: 9.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003341/0.1797, allocations: 77.61 kB / 446.3 MB, free: 9.398 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.649e-05/0.1798, allocations: 55.34 kB / 446.3 MB, free: 9.332 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001074/0.1799, allocations: 109.8 kB / 446.4 MB, free: 9.215 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.725e-05/0.1799, allocations: 29.7 kB / 446.4 MB, free: 9.18 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.874e-05/0.18, allocations: 135.9 kB / 446.6 MB, free: 9.043 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.918e-05/0.1801, allocations: 19.73 kB / 446.6 MB, free: 9.023 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.276e-06/0.1801, allocations: 4 kB / 446.6 MB, free: 9.02 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.1802, allocations: 322.7 kB / 446.9 MB, free: 8.695 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.615e-05/0.1803, allocations: 11.98 kB / 446.9 MB, free: 8.684 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.491e-05/0.1803, allocations: 12 kB / 446.9 MB, free: 8.672 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.853e-05/0.1804, allocations: 19.98 kB / 447 MB, free: 8.652 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1804, allocations: 0 / 447 MB, free: 8.652 MB / 382.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001621/0.1806, allocations: 69.53 kB / 447 MB, free: 8.578 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/0.1806, allocations: 4 kB / 447 MB, free: 8.574 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.783e-06/0.1806, allocations: 0 / 447 MB, free: 8.574 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.667e-05/0.1807, allocations: 0 / 447 MB, free: 8.574 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001/0.1808, allocations: 15.98 kB / 447 MB, free: 8.559 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.655e-06/0.1808, allocations: 4.312 kB / 447 MB, free: 8.555 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.825e-05/0.1808, allocations: 8 kB / 447.1 MB, free: 8.547 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.902e-06/0.1808, allocations: 0 / 447.1 MB, free: 8.547 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001448/0.181, allocations: 133.8 kB / 447.2 MB, free: 8.406 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.917e-05/0.181, allocations: 11.89 kB / 447.2 MB, free: 8.395 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.697e-05/0.1811, allocations: 3.969 kB / 447.2 MB, free: 8.395 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.1811, allocations: 0 / 447.2 MB, free: 8.395 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/0.1811, allocations: 0 / 447.2 MB, free: 8.395 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.1811, allocations: 8 kB / 447.2 MB, free: 8.387 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006123/0.1817, allocations: 362.9 kB / 447.6 MB, free: 7.977 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.1818, allocations: 0 / 447.6 MB, free: 7.977 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.179e-05/0.1818, allocations: 16.05 kB / 447.6 MB, free: 7.961 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.923e-06/0.1818, allocations: 4 kB / 447.6 MB, free: 7.957 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.01e-05/0.1819, allocations: 0 / 447.6 MB, free: 7.957 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.378e-06/0.1819, allocations: 7.984 kB / 447.6 MB, free: 7.949 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1819, allocations: 4 kB / 447.6 MB, free: 7.945 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002255/0.1821, allocations: 163.4 kB / 447.8 MB, free: 7.77 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.386e-05/0.1822, allocations: 85.02 kB / 447.8 MB, free: 7.668 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.441e-05/0.1822, allocations: 0 / 447.8 MB, free: 7.668 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.909e-05/0.1823, allocations: 4 kB / 447.8 MB, free: 7.664 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.529e-05/0.1823, allocations: 19.91 kB / 447.9 MB, free: 7.645 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.648e-06/0.1824, allocations: 0 / 447.9 MB, free: 7.645 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.469e-05/0.1824, allocations: 87.28 kB / 447.9 MB, free: 7.559 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1824, allocations: 0 / 447.9 MB, free: 7.559 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003481/0.1828, allocations: 27.69 kB / 448 MB, free: 7.531 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 (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.000124/0.1829, allocations: 95.2 kB / 448.1 MB, free: 7.43 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001837/0.1831, allocations: 43.91 kB / 448.1 MB, free: 7.387 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1831, allocations: 0 / 448.1 MB, free: 7.387 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 6.017e-05/0.1832, allocations: 16 kB / 448.1 MB, free: 7.371 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004134/0.1836, allocations: 15.98 kB / 448.1 MB, free: 7.355 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007168/0.1843, allocations: 318.6 kB / 448.5 MB, free: 7.012 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004133/0.1848, allocations: 0.7277 MB / 449.2 MB, free: 6.258 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.75e-05/0.1848, allocations: 4 kB / 449.2 MB, free: 6.254 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.794e-05/0.1849, allocations: 15.44 kB / 449.2 MB, free: 6.238 MB / 382.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1849, allocations: 0 / 449.2 MB, free: 6.238 MB / 382.1 MB Notification: Performance of Templates: time 0.00396/0.1888, allocations: 0.5977 MB / 449.8 MB, free: 5.645 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