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.001492/0.001492, allocations: 81.97 kB / 22.21 MB, free: 2.289 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.001233/0.001233, allocations: 167.9 kB / 25.61 MB, free: 8.582 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 0.9516/0.9516, allocations: 177.2 MB / 206.1 MB, free: 4.477 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.1441/0.1441, allocations: 32.8 MB / 295.4 MB, free: 15.36 MB / 282.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.783e-06/1.783e-06, allocations: 0 / 377.3 MB, free: 25.59 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.203e-05/2.381e-05, allocations: 6.312 kB / 377.3 MB, free: 25.58 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002566/0.002589, allocations: 2.231 MB / 379.5 MB, free: 23.33 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001023/0.003612, allocations: 0.88 MB / 380.4 MB, free: 22.45 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001279/0.00374, allocations: 7.938 kB / 380.4 MB, free: 22.44 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001198/0.00386, allocations: 31.55 kB / 380.4 MB, free: 22.41 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001829/0.004043, allocations: 79.25 kB / 380.5 MB, free: 22.33 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002821/0.004325, allocations: 187.5 kB / 380.7 MB, free: 22.14 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002324/0.004557, allocations: 390.9 kB / 381.1 MB, free: 21.76 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001574/0.004715, allocations: 92.81 kB / 381.1 MB, free: 21.67 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002361/0.004951, allocations: 235.4 kB / 381.4 MB, free: 21.44 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000141/0.005092, allocations: 119.6 kB / 381.5 MB, free: 21.32 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.498e-05/0.005127, allocations: 40 kB / 381.5 MB, free: 21.28 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.701e-05/0.005194, allocations: 47.98 kB / 381.6 MB, free: 21.23 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 5.091e-05/0.005244, allocations: 87.67 kB / 381.7 MB, free: 21.15 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 6.832e-05/0.005313, allocations: 111.7 kB / 381.8 MB, free: 21.04 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002166/0.005529, allocations: 290.8 kB / 382.1 MB, free: 20.75 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.984e-06/0.005531, allocations: 0 / 382.1 MB, free: 20.75 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.005532, allocations: 0 / 382.1 MB, free: 20.75 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.005537, allocations: 0 / 382.1 MB, free: 20.75 MB / 314.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.0006294/0.006166, allocations: 0.8481 MB / 382.9 MB, free: 19.85 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.115e-05/0.006197, allocations: 11.98 kB / 382.9 MB, free: 19.84 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002395/0.006437, allocations: 100.6 kB / 383 MB, free: 19.74 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002103/0.006647, allocations: 288.4 kB / 383.3 MB, free: 19.43 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.077e-05/0.006668, allocations: 29.03 kB / 383.3 MB, free: 19.4 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.282e-05/0.006701, allocations: 32.38 kB / 383.4 MB, free: 19.37 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002022/0.006903, allocations: 191.3 kB / 383.5 MB, free: 19.18 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.006916, allocations: 4.141 kB / 383.5 MB, free: 19.18 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.919e-05/0.006935, allocations: 20.11 kB / 383.6 MB, free: 19.16 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.00694, allocations: 8 kB / 383.6 MB, free: 19.15 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.778e-05/0.007028, allocations: 68.52 kB / 383.6 MB, free: 19.08 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006503/0.007678, allocations: 0.672 MB / 384.3 MB, free: 18.38 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001964/0.007875, allocations: 142.8 kB / 384.5 MB, free: 18.23 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.712e-05/0.007922, allocations: 43.66 kB / 384.5 MB, free: 18.18 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.895e-05/0.007941, allocations: 4 kB / 384.5 MB, free: 18.18 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000163/0.008104, allocations: 191.5 kB / 384.7 MB, free: 17.98 MB / 314.7 MB Notification: Performance of pre-optimization done (n=31): time 1.834e-06/0.008106, allocations: 3.984 kB / 384.7 MB, free: 17.97 MB / 314.7 MB Notification: Performance of matching and sorting (n=31): time 0.0002919/0.008397, allocations: 230.7 kB / 384.9 MB, free: 17.74 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.017e-05/0.008428, allocations: 67.28 kB / 385 MB, free: 17.66 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001096/0.008537, allocations: 298.2 kB / 385.3 MB, free: 17.36 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.694e-05/0.008554, allocations: 37.69 kB / 385.3 MB, free: 17.31 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.132e-05/0.008615, allocations: 235.4 kB / 385.5 MB, free: 17.07 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.464e-05/0.00866, allocations: 103.1 kB / 385.6 MB, free: 16.97 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.389e-05/0.008724, allocations: 87.67 kB / 385.7 MB, free: 16.88 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.763e-05/0.008782, allocations: 0.5156 MB / 386.2 MB, free: 16.35 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.192e-05/0.008824, allocations: 32.72 kB / 386.3 MB, free: 16.32 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.706e-05/0.008911, allocations: 215.2 kB / 386.5 MB, free: 16.02 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001669/0.009078, allocations: 301.3 kB / 386.8 MB, free: 15.64 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.00908, allocations: 4 kB / 386.8 MB, free: 15.64 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0002399/0.00932, allocations: 280.9 kB / 387.1 MB, free: 15.36 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.372e-05/0.009334, allocations: 4 kB / 387.1 MB, free: 15.36 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.00934, allocations: 4 kB / 387.1 MB, free: 15.35 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.129e-05/0.009351, allocations: 8 kB / 387.1 MB, free: 15.34 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001583/0.00951, allocations: 83.77 kB / 387.2 MB, free: 15.26 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.009515, allocations: 12.41 kB / 387.2 MB, free: 15.25 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.005e-05/0.009595, allocations: 35.78 kB / 387.2 MB, free: 15.21 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.36e-05/0.009609, allocations: 15.98 kB / 387.2 MB, free: 15.2 MB / 314.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.mean1.y_last,$PRE.harmonic.mean1.y_last,harmonic.mean2.y_last,$PRE.harmonic.mean2.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 9.457e-05/0.009703, allocations: 181.5 kB / 387.4 MB, free: 15.01 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.582e-05/0.009739, allocations: 43.8 kB / 387.4 MB, free: 14.97 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002406/0.00998, allocations: 232.3 kB / 387.7 MB, free: 14.73 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.009983, allocations: 4 kB / 387.7 MB, free: 14.73 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.284e-06/0.009986, allocations: 7.938 kB / 387.7 MB, free: 14.72 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.708e-06/0.00999, allocations: 4.078 kB / 387.7 MB, free: 14.72 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000335/0.01033, allocations: 0.5186 MB / 388.2 MB, free: 14.17 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.01033, allocations: 0 / 388.2 MB, free: 14.17 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001217/0.01045, allocations: 47.91 kB / 388.2 MB, free: 14.12 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.01045, allocations: 4 kB / 388.2 MB, free: 14.12 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.585e-05/0.01047, allocations: 11.98 kB / 388.3 MB, free: 14.11 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.01047, allocations: 3.938 kB / 388.3 MB, free: 14.1 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.01047, allocations: 0 / 388.3 MB, free: 14.1 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002909/0.01076, allocations: 419.9 kB / 388.7 MB, free: 13.67 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.132e-05/0.01078, allocations: 35.75 kB / 388.7 MB, free: 13.64 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.869e-05/0.01081, allocations: 11.98 kB / 388.7 MB, free: 13.62 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.849e-05/0.01089, allocations: 16 kB / 388.7 MB, free: 13.61 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.296e-05/0.01093, allocations: 23.95 kB / 388.8 MB, free: 13.59 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.419e-05/0.01095, allocations: 15.98 kB / 388.8 MB, free: 13.57 MB / 314.7 MB Notification: Performance of sorting global known variables: time 5.793e-05/0.01101, allocations: 203 kB / 389 MB, free: 13.37 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.01101, allocations: 0 / 389 MB, free: 13.37 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002195/0.01123, allocations: 67.84 kB / 389 MB, free: 13.3 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,harmonic.mean2.y_last,harmonic.mean1.y_last,rootMeanSquare.mean.y_last,rectifiedMean.mean.y_last,mean.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 9.269e-05/0.01132, allocations: 123.3 kB / 389.2 MB, free: 13.18 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001738/0.01149, allocations: 159.3 kB / 389.3 MB, free: 13.02 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.01149, allocations: 0 / 389.3 MB, free: 13.02 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 8.046e-05/0.01157, allocations: 87.55 kB / 389.4 MB, free: 12.93 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002425/0.01182, allocations: 46.11 kB / 389.4 MB, free: 12.88 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008645/0.01268, allocations: 0.5865 MB / 390 MB, free: 12.27 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.207e-05/0.01273, allocations: 101.5 kB / 390.1 MB, free: 12.15 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 8.505e-05/0.01282, allocations: 39.23 kB / 390.2 MB, free: 12.11 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001124/0.01293, allocations: 126.2 kB / 390.3 MB, free: 11.99 MB / 314.7 MB Notification: Performance of SimCode: time 1.583e-06/0.01293, allocations: 0 / 390.3 MB, free: 11.99 MB / 314.7 MB Notification: Performance of Templates: time 0.004809/0.01774, allocations: 3.062 MB / 393.4 MB, free: 8.98 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 -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: 3.24245698004961]