Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001575/0.001575, allocations: 174.4 kB / 17.41 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.331/1.331, allocations: 225.7 MB / 243.9 MB, free: 8.457 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008594/0.0008594, allocations: 94.42 kB / 295.1 MB, free: 9.488 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3517/0.3517, allocations: 44.31 MB / 390.5 MB, free: 38.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003765/0.0003767, allocations: 8 kB / 463.1 MB, free: 484 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3197/0.3201, allocations: 61.9 MB / 0.5127 GB, free: 37.86 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.001882/0.322, allocations: 1.86 MB / 0.5145 GB, free: 36.5 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009002/0.3229, allocations: 0.7218 MB / 0.5153 GB, free: 35.99 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001258/0.3231, allocations: 5.781 kB / 0.5153 GB, free: 35.99 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001048/0.3232, allocations: 30.17 kB / 0.5153 GB, free: 35.97 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000191/0.3234, allocations: 44.94 kB / 0.5153 GB, free: 35.93 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002393/0.3236, allocations: 130.1 kB / 0.5155 GB, free: 35.85 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002254/0.3238, allocations: 334.2 kB / 0.5158 GB, free: 35.7 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001934/0.324, allocations: 128.9 kB / 0.5159 GB, free: 35.63 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001201/0.3242, allocations: 109.9 kB / 0.516 GB, free: 35.58 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001669/0.3244, allocations: 132.2 kB / 0.5161 GB, free: 35.51 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.423e-05/0.3244, allocations: 11.62 kB / 0.5161 GB, free: 35.51 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.86e-05/0.3244, allocations: 8.344 kB / 0.5161 GB, free: 35.51 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.808e-05/0.3245, allocations: 58.42 kB / 0.5162 GB, free: 35.48 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00011/0.3246, allocations: 158 kB / 0.5164 GB, free: 35.36 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000316/0.3249, allocations: 335.9 kB / 0.5167 GB, free: 35.25 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.3249, allocations: 0.9688 kB / 0.5167 GB, free: 35.25 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.325, allocations: 0 / 0.5167 GB, free: 35.25 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.76e-06/0.325, allocations: 0 / 0.5167 GB, free: 35.25 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.0008698/0.3258, allocations: 0.5553 MB / 0.5172 GB, free: 34.77 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.65e-05/0.3259, allocations: 9.188 kB / 0.5172 GB, free: 34.77 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.228e-05/0.326, allocations: 44.28 kB / 0.5173 GB, free: 34.75 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004041/0.3264, allocations: 342.9 kB / 0.5176 GB, free: 34.48 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.775e-05/0.3264, allocations: 21.31 kB / 0.5176 GB, free: 34.47 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.833e-05/0.3265, allocations: 30.12 kB / 0.5176 GB, free: 34.46 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004817/0.327, allocations: 275.6 kB / 0.5179 GB, free: 34.34 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.686e-05/0.327, allocations: 7.297 kB / 0.5179 GB, free: 34.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.045e-05/0.327, allocations: 11.98 kB / 0.5179 GB, free: 34.33 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.327, allocations: 5.5 kB / 0.5179 GB, free: 34.33 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003994/0.3274, allocations: 200.7 kB / 0.5181 GB, free: 34.27 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001169/0.3286, allocations: 0.8141 MB / 0.5189 GB, free: 33.78 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003705/0.329, allocations: 214.8 kB / 0.5191 GB, free: 33.68 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001944/0.3292, allocations: 107.6 kB / 0.5192 GB, free: 33.64 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.799e-05/0.3292, allocations: 11.28 kB / 0.5192 GB, free: 33.63 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003552/0.3296, allocations: 237.4 kB / 0.5195 GB, free: 33.53 MB / 378.7 MB Notification: Performance of pre-optimization done (n=31): time 1.573e-06/0.3296, allocations: 0 / 0.5195 GB, free: 33.53 MB / 378.7 MB Notification: Performance of matching and sorting (n=31): time 0.0006578/0.3303, allocations: 387.7 kB / 0.5198 GB, free: 33.39 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.644e-05/0.3303, allocations: 58.38 kB / 0.5199 GB, free: 33.33 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001683/0.3305, allocations: 239 kB / 0.5201 GB, free: 33.18 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.301e-05/0.3305, allocations: 36.39 kB / 0.5201 GB, free: 33.14 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.736e-05/0.3306, allocations: 174.2 kB / 0.5203 GB, free: 32.99 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.515e-05/0.3307, allocations: 100.1 kB / 0.5204 GB, free: 32.91 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.504e-05/0.3307, allocations: 6.75 kB / 0.5204 GB, free: 32.91 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.41e-05/0.3307, allocations: 338.1 kB / 0.5207 GB, free: 32.58 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001708/0.3309, allocations: 93.86 kB / 0.5208 GB, free: 32.55 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000205/0.3311, allocations: 232.4 kB / 0.521 GB, free: 32.35 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003795/0.3315, allocations: 357.6 kB / 0.5214 GB, free: 32.08 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.3315, allocations: 0 / 0.5214 GB, free: 32.08 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005143/0.3321, allocations: 380.6 kB / 0.5218 GB, free: 31.92 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.3321, allocations: 9.062 kB / 0.5218 GB, free: 31.92 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.3321, allocations: 3.156 kB / 0.5218 GB, free: 31.92 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.897e-05/0.3321, allocations: 6.719 kB / 0.5218 GB, free: 31.92 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002863/0.3324, allocations: 86.56 kB / 0.5219 GB, free: 31.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.3324, allocations: 9.719 kB / 0.5219 GB, free: 31.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001522/0.3326, allocations: 36.53 kB / 0.5219 GB, free: 31.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.103e-05/0.3326, allocations: 22.44 kB / 0.5219 GB, free: 31.88 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_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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001205/0.3327, allocations: 163.8 kB / 0.5221 GB, free: 31.73 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.133e-05/0.3328, allocations: 30.03 kB / 0.5221 GB, free: 31.71 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005282/0.3333, allocations: 327.3 kB / 0.5224 GB, free: 31.59 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.3333, allocations: 6.953 kB / 0.5224 GB, free: 31.58 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.3333, allocations: 4 kB / 0.5224 GB, free: 31.58 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.3333, allocations: 6.297 kB / 0.5224 GB, free: 31.58 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006837/0.334, allocations: 0.7299 MB / 0.5231 GB, free: 31.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.334, allocations: 0 / 0.5231 GB, free: 31.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002232/0.3343, allocations: 58.44 kB / 0.5232 GB, free: 31.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.3343, allocations: 0 / 0.5232 GB, free: 31.1 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.289e-05/0.3343, allocations: 11.03 kB / 0.5232 GB, free: 31.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.3343, allocations: 2.781 kB / 0.5232 GB, free: 31.09 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3343, allocations: 3.516 kB / 0.5232 GB, free: 31.09 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006616/0.335, allocations: 0.5287 MB / 0.5237 GB, free: 30.82 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.574e-05/0.335, allocations: 102 kB / 0.5238 GB, free: 30.71 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.17e-05/0.3351, allocations: 9.844 kB / 0.5238 GB, free: 30.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001565/0.3352, allocations: 15.84 kB / 0.5239 GB, free: 30.7 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.022e-05/0.3353, allocations: 22.69 kB / 0.5239 GB, free: 30.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.308e-05/0.3353, allocations: 20.11 kB / 0.5239 GB, free: 30.69 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001039/0.3355, allocations: 164.1 kB / 0.5241 GB, free: 30.58 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3355, allocations: 0 / 0.5241 GB, free: 30.58 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002914/0.3358, allocations: 72.38 kB / 0.5241 GB, free: 30.56 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 9.482e-05/0.3359, allocations: 117.7 kB / 0.5242 GB, free: 30.46 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004319/0.3363, allocations: 274.4 kB / 0.5245 GB, free: 30.38 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3363, allocations: 0.9375 kB / 0.5245 GB, free: 30.38 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002134/0.3365, allocations: 146.3 kB / 0.5246 GB, free: 30.33 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003/0.3368, allocations: 26.81 kB / 0.5247 GB, free: 30.32 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007817/0.3376, allocations: 0.7415 MB / 0.5254 GB, free: 29.83 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001712/0.3378, allocations: 0.7839 MB / 0.5262 GB, free: 29.12 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001379/0.338, allocations: 45.72 kB / 0.5262 GB, free: 29.11 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.531e-05/0.338, allocations: 27.44 kB / 0.5262 GB, free: 29.1 MB / 378.7 MB Notification: Performance of SimCode: time 2e-07/0.338, allocations: 0 / 0.5262 GB, free: 29.1 MB / 378.7 MB Notification: Performance of Templates: time 0.004511/0.3425, allocations: 2.299 MB / 0.5285 GB, free: 28.92 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/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