Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_ModelicaTest.Blocks.MuxDemux") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008189/0.0008189, allocations: 175.1 kB / 16.72 MB, free: 4.961 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.17/1.17, allocations: 205.4 MB / 222.9 MB, free: 9.012 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006901/0.0006901, allocations: 86.36 kB / 271.2 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2777/0.2777, allocations: 43.56 MB / 363.1 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003728/0.0003729, allocations: 15.98 kB / 432 MB, free: 5.828 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08933/0.08972, allocations: 58.85 MB / 490.8 MB, free: 10.9 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.001409/0.09117, allocations: 1.242 MB / 492.1 MB, free: 9.645 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001096/0.09129, allocations: 47.78 kB / 492.1 MB, free: 9.598 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.187e-05/0.09134, allocations: 0 / 492.1 MB, free: 9.598 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001112/0.09146, allocations: 19.91 kB / 492.1 MB, free: 9.578 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 1.769e-05/0.09149, allocations: 3.938 kB / 492.1 MB, free: 9.574 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 6.938e-05/0.09156, allocations: 15.98 kB / 492.1 MB, free: 9.559 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 8.415e-05/0.09165, allocations: 59.83 kB / 492.2 MB, free: 9.5 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002216/0.09188, allocations: 131.4 kB / 492.3 MB, free: 9.363 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.724e-05/0.09192, allocations: 11.92 kB / 492.3 MB, free: 9.352 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.705e-05/0.09196, allocations: 19.86 kB / 492.4 MB, free: 9.332 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.064e-05/0.09198, allocations: 4 kB / 492.4 MB, free: 9.328 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.694e-06/0.09199, allocations: 0 / 492.4 MB, free: 9.328 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.442e-05/0.09205, allocations: 55.89 kB / 492.4 MB, free: 9.273 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 6.326e-05/0.09212, allocations: 69.38 kB / 492.5 MB, free: 9.199 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001001/0.09223, allocations: 103.8 kB / 492.6 MB, free: 9.098 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.09224, allocations: 0 / 492.6 MB, free: 9.098 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.09225, allocations: 3.938 kB / 492.6 MB, free: 9.094 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.498e-06/0.09226, allocations: 4 kB / 492.6 MB, free: 9.09 MB / 378.7 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.000391/0.09265, allocations: 403.8 kB / 493 MB, free: 8.648 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.307e-05/0.0927, allocations: 12.03 kB / 493 MB, free: 8.637 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.723e-05/0.09274, allocations: 16.75 kB / 493 MB, free: 8.621 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001773/0.09292, allocations: 220 kB / 493.2 MB, free: 8.367 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.353e-05/0.09294, allocations: 12.75 kB / 493.2 MB, free: 8.355 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.523e-05/0.09298, allocations: 24.36 kB / 493.3 MB, free: 8.332 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003051/0.09329, allocations: 197.1 kB / 493.5 MB, free: 8.133 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.0933, allocations: 3.938 kB / 493.5 MB, free: 8.129 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.524e-05/0.09332, allocations: 4 kB / 493.5 MB, free: 8.125 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.565e-06/0.09334, allocations: 4 kB / 493.5 MB, free: 8.121 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002108/0.09355, allocations: 142.9 kB / 493.6 MB, free: 7.984 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005313/0.09409, allocations: 499.8 kB / 494.1 MB, free: 7.445 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.193e-05/0.09419, allocations: 46.5 kB / 494.1 MB, free: 7.391 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.71e-05/0.09426, allocations: 36.91 kB / 494.2 MB, free: 7.352 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.758e-06/0.09428, allocations: 4 kB / 494.2 MB, free: 7.348 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.875e-05/0.0943, allocations: 30.56 kB / 494.2 MB, free: 7.309 MB / 378.7 MB Notification: Performance of pre-optimization done (n=5): time 1.162e-06/0.09431, allocations: 0 / 494.2 MB, free: 7.309 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.000206/0.09452, allocations: 77.58 kB / 494.3 MB, free: 7.227 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.92e-05/0.09456, allocations: 55.41 kB / 494.3 MB, free: 7.16 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.133e-05/0.09464, allocations: 113.8 kB / 494.5 MB, free: 7.039 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.582e-05/0.09466, allocations: 25.7 kB / 494.5 MB, free: 7.008 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.011e-05/0.09472, allocations: 135.9 kB / 494.6 MB, free: 6.867 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.959e-05/0.09475, allocations: 15.75 kB / 494.6 MB, free: 6.852 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.535e-06/0.09476, allocations: 3.938 kB / 494.6 MB, free: 6.848 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.505e-05/0.09485, allocations: 318.8 kB / 494.9 MB, free: 6.527 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.279e-05/0.0949, allocations: 15.98 kB / 495 MB, free: 6.512 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.508e-05/0.09494, allocations: 16 kB / 495 MB, free: 6.496 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.746e-05/0.09502, allocations: 37.22 kB / 495 MB, free: 6.457 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.09503, allocations: 0 / 495 MB, free: 6.457 MB / 378.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001156/0.09515, allocations: 69.62 kB / 495.1 MB, free: 6.383 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.298e-05/0.09517, allocations: 7.984 kB / 495.1 MB, free: 6.375 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-06/0.09518, allocations: 0 / 495.1 MB, free: 6.375 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.448e-06/0.09519, allocations: 0 / 495.1 MB, free: 6.375 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.126e-05/0.09527, allocations: 19.94 kB / 495.1 MB, free: 6.355 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.509e-06/0.09529, allocations: 0 / 495.1 MB, free: 6.355 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.441e-05/0.09531, allocations: 4 kB / 495.1 MB, free: 6.352 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.36e-06/0.09533, allocations: 0 / 495.1 MB, free: 6.352 MB / 378.7 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 8.666e-05/0.09542, allocations: 133.8 kB / 495.2 MB, free: 6.211 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.883e-05/0.09545, allocations: 11.84 kB / 495.3 MB, free: 6.199 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.634e-05/0.09547, allocations: 7.969 kB / 495.3 MB, free: 6.195 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.704e-06/0.09548, allocations: 0 / 495.3 MB, free: 6.195 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.09549, allocations: 4 kB / 495.3 MB, free: 6.191 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.974e-06/0.0955, allocations: 4 kB / 495.3 MB, free: 6.188 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000316/0.09582, allocations: 366.4 kB / 495.6 MB, free: 5.773 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.09583, allocations: 3.938 kB / 495.6 MB, free: 5.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.053e-05/0.09588, allocations: 11.94 kB / 495.6 MB, free: 5.758 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.09588, allocations: 0 / 495.6 MB, free: 5.758 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.771e-06/0.0959, allocations: 4 kB / 495.6 MB, free: 5.754 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.678e-06/0.09591, allocations: 7.984 kB / 495.7 MB, free: 5.746 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.09591, allocations: 0 / 495.7 MB, free: 5.746 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001415/0.09606, allocations: 159.4 kB / 495.8 MB, free: 5.574 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.282e-05/0.0961, allocations: 85.11 kB / 495.9 MB, free: 5.473 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.137e-05/0.09612, allocations: 0 / 495.9 MB, free: 5.473 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.252e-05/0.09618, allocations: 12.11 kB / 495.9 MB, free: 5.461 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.444e-05/0.09621, allocations: 4 kB / 495.9 MB, free: 5.457 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.707e-06/0.09622, allocations: 4 kB / 495.9 MB, free: 5.453 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.62e-05/0.09626, allocations: 91.27 kB / 496 MB, free: 5.363 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09626, allocations: 0 / 496 MB, free: 5.363 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002229/0.09649, allocations: 27.69 kB / 496 MB, free: 5.336 MB / 378.7 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 7.537e-05/0.09657, allocations: 91.25 kB / 496.1 MB, free: 5.238 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001215/0.0967, allocations: 43.92 kB / 496.2 MB, free: 5.195 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.09671, allocations: 0 / 496.2 MB, free: 5.195 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.619e-05/0.09676, allocations: 19.92 kB / 496.2 MB, free: 5.176 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002597/0.09703, allocations: 15.8 kB / 496.2 MB, free: 5.164 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004641/0.0975, allocations: 353.5 kB / 496.5 MB, free: 4.781 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002414/0.09775, allocations: 0.7316 MB / 497.3 MB, free: 4.023 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.204e-05/0.09778, allocations: 15.44 kB / 497.3 MB, free: 4.008 MB / 378.7 MB Notification: Performance of SimCode: time 3.61e-07/0.09779, allocations: 0 / 497.3 MB, free: 4.008 MB / 378.7 MB Notification: Performance of Templates: time 0.002054/0.09985, allocations: 1.22 MB / 498.5 MB, free: 2.789 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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_cpp_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches