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.00151/0.00151, allocations: 84.39 kB / 20.68 MB, free: 1.023 MB / 14.72 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.001612/0.001612, allocations: 167 kB / 23.95 MB, free: 4.16 MB / 14.72 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.348/1.348, allocations: 177.1 MB / 204.3 MB, free: 9.18 MB / 190.1 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.1942/0.1942, allocations: 32.81 MB / 293.5 MB, free: 24 kB / 270.1 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 9.91e-07/9.91e-07, allocations: 0 / 440.1 MB, free: 8.16 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.742e-05/1.841e-05, allocations: 6.281 kB / 440.1 MB, free: 8.152 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003159/0.003177, allocations: 2.185 MB / 442.3 MB, free: 5.953 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001495/0.004672, allocations: 0.8529 MB / 443.1 MB, free: 5.094 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001335/0.004805, allocations: 15.88 kB / 443.1 MB, free: 5.078 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001371/0.004942, allocations: 43.47 kB / 443.2 MB, free: 5.035 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000223/0.005165, allocations: 75.25 kB / 443.2 MB, free: 4.961 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003904/0.005556, allocations: 179.6 kB / 443.4 MB, free: 4.785 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004332/0.005989, allocations: 390.8 kB / 443.8 MB, free: 4.402 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002074/0.006196, allocations: 96.7 kB / 443.9 MB, free: 4.305 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003322/0.006529, allocations: 223.4 kB / 444.1 MB, free: 4.086 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001997/0.006728, allocations: 123.6 kB / 444.2 MB, free: 3.965 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.965e-05/0.006798, allocations: 36 kB / 444.3 MB, free: 3.93 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.781e-05/0.006896, allocations: 47.98 kB / 444.3 MB, free: 3.883 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.582e-05/0.006992, allocations: 91.66 kB / 444.4 MB, free: 3.793 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001549/0.007147, allocations: 111.7 kB / 444.5 MB, free: 3.684 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004944/0.007641, allocations: 434.5 kB / 444.9 MB, free: 3.258 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.114e-06/0.007643, allocations: 0 / 444.9 MB, free: 3.258 MB / 366.1 MB Notification: Performance of FrontEnd: time 6.21e-07/0.007644, allocations: 0 / 444.9 MB, free: 3.258 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.53e-06/0.007649, allocations: 0 / 444.9 MB, free: 3.258 MB / 366.1 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.001193/0.008842, allocations: 0.7151 MB / 445.7 MB, free: 2.496 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.138e-05/0.008873, allocations: 19.97 kB / 445.7 MB, free: 2.477 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004469/0.00932, allocations: 80.61 kB / 445.8 MB, free: 2.398 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005121/0.009832, allocations: 294.2 kB / 446 MB, free: 2.086 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.938e-05/0.009862, allocations: 25.02 kB / 446.1 MB, free: 2.062 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.303e-05/0.009915, allocations: 40.38 kB / 446.1 MB, free: 2.023 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00052/0.01043, allocations: 266.6 kB / 446.4 MB, free: 1.758 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.054e-05/0.01046, allocations: 8.141 kB / 446.4 MB, free: 1.75 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.518e-05/0.01049, allocations: 16.12 kB / 446.4 MB, free: 1.734 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.093e-06/0.0105, allocations: 4 kB / 446.4 MB, free: 1.73 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004463/0.01094, allocations: 194.4 kB / 446.6 MB, free: 1.539 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001256/0.0122, allocations: 0.6682 MB / 447.3 MB, free: 0.8359 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004227/0.01262, allocations: 186.8 kB / 447.4 MB, free: 0.6445 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002072/0.01283, allocations: 88.81 kB / 447.5 MB, free: 0.5547 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.667e-05/0.01286, allocations: 8 kB / 447.5 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000419/0.01328, allocations: 223.7 kB / 447.7 MB, free: 324 kB / 366.1 MB Notification: Performance of pre-optimization done (n=31): time 1.844e-06/0.01328, allocations: 0 / 447.7 MB, free: 324 kB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.155/0.1682, allocations: 386.8 kB / 448.1 MB, free: 21.57 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.275e-05/0.1683, allocations: 62.3 kB / 448.2 MB, free: 21.5 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000275/0.1686, allocations: 260.6 kB / 448.4 MB, free: 21.4 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.342e-05/0.1686, allocations: 37.09 kB / 448.5 MB, free: 21.37 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.803e-05/0.1687, allocations: 183.9 kB / 448.7 MB, free: 21.29 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.848e-05/0.1688, allocations: 104.1 kB / 448.8 MB, free: 21.27 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.343e-05/0.1689, allocations: 71.64 kB / 448.8 MB, free: 21.25 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.937e-05/0.1689, allocations: 343.4 kB / 449.2 MB, free: 20.93 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001989/0.1691, allocations: 94.55 kB / 449.3 MB, free: 20.93 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002311/0.1694, allocations: 226.9 kB / 449.5 MB, free: 20.74 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004278/0.1698, allocations: 341.3 kB / 449.8 MB, free: 20.5 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.1698, allocations: 1.219 kB / 449.8 MB, free: 20.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006129/0.1704, allocations: 379.2 kB / 450.2 MB, free: 20.35 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/0.1704, allocations: 7.406 kB / 450.2 MB, free: 20.35 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.1704, allocations: 4.188 kB / 450.2 MB, free: 20.35 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.006e-05/0.1705, allocations: 14.8 kB / 450.2 MB, free: 20.35 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000289/0.1708, allocations: 78.19 kB / 450.3 MB, free: 20.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.276e-05/0.1708, allocations: 12.03 kB / 450.3 MB, free: 20.33 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001733/0.1709, allocations: 40.08 kB / 450.3 MB, free: 20.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.627e-05/0.171, allocations: 15.14 kB / 450.4 MB, free: 20.32 MB / 366.1 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 0.0001349/0.1711, allocations: 167.5 kB / 450.5 MB, free: 20.17 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.279e-05/0.1711, allocations: 31.2 kB / 450.5 MB, free: 20.16 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006123/0.1718, allocations: 332.9 kB / 450.9 MB, free: 20.02 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.1718, allocations: 3.016 kB / 450.9 MB, free: 20.02 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.1718, allocations: 4.656 kB / 450.9 MB, free: 20.02 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.653e-06/0.1718, allocations: 3.422 kB / 450.9 MB, free: 20.02 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007635/0.1725, allocations: 0.6019 MB / 451.5 MB, free: 19.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.1725, allocations: 0 / 451.5 MB, free: 19.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000239/0.1728, allocations: 56.41 kB / 451.5 MB, free: 19.65 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.1728, allocations: 1.594 kB / 451.5 MB, free: 19.65 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.694e-05/0.1728, allocations: 13.42 kB / 451.6 MB, free: 19.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.1728, allocations: 1.5 kB / 451.6 MB, free: 19.65 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1728, allocations: 2.172 kB / 451.6 MB, free: 19.65 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007836/0.1736, allocations: 0.5266 MB / 452.1 MB, free: 19.37 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.303e-05/0.1736, allocations: 39.58 kB / 452.1 MB, free: 19.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.721e-05/0.1737, allocations: 7.828 kB / 452.1 MB, free: 19.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001696/0.1738, allocations: 14.16 kB / 452.1 MB, free: 19.34 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.005e-05/0.1739, allocations: 28.17 kB / 452.2 MB, free: 19.33 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.61e-05/0.1739, allocations: 15.77 kB / 452.2 MB, free: 19.33 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001374/0.1741, allocations: 184.9 kB / 452.4 MB, free: 19.22 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1741, allocations: 0 / 452.4 MB, free: 19.22 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003526/0.1744, allocations: 76.27 kB / 452.4 MB, free: 19.2 MB / 366.1 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 0.0001038/0.1745, allocations: 118.3 kB / 452.6 MB, free: 19.1 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000537/0.1751, allocations: 254.1 kB / 452.8 MB, free: 19.03 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1751, allocations: 4.062 kB / 452.8 MB, free: 19.03 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002439/0.1753, allocations: 123.2 kB / 452.9 MB, free: 18.99 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003752/0.1757, allocations: 40.38 kB / 453 MB, free: 18.97 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009738/0.1767, allocations: 0.601 MB / 453.6 MB, free: 18.61 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001893/0.1769, allocations: 189.1 kB / 453.8 MB, free: 18.53 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001333/0.177, allocations: 45.42 kB / 453.8 MB, free: 18.52 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.817e-05/0.1771, allocations: 31.84 kB / 453.8 MB, free: 18.51 MB / 366.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1771, allocations: 0 / 453.8 MB, free: 18.51 MB / 366.1 MB Notification: Performance of Templates: time 0.007099/0.1842, allocations: 2.745 MB / 456.6 MB, free: 18.19 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.469926420599222]