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.00125/0.00125, allocations: 108.8 kB / 17.78 MB, free: 5.27 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.001325/0.001325, allocations: 184.1 kB / 18.71 MB, free: 4.348 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.438/1.438, allocations: 222.9 MB / 242.4 MB, free: 15.07 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.2552/0.2552, allocations: 44.18 MB / 336.7 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001738/0.001738, allocations: 59.91 kB / 470.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4474/0.4492, allocations: 60.83 MB / 0.5189 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003321/0.4525, allocations: 2.239 MB / 0.5211 GB, free: 2.02 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001496/0.4541, allocations: 0.7762 MB / 0.5218 GB, free: 1.465 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001605/0.4542, allocations: 4.438 kB / 0.5218 GB, free: 1.465 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001536/0.4544, allocations: 34.17 kB / 0.5219 GB, free: 1.438 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000233/0.4546, allocations: 57.55 kB / 0.5219 GB, free: 1.395 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003261/0.455, allocations: 154.8 kB / 0.5221 GB, free: 1.301 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003774/0.4554, allocations: 370.7 kB / 0.5224 GB, free: 1.117 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002539/0.4556, allocations: 121.1 kB / 0.5226 GB, free: 1.059 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002101/0.4559, allocations: 145.5 kB / 0.5227 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000213/0.4561, allocations: 153.1 kB / 0.5228 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.61e-05/0.4561, allocations: 39.47 kB / 0.5229 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.915e-05/0.4562, allocations: 34.12 kB / 0.5229 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.56e-05/0.4563, allocations: 88.06 kB / 0.523 GB, free: 0.8359 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001452/0.4564, allocations: 166 kB / 0.5231 GB, free: 0.7227 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004093/0.4569, allocations: 377 kB / 0.5235 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.4569, allocations: 0.6562 kB / 0.5235 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.4569, allocations: 4 kB / 0.5235 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.343e-06/0.4569, allocations: 3.938 kB / 0.5235 GB, free: 0.5469 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001033/0.4579, allocations: 0.6147 MB / 0.5241 GB, free: 44 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.458, allocations: 10.06 kB / 0.5241 GB, free: 44 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.08e-05/0.4581, allocations: 44.36 kB / 0.5242 GB, free: 20 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000533/0.4586, allocations: 345.2 kB / 0.5245 GB, free: 15.74 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.204e-05/0.4586, allocations: 26.12 kB / 0.5245 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.262e-05/0.4587, allocations: 35.83 kB / 0.5246 GB, free: 15.72 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005497/0.4593, allocations: 270.7 kB / 0.5248 GB, free: 15.6 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.013e-05/0.4593, allocations: 5.094 kB / 0.5248 GB, free: 15.6 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.553e-05/0.4593, allocations: 16.5 kB / 0.5248 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.485e-06/0.4594, allocations: 6.938 kB / 0.5248 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004633/0.4598, allocations: 189.6 kB / 0.525 GB, free: 15.53 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001381/0.4612, allocations: 0.798 MB / 0.5258 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000449/0.4617, allocations: 200.6 kB / 0.526 GB, free: 14.95 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000227/0.4619, allocations: 101.4 kB / 0.5261 GB, free: 14.9 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.586e-05/0.462, allocations: 14.69 kB / 0.5261 GB, free: 14.89 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004429/0.4624, allocations: 219.9 kB / 0.5263 GB, free: 14.75 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.814e-06/0.4624, allocations: 4 kB / 0.5263 GB, free: 14.74 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.00087/0.4633, allocations: 365.4 kB / 0.5267 GB, free: 14.57 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.111e-05/0.4634, allocations: 64.17 kB / 0.5267 GB, free: 14.5 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002795/0.4636, allocations: 234.2 kB / 0.527 GB, free: 14.32 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.176e-05/0.4637, allocations: 35.7 kB / 0.527 GB, free: 14.29 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001246/0.4638, allocations: 168.3 kB / 0.5271 GB, free: 14.13 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.298e-05/0.4639, allocations: 102.5 kB / 0.5272 GB, free: 14.04 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001165/0.4641, allocations: 78.95 kB / 0.5273 GB, free: 13.98 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.4642, allocations: 340.4 kB / 0.5276 GB, free: 13.65 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002076/0.4644, allocations: 84.55 kB / 0.5277 GB, free: 13.61 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003244/0.4648, allocations: 229.3 kB / 0.5279 GB, free: 13.39 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005452/0.4653, allocations: 344.2 kB / 0.5283 GB, free: 13.11 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.571e-06/0.4653, allocations: 1.375 kB / 0.5283 GB, free: 13.11 MB / 398.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007864/0.4661, allocations: 379.8 kB / 0.5286 GB, free: 12.91 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.863e-05/0.4662, allocations: 6.656 kB / 0.5286 GB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.332e-05/0.4662, allocations: 4.75 kB / 0.5286 GB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.879e-05/0.4662, allocations: 6.938 kB / 0.5287 GB, free: 12.91 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003451/0.4666, allocations: 77.27 kB / 0.5287 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.749e-05/0.4666, allocations: 7.5 kB / 0.5287 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001851/0.4668, allocations: 32.27 kB / 0.5288 GB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.387e-05/0.4668, allocations: 18.09 kB / 0.5288 GB, free: 12.86 MB / 398.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.0002124/0.467, allocations: 171.6 kB / 0.5289 GB, free: 12.7 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.706e-05/0.4671, allocations: 32.56 kB / 0.529 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006965/0.4678, allocations: 319.4 kB / 0.5293 GB, free: 12.51 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.888e-06/0.4678, allocations: 11 kB / 0.5293 GB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.4678, allocations: 4.75 kB / 0.5293 GB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.263e-06/0.4679, allocations: 0.9688 kB / 0.5293 GB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001009/0.4689, allocations: 0.7081 MB / 0.53 GB, free: 11.95 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.4689, allocations: 0 / 0.53 GB, free: 11.95 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000256/0.4691, allocations: 48.34 kB / 0.53 GB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.041e-06/0.4692, allocations: 5.656 kB / 0.53 GB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.108e-05/0.4692, allocations: 14.98 kB / 0.5301 GB, free: 11.92 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.889e-06/0.4692, allocations: 1.406 kB / 0.5301 GB, free: 11.92 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.4692, allocations: 7.938 kB / 0.5301 GB, free: 11.91 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008975/0.4701, allocations: 0.5184 MB / 0.5306 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.651e-05/0.4702, allocations: 105.1 kB / 0.5307 GB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.969e-05/0.4702, allocations: 6.312 kB / 0.5307 GB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001713/0.4704, allocations: 17.92 kB / 0.5307 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.532e-05/0.4705, allocations: 23.12 kB / 0.5307 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.887e-05/0.4706, allocations: 15.95 kB / 0.5307 GB, free: 11.44 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001814/0.4708, allocations: 169.8 kB / 0.5309 GB, free: 11.31 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4708, allocations: 0 / 0.5309 GB, free: 11.31 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000373/0.4711, allocations: 71.19 kB / 0.531 GB, free: 11.29 MB / 398.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.0001805/0.4713, allocations: 118.6 kB / 0.5311 GB, free: 11.18 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006484/0.472, allocations: 263 kB / 0.5313 GB, free: 11.07 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.472, allocations: 0 / 0.5313 GB, free: 11.07 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002675/0.4723, allocations: 131.9 kB / 0.5314 GB, free: 11.02 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003736/0.4726, allocations: 37.22 kB / 0.5315 GB, free: 11 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001031/0.4737, allocations: 0.5921 MB / 0.5321 GB, free: 10.59 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004604/0.4742, allocations: 0.7821 MB / 0.5328 GB, free: 9.848 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000147/0.4743, allocations: 50.12 kB / 0.5329 GB, free: 9.824 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.331e-05/0.4744, allocations: 30.42 kB / 0.5329 GB, free: 9.812 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4744, allocations: 0 / 0.5329 GB, free: 9.812 MB / 398.1 MB Notification: Performance of Templates: time 0.006365/0.4808, allocations: 2.543 MB / 0.5354 GB, free: 8.562 MB / 398.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