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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001268/0.001268, allocations: 112.2 kB / 21.19 MB, free: 0.7617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001398/0.001398, allocations: 209.9 kB / 24.49 MB, free: 4.145 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.533/1.533, allocations: 230.6 MB / 258.3 MB, free: 7.98 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2251/0.2251, allocations: 44.92 MB / 359.6 MB, free: 6.273 MB / 286.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.MuxDemux,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,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=5002,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") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002222/0.002222, allocations: 67.91 kB / 0.4943 GB, free: 10.21 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3657/0.3679, allocations: 65.46 MB / 0.5582 GB, free: 7.668 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.003087/0.371, allocations: 1.577 MB / 0.5598 GB, free: 6.098 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002634/0.3713, allocations: 63.75 kB / 0.5598 GB, free: 6.035 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.733e-05/0.3713, allocations: 7.938 kB / 0.5599 GB, free: 6.027 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001544/0.3715, allocations: 15.84 kB / 0.5599 GB, free: 6.012 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.333e-05/0.3715, allocations: 3.938 kB / 0.5599 GB, free: 6.008 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001482/0.3717, allocations: 27.92 kB / 0.5599 GB, free: 5.98 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001209/0.3718, allocations: 67.81 kB / 0.56 GB, free: 5.914 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002729/0.3721, allocations: 95.59 kB / 0.5601 GB, free: 5.812 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.641e-05/0.3721, allocations: 35.92 kB / 0.5601 GB, free: 5.777 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.198e-05/0.3722, allocations: 47.83 kB / 0.5601 GB, free: 5.73 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.487e-05/0.3722, allocations: 8 kB / 0.5601 GB, free: 5.723 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.012e-05/0.3722, allocations: 8 kB / 0.5601 GB, free: 5.715 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.732e-05/0.3723, allocations: 63.83 kB / 0.5602 GB, free: 5.652 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.057e-05/0.3724, allocations: 67.61 kB / 0.5603 GB, free: 5.586 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002043/0.3726, allocations: 157.6 kB / 0.5604 GB, free: 5.441 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.3726, allocations: 0 / 0.5604 GB, free: 5.441 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.3726, allocations: 0 / 0.5604 GB, free: 5.441 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.272e-06/0.3726, allocations: 0 / 0.5604 GB, free: 5.441 MB / 398.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.0005161/0.3731, allocations: 370.1 kB / 0.5608 GB, free: 5.051 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.655e-05/0.3732, allocations: 12.03 kB / 0.5608 GB, free: 5.039 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.823e-05/0.3732, allocations: 20.84 kB / 0.5608 GB, free: 5.02 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002382/0.3735, allocations: 154.3 kB / 0.561 GB, free: 4.844 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.052e-05/0.3735, allocations: 16.75 kB / 0.561 GB, free: 4.828 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.139e-05/0.3735, allocations: 16.38 kB / 0.561 GB, free: 4.812 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003644/0.3739, allocations: 197.1 kB / 0.5612 GB, free: 4.613 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.308e-05/0.3739, allocations: 3.938 kB / 0.5612 GB, free: 4.609 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.131e-05/0.3739, allocations: 11.98 kB / 0.5612 GB, free: 4.598 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.298e-05/0.3739, allocations: 8 kB / 0.5612 GB, free: 4.59 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002292/0.3742, allocations: 123.3 kB / 0.5613 GB, free: 4.473 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006955/0.3749, allocations: 460.3 kB / 0.5618 GB, free: 3.98 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001162/0.375, allocations: 42.56 kB / 0.5618 GB, free: 3.93 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.308e-05/0.375, allocations: 32.91 kB / 0.5618 GB, free: 3.895 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.781e-05/0.3751, allocations: 0 / 0.5618 GB, free: 3.895 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.46e-05/0.3751, allocations: 30.56 kB / 0.5619 GB, free: 3.855 MB / 398.1 MB Notification: Performance of pre-optimization done (n=5): time 8.51e-07/0.3751, allocations: 4 kB / 0.5619 GB, free: 3.852 MB / 398.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002749/0.3754, allocations: 77.56 kB / 0.5619 GB, free: 3.77 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.383e-05/0.3754, allocations: 59.34 kB / 0.562 GB, free: 3.699 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001099/0.3755, allocations: 109.8 kB / 0.5621 GB, free: 3.582 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.988e-05/0.3756, allocations: 29.7 kB / 0.5621 GB, free: 3.547 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001097/0.3757, allocations: 140.1 kB / 0.5623 GB, free: 3.402 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.491e-05/0.3757, allocations: 15.84 kB / 0.5623 GB, free: 3.387 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.971e-05/0.3757, allocations: 17.72 kB / 0.5623 GB, free: 3.363 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001422/0.3759, allocations: 318.8 kB / 0.5626 GB, free: 3.043 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.217e-05/0.3759, allocations: 7.984 kB / 0.5626 GB, free: 3.035 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.653e-05/0.376, allocations: 12 kB / 0.5626 GB, free: 3.023 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.751e-05/0.376, allocations: 36.84 kB / 0.5626 GB, free: 2.984 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.376, allocations: 0 / 0.5626 GB, free: 2.984 MB / 398.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001257/0.3762, allocations: 69.98 kB / 0.5627 GB, free: 2.91 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.3762, allocations: 4 kB / 0.5627 GB, free: 2.906 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.3762, allocations: 0 / 0.5627 GB, free: 2.906 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/0.3762, allocations: 0 / 0.5627 GB, free: 2.906 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.366e-05/0.3763, allocations: 11.98 kB / 0.5627 GB, free: 2.895 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.3763, allocations: 4 kB / 0.5627 GB, free: 2.891 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.277e-05/0.3763, allocations: 11.94 kB / 0.5627 GB, free: 2.879 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.033e-06/0.3763, allocations: 4 kB / 0.5627 GB, free: 2.875 MB / 398.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.0001281/0.3765, allocations: 142.3 kB / 0.5629 GB, free: 2.727 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.797e-05/0.3765, allocations: 7.891 kB / 0.5629 GB, free: 2.719 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.302e-05/0.3765, allocations: 4.062 kB / 0.5629 GB, free: 2.711 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.3765, allocations: 4 kB / 0.5629 GB, free: 2.707 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.3765, allocations: 0 / 0.5629 GB, free: 2.707 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.3765, allocations: 0 / 0.5629 GB, free: 2.707 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003961/0.3769, allocations: 337.5 kB / 0.5632 GB, free: 2.328 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.3769, allocations: 7.984 kB / 0.5632 GB, free: 2.32 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.454e-05/0.377, allocations: 8 kB / 0.5632 GB, free: 2.312 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.377, allocations: 4 kB / 0.5632 GB, free: 2.309 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.404e-06/0.377, allocations: 0 / 0.5632 GB, free: 2.309 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.377, allocations: 0 / 0.5632 GB, free: 2.309 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.377, allocations: 0 / 0.5632 GB, free: 2.309 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001924/0.3772, allocations: 167.4 kB / 0.5634 GB, free: 2.129 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.364e-06/0.3772, allocations: 4 kB / 0.5634 GB, free: 2.125 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.948e-05/0.3772, allocations: 8 kB / 0.5634 GB, free: 2.117 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.454e-05/0.3773, allocations: 0 / 0.5634 GB, free: 2.117 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.599e-05/0.3773, allocations: 3.984 kB / 0.5634 GB, free: 2.113 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.039e-06/0.3773, allocations: 7.938 kB / 0.5634 GB, free: 2.105 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.234e-05/0.3773, allocations: 87.27 kB / 0.5635 GB, free: 2.02 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3773, allocations: 0 / 0.5635 GB, free: 2.02 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002421/0.3776, allocations: 27.84 kB / 0.5635 GB, free: 1.992 MB / 398.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.0001071/0.3777, allocations: 91.25 kB / 0.5636 GB, free: 1.895 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001697/0.3779, allocations: 43.8 kB / 0.5637 GB, free: 1.852 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3779, allocations: 0 / 0.5637 GB, free: 1.852 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.633e-05/0.3779, allocations: 16.23 kB / 0.5637 GB, free: 1.836 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003662/0.3783, allocations: 16.12 kB / 0.5637 GB, free: 1.82 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006236/0.3789, allocations: 297.1 kB / 0.564 GB, free: 1.496 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003927/0.3793, allocations: 0.7275 MB / 0.5647 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.305e-05/0.3793, allocations: 11.44 kB / 0.5647 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3793, allocations: 0 / 0.5647 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of Templates: time 0.00328/0.3826, allocations: 1.234 MB / 0.5659 GB, free: 15.5 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.009738056920469]