Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.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.001104/0.001104, allocations: 80.8 kB / 21.5 MB, free: 2.988 MB / 18.57 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.001704/0.001704, allocations: 168.8 kB / 24.91 MB, free: 9.145 MB / 18.57 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.035/1.035, allocations: 177.1 MB / 205.3 MB, free: 5.48 MB / 186.7 MB " [Timeout remaining time 179] 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.2695/0.2695, allocations: 32.81 MB / 294.6 MB, free: 1.262 MB / 266.7 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.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 323.2 MB, free: 9.688 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.314e-05/2.457e-05, allocations: 3.016 kB / 323.2 MB, free: 9.684 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002642/0.002667, allocations: 2.296 MB / 325.5 MB, free: 7.379 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00129/0.003956, allocations: 0.9071 MB / 326.5 MB, free: 6.465 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001281/0.004085, allocations: 7.938 kB / 326.5 MB, free: 6.457 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001186/0.004203, allocations: 35.55 kB / 326.5 MB, free: 6.422 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001914/0.004395, allocations: 71.27 kB / 326.6 MB, free: 6.352 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003113/0.004706, allocations: 183.5 kB / 326.7 MB, free: 6.172 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002889/0.004995, allocations: 398.8 kB / 327.1 MB, free: 5.781 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001692/0.005164, allocations: 96.08 kB / 327.2 MB, free: 5.688 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002685/0.005432, allocations: 231.4 kB / 327.5 MB, free: 5.461 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001524/0.005585, allocations: 115.6 kB / 327.6 MB, free: 5.348 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.968e-05/0.005624, allocations: 36 kB / 327.6 MB, free: 5.312 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.98e-05/0.005714, allocations: 59.91 kB / 327.7 MB, free: 5.254 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.75e-05/0.005772, allocations: 91.59 kB / 327.7 MB, free: 5.164 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.706e-05/0.005849, allocations: 103.7 kB / 327.9 MB, free: 5.062 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002613/0.00611, allocations: 286.9 kB / 328.1 MB, free: 4.781 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.374e-06/0.006112, allocations: 4 kB / 328.1 MB, free: 4.777 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.61e-07/0.006113, allocations: 0 / 328.1 MB, free: 4.777 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.006117, allocations: 0 / 328.1 MB, free: 4.777 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0005762/0.006694, allocations: 0.5545 MB / 328.7 MB, free: 4.199 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.99e-05/0.006723, allocations: 8.031 kB / 328.7 MB, free: 4.191 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002603/0.006984, allocations: 96.78 kB / 328.8 MB, free: 4.098 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002607/0.007244, allocations: 241.7 kB / 329 MB, free: 3.84 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.497e-05/0.007269, allocations: 24.97 kB / 329.1 MB, free: 3.816 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.748e-05/0.007307, allocations: 36.36 kB / 329.1 MB, free: 3.781 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002137/0.00752, allocations: 191.3 kB / 329.3 MB, free: 3.582 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.318e-05/0.007534, allocations: 8.188 kB / 329.3 MB, free: 3.574 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.924e-05/0.007553, allocations: 16.11 kB / 329.3 MB, free: 3.559 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.457e-06/0.007562, allocations: 8 kB / 329.3 MB, free: 3.551 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.702e-05/0.007659, allocations: 56.56 kB / 329.4 MB, free: 3.496 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006787/0.008338, allocations: 0.5081 MB / 329.9 MB, free: 2.969 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001679/0.008506, allocations: 122.4 kB / 330 MB, free: 2.84 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.686e-05/0.008553, allocations: 36.84 kB / 330 MB, free: 2.801 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.398e-05/0.008577, allocations: 12 kB / 330 MB, free: 2.789 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001793/0.008756, allocations: 163.1 kB / 330.2 MB, free: 2.617 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 1.794e-06/0.008758, allocations: 4 kB / 330.2 MB, free: 2.613 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.0002386/0.008997, allocations: 170.9 kB / 330.4 MB, free: 2.441 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.595e-05/0.009042, allocations: 67.33 kB / 330.4 MB, free: 2.363 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001513/0.009194, allocations: 243 kB / 330.7 MB, free: 2.113 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.521e-05/0.009219, allocations: 37.7 kB / 330.7 MB, free: 2.07 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.957e-05/0.009289, allocations: 161.1 kB / 330.9 MB, free: 1.906 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.4e-05/0.009353, allocations: 103.1 kB / 331 MB, free: 1.805 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.915e-05/0.009422, allocations: 70.02 kB / 331 MB, free: 1.73 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.437e-05/0.009516, allocations: 346.7 kB / 331.4 MB, free: 1.383 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.282e-05/0.009559, allocations: 28.73 kB / 331.4 MB, free: 1.355 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001074/0.009666, allocations: 174.5 kB / 331.6 MB, free: 1.121 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001917/0.009858, allocations: 248.6 kB / 331.8 MB, free: 0.8164 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.009861, allocations: 0 / 331.8 MB, free: 0.8164 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0002253/0.01009, allocations: 240.5 kB / 332 MB, free: 0.5781 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.0101, allocations: 8 kB / 332.1 MB, free: 0.5703 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.972e-06/0.01011, allocations: 4 kB / 332.1 MB, free: 0.5664 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.01012, allocations: 4 kB / 332.1 MB, free: 0.5625 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000169/0.01029, allocations: 83.89 kB / 332.1 MB, free: 492 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.027e-06/0.0103, allocations: 19.86 kB / 332.2 MB, free: 472 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.842e-05/0.01038, allocations: 23.84 kB / 332.2 MB, free: 448 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.371e-05/0.01039, allocations: 16 kB / 332.2 MB, free: 432 kB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,mean.y_last,$PRE.mean.y_last,rectifiedMean.mean.y_last,$PRE.rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last,harmonic.mean2.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean1.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 46 * 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.0001011/0.01049, allocations: 149.7 kB / 332.3 MB, free: 272 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.873e-05/0.01052, allocations: 31.91 kB / 332.4 MB, free: 240 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002053/0.01073, allocations: 167.9 kB / 332.5 MB, free: 60 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.01073, allocations: 4 kB / 332.5 MB, free: 56 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.01073, allocations: 3.938 kB / 332.6 MB, free: 52 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.01074, allocations: 3.984 kB / 332.6 MB, free: 48 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003372/0.01108, allocations: 391 kB / 332.9 MB, free: 15.64 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.01108, allocations: 4 kB / 332.9 MB, free: 15.64 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001269/0.0112, allocations: 43.97 kB / 333 MB, free: 15.59 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.01121, allocations: 0 / 333 MB, free: 15.59 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.718e-05/0.01122, allocations: 11.98 kB / 333 MB, free: 15.58 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.01123, allocations: 0 / 333 MB, free: 15.58 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.01123, allocations: 3.938 kB / 333 MB, free: 15.58 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002561/0.01148, allocations: 310.5 kB / 333.3 MB, free: 15.26 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.298e-05/0.01151, allocations: 27.75 kB / 333.3 MB, free: 15.23 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.092e-05/0.01154, allocations: 20.05 kB / 333.4 MB, free: 15.21 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.304e-05/0.01161, allocations: 8 kB / 333.4 MB, free: 15.2 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.745e-05/0.01166, allocations: 31.89 kB / 333.4 MB, free: 15.17 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.28e-05/0.01167, allocations: 7.984 kB / 333.4 MB, free: 15.16 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.926e-05/0.01173, allocations: 84.64 kB / 333.5 MB, free: 15.08 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01173, allocations: 0 / 333.5 MB, free: 15.08 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002105/0.01194, allocations: 75.84 kB / 333.6 MB, free: 15.01 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (mean.x,rectifiedMean.mean.x,rootMeanSquare.mean.x,harmonic.mean1.x,harmonic.mean2.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,mean.y_last,rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,harmonic.mean1.y_last,harmonic.mean2.y_last) * Number of discrete states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001128/0.01205, allocations: 90.78 kB / 333.6 MB, free: 14.91 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000201/0.01225, allocations: 161.2 kB / 333.8 MB, free: 14.75 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.01226, allocations: 0 / 333.8 MB, free: 14.75 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 8.957e-05/0.01235, allocations: 80.62 kB / 333.9 MB, free: 14.67 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002008/0.01255, allocations: 45.03 kB / 333.9 MB, free: 14.62 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007553/0.0133, allocations: 0.5831 MB / 334.5 MB, free: 14.01 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.684e-05/0.01336, allocations: 101.5 kB / 334.6 MB, free: 13.89 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 8.135e-05/0.01344, allocations: 38.95 kB / 334.6 MB, free: 13.86 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001157/0.01356, allocations: 107.3 kB / 334.7 MB, free: 13.75 MB / 314.7 MB Notification: Performance of SimCode: time 6.42e-07/0.01356, allocations: 0 / 334.7 MB, free: 13.75 MB / 314.7 MB Notification: Performance of Templates: time 0.004773/0.01833, allocations: 2.927 MB / 337.7 MB, free: 10.89 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Mean/Mean.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9879228780046105]