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.001048/0.001048, allocations: 179.6 kB / 14.15 MB, free: 1.176 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.286/1.286, allocations: 221.3 MB / 236 MB, free: 2.977 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000882/0.0008818, allocations: 97.89 kB / 287 MB, free: 248 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1844/0.1844, allocations: 44.15 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.27e-05/2.274e-05, allocations: 224 / 451.8 MB, free: 9.445 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1112, allocations: 61.92 MB / 0.5017 GB, free: 11.47 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4426/0.5538, allocations: 88.25 MB / 0.5879 GB, free: 1.074 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001928/0.5541, allocations: 63.97 kB / 0.5879 GB, free: 1.012 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0127/0.5668, allocations: 4.423 MB / 0.5923 GB, free: 12.59 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.5668, allocations: 0 / 0.5923 GB, free: 12.59 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.598e-05/0.5669, allocations: 8 kB / 0.5923 GB, free: 12.58 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.0009011/0.5678, allocations: 0.5483 MB / 0.5928 GB, free: 11.98 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/0.5678, allocations: 8.031 kB / 0.5928 GB, free: 11.98 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.74e-05/0.5679, allocations: 35.62 kB / 0.5928 GB, free: 11.94 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004698/0.5684, allocations: 325.9 kB / 0.5932 GB, free: 11.58 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.056e-05/0.5684, allocations: 24.52 kB / 0.5932 GB, free: 11.56 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.444e-05/0.5685, allocations: 35.94 kB / 0.5932 GB, free: 11.52 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004474/0.569, allocations: 252.9 kB / 0.5935 GB, free: 11.27 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.611e-05/0.569, allocations: 0 / 0.5935 GB, free: 11.27 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.415e-05/0.569, allocations: 12 kB / 0.5935 GB, free: 11.26 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.438e-06/0.5691, allocations: 8 kB / 0.5935 GB, free: 11.25 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002919/0.5693, allocations: 166.2 kB / 0.5936 GB, free: 11.09 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001303/0.5707, allocations: 0.8227 MB / 0.5944 GB, free: 10.21 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000321/0.571, allocations: 186.9 kB / 0.5946 GB, free: 10.02 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001402/0.5711, allocations: 84.84 kB / 0.5947 GB, free: 9.934 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.568e-05/0.5712, allocations: 7.984 kB / 0.5947 GB, free: 9.926 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003298/0.5715, allocations: 211.2 kB / 0.5949 GB, free: 9.707 MB / 410.7 MB Notification: Performance of pre-optimization done (n=31): time 1.833e-06/0.5715, allocations: 0 / 0.5949 GB, free: 9.707 MB / 410.7 MB Notification: Performance of matching and sorting (n=31): time 0.0004488/0.572, allocations: 257.2 kB / 0.5951 GB, free: 9.449 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.839e-05/0.572, allocations: 63.39 kB / 0.5952 GB, free: 9.375 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000187/0.5722, allocations: 209 kB / 0.5954 GB, free: 9.164 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.846e-05/0.5723, allocations: 33.7 kB / 0.5954 GB, free: 9.125 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001054/0.5724, allocations: 172.5 kB / 0.5956 GB, free: 8.953 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.614e-05/0.5725, allocations: 102.6 kB / 0.5957 GB, free: 8.852 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.63e-05/0.5725, allocations: 8 kB / 0.5957 GB, free: 8.844 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.5726, allocations: 334.8 kB / 0.596 GB, free: 8.508 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001299/0.5727, allocations: 80.73 kB / 0.5961 GB, free: 8.426 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002019/0.5729, allocations: 206.6 kB / 0.5963 GB, free: 8.164 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001673/0.5731, allocations: 99.91 kB / 0.5964 GB, free: 8.066 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.5731, allocations: 4 kB / 0.5964 GB, free: 8.062 MB / 410.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005018/0.5736, allocations: 345.1 kB / 0.5967 GB, free: 7.719 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.016e-05/0.5737, allocations: 15.98 kB / 0.5967 GB, free: 7.703 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.5737, allocations: 4 kB / 0.5967 GB, free: 7.699 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.813e-05/0.5737, allocations: 8 kB / 0.5968 GB, free: 7.691 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002955/0.574, allocations: 71.84 kB / 0.5968 GB, free: 7.621 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.635e-05/0.574, allocations: 19.91 kB / 0.5968 GB, free: 7.602 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001748/0.5742, allocations: 39.75 kB / 0.5969 GB, free: 7.562 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.885e-05/0.5743, allocations: 19.98 kB / 0.5969 GB, free: 7.543 MB / 410.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 () * 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.0001146/0.5744, allocations: 136.8 kB / 0.597 GB, free: 7.402 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.021e-05/0.5744, allocations: 31.67 kB / 0.5971 GB, free: 7.371 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004937/0.5749, allocations: 296.2 kB / 0.5973 GB, free: 7.078 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.5749, allocations: 0 / 0.5973 GB, free: 7.078 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.5749, allocations: 7.984 kB / 0.5973 GB, free: 7.07 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.575, allocations: 4 kB / 0.5974 GB, free: 7.066 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007291/0.5757, allocations: 0.6816 MB / 0.598 GB, free: 6.328 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.5757, allocations: 3.953 kB / 0.598 GB, free: 6.324 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002559/0.576, allocations: 51.91 kB / 0.5981 GB, free: 6.273 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.576, allocations: 4 kB / 0.5981 GB, free: 6.27 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.875e-05/0.576, allocations: 11.98 kB / 0.5981 GB, free: 6.258 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.576, allocations: 0 / 0.5981 GB, free: 6.258 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.576, allocations: 4 kB / 0.5981 GB, free: 6.254 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006591/0.5767, allocations: 483.5 kB / 0.5986 GB, free: 5.766 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.186e-05/0.5768, allocations: 108.6 kB / 0.5987 GB, free: 5.641 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.52e-05/0.5768, allocations: 8.062 kB / 0.5987 GB, free: 5.633 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001763/0.577, allocations: 15.98 kB / 0.5987 GB, free: 5.617 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.132e-05/0.5771, allocations: 23.97 kB / 0.5987 GB, free: 5.594 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.781e-05/0.5771, allocations: 19.98 kB / 0.5987 GB, free: 5.574 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001369/0.5773, allocations: 161.4 kB / 0.5989 GB, free: 5.418 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5773, allocations: 0 / 0.5989 GB, free: 5.418 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000345/0.5776, allocations: 79.77 kB / 0.599 GB, free: 5.34 MB / 410.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) * 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.0001671/0.5778, allocations: 113.8 kB / 0.5991 GB, free: 5.223 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0003958/0.5782, allocations: 244.5 kB / 0.5993 GB, free: 4.984 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.5782, allocations: 0 / 0.5993 GB, free: 4.984 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001774/0.5784, allocations: 115.9 kB / 0.5994 GB, free: 4.871 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002374/0.5786, allocations: 24.7 kB / 0.5994 GB, free: 4.848 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007385/0.5794, allocations: 459.4 kB / 0.5999 GB, free: 4.379 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002948/0.5797, allocations: 0.7921 MB / 0.6006 GB, free: 3.559 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.000142/0.5798, allocations: 38.05 kB / 0.6007 GB, free: 3.52 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.412e-05/0.5799, allocations: 35.42 kB / 0.6007 GB, free: 3.484 MB / 410.7 MB Notification: Performance of SimCode: time 2.5e-07/0.5799, allocations: 0 / 0.6007 GB, free: 3.484 MB / 410.7 MB Notification: Performance of Templates: time 0.00499/0.5849, allocations: 2.226 MB / 0.6029 GB, free: 1.27 MB / 410.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