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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Mean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009781/0.0009782, allocations: 101.8 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001029/0.001029, allocations: 199 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.434/1.434, allocations: 227.2 MB / 245.9 MB, free: 10.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2581/0.2581, allocations: 45.91 MB / 344 MB, free: 12.16 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003348/0.0003347, allocations: 11.98 kB / 417.9 MB, free: 20.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1526/0.1529, allocations: 63.47 MB / 481.4 MB, free: 5.43 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002781/0.1557, allocations: 1.889 MB / 483.3 MB, free: 3.527 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001437/0.1572, allocations: 0.799 MB / 484.1 MB, free: 2.723 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000161/0.1574, allocations: 4 kB / 484.1 MB, free: 2.719 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001286/0.1575, allocations: 27.72 kB / 484.1 MB, free: 2.691 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002217/0.1577, allocations: 59.81 kB / 484.2 MB, free: 2.633 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002955/0.158, allocations: 111.7 kB / 484.3 MB, free: 2.523 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002653/0.1583, allocations: 215.6 kB / 484.5 MB, free: 2.312 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002383/0.1586, allocations: 102.6 kB / 484.6 MB, free: 2.211 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001981/0.1588, allocations: 107.5 kB / 484.7 MB, free: 2.105 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002047/0.159, allocations: 127.3 kB / 484.8 MB, free: 1.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.288e-05/0.159, allocations: 12 kB / 484.8 MB, free: 1.969 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.086e-05/0.1591, allocations: 19.98 kB / 484.8 MB, free: 1.949 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.592e-05/0.1592, allocations: 59.75 kB / 484.9 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.199e-05/0.1593, allocations: 77.52 kB / 485 MB, free: 1.809 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003161/0.1596, allocations: 291.5 kB / 485.3 MB, free: 1.523 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.565e-06/0.1596, allocations: 0 / 485.3 MB, free: 1.523 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1596, allocations: 0 / 485.3 MB, free: 1.523 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.482e-06/0.1596, allocations: 0 / 485.3 MB, free: 1.523 MB / 350.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.00109/0.1607, allocations: 0.5796 MB / 485.8 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.1608, allocations: 8.031 kB / 485.8 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005065/0.1613, allocations: 83.48 kB / 485.9 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005852/0.1619, allocations: 350.7 kB / 486.3 MB, free: 440 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.885e-05/0.1619, allocations: 24.55 kB / 486.3 MB, free: 416 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.975e-05/0.162, allocations: 39.89 kB / 486.3 MB, free: 376 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005255/0.1626, allocations: 268.8 kB / 486.6 MB, free: 96 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.614e-05/0.1626, allocations: 0 / 486.6 MB, free: 96 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.444e-05/0.1626, allocations: 12 kB / 486.6 MB, free: 84 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/0.1626, allocations: 8 kB / 486.6 MB, free: 76 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004693/0.1631, allocations: 202.1 kB / 486.8 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001689/0.1648, allocations: 0.8461 MB / 487.7 MB, free: 14.98 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004263/0.1652, allocations: 206.8 kB / 487.9 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.959e-05/0.1653, allocations: 11.94 kB / 487.9 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004861/0.1658, allocations: 231.7 kB / 488.1 MB, free: 14.52 MB / 366.1 MB Notification: Performance of pre-optimization done (n=31): time 2.395e-06/0.1658, allocations: 4 kB / 488.1 MB, free: 14.51 MB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.0009505/0.1668, allocations: 385.1 kB / 488.5 MB, free: 14.13 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.822e-05/0.1669, allocations: 67.33 kB / 488.5 MB, free: 14.05 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002929/0.1672, allocations: 250.7 kB / 488.8 MB, free: 13.8 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.036e-05/0.1672, allocations: 37.7 kB / 488.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001509/0.1674, allocations: 180.4 kB / 489 MB, free: 13.57 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.347e-05/0.1675, allocations: 94.64 kB / 489.1 MB, free: 13.48 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.291e-05/0.1675, allocations: 12 kB / 489.1 MB, free: 13.47 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001774/0.1677, allocations: 338.8 kB / 489.4 MB, free: 13.13 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002366/0.1679, allocations: 100.7 kB / 489.5 MB, free: 13.03 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003363/0.1683, allocations: 222.6 kB / 489.8 MB, free: 12.75 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002626/0.1685, allocations: 127.9 kB / 489.9 MB, free: 12.62 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.1686, allocations: 0 / 489.9 MB, free: 12.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007588/0.1693, allocations: 396.7 kB / 490.3 MB, free: 12.23 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.537e-05/0.1694, allocations: 4 kB / 490.3 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.1694, allocations: 4 kB / 490.3 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.573e-05/0.1694, allocations: 8 kB / 490.3 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003124/0.1697, allocations: 84.17 kB / 490.4 MB, free: 12.13 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.314e-05/0.1697, allocations: 7.938 kB / 490.4 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001722/0.1699, allocations: 31.84 kB / 490.4 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.266e-05/0.17, allocations: 23.98 kB / 490.4 MB, free: 12.07 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,$PRE.mean.y_last,mean.y_last,$PRE.rectifiedMean.mean.y_last,rectifiedMean.mean.y_last,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last,$PRE.harmonic.mean1.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean2.y_last,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001895/0.1702, allocations: 162.7 kB / 490.6 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.48e-05/0.1702, allocations: 31.75 kB / 490.6 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006912/0.1709, allocations: 349.1 kB / 491 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.1709, allocations: 4 kB / 491 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.171, allocations: 4 kB / 491 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.171, allocations: 3.984 kB / 491 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009983/0.172, allocations: 0.7284 MB / 491.7 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.172, allocations: 4.094 kB / 491.7 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002413/0.1722, allocations: 51.91 kB / 491.7 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.591e-06/0.1723, allocations: 4 kB / 491.8 MB, free: 10.67 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.882e-05/0.1723, allocations: 11.98 kB / 491.8 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.1723, allocations: 7.922 kB / 491.8 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1723, allocations: 0 / 491.8 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008658/0.1732, allocations: 0.55 MB / 492.3 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.32e-05/0.1733, allocations: 100.8 kB / 492.4 MB, free: 9.969 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.988e-05/0.1733, allocations: 16.05 kB / 492.4 MB, free: 9.953 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001658/0.1735, allocations: 15.98 kB / 492.5 MB, free: 9.938 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.514e-05/0.1736, allocations: 19.97 kB / 492.5 MB, free: 9.918 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.982e-05/0.1736, allocations: 19.98 kB / 492.5 MB, free: 9.898 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001973/0.1738, allocations: 174 kB / 492.7 MB, free: 9.73 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1738, allocations: 0 / 492.7 MB, free: 9.73 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003836/0.1742, allocations: 79.69 kB / 492.7 MB, free: 9.652 MB / 366.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001712/0.1744, allocations: 119 kB / 492.9 MB, free: 9.523 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00055/0.175, allocations: 276.1 kB / 493.1 MB, free: 9.254 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.175, allocations: 0 / 493.1 MB, free: 9.254 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002364/0.1752, allocations: 127.9 kB / 493.2 MB, free: 9.129 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002826/0.1755, allocations: 36.5 kB / 493.3 MB, free: 9.09 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001095/0.1766, allocations: 0.727 MB / 494 MB, free: 8.336 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004123/0.177, allocations: 0.7997 MB / 494.8 MB, free: 7.508 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001452/0.1772, allocations: 43.22 kB / 494.9 MB, free: 7.465 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.581e-05/0.1773, allocations: 27.44 kB / 494.9 MB, free: 7.438 MB / 366.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1773, allocations: 0 / 494.9 MB, free: 7.438 MB / 366.1 MB Notification: Performance of Templates: time 0.006044/0.1833, allocations: 2.376 MB / 497.3 MB, free: 5.074 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.Mean.makefile (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) 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","../files/ModelicaTest_trunk_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches