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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0008294/0.0008294, allocations: 179 kB / 18.09 MB, free: 3.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.177/1.177, allocations: 223.3 MB / 242.1 MB, free: 11.69 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007869/0.0007869, allocations: 103.7 kB / 293.3 MB, free: 10.77 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2694/0.2694, allocations: 44.14 MB / 388.5 MB, free: 38.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003183/0.0003184, allocations: 12 kB / 461.1 MB, free: 1.309 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2446/0.245, allocations: 61.88 MB / 0.5107 GB, free: 38.32 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08783/0.3328, allocations: 88.33 MB / 0.597 GB, free: 6.734 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001593/0.333, allocations: 67.95 kB / 0.597 GB, free: 6.672 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01209/0.3451, allocations: 4.443 MB / 0.6014 GB, free: 2.215 MB / 410.7 MB Notification: Performance of FrontEnd: time 5.29e-06/0.3452, allocations: 0 / 0.6014 GB, free: 2.215 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.259e-05/0.3452, allocations: 11.94 kB / 0.6014 GB, free: 2.203 MB / 410.7 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.001019/0.3462, allocations: 0.5764 MB / 0.602 GB, free: 1.578 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.3463, allocations: 8.031 kB / 0.602 GB, free: 1.57 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001172/0.3464, allocations: 44.47 kB / 0.602 GB, free: 1.527 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004808/0.3469, allocations: 319.2 kB / 0.6023 GB, free: 1.18 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.335e-05/0.3469, allocations: 24.92 kB / 0.6023 GB, free: 1.156 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.237e-05/0.347, allocations: 40.28 kB / 0.6024 GB, free: 1.117 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005575/0.3476, allocations: 289 kB / 0.6026 GB, free: 0.8281 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.97e-05/0.3476, allocations: 0 / 0.6026 GB, free: 0.8281 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.373e-05/0.3477, allocations: 12 kB / 0.6027 GB, free: 0.8164 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.3477, allocations: 8 kB / 0.6027 GB, free: 0.8086 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004559/0.3481, allocations: 206.1 kB / 0.6029 GB, free: 0.6055 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001404/0.3496, allocations: 0.8265 MB / 0.6037 GB, free: 15.73 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003806/0.3499, allocations: 210.8 kB / 0.6039 GB, free: 15.51 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001968/0.3502, allocations: 101.9 kB / 0.604 GB, free: 15.41 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.657e-05/0.3502, allocations: 4 kB / 0.604 GB, free: 15.41 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004112/0.3506, allocations: 250 kB / 0.6042 GB, free: 15.15 MB / 426.7 MB Notification: Performance of pre-optimization done (n=31): time 1.783e-06/0.3506, allocations: 0 / 0.6042 GB, free: 15.15 MB / 426.7 MB Notification: Performance of matching and sorting (n=31): time 0.0007671/0.3514, allocations: 385.2 kB / 0.6046 GB, free: 14.77 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.764e-05/0.3514, allocations: 55.41 kB / 0.6046 GB, free: 14.7 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002184/0.3517, allocations: 240.9 kB / 0.6049 GB, free: 14.46 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.297e-05/0.3517, allocations: 37.7 kB / 0.6049 GB, free: 14.41 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001006/0.3518, allocations: 176.2 kB / 0.6051 GB, free: 14.24 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.489e-05/0.3519, allocations: 90.72 kB / 0.6052 GB, free: 14.15 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.469e-05/0.3519, allocations: 11.94 kB / 0.6052 GB, free: 14.14 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001122/0.352, allocations: 342.8 kB / 0.6055 GB, free: 13.8 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001958/0.3522, allocations: 100.7 kB / 0.6056 GB, free: 13.7 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002698/0.3525, allocations: 234.3 kB / 0.6058 GB, free: 13.41 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004964/0.353, allocations: 356.8 kB / 0.6061 GB, free: 13 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.327e-06/0.353, allocations: 0 / 0.6061 GB, free: 13 MB / 426.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006288/0.3537, allocations: 384.8 kB / 0.6065 GB, free: 12.61 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.3537, allocations: 8 kB / 0.6065 GB, free: 12.61 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.17e-05/0.3537, allocations: 7.984 kB / 0.6065 GB, free: 12.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.3537, allocations: 11.94 kB / 0.6065 GB, free: 12.59 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002827/0.354, allocations: 76.25 kB / 0.6066 GB, free: 12.51 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.259e-05/0.354, allocations: 15.92 kB / 0.6066 GB, free: 12.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001673/0.3542, allocations: 35.69 kB / 0.6067 GB, free: 12.46 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.738e-05/0.3543, allocations: 20.12 kB / 0.6067 GB, free: 12.44 MB / 426.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_last,mean.y_last,$PRE.rectifiedMean.mean.y_last,rectifiedMean.mean.y_last,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last,$PRE.harmonic.mean1.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean2.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001769/0.3544, allocations: 162.7 kB / 0.6068 GB, free: 12.27 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.656e-05/0.3545, allocations: 31.66 kB / 0.6069 GB, free: 12.24 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006204/0.3551, allocations: 336.2 kB / 0.6072 GB, free: 11.91 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.3551, allocations: 8 kB / 0.6072 GB, free: 11.9 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.3551, allocations: 0 / 0.6072 GB, free: 11.9 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.3551, allocations: 0 / 0.6072 GB, free: 11.9 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008668/0.356, allocations: 0.7284 MB / 0.6079 GB, free: 11.12 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.356, allocations: 4 kB / 0.6079 GB, free: 11.11 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002331/0.3563, allocations: 55.95 kB / 0.608 GB, free: 11.06 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.3563, allocations: 0 / 0.608 GB, free: 11.06 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.526e-05/0.3563, allocations: 8 kB / 0.608 GB, free: 11.05 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.3563, allocations: 4 kB / 0.608 GB, free: 11.05 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.3563, allocations: 96 / 0.608 GB, free: 11.05 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000805/0.3571, allocations: 0.55 MB / 0.6085 GB, free: 10.48 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.596e-05/0.3572, allocations: 104.8 kB / 0.6086 GB, free: 10.36 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.311e-05/0.3573, allocations: 12.06 kB / 0.6086 GB, free: 10.35 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001562/0.3574, allocations: 15.98 kB / 0.6086 GB, free: 10.33 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.432e-05/0.3575, allocations: 23.97 kB / 0.6087 GB, free: 10.31 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.799e-05/0.3575, allocations: 15.98 kB / 0.6087 GB, free: 10.29 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001368/0.3577, allocations: 164.5 kB / 0.6088 GB, free: 10.13 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3577, allocations: 0 / 0.6088 GB, free: 10.13 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000328/0.358, allocations: 67.75 kB / 0.6089 GB, free: 10.07 MB / 426.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_last,rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,harmonic.mean1.y_last,harmonic.mean2.y_last) * 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.000138/0.3582, allocations: 129.2 kB / 0.609 GB, free: 9.93 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0004942/0.3587, allocations: 276 kB / 0.6093 GB, free: 9.66 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3587, allocations: 0 / 0.6093 GB, free: 9.66 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002326/0.3589, allocations: 127.9 kB / 0.6094 GB, free: 9.535 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003116/0.3592, allocations: 40.3 kB / 0.6094 GB, free: 9.496 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009488/0.3602, allocations: 0.71 MB / 0.6101 GB, free: 8.758 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003148/0.3605, allocations: 0.7881 MB / 0.6109 GB, free: 7.941 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0001505/0.3607, allocations: 38.27 kB / 0.6109 GB, free: 7.902 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.089e-05/0.3607, allocations: 35.42 kB / 0.611 GB, free: 7.867 MB / 426.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3608, allocations: 0 / 0.611 GB, free: 7.867 MB / 426.7 MB Notification: Performance of Templates: time 0.004867/0.3656, allocations: 2.243 MB / 0.6132 GB, free: 5.637 MB / 426.7 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","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches