Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.0008412/0.0008412, allocations: 87.62 kB / 21.43 MB, free: 3.133 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.003569/0.003569, allocations: 161.2 kB / 24.7 MB, free: 9.426 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.8552/0.8552, allocations: 177.2 MB / 205 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2192/0.2192, allocations: 34.26 MB / 295.7 MB, free: 0.707 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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|yMean|yRectifiedMean|yRootMeanSquare|yHarmonicCos|yHarmonicSin|yHarmonicAbs|yHarmonicArg",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|yMean|yRectifiedMean|yRootMeanSquare|yHarmonicCos|yHarmonicSin|yHarmonicAbs|yHarmonicArg",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.433e-06/1.433e-06, allocations: 0 / 443.4 MB, free: 1.168 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.886e-05/2.029e-05, allocations: 2.281 kB / 443.4 MB, free: 1.164 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.1573/0.1573, allocations: 2.176 MB / 445.6 MB, free: 43.36 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.000986/0.1583, allocations: 0.8671 MB / 446.5 MB, free: 43.02 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001223/0.1584, allocations: 9.094 kB / 446.5 MB, free: 43.02 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001259/0.1586, allocations: 34.08 kB / 446.5 MB, free: 42.99 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001939/0.1587, allocations: 71.44 kB / 446.6 MB, free: 42.94 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000291/0.159, allocations: 193.9 kB / 446.8 MB, free: 42.91 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002301/0.1593, allocations: 399 kB / 447.2 MB, free: 42.77 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00018/0.1594, allocations: 82.47 kB / 447.3 MB, free: 42.74 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002255/0.1597, allocations: 222.7 kB / 447.5 MB, free: 42.63 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001416/0.1598, allocations: 131.7 kB / 447.6 MB, free: 42.57 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 3.944e-05/0.1599, allocations: 34.75 kB / 447.6 MB, free: 42.57 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.251e-05/0.1599, allocations: 46.75 kB / 447.7 MB, free: 42.57 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 5.069e-05/0.16, allocations: 92.95 kB / 447.8 MB, free: 42.51 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 7.346e-05/0.1601, allocations: 112.7 kB / 447.9 MB, free: 42.45 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002759/0.1603, allocations: 422.3 kB / 448.3 MB, free: 42.27 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.1603, allocations: 2.844 kB / 448.3 MB, free: 42.27 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1603, allocations: 0 / 448.3 MB, free: 42.27 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.631e-06/0.1603, allocations: 3.938 kB / 448.3 MB, free: 42.27 MB / 410.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.0007557/0.1611, allocations: 0.7283 MB / 449 MB, free: 41.73 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.377e-05/0.1611, allocations: 7.844 kB / 449 MB, free: 41.73 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002301/0.1614, allocations: 80.94 kB / 449.1 MB, free: 41.71 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002852/0.1616, allocations: 293.5 kB / 449.4 MB, free: 41.5 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.571e-05/0.1617, allocations: 20.97 kB / 449.4 MB, free: 41.49 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.281e-05/0.1617, allocations: 35.88 kB / 449.5 MB, free: 41.48 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002826/0.162, allocations: 277.5 kB / 449.7 MB, free: 41.36 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/0.162, allocations: 11.08 kB / 449.7 MB, free: 41.36 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.955e-05/0.162, allocations: 15 kB / 449.8 MB, free: 41.34 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.162, allocations: 5.75 kB / 449.8 MB, free: 41.34 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002206/0.1622, allocations: 192.8 kB / 449.9 MB, free: 41.29 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007534/0.163, allocations: 0.6758 MB / 450.6 MB, free: 40.88 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002675/0.1633, allocations: 183.9 kB / 450.8 MB, free: 40.8 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001044/0.1634, allocations: 91.41 kB / 450.9 MB, free: 40.76 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.738e-05/0.1634, allocations: 6.875 kB / 450.9 MB, free: 40.76 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002297/0.1636, allocations: 220.9 kB / 451.1 MB, free: 40.67 MB / 410.7 MB Notification: Performance of pre-optimization done (n=31): time 1.583e-06/0.1636, allocations: 4 kB / 451.1 MB, free: 40.66 MB / 410.7 MB Notification: Performance of matching and sorting (n=31): time 0.0004642/0.1641, allocations: 382.6 kB / 451.5 MB, free: 40.52 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.862e-05/0.1641, allocations: 64.31 kB / 451.6 MB, free: 40.45 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001381/0.1643, allocations: 261.3 kB / 451.8 MB, free: 40.3 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.621e-05/0.1643, allocations: 36.58 kB / 451.8 MB, free: 40.26 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.611e-05/0.1643, allocations: 187.7 kB / 452 MB, free: 40.11 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.937e-05/0.1644, allocations: 97.38 kB / 452.1 MB, free: 40.03 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.856e-05/0.1644, allocations: 80.8 kB / 452.2 MB, free: 39.98 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.932e-05/0.1645, allocations: 338.1 kB / 452.5 MB, free: 39.65 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001055/0.1646, allocations: 91.39 kB / 452.6 MB, free: 39.62 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001314/0.1647, allocations: 227.5 kB / 452.8 MB, free: 39.43 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002558/0.165, allocations: 338.1 kB / 453.2 MB, free: 39.18 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.165, allocations: 6.812 kB / 453.2 MB, free: 39.18 MB / 410.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003324/0.1653, allocations: 379.5 kB / 453.6 MB, free: 39.01 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/0.1653, allocations: 5.844 kB / 453.6 MB, free: 39.01 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.852e-06/0.1653, allocations: 9.812 kB / 453.6 MB, free: 39.01 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.1653, allocations: 9.781 kB / 453.6 MB, free: 39 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001493/0.1655, allocations: 68.11 kB / 453.6 MB, free: 39 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.378e-06/0.1655, allocations: 16.02 kB / 453.7 MB, free: 39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.228e-05/0.1656, allocations: 34.44 kB / 453.7 MB, free: 38.97 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.409e-05/0.1656, allocations: 18.94 kB / 453.7 MB, free: 38.97 MB / 410.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.218e-05/0.1657, allocations: 161.4 kB / 453.9 MB, free: 38.82 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.796e-05/0.1657, allocations: 44.2 kB / 453.9 MB, free: 38.8 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003559/0.1661, allocations: 321 kB / 454.2 MB, free: 38.66 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.1661, allocations: 6.812 kB / 454.2 MB, free: 38.66 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.1661, allocations: 0 / 454.2 MB, free: 38.66 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.161e-06/0.1661, allocations: 5.625 kB / 454.2 MB, free: 38.66 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004589/0.1665, allocations: 0.6063 MB / 454.8 MB, free: 38.29 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.422e-06/0.1665, allocations: 0 / 454.8 MB, free: 38.29 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001276/0.1667, allocations: 55.77 kB / 454.9 MB, free: 38.28 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.556e-06/0.1667, allocations: 3.938 kB / 454.9 MB, free: 38.28 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.537e-05/0.1667, allocations: 13.17 kB / 454.9 MB, free: 38.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.1667, allocations: 0 / 454.9 MB, free: 38.27 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.1667, allocations: 0 / 454.9 MB, free: 38.27 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004521/0.1671, allocations: 0.5317 MB / 455.4 MB, free: 37.98 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.635e-05/0.1672, allocations: 38.09 kB / 455.5 MB, free: 37.96 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.969e-05/0.1672, allocations: 10.53 kB / 455.5 MB, free: 37.95 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.937e-05/0.1673, allocations: 13.22 kB / 455.5 MB, free: 37.95 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.18e-05/0.1673, allocations: 25.52 kB / 455.5 MB, free: 37.95 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.643e-05/0.1673, allocations: 22.98 kB / 455.6 MB, free: 37.94 MB / 410.7 MB Notification: Performance of sorting global known variables: time 8.839e-05/0.1674, allocations: 181.7 kB / 455.7 MB, free: 37.83 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1674, allocations: 0 / 455.7 MB, free: 37.83 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002288/0.1677, allocations: 72.91 kB / 455.8 MB, free: 37.81 MB / 410.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 8.966e-05/0.1677, allocations: 118.8 kB / 455.9 MB, free: 37.71 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002903/0.168, allocations: 246.2 kB / 456.2 MB, free: 37.64 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.168, allocations: 0.9375 kB / 456.2 MB, free: 37.64 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001307/0.1682, allocations: 118.5 kB / 456.3 MB, free: 37.61 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002448/0.1684, allocations: 48.19 kB / 456.3 MB, free: 37.58 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006376/0.169, allocations: 0.6344 MB / 457 MB, free: 37.17 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.407e-05/0.1691, allocations: 186.8 kB / 457.1 MB, free: 37.09 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.773e-05/0.1692, allocations: 38.94 kB / 457.2 MB, free: 37.08 MB / 410.7 MB Notification: Performance of SimCode: time 6.82e-07/0.1692, allocations: 0 / 457.2 MB, free: 37.08 MB / 410.7 MB Notification: Performance of Templates: time 0.003491/0.1727, allocations: 4.064 MB / 461.2 MB, free: 36.68 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.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: 4.676616605371237]