Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001407/0.001407, allocations: 118 kB / 18.46 MB, free: 4.613 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00138/0.00138, allocations: 207.4 kB / 21.4 MB, free: 1.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.478/1.478, allocations: 227.4 MB / 251.6 MB, free: 72 kB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2696/0.2696, allocations: 46.17 MB / 351.1 MB, free: 14.28 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Mean") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00218/0.00218, allocations: 85.23 kB / 490.2 MB, free: 28.16 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1446/0.1467, allocations: 62.45 MB / 0.5397 GB, free: 4.242 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.004401/0.1512, allocations: 2.32 MB / 0.5419 GB, free: 1.898 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001859/0.1531, allocations: 0.8997 MB / 0.5428 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001644/0.1533, allocations: 11.94 kB / 0.5428 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001747/0.1535, allocations: 35.53 kB / 0.5429 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002612/0.1537, allocations: 63.38 kB / 0.5429 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004355/0.1542, allocations: 187.6 kB / 0.5431 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004377/0.1546, allocations: 382.9 kB / 0.5435 GB, free: 332 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002778/0.1549, allocations: 136.1 kB / 0.5436 GB, free: 196 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002571/0.1552, allocations: 155.3 kB / 0.5438 GB, free: 40 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002712/0.1555, allocations: 167.3 kB / 0.5439 GB, free: 15.87 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.631e-05/0.1555, allocations: 36 kB / 0.5439 GB, free: 15.84 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001175/0.1557, allocations: 59.8 kB / 0.544 GB, free: 15.78 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.495e-05/0.1558, allocations: 83.7 kB / 0.5441 GB, free: 15.7 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001913/0.156, allocations: 183 kB / 0.5443 GB, free: 15.52 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005178/0.1565, allocations: 402.3 kB / 0.5446 GB, free: 15.12 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.224e-06/0.1565, allocations: 0 / 0.5446 GB, free: 15.12 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1565, allocations: 3.938 kB / 0.5446 GB, free: 15.12 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.658e-06/0.1565, allocations: 0 / 0.5446 GB, free: 15.12 MB / 414.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.001268/0.1578, allocations: 0.6767 MB / 0.5453 GB, free: 14.39 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.326e-05/0.1579, allocations: 12.03 kB / 0.5453 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004676/0.1583, allocations: 80.61 kB / 0.5454 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005471/0.1589, allocations: 352.2 kB / 0.5457 GB, free: 13.93 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.24e-05/0.1589, allocations: 20.94 kB / 0.5457 GB, free: 13.91 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.92e-05/0.159, allocations: 32.38 kB / 0.5458 GB, free: 13.88 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005273/0.1595, allocations: 272.9 kB / 0.546 GB, free: 13.6 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.1596, allocations: 7.953 kB / 0.546 GB, free: 13.59 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.71e-05/0.1596, allocations: 11.98 kB / 0.5461 GB, free: 13.58 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.989e-06/0.1596, allocations: 8 kB / 0.5461 GB, free: 13.57 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004372/0.1601, allocations: 190.1 kB / 0.5462 GB, free: 13.39 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001395/0.1615, allocations: 0.8268 MB / 0.5471 GB, free: 12.5 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004264/0.1619, allocations: 208.5 kB / 0.5473 GB, free: 12.29 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002172/0.1621, allocations: 96.8 kB / 0.5473 GB, free: 12.2 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.897e-05/0.1622, allocations: 11.92 kB / 0.5474 GB, free: 12.18 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000438/0.1626, allocations: 235.1 kB / 0.5476 GB, free: 11.94 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.603e-06/0.1626, allocations: 0 / 0.5476 GB, free: 11.94 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008238/0.1635, allocations: 365.9 kB / 0.5479 GB, free: 11.58 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.626e-05/0.1635, allocations: 63.33 kB / 0.548 GB, free: 11.5 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002759/0.1638, allocations: 263 kB / 0.5482 GB, free: 11.24 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.123e-05/0.1639, allocations: 33.7 kB / 0.5483 GB, free: 11.2 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001583/0.164, allocations: 188.7 kB / 0.5485 GB, free: 11.01 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.298e-05/0.1641, allocations: 103.2 kB / 0.5486 GB, free: 10.91 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001162/0.1642, allocations: 74.06 kB / 0.5486 GB, free: 10.82 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001653/0.1644, allocations: 346.8 kB / 0.549 GB, free: 10.48 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002037/0.1646, allocations: 84.7 kB / 0.549 GB, free: 10.39 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000322/0.165, allocations: 233.8 kB / 0.5493 GB, free: 10.11 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005297/0.1655, allocations: 348.8 kB / 0.5496 GB, free: 9.707 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.1655, allocations: 0 / 0.5496 GB, free: 9.707 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006524/0.1662, allocations: 380.8 kB / 0.55 GB, free: 9.328 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.1662, allocations: 8.469 kB / 0.55 GB, free: 9.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.1662, allocations: 8 kB / 0.55 GB, free: 9.312 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.072e-05/0.1662, allocations: 8 kB / 0.55 GB, free: 9.305 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003011/0.1665, allocations: 75.89 kB / 0.55 GB, free: 9.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.857e-05/0.1666, allocations: 7.938 kB / 0.5501 GB, free: 9.223 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001782/0.1668, allocations: 35.77 kB / 0.5501 GB, free: 9.188 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.769e-05/0.1668, allocations: 20 kB / 0.5501 GB, free: 9.168 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_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.0001978/0.167, allocations: 169.8 kB / 0.5503 GB, free: 8.992 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.476e-05/0.1671, allocations: 43.7 kB / 0.5503 GB, free: 8.949 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006716/0.1677, allocations: 320.3 kB / 0.5506 GB, free: 8.621 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.297e-06/0.1678, allocations: 8 kB / 0.5506 GB, free: 8.613 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.1678, allocations: 0 / 0.5506 GB, free: 8.613 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.968e-06/0.1678, allocations: 3.984 kB / 0.5506 GB, free: 8.609 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001042/0.1688, allocations: 0.7246 MB / 0.5513 GB, free: 7.828 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.1688, allocations: 0 / 0.5513 GB, free: 7.828 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002416/0.1691, allocations: 47.95 kB / 0.5514 GB, free: 7.781 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.1691, allocations: 0 / 0.5514 GB, free: 7.781 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.771e-05/0.1691, allocations: 8 kB / 0.5514 GB, free: 7.773 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.1691, allocations: 0 / 0.5514 GB, free: 7.773 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.1691, allocations: 0 / 0.5514 GB, free: 7.773 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009562/0.1701, allocations: 0.5382 MB / 0.5519 GB, free: 7.219 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.298e-05/0.1702, allocations: 108.8 kB / 0.552 GB, free: 7.094 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.056e-05/0.1703, allocations: 12.06 kB / 0.552 GB, free: 7.082 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001633/0.1704, allocations: 11.98 kB / 0.552 GB, free: 7.07 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.895e-05/0.1705, allocations: 23.97 kB / 0.5521 GB, free: 7.047 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.402e-05/0.1705, allocations: 15.98 kB / 0.5521 GB, free: 7.031 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001977/0.1708, allocations: 190 kB / 0.5523 GB, free: 6.852 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1708, allocations: 3.938 kB / 0.5523 GB, free: 6.848 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000372/0.1711, allocations: 71.84 kB / 0.5523 GB, free: 6.777 MB / 414.1 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.0001955/0.1713, allocations: 112.2 kB / 0.5524 GB, free: 6.66 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0006089/0.172, allocations: 275.4 kB / 0.5527 GB, free: 6.391 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.172, allocations: 0 / 0.5527 GB, free: 6.391 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002636/0.1723, allocations: 123.9 kB / 0.5528 GB, free: 6.27 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003692/0.1726, allocations: 37.19 kB / 0.5529 GB, free: 6.234 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001125/0.1738, allocations: 0.6374 MB / 0.5535 GB, free: 5.566 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004924/0.1743, allocations: 0.7881 MB / 0.5542 GB, free: 4.75 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001388/0.1744, allocations: 47.22 kB / 0.5543 GB, free: 4.707 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.841e-05/0.1745, allocations: 35.42 kB / 0.5543 GB, free: 4.672 MB / 414.1 MB Notification: Performance of SimCode: time 1.81e-07/0.1745, allocations: 0 / 0.5543 GB, free: 4.672 MB / 414.1 MB Notification: Performance of Templates: time 0.006886/0.1814, allocations: 2.75 MB / 0.557 GB, free: 1.938 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.Mean.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.254224509932101]