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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00162/0.00162, allocations: 107.9 kB / 19.8 MB, free: 2.5 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002027/0.002027, allocations: 192.7 kB / 22.97 MB, free: 5.59 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.469/1.469, allocations: 225.6 MB / 251.6 MB, free: 13.33 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2579/0.2579, allocations: 44.91 MB / 351.6 MB, free: 12.24 MB / 286.1 MB " [Timeout remaining time 179] 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=5006,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001964/0.001964, allocations: 67.89 kB / 495.2 MB, free: 1.883 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4393/0.4412, allocations: 64.25 MB / 0.5464 GB, free: 13.21 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.004332/0.4456, allocations: 2.273 MB / 0.5486 GB, free: 11.41 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001961/0.4475, allocations: 0.7849 MB / 0.5494 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001816/0.4477, allocations: 7.75 kB / 0.5494 GB, free: 10.78 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002025/0.4479, allocations: 33.19 kB / 0.5494 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002634/0.4482, allocations: 61.58 kB / 0.5495 GB, free: 10.7 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003911/0.4486, allocations: 159.3 kB / 0.5496 GB, free: 10.56 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004946/0.4491, allocations: 367.7 kB / 0.55 GB, free: 10.34 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002778/0.4493, allocations: 92.39 kB / 0.55 GB, free: 10.28 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002322/0.4496, allocations: 141.2 kB / 0.5502 GB, free: 10.19 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002618/0.4498, allocations: 160.7 kB / 0.5503 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.99e-05/0.4499, allocations: 33.72 kB / 0.5504 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.082e-05/0.45, allocations: 34.75 kB / 0.5504 GB, free: 10.07 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000123/0.4501, allocations: 77.73 kB / 0.5505 GB, free: 10.01 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001897/0.4503, allocations: 173.6 kB / 0.5506 GB, free: 9.871 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005363/0.4508, allocations: 379.8 kB / 0.551 GB, free: 9.59 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.4508, allocations: 1.188 kB / 0.551 GB, free: 9.59 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.4508, allocations: 0 / 0.551 GB, free: 9.59 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.864e-06/0.4508, allocations: 0 / 0.551 GB, free: 9.59 MB / 398.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.001437/0.4523, allocations: 0.6276 MB / 0.5516 GB, free: 9.027 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.332e-05/0.4523, allocations: 9.25 kB / 0.5516 GB, free: 9.027 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001073/0.4524, allocations: 44.09 kB / 0.5517 GB, free: 9.004 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006212/0.453, allocations: 349.1 kB / 0.552 GB, free: 8.684 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.3e-05/0.4531, allocations: 24.59 kB / 0.552 GB, free: 8.672 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.256e-05/0.4532, allocations: 30.28 kB / 0.5521 GB, free: 8.664 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006489/0.4538, allocations: 277.2 kB / 0.5523 GB, free: 8.496 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.578e-05/0.4538, allocations: 5.094 kB / 0.5523 GB, free: 8.492 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.795e-05/0.4539, allocations: 10.16 kB / 0.5523 GB, free: 8.484 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.59e-05/0.4539, allocations: 6.5 kB / 0.5523 GB, free: 8.484 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000522/0.4544, allocations: 188.5 kB / 0.5525 GB, free: 8.395 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001633/0.456, allocations: 0.8002 MB / 0.5533 GB, free: 7.734 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004701/0.4565, allocations: 193.4 kB / 0.5535 GB, free: 7.629 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000212/0.4567, allocations: 93.23 kB / 0.5536 GB, free: 7.578 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.16e-05/0.4568, allocations: 10.36 kB / 0.5536 GB, free: 7.57 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004721/0.4572, allocations: 232.9 kB / 0.5538 GB, free: 7.414 MB / 398.1 MB Notification: Performance of pre-optimization done (n=31): time 4.909e-06/0.4572, allocations: 3.984 kB / 0.5538 GB, free: 7.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008889/0.4581, allocations: 363.8 kB / 0.5542 GB, free: 7.234 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.059e-05/0.4582, allocations: 56.5 kB / 0.5542 GB, free: 7.172 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003644/0.4586, allocations: 237.8 kB / 0.5544 GB, free: 6.996 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.974e-05/0.4586, allocations: 37.08 kB / 0.5545 GB, free: 6.957 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002354/0.4588, allocations: 181 kB / 0.5546 GB, free: 6.793 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001087/0.4589, allocations: 98.44 kB / 0.5547 GB, free: 6.707 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001365/0.4591, allocations: 77.98 kB / 0.5548 GB, free: 6.648 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001969/0.4593, allocations: 337.6 kB / 0.5551 GB, free: 6.316 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002304/0.4595, allocations: 84.42 kB / 0.5552 GB, free: 6.281 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003427/0.4599, allocations: 225.4 kB / 0.5554 GB, free: 6.062 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005956/0.4604, allocations: 348.5 kB / 0.5558 GB, free: 5.777 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.628e-06/0.4605, allocations: 1.094 kB / 0.5558 GB, free: 5.777 MB / 398.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.000729/0.4612, allocations: 374.9 kB / 0.5561 GB, free: 5.512 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.465e-05/0.4612, allocations: 8 kB / 0.5561 GB, free: 5.504 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.111e-05/0.4612, allocations: 4 kB / 0.5561 GB, free: 5.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.847e-05/0.4612, allocations: 8 kB / 0.5561 GB, free: 5.492 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003014/0.4615, allocations: 75.83 kB / 0.5562 GB, free: 5.418 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.175e-05/0.4616, allocations: 4 kB / 0.5562 GB, free: 5.414 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001871/0.4617, allocations: 40.17 kB / 0.5563 GB, free: 5.375 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.917e-05/0.4618, allocations: 20.09 kB / 0.5563 GB, free: 5.355 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.0001967/0.462, allocations: 171.7 kB / 0.5564 GB, free: 5.18 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.948e-05/0.462, allocations: 31.75 kB / 0.5565 GB, free: 5.148 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006889/0.4627, allocations: 320.3 kB / 0.5568 GB, free: 4.832 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.125e-06/0.4627, allocations: 7.984 kB / 0.5568 GB, free: 4.824 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.4627, allocations: 0 / 0.5568 GB, free: 4.824 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.4627, allocations: 144 / 0.5568 GB, free: 4.824 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00106/0.4638, allocations: 0.7206 MB / 0.5575 GB, free: 4.047 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.4638, allocations: 0 / 0.5575 GB, free: 4.047 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002485/0.464, allocations: 47.91 kB / 0.5575 GB, free: 4 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.439e-06/0.464, allocations: 4 kB / 0.5575 GB, free: 3.996 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.251e-05/0.4641, allocations: 11.98 kB / 0.5575 GB, free: 3.984 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.4641, allocations: 0 / 0.5575 GB, free: 3.984 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.4641, allocations: 8 kB / 0.5576 GB, free: 3.977 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009624/0.465, allocations: 0.5151 MB / 0.5581 GB, free: 3.445 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001093/0.4652, allocations: 108.9 kB / 0.5582 GB, free: 3.32 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.863e-05/0.4652, allocations: 12.06 kB / 0.5582 GB, free: 3.309 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001688/0.4654, allocations: 15.98 kB / 0.5582 GB, free: 3.293 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.08e-05/0.4655, allocations: 19.97 kB / 0.5582 GB, free: 3.273 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-05/0.4655, allocations: 11.98 kB / 0.5582 GB, free: 3.262 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002189/0.4657, allocations: 172.5 kB / 0.5584 GB, free: 3.09 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4657, allocations: 0 / 0.5584 GB, free: 3.09 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004344/0.4662, allocations: 67.84 kB / 0.5584 GB, free: 3.023 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.0002102/0.4664, allocations: 115.2 kB / 0.5586 GB, free: 2.898 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006296/0.467, allocations: 251.5 kB / 0.5588 GB, free: 2.652 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.467, allocations: 0.9375 kB / 0.5588 GB, free: 2.652 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00027/0.4673, allocations: 127.8 kB / 0.5589 GB, free: 2.527 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003846/0.4677, allocations: 36.36 kB / 0.559 GB, free: 2.492 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001295/0.4689, allocations: 0.6058 MB / 0.5595 GB, free: 1.855 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004717/0.4694, allocations: 0.7803 MB / 0.5603 GB, free: 1.051 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001594/0.4696, allocations: 43.22 kB / 0.5603 GB, free: 1.012 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.717e-05/0.4697, allocations: 35.42 kB / 0.5604 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of SimCode: time 9.52e-07/0.4697, allocations: 192 / 0.5604 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of Templates: time 0.007402/0.4771, allocations: 2.645 MB / 0.563 GB, free: 14.34 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Mean.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.4186767833307385]