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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001491/0.001491, allocations: 113.4 kB / 19.69 MB, free: 2.043 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001777/0.001777, allocations: 189.8 kB / 22.98 MB, free: 4.957 MB / 14.72 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 1.725/1.725, allocations: 207.6 MB / 233.7 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] 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.2811/0.2811, allocations: 44.23 MB / 330.2 MB, free: 9.551 MB / 270.1 MB " [Timeout remaining time 179] 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002197/0.002197, allocations: 67.89 kB / 467.9 MB, free: 4.02 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1508/0.153, allocations: 61.03 MB / 0.5166 GB, free: 6.848 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.005245/0.1583, allocations: 2.246 MB / 0.5188 GB, free: 4.59 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002183/0.1605, allocations: 0.8344 MB / 0.5196 GB, free: 3.746 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002198/0.1607, allocations: 7.938 kB / 0.5196 GB, free: 3.738 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000206/0.1609, allocations: 39.53 kB / 0.5196 GB, free: 3.699 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000311/0.1612, allocations: 55.47 kB / 0.5197 GB, free: 3.645 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005583/0.1618, allocations: 139.7 kB / 0.5198 GB, free: 3.508 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000622/0.1624, allocations: 359 kB / 0.5202 GB, free: 3.156 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000373/0.1628, allocations: 88.8 kB / 0.5202 GB, free: 3.066 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003304/0.1631, allocations: 143.5 kB / 0.5204 GB, free: 2.926 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003212/0.1634, allocations: 151.2 kB / 0.5205 GB, free: 2.777 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.138e-05/0.1635, allocations: 36 kB / 0.5206 GB, free: 2.742 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.815e-05/0.1636, allocations: 32 kB / 0.5206 GB, free: 2.711 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001318/0.1637, allocations: 87.61 kB / 0.5207 GB, free: 2.625 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002235/0.1639, allocations: 167.1 kB / 0.5208 GB, free: 2.461 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006316/0.1645, allocations: 350.5 kB / 0.5212 GB, free: 2.117 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.1646, allocations: 4 kB / 0.5212 GB, free: 2.113 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.1646, allocations: 0 / 0.5212 GB, free: 2.113 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.516e-05/0.1646, allocations: 0 / 0.5212 GB, free: 2.113 MB / 398.1 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.001864/0.1664, allocations: 0.6758 MB / 0.5218 GB, free: 1.395 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.939e-05/0.1665, allocations: 8.031 kB / 0.5218 GB, free: 1.387 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001305/0.1666, allocations: 44.7 kB / 0.5219 GB, free: 1.344 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007622/0.1674, allocations: 265.4 kB / 0.5221 GB, free: 1.055 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.452e-05/0.1674, allocations: 28.86 kB / 0.5222 GB, free: 1.027 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.378e-05/0.1675, allocations: 36.31 kB / 0.5222 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007578/0.1683, allocations: 256.1 kB / 0.5224 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.263e-05/0.1683, allocations: 0 / 0.5224 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.664e-05/0.1684, allocations: 12 kB / 0.5225 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.169e-05/0.1684, allocations: 4 kB / 0.5225 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006272/0.169, allocations: 189.9 kB / 0.5226 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001989/0.171, allocations: 0.729 MB / 0.5234 GB, free: 15.77 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005997/0.1716, allocations: 186.8 kB / 0.5235 GB, free: 15.57 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002953/0.1719, allocations: 88.81 kB / 0.5236 GB, free: 15.48 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.364e-05/0.1719, allocations: 11.92 kB / 0.5236 GB, free: 15.47 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006299/0.1726, allocations: 235.1 kB / 0.5239 GB, free: 15.23 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 3.056e-06/0.1726, allocations: 0 / 0.5239 GB, free: 15.23 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.001212/0.1738, allocations: 373.3 kB / 0.5242 GB, free: 14.86 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.075e-05/0.1738, allocations: 55.41 kB / 0.5243 GB, free: 14.79 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003759/0.1742, allocations: 229.1 kB / 0.5245 GB, free: 14.56 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.485e-05/0.1743, allocations: 37.7 kB / 0.5245 GB, free: 14.52 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001763/0.1745, allocations: 176.7 kB / 0.5247 GB, free: 14.34 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001368/0.1746, allocations: 95.22 kB / 0.5248 GB, free: 14.25 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001753/0.1748, allocations: 81.98 kB / 0.5249 GB, free: 14.16 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002243/0.175, allocations: 342.8 kB / 0.5252 GB, free: 13.81 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000302/0.1753, allocations: 84.7 kB / 0.5253 GB, free: 13.73 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004596/0.1758, allocations: 226.3 kB / 0.5255 GB, free: 13.45 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008214/0.1766, allocations: 348.7 kB / 0.5258 GB, free: 13.05 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.152e-06/0.1766, allocations: 0 / 0.5258 GB, free: 13.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001147/0.1777, allocations: 372.9 kB / 0.5262 GB, free: 12.68 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.272e-05/0.1778, allocations: 8.469 kB / 0.5262 GB, free: 12.67 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.157e-05/0.1778, allocations: 15.88 kB / 0.5262 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.49e-05/0.1778, allocations: 8 kB / 0.5262 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004794/0.1783, allocations: 67.89 kB / 0.5263 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.5e-05/0.1783, allocations: 11.94 kB / 0.5263 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003197/0.1787, allocations: 39.77 kB / 0.5263 GB, free: 12.53 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.836e-05/0.1787, allocations: 16 kB / 0.5263 GB, free: 12.51 MB / 414.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,$PRE.mean.y,rectifiedMean.mean.y,$PRE.rectifiedMean.mean.y,rootMeanSquare.mean.y,$PRE.rootMeanSquare.mean.y,harmonic.mean1.y,$PRE.harmonic.mean1.y,harmonic.mean2.y,$PRE.harmonic.mean2.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 0.0003063/0.179, allocations: 165.6 kB / 0.5265 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.06e-05/0.1791, allocations: 35.81 kB / 0.5265 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009593/0.1801, allocations: 319.2 kB / 0.5268 GB, free: 11.99 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.698e-06/0.1801, allocations: 4 kB / 0.5268 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.169e-05/0.1801, allocations: 4 kB / 0.5268 GB, free: 11.98 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.706e-05/0.1801, allocations: 7.984 kB / 0.5268 GB, free: 11.97 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001556/0.1817, allocations: 0.6808 MB / 0.5275 GB, free: 11.24 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.1817, allocations: 3.938 kB / 0.5275 GB, free: 11.24 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004149/0.1821, allocations: 43.97 kB / 0.5275 GB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.584e-06/0.1821, allocations: 144 / 0.5275 GB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.708e-05/0.1821, allocations: 11.98 kB / 0.5276 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.988e-06/0.1821, allocations: 0 / 0.5276 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.1821, allocations: 3.984 kB / 0.5276 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001455/0.1836, allocations: 0.5305 MB / 0.5281 GB, free: 10.63 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.343e-05/0.1837, allocations: 27.75 kB / 0.5281 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.846e-05/0.1837, allocations: 16.05 kB / 0.5281 GB, free: 10.59 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002598/0.184, allocations: 15.98 kB / 0.5281 GB, free: 10.57 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001111/0.1841, allocations: 19.97 kB / 0.5282 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.385e-05/0.1842, allocations: 15.98 kB / 0.5282 GB, free: 10.54 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002597/0.1844, allocations: 164.5 kB / 0.5283 GB, free: 10.38 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1844, allocations: 96 / 0.5283 GB, free: 10.38 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006156/0.185, allocations: 75.78 kB / 0.5284 GB, free: 10.31 MB / 414.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,harmonic.mean1.y,rootMeanSquare.mean.y,rectifiedMean.mean.y,mean.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 0.0001979/0.1852, allocations: 111.2 kB / 0.5285 GB, free: 10.19 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009295/0.1862, allocations: 251.6 kB / 0.5287 GB, free: 9.941 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.1862, allocations: 0 / 0.5287 GB, free: 9.941 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003928/0.1866, allocations: 111.9 kB / 0.5289 GB, free: 9.832 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005703/0.1871, allocations: 36.36 kB / 0.5289 GB, free: 9.797 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001851/0.189, allocations: 0.6113 MB / 0.5295 GB, free: 9.16 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006114/0.1896, allocations: 0.7764 MB / 0.5302 GB, free: 8.352 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002375/0.1898, allocations: 47.22 kB / 0.5303 GB, free: 8.309 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001766/0.19, allocations: 27.44 kB / 0.5303 GB, free: 8.281 MB / 414.1 MB Notification: Performance of SimCode: time 5.82e-07/0.19, allocations: 0 / 0.5303 GB, free: 8.281 MB / 414.1 MB Notification: Performance of Templates: time 0.01132/0.2013, allocations: 2.728 MB / 0.533 GB, free: 5.555 MB / 414.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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: 5.821902374736965]