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.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008404/0.0008404, allocations: 97.95 kB / 17.01 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008225/0.0008226, allocations: 180 kB / 17.89 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.571/1.571, allocations: 223.3 MB / 241.9 MB, free: 14.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2398/0.2398, allocations: 44.25 MB / 337.3 MB, free: 2.523 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003489/0.0003489, allocations: 9 kB / 409.7 MB, free: 27.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1567/0.1571, allocations: 61.93 MB / 471.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.00313/0.1603, allocations: 1.842 MB / 473.4 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001371/0.1617, allocations: 0.7289 MB / 474.2 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002581/0.1619, allocations: 4 kB / 474.2 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001249/0.1621, allocations: 23.72 kB / 474.2 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002106/0.1623, allocations: 47.59 kB / 474.2 MB, free: 11.01 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002647/0.1626, allocations: 103.8 kB / 474.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003454/0.1629, allocations: 319.1 kB / 474.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002503/0.1632, allocations: 114.6 kB / 474.8 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002629/0.1635, allocations: 99.5 kB / 474.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000184/0.1636, allocations: 123.3 kB / 475 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.855e-05/0.1637, allocations: 12 kB / 475 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.033e-05/0.1637, allocations: 8 kB / 475 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.198e-05/0.1638, allocations: 59.75 kB / 475.1 MB, free: 10.19 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.969e-05/0.1639, allocations: 81.52 kB / 475.1 MB, free: 10.1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003894/0.1643, allocations: 255.7 kB / 475.4 MB, free: 9.852 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.044e-06/0.1644, allocations: 0 / 475.4 MB, free: 9.852 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1644, allocations: 0 / 475.4 MB, free: 9.852 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.223e-06/0.1644, allocations: 0 / 475.4 MB, free: 9.852 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.001312/0.1657, allocations: 0.5641 MB / 475.9 MB, free: 9.238 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.648e-05/0.1658, allocations: 8.031 kB / 476 MB, free: 9.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.887e-05/0.1658, allocations: 35.62 kB / 476 MB, free: 9.195 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004821/0.1663, allocations: 329.9 kB / 476.3 MB, free: 8.832 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.289e-05/0.1664, allocations: 20.56 kB / 476.3 MB, free: 8.812 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.894e-05/0.1664, allocations: 40 kB / 476.4 MB, free: 8.773 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005879/0.167, allocations: 268.8 kB / 476.6 MB, free: 8.504 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.567e-05/0.1671, allocations: 4 kB / 476.6 MB, free: 8.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.904e-05/0.1671, allocations: 8 kB / 476.6 MB, free: 8.492 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.061e-05/0.1671, allocations: 11.98 kB / 476.7 MB, free: 8.48 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000463/0.1676, allocations: 202.1 kB / 476.9 MB, free: 8.285 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001521/0.1691, allocations: 0.8226 MB / 477.7 MB, free: 7.406 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004218/0.1696, allocations: 210.8 kB / 477.9 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003234/0.1699, allocations: 104.8 kB / 478 MB, free: 7.086 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.383e-05/0.1699, allocations: 7.984 kB / 478 MB, free: 7.078 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004292/0.1704, allocations: 235.6 kB / 478.2 MB, free: 6.836 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.834e-06/0.1704, allocations: 4 kB / 478.2 MB, free: 6.832 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008338/0.1712, allocations: 385.1 kB / 478.6 MB, free: 6.449 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.431e-05/0.1713, allocations: 63.41 kB / 478.7 MB, free: 6.375 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002246/0.1715, allocations: 225 kB / 478.9 MB, free: 6.145 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.772e-05/0.1715, allocations: 41.69 kB / 478.9 MB, free: 6.098 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001277/0.1717, allocations: 180.4 kB / 479.1 MB, free: 5.918 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000101/0.1718, allocations: 94.7 kB / 479.2 MB, free: 5.824 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.529e-05/0.1718, allocations: 7.938 kB / 479.2 MB, free: 5.816 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.172, allocations: 338.8 kB / 479.5 MB, free: 5.477 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002084/0.1722, allocations: 100.7 kB / 479.6 MB, free: 5.375 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002842/0.1725, allocations: 218.6 kB / 479.8 MB, free: 5.102 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003589/0.1728, allocations: 123.9 kB / 480 MB, free: 4.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.1729, allocations: 0 / 480 MB, free: 4.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006544/0.1735, allocations: 384.9 kB / 480.3 MB, free: 4.598 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.1735, allocations: 15.89 kB / 480.4 MB, free: 4.582 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.848e-06/0.1736, allocations: 4 kB / 480.4 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.1736, allocations: 8 kB / 480.4 MB, free: 4.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002835/0.1739, allocations: 72.11 kB / 480.4 MB, free: 4.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.305e-05/0.1739, allocations: 15.94 kB / 480.5 MB, free: 4.484 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001712/0.1741, allocations: 43.67 kB / 480.5 MB, free: 4.441 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.641e-05/0.1741, allocations: 16 kB / 480.5 MB, free: 4.426 MB / 350.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.0002157/0.1743, allocations: 158.8 kB / 480.7 MB, free: 4.262 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.55e-05/0.1744, allocations: 27.7 kB / 480.7 MB, free: 4.234 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000692/0.1751, allocations: 340.1 kB / 481 MB, free: 3.898 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.1751, allocations: 4 kB / 481 MB, free: 3.895 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.1751, allocations: 4 kB / 481 MB, free: 3.891 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.785e-06/0.1751, allocations: 7.984 kB / 481 MB, free: 3.883 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001078/0.1762, allocations: 0.7168 MB / 481.8 MB, free: 3.109 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/0.1762, allocations: 0 / 481.8 MB, free: 3.109 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002347/0.1765, allocations: 55.89 kB / 481.8 MB, free: 3.055 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.57e-06/0.1765, allocations: 7.953 kB / 481.8 MB, free: 3.047 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.047e-05/0.1765, allocations: 8.141 kB / 481.8 MB, free: 3.039 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.1765, allocations: 0 / 481.8 MB, free: 3.039 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.1765, allocations: 0 / 481.8 MB, free: 3.039 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008084/0.1773, allocations: 0.5346 MB / 482.4 MB, free: 2.488 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.85e-05/0.1774, allocations: 108.7 kB / 482.5 MB, free: 2.363 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.927e-05/0.1775, allocations: 16.02 kB / 482.5 MB, free: 2.348 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001624/0.1776, allocations: 20.08 kB / 482.5 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.914e-05/0.1777, allocations: 27.91 kB / 482.5 MB, free: 2.301 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.378e-05/0.1777, allocations: 11.98 kB / 482.5 MB, free: 2.289 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001389/0.1779, allocations: 164.5 kB / 482.7 MB, free: 2.129 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1779, allocations: 0 / 482.7 MB, free: 2.129 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003505/0.1783, allocations: 67.84 kB / 482.8 MB, free: 2.062 MB / 350.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.0001303/0.1784, allocations: 126.9 kB / 482.9 MB, free: 1.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005129/0.1789, allocations: 272.3 kB / 483.2 MB, free: 1.664 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1789, allocations: 0 / 483.2 MB, free: 1.664 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004275/0.1794, allocations: 131.9 kB / 483.3 MB, free: 1.535 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004259/0.1798, allocations: 40.48 kB / 483.3 MB, free: 1.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001234/0.181, allocations: 0.713 MB / 484 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005968/0.1816, allocations: 0.7803 MB / 484.8 MB, free: 15.94 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001598/0.1818, allocations: 43.23 kB / 484.9 MB, free: 15.9 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.247e-05/0.1819, allocations: 39.36 kB / 484.9 MB, free: 15.86 MB / 366.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1819, allocations: 0 / 484.9 MB, free: 15.86 MB / 366.1 MB Notification: Performance of Templates: time 0.005845/0.1878, allocations: 2.209 MB / 487.1 MB, free: 13.66 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.makefile (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) 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) Reference file matches