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.001881/0.001881, allocations: 99.66 kB / 21.18 MB, free: 0.5273 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.002422/0.002422, allocations: 214.1 kB / 24.48 MB, free: 3.84 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.447/1.447, allocations: 230.6 MB / 258.2 MB, free: 7.809 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.2178/0.2178, allocations: 44.94 MB / 359.6 MB, free: 6.082 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.002079/0.002079, allocations: 67.89 kB / 0.4942 GB, free: 10.05 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3208/0.3228, allocations: 65.47 MB / 0.5582 GB, free: 7.363 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002879/0.3257, allocations: 1.54 MB / 0.5597 GB, free: 5.816 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002483/0.326, allocations: 63.75 kB / 0.5597 GB, free: 5.754 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.962e-05/0.326, allocations: 7.938 kB / 0.5597 GB, free: 5.746 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001348/0.3262, allocations: 15.84 kB / 0.5598 GB, free: 5.73 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.157e-05/0.3262, allocations: 7.938 kB / 0.5598 GB, free: 5.723 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001449/0.3263, allocations: 27.97 kB / 0.5598 GB, free: 5.695 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001177/0.3265, allocations: 67.83 kB / 0.5599 GB, free: 5.629 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002655/0.3267, allocations: 87.59 kB / 0.5599 GB, free: 5.535 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.627e-05/0.3268, allocations: 43.84 kB / 0.56 GB, free: 5.492 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.172e-05/0.3268, allocations: 35.84 kB / 0.56 GB, free: 5.457 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.89e-05/0.3269, allocations: 8 kB / 0.56 GB, free: 5.449 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.039e-05/0.3269, allocations: 8 kB / 0.56 GB, free: 5.441 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.574e-05/0.327, allocations: 67.81 kB / 0.5601 GB, free: 5.375 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.061e-05/0.3271, allocations: 51.73 kB / 0.5602 GB, free: 5.324 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001935/0.3272, allocations: 161.7 kB / 0.5603 GB, free: 5.172 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.3273, allocations: 0 / 0.5603 GB, free: 5.172 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.3273, allocations: 7.938 kB / 0.5603 GB, free: 5.164 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.46e-06/0.3273, allocations: 0 / 0.5603 GB, free: 5.164 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.0005128/0.3278, allocations: 362.1 kB / 0.5607 GB, free: 4.781 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.3278, allocations: 12.03 kB / 0.5607 GB, free: 4.77 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.502e-05/0.3279, allocations: 16.84 kB / 0.5607 GB, free: 4.754 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000241/0.3281, allocations: 158.3 kB / 0.5608 GB, free: 4.574 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.654e-05/0.3281, allocations: 8.75 kB / 0.5608 GB, free: 4.566 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.105e-05/0.3281, allocations: 20.38 kB / 0.5609 GB, free: 4.547 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003499/0.3285, allocations: 201.1 kB / 0.5611 GB, free: 4.344 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/0.3285, allocations: 3.938 kB / 0.5611 GB, free: 4.34 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.675e-05/0.3285, allocations: 4 kB / 0.5611 GB, free: 4.336 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.754e-06/0.3285, allocations: 4 kB / 0.5611 GB, free: 4.332 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002297/0.3288, allocations: 127.3 kB / 0.5612 GB, free: 4.211 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005727/0.3293, allocations: 389 kB / 0.5616 GB, free: 3.801 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001042/0.3294, allocations: 42.56 kB / 0.5616 GB, free: 3.75 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.504e-05/0.3295, allocations: 28.91 kB / 0.5616 GB, free: 3.719 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.571e-05/0.3295, allocations: 0 / 0.5616 GB, free: 3.719 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.849e-05/0.3296, allocations: 42.5 kB / 0.5617 GB, free: 3.668 MB / 398.1 MB Notification: Performance of pre-optimization done (n=5): time 1.032e-06/0.3296, allocations: 0 / 0.5617 GB, free: 3.668 MB / 398.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002543/0.3298, allocations: 77.56 kB / 0.5617 GB, free: 3.586 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.15e-05/0.3299, allocations: 55.34 kB / 0.5618 GB, free: 3.52 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001002/0.33, allocations: 109.8 kB / 0.5619 GB, free: 3.402 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.65e-05/0.33, allocations: 25.7 kB / 0.5619 GB, free: 3.371 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/0.3301, allocations: 144.1 kB / 0.5621 GB, free: 3.223 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.856e-05/0.3301, allocations: 19.86 kB / 0.5621 GB, free: 3.203 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.895e-05/0.3301, allocations: 21.7 kB / 0.5621 GB, free: 3.176 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001494/0.3303, allocations: 310.8 kB / 0.5624 GB, free: 2.863 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.546e-05/0.3303, allocations: 19.92 kB / 0.5624 GB, free: 2.844 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.52e-05/0.3304, allocations: 12.25 kB / 0.5624 GB, free: 2.832 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.332e-05/0.3305, allocations: 32.84 kB / 0.5625 GB, free: 2.797 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.3305, allocations: 0 / 0.5625 GB, free: 2.797 MB / 398.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001333/0.3306, allocations: 65.61 kB / 0.5625 GB, free: 2.727 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.3306, allocations: 8 kB / 0.5625 GB, free: 2.719 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.3306, allocations: 4 kB / 0.5625 GB, free: 2.715 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.3306, allocations: 0 / 0.5625 GB, free: 2.715 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.478e-05/0.3307, allocations: 11.94 kB / 0.5625 GB, free: 2.703 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.189e-06/0.3307, allocations: 0 / 0.5625 GB, free: 2.703 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.825e-05/0.3307, allocations: 3.984 kB / 0.5626 GB, free: 2.699 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.111e-05/0.3307, allocations: 4 kB / 0.5626 GB, free: 2.695 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.0001183/0.3309, allocations: 133.8 kB / 0.5627 GB, free: 2.555 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.929e-05/0.3309, allocations: 11.89 kB / 0.5627 GB, free: 2.543 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.876e-05/0.3309, allocations: 16.05 kB / 0.5627 GB, free: 2.523 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/0.3309, allocations: 0 / 0.5627 GB, free: 2.523 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.3309, allocations: 0 / 0.5627 GB, free: 2.523 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.3309, allocations: 0 / 0.5627 GB, free: 2.523 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000352/0.3313, allocations: 290.1 kB / 0.563 GB, free: 2.203 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.3313, allocations: 0 / 0.563 GB, free: 2.203 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.679e-05/0.3313, allocations: 12 kB / 0.563 GB, free: 2.191 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.664e-06/0.3313, allocations: 0 / 0.563 GB, free: 2.191 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.045e-06/0.3313, allocations: 7.984 kB / 0.563 GB, free: 2.184 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.3313, allocations: 4.234 kB / 0.563 GB, free: 2.18 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.3313, allocations: 0 / 0.563 GB, free: 2.18 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001793/0.3315, allocations: 167.4 kB / 0.5632 GB, free: 2 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.374e-06/0.3315, allocations: 0 / 0.5632 GB, free: 2 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.62e-05/0.3315, allocations: 7.984 kB / 0.5632 GB, free: 1.992 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.657e-05/0.3316, allocations: 7.938 kB / 0.5632 GB, free: 1.984 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.594e-05/0.3316, allocations: 3.938 kB / 0.5632 GB, free: 1.98 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.036e-06/0.3316, allocations: 4 kB / 0.5632 GB, free: 1.977 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.235e-05/0.3317, allocations: 87.27 kB / 0.5633 GB, free: 1.891 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3317, allocations: 0 / 0.5633 GB, free: 1.891 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002312/0.3319, allocations: 27.84 kB / 0.5633 GB, free: 1.863 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.0001021/0.332, allocations: 95.25 kB / 0.5634 GB, free: 1.762 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00014/0.3322, allocations: 35.92 kB / 0.5634 GB, free: 1.727 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.041e-06/0.3322, allocations: 0 / 0.5634 GB, free: 1.727 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.214e-05/0.3322, allocations: 15.92 kB / 0.5634 GB, free: 1.711 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003192/0.3325, allocations: 24.45 kB / 0.5635 GB, free: 1.688 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000556/0.3331, allocations: 297.1 kB / 0.5637 GB, free: 1.363 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001296/0.3332, allocations: 118.1 kB / 0.5639 GB, free: 1.227 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.056e-05/0.3332, allocations: 11.44 kB / 0.5639 GB, free: 1.215 MB / 398.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3332, allocations: 0 / 0.5639 GB, free: 1.215 MB / 398.1 MB Notification: Performance of Templates: time 0.003012/0.3363, allocations: 1.265 MB / 0.5651 GB, free: 15.95 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: 7.877632248215377]