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.0009315/0.0009315, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.001025/0.001025, allocations: 169.9 kB / 24.91 MB, free: 9.184 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.9967/0.9967, allocations: 177.1 MB / 205.3 MB, free: 5.484 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.2389/0.2389, allocations: 32.81 MB / 294.6 MB, free: 1.25 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.393e-06/1.393e-06, allocations: 0 / 323.2 MB, free: 9.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.091e-05/2.23e-05, allocations: 3.188 kB / 323.2 MB, free: 9.746 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002441/0.002463, allocations: 2.244 MB / 325.4 MB, free: 7.488 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001268/0.003731, allocations: 0.9071 MB / 326.4 MB, free: 6.574 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000165/0.003896, allocations: 7.938 kB / 326.4 MB, free: 6.566 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001315/0.004028, allocations: 43.47 kB / 326.4 MB, free: 6.523 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002045/0.004232, allocations: 75.31 kB / 326.5 MB, free: 6.449 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003369/0.004569, allocations: 179.5 kB / 326.7 MB, free: 6.273 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002998/0.004869, allocations: 394.8 kB / 327 MB, free: 5.887 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001666/0.005036, allocations: 96.08 kB / 327.1 MB, free: 5.793 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002838/0.005319, allocations: 231.4 kB / 327.4 MB, free: 5.566 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000151/0.00547, allocations: 115.6 kB / 327.5 MB, free: 5.453 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.742e-05/0.005508, allocations: 36 kB / 327.5 MB, free: 5.418 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.645e-05/0.005584, allocations: 59.92 kB / 327.6 MB, free: 5.359 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.971e-05/0.005644, allocations: 91.59 kB / 327.7 MB, free: 5.27 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.216e-05/0.005726, allocations: 107.7 kB / 327.8 MB, free: 5.164 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002834/0.00601, allocations: 282.9 kB / 328 MB, free: 4.887 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.174e-06/0.006012, allocations: 0 / 328 MB, free: 4.887 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.006013, allocations: 0 / 328 MB, free: 4.887 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.022e-06/0.006019, allocations: 0 / 328 MB, free: 4.887 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.0006415/0.00666, allocations: 0.5623 MB / 328.6 MB, free: 4.301 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.764e-05/0.006688, allocations: 8.031 kB / 328.6 MB, free: 4.293 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002432/0.006931, allocations: 92.78 kB / 328.7 MB, free: 4.203 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002533/0.007185, allocations: 245.7 kB / 328.9 MB, free: 3.941 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.169e-05/0.007206, allocations: 21.03 kB / 329 MB, free: 3.922 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.721e-05/0.007244, allocations: 44.36 kB / 329 MB, free: 3.879 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002076/0.007451, allocations: 191.3 kB / 329.2 MB, free: 3.68 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.007463, allocations: 4.188 kB / 329.2 MB, free: 3.676 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.807e-05/0.007481, allocations: 12.12 kB / 329.2 MB, free: 3.664 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.007487, allocations: 8 kB / 329.2 MB, free: 3.656 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.412e-05/0.007571, allocations: 60.55 kB / 329.3 MB, free: 3.598 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000662/0.008233, allocations: 0.5158 MB / 329.8 MB, free: 3.062 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001668/0.0084, allocations: 106.5 kB / 329.9 MB, free: 2.949 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.754e-05/0.008448, allocations: 37.48 kB / 329.9 MB, free: 2.91 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.192e-05/0.00847, allocations: 12 kB / 329.9 MB, free: 2.898 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001685/0.008638, allocations: 163.1 kB / 330.1 MB, free: 2.727 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 2.535e-06/0.008641, allocations: 0 / 330.1 MB, free: 2.727 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.0002225/0.008863, allocations: 174.9 kB / 330.3 MB, free: 2.551 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.6e-05/0.008899, allocations: 63.34 kB / 330.3 MB, free: 2.477 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001296/0.009029, allocations: 247 kB / 330.6 MB, free: 2.223 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.26e-05/0.009051, allocations: 37.69 kB / 330.6 MB, free: 2.18 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.557e-05/0.009117, allocations: 161.1 kB / 330.8 MB, free: 2.016 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.529e-05/0.009172, allocations: 103.1 kB / 330.9 MB, free: 1.914 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.284e-05/0.009235, allocations: 74.02 kB / 330.9 MB, free: 1.832 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.169e-05/0.009317, allocations: 346.7 kB / 331.3 MB, free: 1.484 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.149e-05/0.009358, allocations: 32.73 kB / 331.3 MB, free: 1.453 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.448e-05/0.009453, allocations: 166.6 kB / 331.5 MB, free: 1.23 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001889/0.009641, allocations: 253.2 kB / 331.7 MB, free: 0.918 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.009644, allocations: 0 / 331.7 MB, free: 0.918 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0002128/0.009857, allocations: 230.3 kB / 331.9 MB, free: 0.6875 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.213e-05/0.009869, allocations: 8 kB / 332 MB, free: 0.6797 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.009875, allocations: 7.938 kB / 332 MB, free: 0.6719 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.009889, allocations: 8 kB / 332 MB, free: 0.6641 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001593/0.01005, allocations: 75.84 kB / 332 MB, free: 0.5898 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.878e-06/0.01006, allocations: 19.91 kB / 332.1 MB, free: 0.5703 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.548e-05/0.01013, allocations: 28.31 kB / 332.1 MB, free: 0.543 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.385e-05/0.01015, allocations: 16 kB / 332.1 MB, free: 0.5273 MB / 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.0001086/0.01026, allocations: 153.5 kB / 332.3 MB, free: 376 kB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.282e-05/0.01029, allocations: 27.97 kB / 332.3 MB, free: 348 kB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000206/0.0105, allocations: 163.9 kB / 332.4 MB, free: 172 kB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.0105, allocations: 4 kB / 332.4 MB, free: 168 kB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.354e-06/0.0105, allocations: 3.938 kB / 332.5 MB, free: 164 kB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.01051, allocations: 7.984 kB / 332.5 MB, free: 156 kB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003268/0.01083, allocations: 391 kB / 332.8 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.01083, allocations: 0 / 332.8 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001213/0.01096, allocations: 47.91 kB / 332.9 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.01096, allocations: 0 / 332.9 MB, free: 15.7 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.932e-05/0.01098, allocations: 7.984 kB / 332.9 MB, free: 15.69 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.01098, allocations: 4 kB / 332.9 MB, free: 15.69 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.01098, allocations: 3.938 kB / 332.9 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002673/0.01125, allocations: 302.6 kB / 333.2 MB, free: 15.37 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.625e-05/0.01128, allocations: 31.75 kB / 333.2 MB, free: 15.34 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.004e-05/0.01131, allocations: 12.06 kB / 333.2 MB, free: 15.33 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.511e-05/0.01138, allocations: 15.98 kB / 333.3 MB, free: 15.31 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.03e-05/0.01143, allocations: 27.89 kB / 333.3 MB, free: 15.29 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.367e-05/0.01144, allocations: 7.984 kB / 333.3 MB, free: 15.28 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.73e-05/0.01151, allocations: 96.56 kB / 333.4 MB, free: 15.18 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01151, allocations: 0 / 333.4 MB, free: 15.18 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002105/0.01172, allocations: 71.84 kB / 333.5 MB, free: 15.11 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.0001077/0.01183, allocations: 90.84 kB / 333.5 MB, free: 15.02 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001792/0.01201, allocations: 154.6 kB / 333.7 MB, free: 14.87 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.01201, allocations: 4 kB / 333.7 MB, free: 14.86 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 7.481e-05/0.01209, allocations: 76.62 kB / 333.8 MB, free: 14.79 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001909/0.01228, allocations: 41.56 kB / 333.8 MB, free: 14.74 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007841/0.01306, allocations: 0.5913 MB / 334.4 MB, free: 14.12 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.936e-05/0.01312, allocations: 101.5 kB / 334.5 MB, free: 14 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 8.29e-05/0.01321, allocations: 34.97 kB / 334.5 MB, free: 13.97 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001087/0.01331, allocations: 111.3 kB / 334.6 MB, free: 13.86 MB / 314.7 MB Notification: Performance of SimCode: time 4.41e-07/0.01331, allocations: 0 / 334.6 MB, free: 13.86 MB / 314.7 MB Notification: Performance of Templates: time 0.005089/0.0184, allocations: 2.926 MB / 337.6 MB, free: 11 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.0100394543260336]