Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001403/0.001403, allocations: 79.92 kB / 20.72 MB, free: 3.77 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.001593/0.001593, allocations: 169 kB / 24.14 MB, free: 364 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8935/0.8935, allocations: 158.6 MB / 186 MB, free: 2.766 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1542/0.1542, allocations: 32.37 MB / 270.7 MB, free: 14.6 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 9.22e-07/9.22e-07, allocations: 0 / 299.1 MB, free: 2.215 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 8.486e-06/9.408e-06, allocations: 2.312 kB / 299.1 MB, free: 2.211 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002031/0.002041, allocations: 2.174 MB / 301.2 MB, free: 28 kB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.1566/0.1586, allocations: 0.8036 MB / 302 MB, free: 19.21 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001286/0.1588, allocations: 8.094 kB / 302 MB, free: 19.21 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001161/0.1589, allocations: 39.11 kB / 302.1 MB, free: 19.18 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001914/0.1591, allocations: 64.03 kB / 302.1 MB, free: 19.16 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002833/0.1594, allocations: 150.7 kB / 302.3 MB, free: 19.15 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003126/0.1597, allocations: 357.1 kB / 302.6 MB, free: 19.09 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001649/0.1598, allocations: 91.23 kB / 302.7 MB, free: 19.09 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002606/0.1601, allocations: 215.3 kB / 302.9 MB, free: 19.03 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001654/0.1603, allocations: 108 kB / 303 MB, free: 19 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.821e-05/0.1603, allocations: 34.06 kB / 303.1 MB, free: 19 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.916e-05/0.1604, allocations: 31.22 kB / 303.1 MB, free: 19 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.807e-05/0.1604, allocations: 83.56 kB / 303.2 MB, free: 18.95 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.91e-05/0.1605, allocations: 100.6 kB / 303.3 MB, free: 18.91 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002441/0.1607, allocations: 248.7 kB / 303.5 MB, free: 18.79 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.1608, allocations: 1.688 kB / 303.5 MB, free: 18.79 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.1608, allocations: 0.6562 kB / 303.5 MB, free: 18.79 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.1608, allocations: 0 / 303.5 MB, free: 18.79 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0006002/0.1614, allocations: 0.5132 MB / 304 MB, free: 18.4 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.023e-05/0.1614, allocations: 9.906 kB / 304.1 MB, free: 18.4 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.376e-05/0.1615, allocations: 49.59 kB / 304.1 MB, free: 18.39 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002256/0.1617, allocations: 215.3 kB / 304.3 MB, free: 18.23 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.268e-05/0.1617, allocations: 21.73 kB / 304.3 MB, free: 18.22 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.458e-05/0.1618, allocations: 35.91 kB / 304.4 MB, free: 18.21 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002407/0.162, allocations: 189.1 kB / 304.6 MB, free: 18.13 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.162, allocations: 1.406 kB / 304.6 MB, free: 18.13 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.897e-05/0.162, allocations: 16.62 kB / 304.6 MB, free: 18.12 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.162, allocations: 6.031 kB / 304.6 MB, free: 18.12 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.317e-05/0.1621, allocations: 57.92 kB / 304.6 MB, free: 18.12 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006302/0.1628, allocations: 480.6 kB / 305.1 MB, free: 17.87 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001716/0.1629, allocations: 113.2 kB / 305.2 MB, free: 17.83 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.983e-05/0.163, allocations: 38.69 kB / 305.3 MB, free: 17.82 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.053e-05/0.163, allocations: 7.312 kB / 305.3 MB, free: 17.82 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002024/0.1632, allocations: 170.2 kB / 305.4 MB, free: 17.76 MB / 282.7 MB Notification: Performance of pre-optimization done (n=31): time 1.653e-06/0.1632, allocations: 0 / 305.4 MB, free: 17.76 MB / 282.7 MB Notification: Performance of matching and sorting (n=31): time 0.0002473/0.1635, allocations: 170 kB / 305.6 MB, free: 17.71 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.728e-05/0.1635, allocations: 57.14 kB / 305.7 MB, free: 17.65 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001173/0.1636, allocations: 217.4 kB / 305.9 MB, free: 17.54 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.786e-05/0.1636, allocations: 38.31 kB / 305.9 MB, free: 17.5 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.08e-05/0.1637, allocations: 153.1 kB / 306.1 MB, free: 17.38 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.894e-05/0.1637, allocations: 100.9 kB / 306.1 MB, free: 17.31 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.647e-05/0.1638, allocations: 69.97 kB / 306.2 MB, free: 17.27 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.527e-05/0.1638, allocations: 350.5 kB / 306.6 MB, free: 16.95 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.971e-05/0.1639, allocations: 39.31 kB / 306.6 MB, free: 16.95 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.48e-05/0.164, allocations: 170.8 kB / 306.8 MB, free: 16.78 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001732/0.1641, allocations: 251.2 kB / 307 MB, free: 16.59 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.1641, allocations: 0.6875 kB / 307 MB, free: 16.59 MB / 282.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0002324/0.1644, allocations: 227.3 kB / 307.2 MB, free: 16.52 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.265e-05/0.1644, allocations: 7.094 kB / 307.2 MB, free: 16.52 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.1644, allocations: 5.344 kB / 307.2 MB, free: 16.52 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.553e-05/0.1644, allocations: 6.781 kB / 307.3 MB, free: 16.52 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001633/0.1646, allocations: 81.02 kB / 307.3 MB, free: 16.5 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.865e-06/0.1646, allocations: 7.766 kB / 307.3 MB, free: 16.5 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.89e-05/0.1647, allocations: 33.38 kB / 307.4 MB, free: 16.48 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.509e-05/0.1647, allocations: 17.8 kB / 307.4 MB, free: 16.48 MB / 282.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,$PRE.mean.y,rectifiedMean.mean.y,$PRE.rectifiedMean.mean.y,rootMeanSquare.mean.y,$PRE.rootMeanSquare.mean.y,harmonic.mean2.y,$PRE.harmonic.mean2.y,harmonic.mean1.y,$PRE.harmonic.mean1.y) * 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 8.187e-05/0.1648, allocations: 153.7 kB / 307.5 MB, free: 16.33 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.439e-05/0.1648, allocations: 28.69 kB / 307.6 MB, free: 16.33 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002071/0.165, allocations: 166 kB / 307.7 MB, free: 16.27 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.165, allocations: 3.625 kB / 307.7 MB, free: 16.27 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.384e-06/0.165, allocations: 0.8906 kB / 307.7 MB, free: 16.27 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.165, allocations: 1.125 kB / 307.7 MB, free: 16.27 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003181/0.1653, allocations: 395.9 kB / 308.1 MB, free: 16.02 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.145e-06/0.1653, allocations: 0 / 308.1 MB, free: 16.02 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001242/0.1655, allocations: 45.12 kB / 308.2 MB, free: 16.02 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.1655, allocations: 0.6094 kB / 308.2 MB, free: 16.02 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.651e-05/0.1655, allocations: 9.719 kB / 308.2 MB, free: 16.01 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.1655, allocations: 1.375 kB / 308.2 MB, free: 16.01 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.1655, allocations: 1.484 kB / 308.2 MB, free: 16.01 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002575/0.1657, allocations: 306 kB / 308.5 MB, free: 15.84 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.078e-05/0.1658, allocations: 29.39 kB / 308.5 MB, free: 15.82 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.109e-05/0.1658, allocations: 16.09 kB / 308.5 MB, free: 15.81 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.4e-05/0.1659, allocations: 13.34 kB / 308.5 MB, free: 15.81 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.446e-05/0.1659, allocations: 21.66 kB / 308.6 MB, free: 15.8 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.387e-05/0.1659, allocations: 11.62 kB / 308.6 MB, free: 15.8 MB / 282.7 MB Notification: Performance of sorting global known variables: time 6.088e-05/0.166, allocations: 77.09 kB / 308.6 MB, free: 15.77 MB / 282.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.166, allocations: 0 / 308.6 MB, free: 15.77 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002149/0.1662, allocations: 72.64 kB / 308.7 MB, free: 15.75 MB / 282.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,rectifiedMean.mean.y,rootMeanSquare.mean.y,harmonic.mean1.y,harmonic.mean2.y) * 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.052e-05/0.1663, allocations: 86.75 kB / 308.8 MB, free: 15.68 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001907/0.1665, allocations: 160.7 kB / 309 MB, free: 15.64 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.1665, allocations: 2.094 kB / 309 MB, free: 15.64 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 8.59e-05/0.1666, allocations: 76.02 kB / 309 MB, free: 15.62 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001763/0.1667, allocations: 44.78 kB / 309.1 MB, free: 15.6 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007069/0.1674, allocations: 0.5421 MB / 309.6 MB, free: 15.24 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.49e-05/0.1675, allocations: 95.72 kB / 309.7 MB, free: 15.17 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001087/0.1676, allocations: 41.28 kB / 309.8 MB, free: 15.17 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001462/0.1678, allocations: 95.69 kB / 309.8 MB, free: 15.12 MB / 282.7 MB Notification: Performance of SimCode: time 6.52e-07/0.1678, allocations: 0 / 309.8 MB, free: 15.12 MB / 282.7 MB Notification: Performance of Templates: time 0.005318/0.1731, allocations: 2.672 MB / 312.5 MB, free: 14.47 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.0138987419195473]