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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001325/0.001325, allocations: 113.4 kB / 17.78 MB, free: 5.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001488/0.001488, allocations: 180.1 kB / 18.71 MB, free: 4.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.438/1.438, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2082/0.2082, allocations: 44.18 MB / 336.7 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00127/0.00127, allocations: 71.89 kB / 470.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3963/0.3975, allocations: 60.81 MB / 0.5189 GB, free: 3.594 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.004803/0.4024, allocations: 2.244 MB / 0.5211 GB, free: 2.004 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001599/0.4041, allocations: 0.7794 MB / 0.5218 GB, free: 1.445 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000157/0.4042, allocations: 4.594 kB / 0.5219 GB, free: 1.445 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001619/0.4044, allocations: 34.45 kB / 0.5219 GB, free: 1.418 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002395/0.4047, allocations: 53.08 kB / 0.5219 GB, free: 1.379 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003286/0.405, allocations: 156.5 kB / 0.5221 GB, free: 1.281 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004336/0.4054, allocations: 368.8 kB / 0.5224 GB, free: 1.102 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002804/0.4057, allocations: 124 kB / 0.5226 GB, free: 1.039 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002106/0.406, allocations: 142.1 kB / 0.5227 GB, free: 0.9648 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002611/0.4062, allocations: 158 kB / 0.5228 GB, free: 0.8789 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.629e-05/0.4063, allocations: 39.53 kB / 0.5229 GB, free: 0.875 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.012e-05/0.4064, allocations: 33.69 kB / 0.5229 GB, free: 0.875 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001178/0.4065, allocations: 83.22 kB / 0.523 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001867/0.4067, allocations: 170.1 kB / 0.5232 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006682/0.4074, allocations: 369.1 kB / 0.5235 GB, free: 0.543 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.788e-06/0.4074, allocations: 9.438 kB / 0.5235 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.909e-06/0.4074, allocations: 0 / 0.5235 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.304e-05/0.4074, allocations: 3.938 kB / 0.5235 GB, free: 0.5312 MB / 382.1 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.001243/0.4087, allocations: 0.6175 MB / 0.5241 GB, free: 24 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.817e-05/0.4087, allocations: 10.55 kB / 0.5241 GB, free: 24 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001133/0.4089, allocations: 44.42 kB / 0.5242 GB, free: 0 / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006431/0.4095, allocations: 337.3 kB / 0.5245 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.573e-05/0.4096, allocations: 26.23 kB / 0.5245 GB, free: 15.72 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.373e-05/0.4096, allocations: 38.95 kB / 0.5246 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006237/0.4103, allocations: 271.1 kB / 0.5248 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.118e-05/0.4103, allocations: 6.234 kB / 0.5248 GB, free: 15.58 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.472e-05/0.4103, allocations: 15.72 kB / 0.5248 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.143e-05/0.4104, allocations: 6.062 kB / 0.5248 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004611/0.4108, allocations: 191.6 kB / 0.525 GB, free: 15.51 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001596/0.4124, allocations: 0.797 MB / 0.5258 GB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000472/0.4129, allocations: 203.8 kB / 0.526 GB, free: 14.93 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000222/0.4131, allocations: 98.66 kB / 0.5261 GB, free: 14.89 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.012e-05/0.4132, allocations: 11.23 kB / 0.5261 GB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004443/0.4136, allocations: 227.8 kB / 0.5263 GB, free: 14.73 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 1.904e-06/0.4137, allocations: 0 / 0.5263 GB, free: 14.73 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.0009113/0.4146, allocations: 364.1 kB / 0.5267 GB, free: 14.56 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.655e-05/0.4147, allocations: 60.14 kB / 0.5267 GB, free: 14.49 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002876/0.415, allocations: 239.3 kB / 0.527 GB, free: 14.32 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.815e-05/0.415, allocations: 36.45 kB / 0.527 GB, free: 14.28 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001424/0.4152, allocations: 171.9 kB / 0.5271 GB, free: 14.12 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001022/0.4153, allocations: 98.17 kB / 0.5272 GB, free: 14.04 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001342/0.4154, allocations: 75.81 kB / 0.5273 GB, free: 13.98 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.4156, allocations: 343.8 kB / 0.5276 GB, free: 13.64 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002195/0.4158, allocations: 85.42 kB / 0.5277 GB, free: 13.61 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003096/0.4161, allocations: 228.5 kB / 0.5279 GB, free: 13.38 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005339/0.4167, allocations: 348.4 kB / 0.5283 GB, free: 13.1 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/0.4167, allocations: 1.375 kB / 0.5283 GB, free: 13.1 MB / 398.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006655/0.4173, allocations: 374.7 kB / 0.5286 GB, free: 12.9 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/0.4174, allocations: 7.25 kB / 0.5286 GB, free: 12.9 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.4174, allocations: 4.094 kB / 0.5286 GB, free: 12.9 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.22e-05/0.4174, allocations: 7.531 kB / 0.5287 GB, free: 12.9 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003347/0.4178, allocations: 73.48 kB / 0.5287 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.544e-05/0.4178, allocations: 6.906 kB / 0.5287 GB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001861/0.418, allocations: 36.33 kB / 0.5288 GB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.561e-05/0.418, allocations: 17.53 kB / 0.5288 GB, free: 12.85 MB / 398.1 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.0002032/0.4182, allocations: 173.5 kB / 0.5289 GB, free: 12.7 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.792e-05/0.4183, allocations: 32.28 kB / 0.529 GB, free: 12.68 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006825/0.419, allocations: 314.7 kB / 0.5293 GB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.672e-06/0.419, allocations: 8.031 kB / 0.5293 GB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.419, allocations: 4 kB / 0.5293 GB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.696e-06/0.419, allocations: 3.984 kB / 0.5293 GB, free: 12.49 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001073/0.4201, allocations: 0.7045 MB / 0.53 GB, free: 11.95 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.4201, allocations: 1.188 kB / 0.53 GB, free: 11.95 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002613/0.4204, allocations: 50.92 kB / 0.53 GB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.64e-06/0.4204, allocations: 5.516 kB / 0.53 GB, free: 11.93 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.868e-05/0.4204, allocations: 8.75 kB / 0.53 GB, free: 11.92 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.148e-06/0.4204, allocations: 4 kB / 0.53 GB, free: 11.92 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.4205, allocations: 5.656 kB / 0.5301 GB, free: 11.91 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009009/0.4214, allocations: 0.5174 MB / 0.5306 GB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.432e-05/0.4214, allocations: 108.8 kB / 0.5307 GB, free: 11.47 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.121e-05/0.4215, allocations: 11.34 kB / 0.5307 GB, free: 11.46 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001679/0.4217, allocations: 17.52 kB / 0.5307 GB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.084e-05/0.4218, allocations: 23.03 kB / 0.5307 GB, free: 11.44 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.123e-05/0.4218, allocations: 16.86 kB / 0.5307 GB, free: 11.43 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001672/0.422, allocations: 172.3 kB / 0.5309 GB, free: 11.3 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.422, allocations: 0 / 0.5309 GB, free: 11.3 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004231/0.4224, allocations: 71.88 kB / 0.531 GB, free: 11.28 MB / 398.1 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.0001469/0.4226, allocations: 117.7 kB / 0.5311 GB, free: 11.17 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005505/0.4231, allocations: 263.7 kB / 0.5313 GB, free: 11.06 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.4231, allocations: 0 / 0.5313 GB, free: 11.06 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002831/0.4234, allocations: 128.8 kB / 0.5314 GB, free: 11.01 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003525/0.4238, allocations: 33.38 kB / 0.5315 GB, free: 10.99 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001145/0.4249, allocations: 0.5924 MB / 0.5321 GB, free: 10.58 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004182/0.4254, allocations: 0.7859 MB / 0.5328 GB, free: 9.84 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001678/0.4256, allocations: 46.41 kB / 0.5329 GB, free: 9.82 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.744e-05/0.4256, allocations: 25.94 kB / 0.5329 GB, free: 9.812 MB / 398.1 MB Notification: Performance of SimCode: time 4.81e-07/0.4257, allocations: 0 / 0.5329 GB, free: 9.812 MB / 398.1 MB Notification: Performance of Templates: time 0.006794/0.4325, allocations: 2.628 MB / 0.5355 GB, free: 8.496 MB / 398.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches