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.001006/0.001006, allocations: 176.5 kB / 17.06 MB, free: 5.098 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.218/1.218, allocations: 223.2 MB / 241 MB, free: 11.88 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.001185/0.001185, allocations: 97.59 kB / 292.2 MB, free: 10.92 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.3147/0.3147, allocations: 44.22 MB / 387.5 MB, free: 38.79 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002962/0.0002961, allocations: 8 kB / 459.9 MB, free: 1.531 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3235/0.3238, allocations: 61.9 MB / 0.5095 GB, free: 38.15 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1205/0.4443, allocations: 88.32 MB / 0.5958 GB, free: 6.805 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002164/0.4446, allocations: 67.97 kB / 0.5959 GB, free: 6.738 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01258/0.4571, allocations: 4.447 MB / 0.6002 GB, free: 2.277 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.4572, allocations: 0 / 0.6002 GB, free: 2.277 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.897e-05/0.4572, allocations: 4 kB / 0.6002 GB, free: 2.273 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.0008947/0.4581, allocations: 0.5839 MB / 0.6008 GB, free: 1.645 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.101e-05/0.4582, allocations: 12.03 kB / 0.6008 GB, free: 1.633 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.983e-05/0.4583, allocations: 35.62 kB / 0.6008 GB, free: 1.598 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000456/0.4587, allocations: 314 kB / 0.6011 GB, free: 1.254 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.335e-05/0.4588, allocations: 28.52 kB / 0.6012 GB, free: 1.227 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.319e-05/0.4588, allocations: 32 kB / 0.6012 GB, free: 1.195 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005031/0.4593, allocations: 272.8 kB / 0.6014 GB, free: 0.9219 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.544e-05/0.4594, allocations: 0 / 0.6014 GB, free: 0.9219 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.24e-05/0.4594, allocations: 15.98 kB / 0.6015 GB, free: 0.9062 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.215e-06/0.4594, allocations: 8 kB / 0.6015 GB, free: 0.8984 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004208/0.4598, allocations: 210.1 kB / 0.6017 GB, free: 0.6914 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001321/0.4612, allocations: 0.8265 MB / 0.6025 GB, free: 15.81 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004096/0.4616, allocations: 218.8 kB / 0.6027 GB, free: 15.59 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.955e-05/0.4616, allocations: 4 kB / 0.6027 GB, free: 15.59 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004092/0.4621, allocations: 234.1 kB / 0.6029 GB, free: 15.35 MB / 426.7 MB Notification: Performance of pre-optimization done (n=31): time 1.833e-06/0.4621, allocations: 0 / 0.6029 GB, free: 15.35 MB / 426.7 MB Notification: Performance of matching and sorting (n=31): time 0.0007819/0.4629, allocations: 397.1 kB / 0.6033 GB, free: 14.95 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.879e-05/0.4629, allocations: 59.41 kB / 0.6033 GB, free: 14.88 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001942/0.4631, allocations: 204.2 kB / 0.6035 GB, free: 14.68 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.514e-05/0.4631, allocations: 37.7 kB / 0.6036 GB, free: 14.63 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001069/0.4633, allocations: 180.4 kB / 0.6037 GB, free: 14.45 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.526e-05/0.4633, allocations: 90.72 kB / 0.6038 GB, free: 14.36 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.472e-05/0.4634, allocations: 7.938 kB / 0.6038 GB, free: 14.36 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.4635, allocations: 342.8 kB / 0.6042 GB, free: 14.01 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001914/0.4637, allocations: 92.7 kB / 0.6043 GB, free: 13.92 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000281/0.464, allocations: 230.5 kB / 0.6045 GB, free: 13.63 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002316/0.4642, allocations: 127.9 kB / 0.6046 GB, free: 13.51 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.4642, allocations: 0 / 0.6046 GB, free: 13.51 MB / 426.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006415/0.4649, allocations: 381.2 kB / 0.605 GB, free: 13.13 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.4649, allocations: 13.67 kB / 0.605 GB, free: 13.12 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/0.4649, allocations: 4 kB / 0.605 GB, free: 13.11 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.733e-05/0.4649, allocations: 8 kB / 0.605 GB, free: 13.11 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002922/0.4652, allocations: 79.89 kB / 0.6051 GB, free: 13.03 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.508e-05/0.4653, allocations: 11.94 kB / 0.6051 GB, free: 13.02 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001725/0.4654, allocations: 43.61 kB / 0.6051 GB, free: 12.97 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.522e-05/0.4655, allocations: 16 kB / 0.6051 GB, free: 12.96 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.0001689/0.4657, allocations: 170.8 kB / 0.6053 GB, free: 12.78 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.818e-05/0.4657, allocations: 31.66 kB / 0.6053 GB, free: 12.75 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006356/0.4663, allocations: 340.2 kB / 0.6057 GB, free: 12.41 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.4664, allocations: 4 kB / 0.6057 GB, free: 12.41 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.4664, allocations: 0 / 0.6057 GB, free: 12.41 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.489e-06/0.4664, allocations: 0 / 0.6057 GB, free: 12.41 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009133/0.4673, allocations: 0.7285 MB / 0.6064 GB, free: 11.62 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.4673, allocations: 0 / 0.6064 GB, free: 11.62 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002757/0.4676, allocations: 55.86 kB / 0.6064 GB, free: 11.57 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.341e-05/0.4676, allocations: 4 kB / 0.6064 GB, free: 11.56 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.776e-05/0.4676, allocations: 11.98 kB / 0.6064 GB, free: 11.55 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.4677, allocations: 4 kB / 0.6064 GB, free: 11.55 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.4677, allocations: 0 / 0.6064 GB, free: 11.55 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00083/0.4685, allocations: 0.5385 MB / 0.607 GB, free: 10.99 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.207e-05/0.4686, allocations: 104.7 kB / 0.6071 GB, free: 10.87 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.651e-05/0.4686, allocations: 16 kB / 0.6071 GB, free: 10.86 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001725/0.4688, allocations: 15.98 kB / 0.6071 GB, free: 10.84 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.038e-05/0.4689, allocations: 23.97 kB / 0.6071 GB, free: 10.82 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.603e-05/0.4689, allocations: 15.98 kB / 0.6071 GB, free: 10.8 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001435/0.4691, allocations: 164.5 kB / 0.6073 GB, free: 10.64 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4691, allocations: 0 / 0.6073 GB, free: 10.64 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003449/0.4694, allocations: 71.83 kB / 0.6074 GB, free: 10.57 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.0001525/0.4696, allocations: 122 kB / 0.6075 GB, free: 10.45 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0005375/0.4701, allocations: 279.6 kB / 0.6077 GB, free: 10.17 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.4702, allocations: 0 / 0.6077 GB, free: 10.17 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002367/0.4704, allocations: 140.8 kB / 0.6079 GB, free: 10.04 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002376/0.4707, allocations: 24.42 kB / 0.6079 GB, free: 10.01 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009953/0.4717, allocations: 0.7091 MB / 0.6086 GB, free: 9.277 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003747/0.472, allocations: 0.788 MB / 0.6094 GB, free: 8.457 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0001445/0.4722, allocations: 42.27 kB / 0.6094 GB, free: 8.41 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.239e-05/0.4723, allocations: 27.44 kB / 0.6094 GB, free: 8.383 MB / 426.7 MB Notification: Performance of SimCode: time 2.11e-07/0.4723, allocations: 0 / 0.6094 GB, free: 8.383 MB / 426.7 MB Notification: Performance of Templates: time 0.005011/0.4773, allocations: 2.237 MB / 0.6116 GB, free: 6.156 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/jenkins/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