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.00149/0.00149, allocations: 107.4 kB / 17.21 MB, free: 6.289 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.001752/0.001752, allocations: 194 kB / 18.12 MB, free: 5.383 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.426/1.426, allocations: 222.9 MB / 241.8 MB, free: 15.45 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.241/0.241, allocations: 44.18 MB / 336.1 MB, free: 2.914 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002091/0.002091, allocations: 63.16 kB / 407.7 MB, free: 27.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1492/0.1513, allocations: 60.82 MB / 468.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003869/0.1552, allocations: 2.289 MB / 470.8 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001294/0.1565, allocations: 0.7519 MB / 471.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001354/0.1567, allocations: 4 kB / 471.6 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001531/0.1569, allocations: 23.72 kB / 471.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002431/0.1571, allocations: 55.58 kB / 471.6 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002893/0.1574, allocations: 131.8 kB / 471.8 MB, free: 11.56 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003334/0.1578, allocations: 339.1 kB / 472.1 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002527/0.158, allocations: 124.2 kB / 472.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001739/0.1582, allocations: 123.4 kB / 472.3 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002145/0.1584, allocations: 155.2 kB / 472.5 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.628e-05/0.1585, allocations: 16 kB / 472.5 MB, free: 10.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.509e-05/0.1585, allocations: 16 kB / 472.5 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.551e-05/0.1586, allocations: 63.75 kB / 472.6 MB, free: 10.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001504/0.1588, allocations: 151.1 kB / 472.7 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000391/0.1592, allocations: 347 kB / 473.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.015e-05/0.1592, allocations: 4 kB / 473.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1592, allocations: 0 / 473.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.286e-06/0.1592, allocations: 0 / 473.1 MB, free: 10.25 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.0015/0.1607, allocations: 0.6304 MB / 473.7 MB, free: 9.574 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.554e-05/0.1608, allocations: 8.031 kB / 473.7 MB, free: 9.566 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.362e-05/0.1609, allocations: 36.56 kB / 473.7 MB, free: 9.531 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005329/0.1614, allocations: 331.2 kB / 474.1 MB, free: 9.168 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.737e-05/0.1615, allocations: 20.94 kB / 474.1 MB, free: 9.148 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.011e-05/0.1615, allocations: 36.38 kB / 474.1 MB, free: 9.113 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005498/0.1621, allocations: 268.9 kB / 474.4 MB, free: 8.844 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.18e-05/0.1621, allocations: 7.906 kB / 474.4 MB, free: 8.836 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.472e-05/0.1622, allocations: 8 kB / 474.4 MB, free: 8.828 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.132e-05/0.1622, allocations: 11.98 kB / 474.4 MB, free: 8.816 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004219/0.1626, allocations: 186.1 kB / 474.6 MB, free: 8.633 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001424/0.164, allocations: 0.8148 MB / 475.4 MB, free: 7.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004211/0.1645, allocations: 206.8 kB / 475.6 MB, free: 7.559 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001982/0.1647, allocations: 96.81 kB / 475.7 MB, free: 7.461 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.581e-05/0.1647, allocations: 11.92 kB / 475.7 MB, free: 7.449 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000435/0.1652, allocations: 227.7 kB / 475.9 MB, free: 7.215 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.683e-06/0.1652, allocations: 0 / 475.9 MB, free: 7.215 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008993/0.1661, allocations: 365.2 kB / 476.3 MB, free: 6.852 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.278e-05/0.1661, allocations: 63.41 kB / 476.4 MB, free: 6.777 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002381/0.1664, allocations: 232.9 kB / 476.6 MB, free: 6.539 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.172e-05/0.1664, allocations: 37.69 kB / 476.6 MB, free: 6.496 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001279/0.1666, allocations: 176.4 kB / 476.8 MB, free: 6.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.816e-05/0.1667, allocations: 94.7 kB / 476.9 MB, free: 6.227 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001084/0.1668, allocations: 77.94 kB / 477 MB, free: 6.141 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.1669, allocations: 342.8 kB / 477.3 MB, free: 5.797 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000205/0.1671, allocations: 96.69 kB / 477.4 MB, free: 5.703 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003104/0.1674, allocations: 218.4 kB / 477.6 MB, free: 5.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005262/0.168, allocations: 344.8 kB / 477.9 MB, free: 5.031 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.168, allocations: 4 kB / 478 MB, free: 5.027 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006683/0.1687, allocations: 368.7 kB / 478.3 MB, free: 4.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.368e-05/0.1687, allocations: 8 kB / 478.3 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/0.1687, allocations: 7.984 kB / 478.3 MB, free: 4.645 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.139e-05/0.1687, allocations: 11.94 kB / 478.3 MB, free: 4.633 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003196/0.1691, allocations: 72.38 kB / 478.4 MB, free: 4.562 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.659e-05/0.1691, allocations: 15.92 kB / 478.4 MB, free: 4.547 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001697/0.1693, allocations: 31.69 kB / 478.5 MB, free: 4.516 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.591e-05/0.1693, allocations: 19.98 kB / 478.5 MB, free: 4.496 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,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.000192/0.1695, allocations: 166.7 kB / 478.6 MB, free: 4.324 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.316e-05/0.1695, allocations: 27.8 kB / 478.7 MB, free: 4.297 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006894/0.1702, allocations: 332.1 kB / 479 MB, free: 3.969 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.1703, allocations: 0 / 479 MB, free: 3.969 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.1703, allocations: 4 kB / 479 MB, free: 3.965 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.1703, allocations: 0 / 479 MB, free: 3.965 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009027/0.1712, allocations: 0.7167 MB / 479.7 MB, free: 3.191 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.1712, allocations: 0 / 479.7 MB, free: 3.191 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002444/0.1714, allocations: 51.91 kB / 479.8 MB, free: 3.141 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.1715, allocations: 0 / 479.8 MB, free: 3.141 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.73e-05/0.1715, allocations: 11.98 kB / 479.8 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.425e-06/0.1715, allocations: 0 / 479.8 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1715, allocations: 96 / 479.8 MB, free: 3.129 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008641/0.1724, allocations: 0.5266 MB / 480.3 MB, free: 2.586 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.998e-05/0.1725, allocations: 100.8 kB / 480.4 MB, free: 2.469 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.859e-05/0.1725, allocations: 12.05 kB / 480.4 MB, free: 2.457 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001645/0.1727, allocations: 8 kB / 480.4 MB, free: 2.449 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.814e-05/0.1728, allocations: 27.95 kB / 480.4 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.555e-05/0.1728, allocations: 15.98 kB / 480.5 MB, free: 2.406 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00016/0.173, allocations: 160.5 kB / 480.6 MB, free: 2.25 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.173, allocations: 4 kB / 480.6 MB, free: 2.246 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000347/0.1733, allocations: 75.73 kB / 480.7 MB, free: 2.172 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 (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.000131/0.1735, allocations: 107.2 kB / 480.8 MB, free: 2.059 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005596/0.174, allocations: 268 kB / 481.1 MB, free: 1.797 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.1741, allocations: 4 kB / 481.1 MB, free: 1.793 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000242/0.1743, allocations: 131.8 kB / 481.2 MB, free: 1.664 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003599/0.1747, allocations: 36.67 kB / 481.2 MB, free: 1.625 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001139/0.1758, allocations: 0.7165 MB / 481.9 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003909/0.1762, allocations: 0.7841 MB / 482.7 MB, free: 68 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001475/0.1764, allocations: 39.23 kB / 482.8 MB, free: 28 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.127e-05/0.1765, allocations: 31.42 kB / 482.8 MB, free: 16 MB / 366.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1765, allocations: 4 kB / 482.8 MB, free: 15.99 MB / 366.1 MB Notification: Performance of Templates: time 0.005926/0.1824, allocations: 2.324 MB / 485.1 MB, free: 13.68 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