Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.Mean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00108/0.00108, allocations: 117.9 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001133/0.001133, allocations: 206.8 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.329/1.329, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2089/0.2089, allocations: 46.1 MB / 345 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0015/0.0015, allocations: 71.88 kB / 482 MB, free: 4.082 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3472/0.3488, allocations: 62.43 MB / 0.5316 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003258/0.3521, allocations: 2.322 MB / 0.5339 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001501/0.3536, allocations: 0.9072 MB / 0.5348 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001353/0.3537, allocations: 4.125 kB / 0.5348 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000142/0.3539, allocations: 39.47 kB / 0.5348 GB, free: 11 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002178/0.3541, allocations: 63.62 kB / 0.5349 GB, free: 10.95 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003818/0.3545, allocations: 188.5 kB / 0.5351 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004103/0.3549, allocations: 390 kB / 0.5355 GB, free: 10.55 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000282/0.3552, allocations: 121.6 kB / 0.5356 GB, free: 10.48 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000253/0.3555, allocations: 152 kB / 0.5357 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002395/0.3557, allocations: 169.8 kB / 0.5359 GB, free: 10.26 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.678e-05/0.3558, allocations: 37.03 kB / 0.5359 GB, free: 10.26 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001173/0.3559, allocations: 50.92 kB / 0.536 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.44e-05/0.356, allocations: 85.66 kB / 0.536 GB, free: 10.18 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001732/0.3562, allocations: 181.5 kB / 0.5362 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004513/0.3567, allocations: 413.7 kB / 0.5366 GB, free: 9.734 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3567, allocations: 1.156 kB / 0.5366 GB, free: 9.734 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.3567, allocations: 0 / 0.5366 GB, free: 9.734 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.674e-06/0.3567, allocations: 0 / 0.5366 GB, free: 9.734 MB / 398.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.001152/0.3578, allocations: 0.6579 MB / 0.5373 GB, free: 9.145 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.737e-05/0.3579, allocations: 8.781 kB / 0.5373 GB, free: 9.145 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000523/0.3584, allocations: 75.86 kB / 0.5373 GB, free: 9.113 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005726/0.359, allocations: 356.9 kB / 0.5377 GB, free: 8.793 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.624e-05/0.3591, allocations: 26.16 kB / 0.5377 GB, free: 8.781 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.963e-05/0.3591, allocations: 37.64 kB / 0.5377 GB, free: 8.766 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005156/0.3596, allocations: 268.2 kB / 0.538 GB, free: 8.602 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.664e-05/0.3597, allocations: 1.156 kB / 0.538 GB, free: 8.602 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.486e-05/0.3597, allocations: 15.27 kB / 0.538 GB, free: 8.59 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.004e-05/0.3597, allocations: 5.531 kB / 0.538 GB, free: 8.59 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004214/0.3602, allocations: 196.6 kB / 0.5382 GB, free: 8.496 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001356/0.3615, allocations: 0.8238 MB / 0.539 GB, free: 7.82 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004613/0.362, allocations: 209.6 kB / 0.5392 GB, free: 7.703 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002257/0.3622, allocations: 97.75 kB / 0.5393 GB, free: 7.652 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.494e-05/0.3623, allocations: 15.98 kB / 0.5393 GB, free: 7.641 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004303/0.3627, allocations: 223.6 kB / 0.5395 GB, free: 7.492 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.354e-06/0.3627, allocations: 3.938 kB / 0.5395 GB, free: 7.488 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008309/0.3636, allocations: 374.5 kB / 0.5399 GB, free: 7.305 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.597e-05/0.3636, allocations: 59.59 kB / 0.5399 GB, free: 7.238 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002579/0.3639, allocations: 261 kB / 0.5402 GB, free: 7.059 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.811e-05/0.3639, allocations: 40.56 kB / 0.5402 GB, free: 7.016 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001142/0.3641, allocations: 182.1 kB / 0.5404 GB, free: 6.848 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.861e-05/0.3641, allocations: 98.67 kB / 0.5405 GB, free: 6.762 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001081/0.3643, allocations: 73.28 kB / 0.5406 GB, free: 6.707 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.3644, allocations: 346 kB / 0.5409 GB, free: 6.367 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002126/0.3646, allocations: 90.08 kB / 0.541 GB, free: 6.328 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002815/0.3649, allocations: 225.7 kB / 0.5412 GB, free: 6.109 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005349/0.3654, allocations: 345.2 kB / 0.5415 GB, free: 5.828 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.3655, allocations: 1.062 kB / 0.5415 GB, free: 5.828 MB / 398.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006792/0.3661, allocations: 381.8 kB / 0.5419 GB, free: 5.625 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.889e-05/0.3662, allocations: 7.625 kB / 0.5419 GB, free: 5.625 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.3662, allocations: 5.281 kB / 0.5419 GB, free: 5.625 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.064e-05/0.3662, allocations: 10.16 kB / 0.5419 GB, free: 5.621 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002962/0.3665, allocations: 78.14 kB / 0.542 GB, free: 5.598 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.829e-05/0.3665, allocations: 6.938 kB / 0.542 GB, free: 5.598 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000199/0.3668, allocations: 40.83 kB / 0.542 GB, free: 5.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.936e-05/0.3668, allocations: 14.59 kB / 0.5421 GB, free: 5.57 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.000165/0.367, allocations: 166.3 kB / 0.5422 GB, free: 5.418 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.819e-05/0.367, allocations: 34.12 kB / 0.5422 GB, free: 5.398 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006587/0.3677, allocations: 333 kB / 0.5426 GB, free: 5.199 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.271e-06/0.3677, allocations: 0 / 0.5426 GB, free: 5.199 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.3677, allocations: 1.469 kB / 0.5426 GB, free: 5.199 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.184e-05/0.3678, allocations: 104.4 kB / 0.5427 GB, free: 5.086 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.255e-05/0.3678, allocations: 15.48 kB / 0.5427 GB, free: 5.074 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001493/0.368, allocations: 17.45 kB / 0.5427 GB, free: 5.062 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.141e-05/0.3681, allocations: 22.34 kB / 0.5427 GB, free: 5.051 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000782/0.3689, allocations: 400.9 kB / 0.5431 GB, free: 4.809 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0009595/0.3698, allocations: 0.6237 MB / 0.5437 GB, free: 4.383 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002255/0.3701, allocations: 121.3 kB / 0.5438 GB, free: 4.324 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001731/0.3703, allocations: 188.9 kB / 0.544 GB, free: 4.199 MB / 398.1 MB Notification: Performance of Backend: time 4.61e-07/0.3703, allocations: 0 / 0.544 GB, free: 4.199 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007262/0.371, allocations: 264.7 kB / 0.5443 GB, free: 4.047 MB / 398.1 MB Notification: Performance of SimCode: time 0.001136/0.3721, allocations: 1.046 MB / 0.5453 GB, free: 3.156 MB / 398.1 MB Notification: Performance of Templates: time 0.007582/0.3797, allocations: 3.492 MB / 0.5487 GB, free: 15.84 MB / 414.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.Mean.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches