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.001465/0.001466, allocations: 109.9 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001818/0.001818, allocations: 208 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.33/1.33, 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.2049/0.2049, allocations: 46.1 MB / 345 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001486/0.001486, allocations: 71.89 kB / 482 MB, free: 4.082 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.305/0.3065, allocations: 62.43 MB / 0.5317 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.00331/0.3098, allocations: 2.315 MB / 0.5339 GB, free: 11.77 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001507/0.3113, allocations: 0.9065 MB / 0.5348 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001208/0.3115, allocations: 4.125 kB / 0.5348 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001373/0.3116, allocations: 44.84 kB / 0.5349 GB, free: 11 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002118/0.3118, allocations: 63.64 kB / 0.5349 GB, free: 10.94 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003573/0.3122, allocations: 184.5 kB / 0.5351 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003725/0.3126, allocations: 390 kB / 0.5355 GB, free: 10.55 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002277/0.3128, allocations: 130.5 kB / 0.5356 GB, free: 10.48 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002151/0.3131, allocations: 148.7 kB / 0.5357 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002091/0.3133, allocations: 168.8 kB / 0.5359 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.403e-05/0.3133, allocations: 36.56 kB / 0.5359 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.935e-05/0.3134, allocations: 47.94 kB / 0.536 GB, free: 10.25 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.618e-05/0.3135, allocations: 93.11 kB / 0.5361 GB, free: 10.17 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001703/0.3137, allocations: 176.8 kB / 0.5362 GB, free: 10.04 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003968/0.3141, allocations: 418.6 kB / 0.5366 GB, free: 9.727 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3141, allocations: 1.281 kB / 0.5366 GB, free: 9.727 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.3141, allocations: 0 / 0.5366 GB, free: 9.727 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.032e-05/0.3141, allocations: 0 / 0.5366 GB, free: 9.727 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.001074/0.3152, allocations: 0.6497 MB / 0.5373 GB, free: 9.145 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.363e-05/0.3153, allocations: 12.72 kB / 0.5373 GB, free: 9.141 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004528/0.3157, allocations: 80.7 kB / 0.5373 GB, free: 9.105 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005106/0.3163, allocations: 357.2 kB / 0.5377 GB, free: 8.785 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.774e-05/0.3163, allocations: 29.45 kB / 0.5377 GB, free: 8.77 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.33e-05/0.3164, allocations: 32.44 kB / 0.5377 GB, free: 8.758 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005248/0.3169, allocations: 274 kB / 0.538 GB, free: 8.59 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.524e-05/0.3169, allocations: 1 kB / 0.538 GB, free: 8.59 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.027e-05/0.3169, allocations: 10.31 kB / 0.538 GB, free: 8.582 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.716e-06/0.317, allocations: 6.312 kB / 0.538 GB, free: 8.582 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000433/0.3174, allocations: 192 kB / 0.5382 GB, free: 8.492 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001303/0.3187, allocations: 0.8194 MB / 0.539 GB, free: 7.82 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004161/0.3191, allocations: 215.3 kB / 0.5392 GB, free: 7.699 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002037/0.3194, allocations: 97.69 kB / 0.5393 GB, free: 7.648 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.016e-05/0.3194, allocations: 10.64 kB / 0.5393 GB, free: 7.641 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000412/0.3198, allocations: 228.1 kB / 0.5395 GB, free: 7.488 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 2.234e-06/0.3198, allocations: 3.938 kB / 0.5395 GB, free: 7.484 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008151/0.3206, allocations: 378.2 kB / 0.5399 GB, free: 7.297 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.58e-05/0.3207, allocations: 55.84 kB / 0.54 GB, free: 7.234 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002569/0.321, allocations: 269 kB / 0.5402 GB, free: 7.047 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.428e-05/0.321, allocations: 33.08 kB / 0.5402 GB, free: 7.012 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001192/0.3211, allocations: 185.6 kB / 0.5404 GB, free: 6.84 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.538e-05/0.3212, allocations: 94.3 kB / 0.5405 GB, free: 6.758 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001032/0.3213, allocations: 74.34 kB / 0.5406 GB, free: 6.703 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.3214, allocations: 341.7 kB / 0.5409 GB, free: 6.367 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002061/0.3217, allocations: 101.2 kB / 0.541 GB, free: 6.316 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002783/0.3219, allocations: 222.7 kB / 0.5412 GB, free: 6.102 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005025/0.3225, allocations: 345 kB / 0.5415 GB, free: 5.82 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.3225, allocations: 1.188 kB / 0.5415 GB, free: 5.82 MB / 398.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006602/0.3231, allocations: 378.4 kB / 0.5419 GB, free: 5.621 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.61e-05/0.3232, allocations: 6.281 kB / 0.5419 GB, free: 5.621 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.056e-06/0.3232, allocations: 4.5 kB / 0.5419 GB, free: 5.621 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.3232, allocations: 7.281 kB / 0.5419 GB, free: 5.621 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002956/0.3235, allocations: 83.05 kB / 0.542 GB, free: 5.594 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.035e-05/0.3235, allocations: 5.875 kB / 0.542 GB, free: 5.594 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001818/0.3237, allocations: 32.55 kB / 0.542 GB, free: 5.574 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.654e-05/0.3237, allocations: 22.25 kB / 0.5421 GB, free: 5.566 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.0001633/0.3239, allocations: 167 kB / 0.5422 GB, free: 5.414 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.001e-05/0.324, allocations: 34.5 kB / 0.5423 GB, free: 5.395 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006543/0.3246, allocations: 333.3 kB / 0.5426 GB, free: 5.195 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.3246, allocations: 3.984 kB / 0.5426 GB, free: 5.191 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.3247, allocations: 0 / 0.5426 GB, free: 5.191 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.908e-05/0.3247, allocations: 113.4 kB / 0.5427 GB, free: 5.07 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.267e-05/0.3248, allocations: 7.469 kB / 0.5427 GB, free: 5.066 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000154/0.3249, allocations: 14.36 kB / 0.5427 GB, free: 5.059 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.608e-05/0.325, allocations: 26.28 kB / 0.5427 GB, free: 5.043 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007947/0.3258, allocations: 403.5 kB / 0.5431 GB, free: 4.797 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0009172/0.3268, allocations: 0.6199 MB / 0.5437 GB, free: 4.375 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002395/0.327, allocations: 121.9 kB / 0.5438 GB, free: 4.316 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001705/0.3272, allocations: 184.8 kB / 0.544 GB, free: 4.195 MB / 398.1 MB Notification: Performance of Backend: time 4.3e-07/0.3272, allocations: 0 / 0.544 GB, free: 4.195 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006792/0.3279, allocations: 264.5 kB / 0.5443 GB, free: 4.043 MB / 398.1 MB Notification: Performance of SimCode: time 0.001021/0.3289, allocations: 1.039 MB / 0.5453 GB, free: 3.16 MB / 398.1 MB Notification: Performance of Templates: time 0.00679/0.3357, allocations: 3.392 MB / 0.5486 GB, free: 15.94 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