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.0009244/0.0009243, allocations: 99.52 kB / 16.99 MB, free: 6.402 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.0008947/0.0008949, allocations: 178 kB / 17.88 MB, free: 5.957 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.467/1.467, allocations: 223.2 MB / 241.8 MB, free: 14.64 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.2429/0.2429, allocations: 44.22 MB / 337.1 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003617/0.0003618, allocations: 8 kB / 409.5 MB, free: 27.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1497/0.1501, allocations: 61.92 MB / 471.5 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002998/0.1532, allocations: 1.826 MB / 473.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001442/0.1546, allocations: 0.7289 MB / 474 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001599/0.1548, allocations: 7.938 kB / 474 MB, free: 11.15 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001473/0.155, allocations: 19.78 kB / 474 MB, free: 11.13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002428/0.1552, allocations: 55.84 kB / 474.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002896/0.1555, allocations: 99.75 kB / 474.2 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000293/0.1558, allocations: 211.6 kB / 474.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002559/0.1561, allocations: 110.6 kB / 474.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001677/0.1563, allocations: 99.5 kB / 474.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000189/0.1565, allocations: 119.4 kB / 474.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.231e-05/0.1565, allocations: 12 kB / 474.7 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.506e-05/0.1566, allocations: 12 kB / 474.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.411e-05/0.1566, allocations: 55.75 kB / 474.8 MB, free: 10.37 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.027e-05/0.1567, allocations: 81.52 kB / 474.9 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002729/0.157, allocations: 255.7 kB / 475.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.157, allocations: 0 / 475.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.157, allocations: 0 / 475.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.157, allocations: 0 / 475.1 MB, free: 10.04 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.001143/0.1582, allocations: 0.5602 MB / 475.7 MB, free: 9.426 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.592e-05/0.1582, allocations: 8.031 kB / 475.7 MB, free: 9.418 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.127e-05/0.1583, allocations: 39.62 kB / 475.7 MB, free: 9.379 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005283/0.1588, allocations: 329.9 kB / 476 MB, free: 9.016 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.648e-05/0.1589, allocations: 20.56 kB / 476.1 MB, free: 8.996 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.469e-05/0.159, allocations: 40 kB / 476.1 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005714/0.1595, allocations: 272.8 kB / 476.4 MB, free: 8.684 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.016e-05/0.1596, allocations: 0 / 476.4 MB, free: 8.684 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.57e-05/0.1596, allocations: 12 kB / 476.4 MB, free: 8.672 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.075e-05/0.1596, allocations: 4 kB / 476.4 MB, free: 8.668 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004444/0.1601, allocations: 206.1 kB / 476.6 MB, free: 8.469 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001621/0.1617, allocations: 0.8226 MB / 477.4 MB, free: 7.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005554/0.1623, allocations: 210.8 kB / 477.6 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.486e-05/0.1623, allocations: 4 kB / 477.6 MB, free: 7.371 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004756/0.1628, allocations: 235.6 kB / 477.9 MB, free: 7.129 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.573e-06/0.1628, allocations: 0 / 477.9 MB, free: 7.129 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008255/0.1637, allocations: 389.1 kB / 478.2 MB, free: 6.742 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.362e-05/0.1637, allocations: 55.41 kB / 478.3 MB, free: 6.676 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002327/0.1639, allocations: 233 kB / 478.5 MB, free: 6.438 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.798e-05/0.164, allocations: 37.7 kB / 478.6 MB, free: 6.395 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001305/0.1641, allocations: 188.4 kB / 478.7 MB, free: 6.207 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.025e-05/0.1642, allocations: 94.64 kB / 478.8 MB, free: 6.113 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.656e-05/0.1642, allocations: 8 kB / 478.8 MB, free: 6.105 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.1644, allocations: 338.8 kB / 479.2 MB, free: 5.766 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002012/0.1646, allocations: 88.7 kB / 479.3 MB, free: 5.676 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002914/0.1649, allocations: 226.6 kB / 479.5 MB, free: 5.395 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002428/0.1652, allocations: 115.9 kB / 479.6 MB, free: 5.281 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.1652, allocations: 4 kB / 479.6 MB, free: 5.277 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006576/0.1658, allocations: 381.2 kB / 480 MB, free: 4.898 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.1659, allocations: 8 kB / 480 MB, free: 4.891 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.341e-05/0.1659, allocations: 11.94 kB / 480 MB, free: 4.879 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.927e-05/0.1659, allocations: 8 kB / 480 MB, free: 4.871 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002937/0.1662, allocations: 71.91 kB / 480.1 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.586e-05/0.1662, allocations: 19.86 kB / 480.1 MB, free: 4.781 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001723/0.1664, allocations: 35.69 kB / 480.1 MB, free: 4.746 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.699e-05/0.1665, allocations: 19.98 kB / 480.1 MB, free: 4.727 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.0001813/0.1666, allocations: 166.8 kB / 480.3 MB, free: 4.555 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.91e-05/0.1667, allocations: 23.72 kB / 480.3 MB, free: 4.531 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006825/0.1674, allocations: 352.2 kB / 480.7 MB, free: 4.184 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.028e-05/0.1674, allocations: 7.953 kB / 480.7 MB, free: 4.176 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.1674, allocations: 0 / 480.7 MB, free: 4.176 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.1674, allocations: 0 / 480.7 MB, free: 4.176 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001023/0.1685, allocations: 0.7245 MB / 481.4 MB, free: 3.395 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.1685, allocations: 0 / 481.4 MB, free: 3.395 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002513/0.1687, allocations: 51.97 kB / 481.4 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.979e-06/0.1687, allocations: 3.953 kB / 481.5 MB, free: 3.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.012e-05/0.1688, allocations: 15.98 kB / 481.5 MB, free: 3.324 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.1688, allocations: 0 / 481.5 MB, free: 3.324 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.1688, allocations: 4 kB / 481.5 MB, free: 3.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009865/0.1698, allocations: 0.5346 MB / 482 MB, free: 2.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.633e-05/0.1699, allocations: 104.8 kB / 482.1 MB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.494e-05/0.1699, allocations: 19.94 kB / 482.1 MB, free: 2.629 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001635/0.1701, allocations: 12 kB / 482.1 MB, free: 2.617 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001355/0.1702, allocations: 23.95 kB / 482.2 MB, free: 2.594 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.806e-05/0.1703, allocations: 23.98 kB / 482.2 MB, free: 2.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001395/0.1704, allocations: 156.5 kB / 482.3 MB, free: 2.418 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1704, allocations: 0 / 482.3 MB, free: 2.418 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003671/0.1708, allocations: 67.83 kB / 482.4 MB, free: 2.352 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.0001603/0.171, allocations: 115 kB / 482.5 MB, free: 2.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005625/0.1715, allocations: 271.6 kB / 482.8 MB, free: 1.965 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.1715, allocations: 0 / 482.8 MB, free: 1.965 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002637/0.1718, allocations: 136.8 kB / 482.9 MB, free: 1.832 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002688/0.1721, allocations: 28.73 kB / 482.9 MB, free: 1.805 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001107/0.1732, allocations: 0.7088 MB / 483.7 MB, free: 1.066 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000575/0.1738, allocations: 0.7919 MB / 484.4 MB, free: 248 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001451/0.1739, allocations: 43.23 kB / 484.5 MB, free: 204 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.939e-05/0.174, allocations: 31.42 kB / 484.5 MB, free: 172 kB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.174, allocations: 4 kB / 484.5 MB, free: 168 kB / 350.1 MB Notification: Performance of Templates: time 0.005662/0.1797, allocations: 2.209 MB / 486.7 MB, free: 13.96 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","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches