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.001384/0.001384, allocations: 186.9 kB / 17.97 MB, free: 3.797 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.34/1.34, allocations: 222.9 MB / 241.6 MB, free: 11.01 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.001112/0.001112, allocations: 105.9 kB / 291.9 MB, free: 10.96 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.3653/0.3653, allocations: 44.14 MB / 386.1 MB, free: 38.04 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001194, allocations: 59.92 kB / 457.7 MB, free: 2.324 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3754/0.3766, allocations: 60.8 MB / 0.5064 GB, free: 38.29 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003161/0.3799, allocations: 2.291 MB / 0.5086 GB, free: 36.68 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001052/0.3809, allocations: 0.7632 MB / 0.5094 GB, free: 36.13 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001328/0.3811, allocations: 5.75 kB / 0.5094 GB, free: 36.13 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001305/0.3812, allocations: 22.17 kB / 0.5094 GB, free: 36.12 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001969/0.3814, allocations: 44.75 kB / 0.5094 GB, free: 36.08 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002481/0.3817, allocations: 134.6 kB / 0.5096 GB, free: 36 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002626/0.382, allocations: 339.4 kB / 0.5099 GB, free: 35.84 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002426/0.3822, allocations: 125 kB / 0.51 GB, free: 35.78 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001377/0.3824, allocations: 125.7 kB / 0.5101 GB, free: 35.72 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001584/0.3825, allocations: 153.1 kB / 0.5103 GB, free: 35.64 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.081e-05/0.3826, allocations: 17.38 kB / 0.5103 GB, free: 35.64 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.734e-05/0.3826, allocations: 17.56 kB / 0.5103 GB, free: 35.64 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.234e-05/0.3827, allocations: 56.95 kB / 0.5104 GB, free: 35.61 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001211/0.3828, allocations: 161 kB / 0.5105 GB, free: 35.5 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002537/0.3831, allocations: 343 kB / 0.5108 GB, free: 35.35 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.3831, allocations: 0 / 0.5108 GB, free: 35.35 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.3831, allocations: 3.031 kB / 0.5108 GB, free: 35.35 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.993e-06/0.3831, allocations: 4 kB / 0.5108 GB, free: 35.35 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0009575/0.3841, allocations: 0.62 MB / 0.5114 GB, free: 34.84 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.3841, allocations: 12.72 kB / 0.5115 GB, free: 34.84 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.832e-05/0.3842, allocations: 44.17 kB / 0.5115 GB, free: 34.82 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003987/0.3846, allocations: 327.9 kB / 0.5118 GB, free: 34.55 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.174e-05/0.3846, allocations: 34.94 kB / 0.5118 GB, free: 34.53 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.746e-05/0.3847, allocations: 28.66 kB / 0.5119 GB, free: 34.52 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000416/0.3851, allocations: 271 kB / 0.5121 GB, free: 34.41 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.571e-05/0.3851, allocations: 0 / 0.5121 GB, free: 34.41 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.645e-05/0.3852, allocations: 14.61 kB / 0.5121 GB, free: 34.4 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.704e-06/0.3852, allocations: 5.594 kB / 0.5122 GB, free: 34.4 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003611/0.3855, allocations: 195.1 kB / 0.5123 GB, free: 34.34 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001145/0.3867, allocations: 0.8028 MB / 0.5131 GB, free: 33.85 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003782/0.3871, allocations: 203.3 kB / 0.5133 GB, free: 33.76 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001917/0.3873, allocations: 95.91 kB / 0.5134 GB, free: 33.72 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.641e-05/0.3873, allocations: 16.36 kB / 0.5134 GB, free: 33.71 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003666/0.3877, allocations: 233.9 kB / 0.5136 GB, free: 33.61 MB / 378.7 MB Notification: Performance of pre-optimization done (n=31): time 1.703e-06/0.3877, allocations: 0 / 0.5136 GB, free: 33.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=31): time 0.00071/0.3884, allocations: 366.2 kB / 0.514 GB, free: 33.47 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.189e-05/0.3885, allocations: 60.66 kB / 0.5141 GB, free: 33.41 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001722/0.3887, allocations: 234.5 kB / 0.5143 GB, free: 33.26 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.349e-05/0.3887, allocations: 36.39 kB / 0.5143 GB, free: 33.22 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.785e-05/0.3888, allocations: 171.2 kB / 0.5145 GB, free: 33.08 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.315e-05/0.3889, allocations: 97.91 kB / 0.5146 GB, free: 33 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.163e-05/0.389, allocations: 79.52 kB / 0.5146 GB, free: 32.95 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.444e-05/0.389, allocations: 339 kB / 0.515 GB, free: 32.62 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001738/0.3892, allocations: 88.61 kB / 0.5151 GB, free: 32.6 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002088/0.3894, allocations: 226.1 kB / 0.5153 GB, free: 32.4 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004051/0.3898, allocations: 340.7 kB / 0.5156 GB, free: 32.14 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.3898, allocations: 5.125 kB / 0.5156 GB, free: 32.13 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006019/0.3905, allocations: 375.2 kB / 0.516 GB, free: 31.97 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.051e-05/0.3905, allocations: 10.8 kB / 0.516 GB, free: 31.97 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.879e-06/0.3905, allocations: 9.438 kB / 0.516 GB, free: 31.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.199e-05/0.3905, allocations: 6.188 kB / 0.516 GB, free: 31.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002877/0.3908, allocations: 73.31 kB / 0.5161 GB, free: 31.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.525e-05/0.3908, allocations: 10.88 kB / 0.5161 GB, free: 31.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001657/0.391, allocations: 35.39 kB / 0.5161 GB, free: 31.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.979e-05/0.3911, allocations: 21.75 kB / 0.5161 GB, free: 31.93 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,mean.y_last,$PRE.mean.y_last,rectifiedMean.mean.y_last,$PRE.rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last,harmonic.mean2.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean1.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001463/0.3912, allocations: 161.6 kB / 0.5163 GB, free: 31.78 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.164e-05/0.3913, allocations: 36.69 kB / 0.5163 GB, free: 31.76 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005673/0.3918, allocations: 320.3 kB / 0.5166 GB, free: 31.63 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.3919, allocations: 2.875 kB / 0.5166 GB, free: 31.63 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.3919, allocations: 4 kB / 0.5166 GB, free: 31.62 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.3919, allocations: 3.188 kB / 0.5166 GB, free: 31.62 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007638/0.3926, allocations: 0.7146 MB / 0.5173 GB, free: 31.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.3927, allocations: 0 / 0.5173 GB, free: 31.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002243/0.3929, allocations: 44.11 kB / 0.5174 GB, free: 31.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.506e-06/0.3929, allocations: 0 / 0.5174 GB, free: 31.16 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.632e-05/0.3929, allocations: 18.2 kB / 0.5174 GB, free: 31.15 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.3929, allocations: 2.906 kB / 0.5174 GB, free: 31.15 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.3929, allocations: 4 kB / 0.5174 GB, free: 31.15 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002218/0.3952, allocations: 1.981 MB / 0.5193 GB, free: 29.7 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.155e-05/0.3952, allocations: 103 kB / 0.5194 GB, free: 29.59 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.83e-05/0.3953, allocations: 20.16 kB / 0.5194 GB, free: 29.58 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001581/0.3954, allocations: 17.58 kB / 0.5195 GB, free: 29.57 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.374e-05/0.3955, allocations: 28.45 kB / 0.5195 GB, free: 29.56 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.625e-05/0.3956, allocations: 11.56 kB / 0.5195 GB, free: 29.56 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001203/0.3957, allocations: 163 kB / 0.5196 GB, free: 29.46 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3957, allocations: 0 / 0.5196 GB, free: 29.46 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004219/0.3961, allocations: 85.98 kB / 0.5197 GB, free: 29.43 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_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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001179/0.3962, allocations: 121.8 kB / 0.5198 GB, free: 29.32 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004793/0.3967, allocations: 257.1 kB / 0.5201 GB, free: 29.25 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.3967, allocations: 4 kB / 0.5201 GB, free: 29.25 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002166/0.397, allocations: 124 kB / 0.5202 GB, free: 29.22 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003366/0.3973, allocations: 42.36 kB / 0.5203 GB, free: 29.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001035/0.3983, allocations: 0.9395 MB / 0.5212 GB, free: 28.52 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002316/0.3986, allocations: 0.7885 MB / 0.5219 GB, free: 27.82 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001526/0.3988, allocations: 43.23 kB / 0.522 GB, free: 27.81 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.901e-05/0.3988, allocations: 32.12 kB / 0.522 GB, free: 27.8 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3988, allocations: 0 / 0.522 GB, free: 27.8 MB / 378.7 MB Notification: Performance of Templates: time 0.005111/0.404, allocations: 2.488 MB / 0.5244 GB, free: 27.59 MB / 378.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@2/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