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.001538/0.001538, allocations: 110.5 kB / 18.45 MB, free: 4.598 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.001792/0.001792, allocations: 187.2 kB / 19.39 MB, free: 3.672 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.394/1.394, allocations: 222.9 MB / 243.1 MB, free: 15.05 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.2092/0.2092, allocations: 44.19 MB / 337.4 MB, free: 2.645 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001357, allocations: 63.89 kB / 471.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3335/0.3349, allocations: 60.83 MB / 0.5196 GB, free: 3.863 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003067/0.338, allocations: 2.248 MB / 0.5218 GB, free: 2.27 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001071/0.3391, allocations: 0.7722 MB / 0.5225 GB, free: 1.719 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001169/0.3392, allocations: 7.625 kB / 0.5225 GB, free: 1.715 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001251/0.3393, allocations: 35.34 kB / 0.5226 GB, free: 1.688 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002012/0.3396, allocations: 61.11 kB / 0.5226 GB, free: 1.641 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002926/0.3399, allocations: 157.5 kB / 0.5228 GB, free: 1.543 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003408/0.3402, allocations: 367.9 kB / 0.5231 GB, free: 1.363 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002297/0.3405, allocations: 124.7 kB / 0.5232 GB, free: 1.301 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001636/0.3406, allocations: 141.4 kB / 0.5234 GB, free: 1.227 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001894/0.3408, allocations: 158.5 kB / 0.5235 GB, free: 1.141 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.465e-05/0.3409, allocations: 35.19 kB / 0.5236 GB, free: 1.141 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.789e-05/0.3409, allocations: 34.25 kB / 0.5236 GB, free: 1.141 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.461e-05/0.341, allocations: 79.62 kB / 0.5237 GB, free: 1.09 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001274/0.3411, allocations: 172.8 kB / 0.5238 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003658/0.3415, allocations: 380.9 kB / 0.5242 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.3415, allocations: 0 / 0.5242 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3415, allocations: 1.469 kB / 0.5242 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.3415, allocations: 3.938 kB / 0.5242 GB, free: 0.793 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.0009223/0.3425, allocations: 0.6293 MB / 0.5248 GB, free: 280 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.3425, allocations: 8.469 kB / 0.5248 GB, free: 280 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.244e-05/0.3426, allocations: 46.2 kB / 0.5249 GB, free: 256 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004771/0.3431, allocations: 332.9 kB / 0.5252 GB, free: 15.98 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.344e-05/0.3431, allocations: 30.34 kB / 0.5252 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.247e-05/0.3432, allocations: 34.17 kB / 0.5252 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006024/0.3438, allocations: 275.3 kB / 0.5255 GB, free: 15.83 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.079e-05/0.3438, allocations: 2 kB / 0.5255 GB, free: 15.83 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.317e-05/0.3439, allocations: 11.89 kB / 0.5255 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.636e-06/0.3439, allocations: 7.375 kB / 0.5255 GB, free: 15.82 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004458/0.3444, allocations: 190.1 kB / 0.5257 GB, free: 15.77 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00138/0.3457, allocations: 0.7984 MB / 0.5265 GB, free: 15.26 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004154/0.3462, allocations: 210.6 kB / 0.5267 GB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002206/0.3464, allocations: 97.77 kB / 0.5268 GB, free: 15.09 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.312e-05/0.3465, allocations: 14.83 kB / 0.5268 GB, free: 15.08 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004146/0.3469, allocations: 227.6 kB / 0.527 GB, free: 14.93 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.054e-06/0.3469, allocations: 1.312 kB / 0.527 GB, free: 14.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.0007909/0.3477, allocations: 363.2 kB / 0.5274 GB, free: 14.75 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.779e-05/0.3477, allocations: 60.72 kB / 0.5274 GB, free: 14.69 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002243/0.348, allocations: 225.7 kB / 0.5276 GB, free: 14.52 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.403e-05/0.348, allocations: 41.67 kB / 0.5277 GB, free: 14.48 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001081/0.3481, allocations: 184.5 kB / 0.5278 GB, free: 14.31 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.752e-05/0.3482, allocations: 102.7 kB / 0.5279 GB, free: 14.22 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001011/0.3483, allocations: 70 kB / 0.528 GB, free: 14.17 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.3484, allocations: 341.2 kB / 0.5283 GB, free: 13.84 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002035/0.3486, allocations: 92.19 kB / 0.5284 GB, free: 13.79 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002715/0.3489, allocations: 221.6 kB / 0.5286 GB, free: 13.58 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005015/0.3494, allocations: 347.7 kB / 0.529 GB, free: 13.29 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.3494, allocations: 1.594 kB / 0.529 GB, free: 13.29 MB / 398.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006622/0.3501, allocations: 375.7 kB / 0.5293 GB, free: 13.09 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.3501, allocations: 6.531 kB / 0.5293 GB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.3502, allocations: 3.969 kB / 0.5293 GB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.208e-05/0.3502, allocations: 6.688 kB / 0.5293 GB, free: 13.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003014/0.3505, allocations: 75.42 kB / 0.5294 GB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.704e-05/0.3505, allocations: 10.06 kB / 0.5294 GB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001848/0.3507, allocations: 36.7 kB / 0.5295 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.076e-05/0.3507, allocations: 18.28 kB / 0.5295 GB, free: 13.04 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.0001775/0.3509, allocations: 175.7 kB / 0.5296 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.076e-05/0.351, allocations: 32.98 kB / 0.5297 GB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006624/0.3517, allocations: 327.1 kB / 0.53 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.3517, allocations: 1.5 kB / 0.53 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.3517, allocations: 0 / 0.53 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.401e-05/0.3518, allocations: 104.4 kB / 0.5301 GB, free: 12.57 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.648e-05/0.3518, allocations: 15.64 kB / 0.5301 GB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001497/0.352, allocations: 17.7 kB / 0.5301 GB, free: 12.54 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.333e-05/0.3521, allocations: 22.38 kB / 0.5301 GB, free: 12.53 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008009/0.3529, allocations: 404.1 kB / 0.5305 GB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0009454/0.3538, allocations: 0.6152 MB / 0.5311 GB, free: 11.87 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002607/0.3541, allocations: 124.2 kB / 0.5312 GB, free: 11.8 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001439/0.3543, allocations: 168.9 kB / 0.5314 GB, free: 11.68 MB / 398.1 MB Notification: Performance of Backend: time 4.81e-07/0.3543, allocations: 0 / 0.5314 GB, free: 11.68 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006318/0.3549, allocations: 252.4 kB / 0.5316 GB, free: 11.53 MB / 398.1 MB Notification: Performance of SimCode: time 0.001055/0.356, allocations: 1.015 MB / 0.5326 GB, free: 10.65 MB / 398.1 MB Notification: Performance of Templates: time 0.006371/0.3624, allocations: 3.058 MB / 0.5356 GB, free: 9.137 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches