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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) 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=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001493/0.001493, allocations: 96.14 kB / 15.87 MB, free: 16 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001536/0.001535, allocations: 206.3 kB / 16.79 MB, free: 6.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.721/1.721, allocations: 205.1 MB / 222.6 MB, free: 4.777 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3779/0.3779, allocations: 43.5 MB / 313.5 MB, free: 8.512 MB / 254.1 MB 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.001418/0.001418, allocations: 70.55 kB / 382 MB, free: 8.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1564/0.1578, allocations: 57.78 MB / 439.8 MB, free: 14.87 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.00427/0.1621, allocations: 2.281 MB / 442.1 MB, free: 12.57 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001504/0.1636, allocations: 0.7956 MB / 442.9 MB, free: 11.76 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001335/0.1638, allocations: 3.938 kB / 442.9 MB, free: 11.76 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001692/0.164, allocations: 23.8 kB / 442.9 MB, free: 11.73 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002294/0.1642, allocations: 39.64 kB / 443 MB, free: 11.7 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003113/0.1646, allocations: 123.8 kB / 443.1 MB, free: 11.57 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003532/0.1649, allocations: 327.1 kB / 443.4 MB, free: 11.25 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002668/0.1652, allocations: 128.5 kB / 443.5 MB, free: 11.13 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001843/0.1654, allocations: 127.4 kB / 443.6 MB, free: 11 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001926/0.1656, allocations: 139.3 kB / 443.8 MB, free: 10.87 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.311e-05/0.1656, allocations: 16 kB / 443.8 MB, free: 10.85 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.605e-05/0.1657, allocations: 16 kB / 443.8 MB, free: 10.84 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.066e-05/0.1658, allocations: 71.67 kB / 443.9 MB, free: 10.77 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001821/0.166, allocations: 135.2 kB / 444 MB, free: 10.63 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004287/0.1664, allocations: 330.8 kB / 444.3 MB, free: 10.31 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.1664, allocations: 4 kB / 444.3 MB, free: 10.3 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1664, allocations: 0 / 444.3 MB, free: 10.3 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.762e-06/0.1665, allocations: 4 kB / 444.3 MB, free: 10.3 MB / 382.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.001427/0.1679, allocations: 0.6067 MB / 444.9 MB, free: 9.645 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.584e-05/0.168, allocations: 8.031 kB / 445 MB, free: 9.637 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.547e-05/0.168, allocations: 36.56 kB / 445 MB, free: 9.602 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005367/0.1686, allocations: 335.1 kB / 445.3 MB, free: 9.238 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.621e-05/0.1686, allocations: 20.92 kB / 445.3 MB, free: 9.219 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.898e-05/0.1687, allocations: 36.27 kB / 445.4 MB, free: 9.184 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005949/0.1693, allocations: 261 kB / 445.6 MB, free: 8.926 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.875e-05/0.1693, allocations: 0 / 445.6 MB, free: 8.926 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.778e-05/0.1694, allocations: 12 kB / 445.6 MB, free: 8.914 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.578e-06/0.1694, allocations: 4 kB / 445.6 MB, free: 8.91 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004307/0.1698, allocations: 190.1 kB / 445.8 MB, free: 8.719 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001406/0.1712, allocations: 0.7678 MB / 446.6 MB, free: 7.902 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004379/0.1717, allocations: 218.8 kB / 446.8 MB, free: 7.68 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002158/0.1719, allocations: 100.8 kB / 446.9 MB, free: 7.578 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.594e-05/0.172, allocations: 7.984 kB / 446.9 MB, free: 7.57 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005027/0.1725, allocations: 231 kB / 447.1 MB, free: 7.332 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 1.603e-06/0.1725, allocations: 0 / 447.1 MB, free: 7.332 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008716/0.1734, allocations: 373.2 kB / 447.5 MB, free: 6.961 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.867e-05/0.1734, allocations: 59.41 kB / 447.6 MB, free: 6.891 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002345/0.1737, allocations: 229 kB / 447.8 MB, free: 6.66 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.815e-05/0.1737, allocations: 37.7 kB / 447.8 MB, free: 6.617 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001263/0.1738, allocations: 168.6 kB / 448 MB, free: 6.449 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.503e-05/0.1739, allocations: 98.55 kB / 448.1 MB, free: 6.352 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001075/0.174, allocations: 74.06 kB / 448.2 MB, free: 6.27 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.1742, allocations: 342.8 kB / 448.5 MB, free: 5.926 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000199/0.1744, allocations: 88.64 kB / 448.6 MB, free: 5.84 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003112/0.1747, allocations: 226.4 kB / 448.8 MB, free: 5.559 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005303/0.1753, allocations: 348.7 kB / 449.1 MB, free: 5.156 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.1753, allocations: 0 / 449.1 MB, free: 5.156 MB / 382.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006688/0.176, allocations: 372.8 kB / 449.5 MB, free: 4.785 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.593e-05/0.176, allocations: 4 kB / 449.5 MB, free: 4.781 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.176, allocations: 12.41 kB / 449.5 MB, free: 4.77 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.283e-05/0.176, allocations: 8 kB / 449.5 MB, free: 4.762 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002932/0.1763, allocations: 75.89 kB / 449.6 MB, free: 4.688 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.113e-05/0.1764, allocations: 7.938 kB / 449.6 MB, free: 4.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001686/0.1765, allocations: 31.92 kB / 449.6 MB, free: 4.648 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.752e-05/0.1766, allocations: 19.94 kB / 449.7 MB, free: 4.629 MB / 382.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.mean2.y,$PRE.harmonic.mean2.y,harmonic.mean1.y,$PRE.harmonic.mean1.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.0001731/0.1768, allocations: 177.6 kB / 449.8 MB, free: 4.445 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.112e-05/0.1768, allocations: 27.62 kB / 449.9 MB, free: 4.418 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006224/0.1774, allocations: 327.3 kB / 450.2 MB, free: 4.094 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.561e-06/0.1775, allocations: 4 kB / 450.2 MB, free: 4.09 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.1775, allocations: 0 / 450.2 MB, free: 4.09 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.1775, allocations: 3.984 kB / 450.2 MB, free: 4.086 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009261/0.1784, allocations: 0.705 MB / 450.9 MB, free: 3.324 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.844e-06/0.1784, allocations: 4 kB / 450.9 MB, free: 3.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002394/0.1787, allocations: 47.91 kB / 450.9 MB, free: 3.273 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.795e-06/0.1787, allocations: 4 kB / 450.9 MB, free: 3.27 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.15e-05/0.1787, allocations: 11.98 kB / 451 MB, free: 3.258 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.1787, allocations: 3.938 kB / 451 MB, free: 3.254 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1787, allocations: 0 / 451 MB, free: 3.254 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009241/0.1797, allocations: 0.5228 MB / 451.5 MB, free: 2.715 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.427e-05/0.1798, allocations: 100.8 kB / 451.6 MB, free: 2.598 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.365e-05/0.1798, allocations: 12.05 kB / 451.6 MB, free: 2.586 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001609/0.18, allocations: 8 kB / 451.6 MB, free: 2.578 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.2e-05/0.1801, allocations: 27.95 kB / 451.6 MB, free: 2.551 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001227/0.1802, allocations: 19.98 kB / 451.7 MB, free: 2.531 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001628/0.1804, allocations: 160.5 kB / 451.8 MB, free: 2.371 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1804, allocations: 0 / 451.8 MB, free: 2.371 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003931/0.1808, allocations: 75.73 kB / 451.9 MB, free: 2.297 MB / 382.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,rectifiedMean.mean.y,rootMeanSquare.mean.y,harmonic.mean1.y,harmonic.mean2.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.0001498/0.1809, allocations: 115.1 kB / 452 MB, free: 2.176 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005665/0.1815, allocations: 259.6 kB / 452.2 MB, free: 1.922 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.033e-06/0.1815, allocations: 8 kB / 452.3 MB, free: 1.914 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002491/0.1818, allocations: 119.9 kB / 452.4 MB, free: 1.797 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003598/0.1822, allocations: 44.33 kB / 452.4 MB, free: 1.754 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001164/0.1833, allocations: 0.7014 MB / 453.1 MB, free: 1.023 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004248/0.1838, allocations: 0.7803 MB / 453.9 MB, free: 224 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001604/0.1839, allocations: 43.22 kB / 453.9 MB, free: 180 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.39e-05/0.184, allocations: 35.42 kB / 454 MB, free: 144 kB / 382.1 MB Notification: Performance of SimCode: time 4.51e-07/0.184, allocations: 0 / 454 MB, free: 144 kB / 382.1 MB Notification: Performance of Templates: time 0.2152/0.3992, allocations: 2.298 MB / 456.3 MB, free: 48.24 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.makefile (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) 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","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches