Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001018/0.001018, allocations: 178.7 kB / 8.007 MB, free: 1.066 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.374/1.374, allocations: 205.3 MB / 213.7 MB, free: 1.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008232/0.0008232, allocations: 82.62 kB / 261.7 MB, free: 1.617 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1847/0.1847, allocations: 43.49 MB / 353.2 MB, free: 276 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.718e-05/1.722e-05, allocations: 4 kB / 418.3 MB, free: 28.54 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1229, allocations: 58.85 MB / 477.1 MB, free: 1.637 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3817/0.5047, allocations: 86.55 MB / 0.5504 GB, free: 8.332 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001959/0.5049, allocations: 64.69 kB / 0.5505 GB, free: 8.301 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01087/0.5158, allocations: 4.255 MB / 0.5547 GB, free: 4.91 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.5158, allocations: 0 / 0.5547 GB, free: 4.91 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.919e-05/0.5159, allocations: 4 kB / 0.5547 GB, free: 4.906 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.0007261/0.5166, allocations: 0.527 MB / 0.5552 GB, free: 4.352 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.5167, allocations: 8.031 kB / 0.5552 GB, free: 4.344 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.115e-05/0.5167, allocations: 39.58 kB / 0.5552 GB, free: 4.305 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003685/0.5171, allocations: 318.2 kB / 0.5555 GB, free: 3.996 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.816e-05/0.5172, allocations: 8 kB / 0.5555 GB, free: 3.988 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.171e-05/0.5172, allocations: 27.91 kB / 0.5556 GB, free: 3.961 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002671/0.5175, allocations: 149.5 kB / 0.5557 GB, free: 3.867 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003095/0.5178, allocations: 204.1 kB / 0.5559 GB, free: 3.711 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.743e-05/0.5178, allocations: 4 kB / 0.5559 GB, free: 3.707 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.607e-05/0.5179, allocations: 3.953 kB / 0.5559 GB, free: 3.703 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.5179, allocations: 4 kB / 0.5559 GB, free: 3.699 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001023/0.5189, allocations: 0.7358 MB / 0.5566 GB, free: 3.07 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002434/0.5192, allocations: 174.3 kB / 0.5568 GB, free: 2.953 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.897e-05/0.5193, allocations: 81.22 kB / 0.5569 GB, free: 2.898 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.931e-05/0.5193, allocations: 0 / 0.5569 GB, free: 2.898 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002707/0.5196, allocations: 209.6 kB / 0.5571 GB, free: 2.719 MB / 362.7 MB Notification: Performance of pre-optimization done (n=31): time 1.443e-06/0.5196, allocations: 0 / 0.5571 GB, free: 2.719 MB / 362.7 MB Notification: Performance of matching and sorting (n=31): time 0.0003678/0.52, allocations: 243.7 kB / 0.5573 GB, free: 2.527 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.475e-05/0.52, allocations: 59.39 kB / 0.5574 GB, free: 2.457 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001429/0.5202, allocations: 193.7 kB / 0.5576 GB, free: 2.289 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.727e-05/0.5202, allocations: 29.7 kB / 0.5576 GB, free: 2.254 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.213e-05/0.5203, allocations: 164 kB / 0.5577 GB, free: 2.125 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.79e-05/0.5203, allocations: 97.67 kB / 0.5578 GB, free: 2.043 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.449e-05/0.5203, allocations: 4 kB / 0.5578 GB, free: 2.039 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.718e-05/0.5204, allocations: 342.3 kB / 0.5582 GB, free: 1.711 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.684e-05/0.5205, allocations: 66.38 kB / 0.5582 GB, free: 1.668 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001425/0.5207, allocations: 200.8 kB / 0.5584 GB, free: 1.445 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001296/0.5208, allocations: 102.7 kB / 0.5585 GB, free: 1.375 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.5208, allocations: 4 kB / 0.5585 GB, free: 1.371 MB / 362.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003547/0.5212, allocations: 300.1 kB / 0.5588 GB, free: 1.125 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.5212, allocations: 4 kB / 0.5588 GB, free: 1.121 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.5212, allocations: 8 kB / 0.5588 GB, free: 1.113 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.613e-05/0.5212, allocations: 4 kB / 0.5588 GB, free: 1.109 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002765/0.5215, allocations: 83.86 kB / 0.5589 GB, free: 1.031 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.563e-06/0.5215, allocations: 8 kB / 0.5589 GB, free: 1.023 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001547/0.5217, allocations: 27.78 kB / 0.5589 GB, free: 0.9961 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.516e-05/0.5217, allocations: 19.48 kB / 0.559 GB, free: 0.9805 MB / 362.7 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,mean.y,$PRE.rectifiedMean.mean.y,rectifiedMean.mean.y,$PRE.rootMeanSquare.mean.y,rootMeanSquare.mean.y,$PRE.harmonic.mean1.y,harmonic.mean1.y,$PRE.harmonic.mean2.y,harmonic.mean2.y) * Number of discrete 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.0001055/0.5218, allocations: 132.4 kB / 0.5591 GB, free: 0.8477 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.232e-05/0.5219, allocations: 27.62 kB / 0.5591 GB, free: 0.8203 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000389/0.5223, allocations: 270.6 kB / 0.5594 GB, free: 0.6133 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.5223, allocations: 7.984 kB / 0.5594 GB, free: 0.6055 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.5223, allocations: 0 / 0.5594 GB, free: 0.6055 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.5223, allocations: 3.938 kB / 0.5594 GB, free: 0.6016 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005662/0.5229, allocations: 0.6196 MB / 0.56 GB, free: 60 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.5229, allocations: 0 / 0.56 GB, free: 60 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002319/0.5231, allocations: 52.06 kB / 0.56 GB, free: 8 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-06/0.5231, allocations: 3.938 kB / 0.56 GB, free: 4 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.654e-05/0.5232, allocations: 7.75 kB / 0.56 GB, free: 0 / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.422e-06/0.5232, allocations: 12.03 kB / 0.5601 GB, free: 15.98 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.5232, allocations: 0 / 0.5601 GB, free: 15.98 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005549/0.5238, allocations: 465.5 kB / 0.5605 GB, free: 15.62 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.904e-05/0.5238, allocations: 104.8 kB / 0.5606 GB, free: 15.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.327e-05/0.5239, allocations: 0 / 0.5606 GB, free: 15.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001644/0.5241, allocations: 19.92 kB / 0.5606 GB, free: 15.48 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.737e-05/0.5241, allocations: 19.97 kB / 0.5606 GB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.585e-05/0.5242, allocations: 15.8 kB / 0.5606 GB, free: 15.45 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001167/0.5243, allocations: 154.8 kB / 0.5608 GB, free: 15.33 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5243, allocations: 0 / 0.5608 GB, free: 15.33 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003328/0.5246, allocations: 63.75 kB / 0.5609 GB, free: 15.27 MB / 378.7 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,rectifiedMean.mean.y,rootMeanSquare.mean.y,harmonic.mean1.y,harmonic.mean2.y) * Number of discrete states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * 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.0001707/0.5248, allocations: 116.4 kB / 0.561 GB, free: 15.15 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003382/0.5252, allocations: 208 kB / 0.5612 GB, free: 15 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.5252, allocations: 0 / 0.5612 GB, free: 15 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001541/0.5253, allocations: 106.7 kB / 0.5613 GB, free: 14.93 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002507/0.5256, allocations: 25.64 kB / 0.5613 GB, free: 14.91 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007428/0.5263, allocations: 427.1 kB / 0.5617 GB, free: 14.52 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003498/0.5267, allocations: 0.7844 MB / 0.5625 GB, free: 13.71 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001595/0.5269, allocations: 46.31 kB / 0.5625 GB, free: 13.67 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.007e-05/0.527, allocations: 34.89 kB / 0.5625 GB, free: 13.64 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.527, allocations: 0 / 0.5625 GB, free: 13.64 MB / 378.7 MB Notification: Performance of Templates: time 0.00516/0.5321, allocations: 2.08 MB / 0.5646 GB, free: 11.59 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/Mean/Mean.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches