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.001172/0.001172, allocations: 183.8 kB / 15.76 MB, free: 6.367 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.612/1.612, allocations: 205.4 MB / 221.9 MB, free: 13.83 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008874/0.0008875, allocations: 90.86 kB / 270.2 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2095/0.2095, allocations: 43.56 MB / 362.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003602/0.0003602, allocations: 11.98 kB / 431.4 MB, free: 19.6 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1311/0.1315, allocations: 58.85 MB / 490.2 MB, free: 8.676 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.424/0.5555, allocations: 87.31 MB / 0.564 GB, free: 12.55 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002247/0.5558, allocations: 58.92 kB / 0.5641 GB, free: 12.53 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0125/0.5683, allocations: 4.293 MB / 0.5683 GB, free: 8.875 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.5683, allocations: 4 kB / 0.5683 GB, free: 8.871 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.582e-05/0.5683, allocations: 4 kB / 0.5683 GB, free: 8.867 MB / 378.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.0009794/0.5693, allocations: 0.5643 MB / 0.5688 GB, free: 8.273 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.585e-05/0.5694, allocations: 12.03 kB / 0.5688 GB, free: 8.262 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.7e-05/0.5695, allocations: 35.58 kB / 0.5689 GB, free: 8.227 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004737/0.57, allocations: 319.1 kB / 0.5692 GB, free: 7.91 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.851e-05/0.57, allocations: 23.44 kB / 0.5692 GB, free: 7.898 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.785e-05/0.5701, allocations: 34.72 kB / 0.5692 GB, free: 7.875 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005325/0.5706, allocations: 261 kB / 0.5695 GB, free: 7.684 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.956e-05/0.5706, allocations: 3.984 kB / 0.5695 GB, free: 7.68 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.886e-05/0.5707, allocations: 7 kB / 0.5695 GB, free: 7.68 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-06/0.5707, allocations: 11.95 kB / 0.5695 GB, free: 7.668 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003958/0.5711, allocations: 202.7 kB / 0.5697 GB, free: 7.523 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001335/0.5724, allocations: 0.7866 MB / 0.5705 GB, free: 6.844 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003985/0.5729, allocations: 216 kB / 0.5707 GB, free: 6.684 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.364e-05/0.5729, allocations: 4 kB / 0.5707 GB, free: 6.68 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004374/0.5733, allocations: 239.7 kB / 0.5709 GB, free: 6.477 MB / 378.7 MB Notification: Performance of pre-optimization done (n=31): time 2.795e-06/0.5734, allocations: 3.938 kB / 0.5709 GB, free: 6.473 MB / 378.7 MB Notification: Performance of matching and sorting (n=31): time 0.0008632/0.5742, allocations: 387.8 kB / 0.5713 GB, free: 6.176 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.329e-05/0.5743, allocations: 63.39 kB / 0.5713 GB, free: 6.102 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002032/0.5745, allocations: 199 kB / 0.5715 GB, free: 5.93 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.331e-05/0.5745, allocations: 36.33 kB / 0.5716 GB, free: 5.895 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001015/0.5747, allocations: 173.6 kB / 0.5717 GB, free: 5.758 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.643e-05/0.5748, allocations: 97.92 kB / 0.5718 GB, free: 5.676 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.511e-05/0.5748, allocations: 3.875 kB / 0.5718 GB, free: 5.676 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001654/0.575, allocations: 341.6 kB / 0.5721 GB, free: 5.344 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001949/0.5752, allocations: 95.31 kB / 0.5722 GB, free: 5.273 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000278/0.5754, allocations: 235.8 kB / 0.5725 GB, free: 5.02 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002241/0.5757, allocations: 122.2 kB / 0.5726 GB, free: 4.938 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.469e-06/0.5757, allocations: 4 kB / 0.5726 GB, free: 4.934 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005951/0.5763, allocations: 385.2 kB / 0.5729 GB, free: 4.629 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.087e-05/0.5763, allocations: 4 kB / 0.573 GB, free: 4.625 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.5763, allocations: 4.469 kB / 0.573 GB, free: 4.621 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.078e-05/0.5764, allocations: 8 kB / 0.573 GB, free: 4.613 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003032/0.5767, allocations: 87.64 kB / 0.573 GB, free: 4.531 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.436e-05/0.5767, allocations: 4.625 kB / 0.5731 GB, free: 4.527 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001765/0.5769, allocations: 43.44 kB / 0.5731 GB, free: 4.492 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.437e-05/0.5769, allocations: 16 kB / 0.5731 GB, free: 4.477 MB / 378.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001592/0.5771, allocations: 179.4 kB / 0.5733 GB, free: 4.32 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.941e-05/0.5771, allocations: 35.61 kB / 0.5733 GB, free: 4.285 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005921/0.5777, allocations: 327.5 kB / 0.5736 GB, free: 4.043 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.181e-06/0.5777, allocations: 4 kB / 0.5736 GB, free: 4.039 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.5777, allocations: 0 / 0.5736 GB, free: 4.039 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.5778, allocations: 7.922 kB / 0.5736 GB, free: 4.031 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009169/0.5787, allocations: 0.7181 MB / 0.5743 GB, free: 3.395 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.5787, allocations: 0 / 0.5743 GB, free: 3.395 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002522/0.579, allocations: 55.78 kB / 0.5744 GB, free: 3.344 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.741e-06/0.579, allocations: 3.984 kB / 0.5744 GB, free: 3.34 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.549e-05/0.579, allocations: 7.719 kB / 0.5744 GB, free: 3.336 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.719e-06/0.579, allocations: 7.938 kB / 0.5744 GB, free: 3.328 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.579, allocations: 3.938 kB / 0.5744 GB, free: 3.324 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008199/0.5798, allocations: 0.545 MB / 0.5749 GB, free: 2.883 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.44e-05/0.5799, allocations: 104.8 kB / 0.575 GB, free: 2.762 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.466e-05/0.58, allocations: 7.75 kB / 0.5751 GB, free: 2.762 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001702/0.5801, allocations: 23.73 kB / 0.5751 GB, free: 2.742 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.602e-05/0.5802, allocations: 19.59 kB / 0.5751 GB, free: 2.727 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.115e-05/0.5803, allocations: 11.98 kB / 0.5751 GB, free: 2.715 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001521/0.5804, allocations: 167.5 kB / 0.5753 GB, free: 2.582 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5804, allocations: 0 / 0.5753 GB, free: 2.582 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003692/0.5808, allocations: 79.56 kB / 0.5753 GB, free: 2.512 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) * 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 (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.0002133/0.581, allocations: 115.6 kB / 0.5755 GB, free: 2.398 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005476/0.5816, allocations: 272.9 kB / 0.5757 GB, free: 2.191 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.5816, allocations: 0 / 0.5757 GB, free: 2.191 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002498/0.5819, allocations: 139.2 kB / 0.5758 GB, free: 2.086 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000294/0.5822, allocations: 29.53 kB / 0.5759 GB, free: 2.066 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00108/0.5832, allocations: 0.6912 MB / 0.5765 GB, free: 1.406 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004273/0.5837, allocations: 0.7841 MB / 0.5773 GB, free: 0.5938 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001446/0.5838, allocations: 42.27 kB / 0.5774 GB, free: 0.5508 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.751e-05/0.5839, allocations: 35.23 kB / 0.5774 GB, free: 0.5195 MB / 378.7 MB Notification: Performance of SimCode: time 1.473e-06/0.5839, allocations: 0 / 0.5774 GB, free: 0.5195 MB / 378.7 MB Notification: Performance of Templates: time 0.006516/0.5905, allocations: 2.229 MB / 0.5796 GB, free: 14.31 MB / 394.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