Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001313/0.001313, allocations: 108.4 kB / 21.17 MB, free: 0.7852 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001478/0.001478, allocations: 217.3 kB / 24.47 MB, free: 4.359 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.515/1.515, allocations: 230.2 MB / 257.8 MB, free: 8.512 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2512/0.2512, allocations: 46.9 MB / 361.1 MB, free: 4.629 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002486/0.002486, allocations: 79.86 kB / 0.4967 GB, free: 7.832 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4022/0.4047, allocations: 65.99 MB / 0.5612 GB, free: 5.031 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.004453/0.4092, allocations: 2.338 MB / 0.5635 GB, free: 2.68 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001828/0.411, allocations: 0.9162 MB / 0.5644 GB, free: 1.758 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001481/0.4111, allocations: 4 kB / 0.5644 GB, free: 1.754 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001644/0.4113, allocations: 39.53 kB / 0.5644 GB, free: 1.715 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002567/0.4116, allocations: 71.31 kB / 0.5645 GB, free: 1.645 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004329/0.412, allocations: 179.7 kB / 0.5646 GB, free: 1.469 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004675/0.4125, allocations: 394.9 kB / 0.565 GB, free: 1.082 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002463/0.4127, allocations: 104 kB / 0.5651 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000254/0.413, allocations: 147.4 kB / 0.5653 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002426/0.4132, allocations: 171.1 kB / 0.5654 GB, free: 0.6719 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.144e-05/0.4133, allocations: 36 kB / 0.5655 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001027/0.4134, allocations: 48 kB / 0.5655 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.956e-05/0.4135, allocations: 87.67 kB / 0.5656 GB, free: 0.5039 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001754/0.4136, allocations: 175 kB / 0.5658 GB, free: 340 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005404/0.4142, allocations: 409.2 kB / 0.5661 GB, free: 15.93 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.4142, allocations: 0 / 0.5661 GB, free: 15.93 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.4142, allocations: 0 / 0.5661 GB, free: 15.93 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.39e-05/0.4142, allocations: 4 kB / 0.5662 GB, free: 15.93 MB / 414.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.001489/0.4157, allocations: 0.8057 MB / 0.5669 GB, free: 15.05 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.4157, allocations: 8.031 kB / 0.5669 GB, free: 15.05 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005216/0.4163, allocations: 84.61 kB / 0.567 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005958/0.4169, allocations: 356.1 kB / 0.5674 GB, free: 14.58 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.976e-05/0.4169, allocations: 20.94 kB / 0.5674 GB, free: 14.56 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.024e-05/0.417, allocations: 40.31 kB / 0.5674 GB, free: 14.52 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005851/0.4175, allocations: 273 kB / 0.5677 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.846e-05/0.4176, allocations: 0 / 0.5677 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.973e-05/0.4176, allocations: 11.98 kB / 0.5677 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.247e-06/0.4176, allocations: 8 kB / 0.5677 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004492/0.4181, allocations: 198.1 kB / 0.5679 GB, free: 14.03 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001547/0.4196, allocations: 0.8229 MB / 0.5687 GB, free: 13.15 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004437/0.42, allocations: 202.8 kB / 0.5689 GB, free: 12.95 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002069/0.4203, allocations: 84.81 kB / 0.569 GB, free: 12.86 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.974e-05/0.4203, allocations: 11.92 kB / 0.569 GB, free: 12.85 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005241/0.4208, allocations: 227.2 kB / 0.5692 GB, free: 12.61 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.983e-06/0.4208, allocations: 3.938 kB / 0.5692 GB, free: 12.61 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008759/0.4217, allocations: 373.8 kB / 0.5696 GB, free: 12.24 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.533e-05/0.4218, allocations: 55.41 kB / 0.5696 GB, free: 12.17 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002969/0.422, allocations: 271 kB / 0.5699 GB, free: 11.9 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.473e-05/0.4221, allocations: 41.69 kB / 0.5699 GB, free: 11.86 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001505/0.4222, allocations: 176.7 kB / 0.5701 GB, free: 11.68 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001113/0.4224, allocations: 107.1 kB / 0.5702 GB, free: 11.57 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001163/0.4225, allocations: 70.06 kB / 0.5702 GB, free: 11.5 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001816/0.4227, allocations: 346.8 kB / 0.5706 GB, free: 11.15 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002111/0.4229, allocations: 84.7 kB / 0.5707 GB, free: 11.07 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003403/0.4232, allocations: 241.5 kB / 0.5709 GB, free: 10.77 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005763/0.4238, allocations: 344.8 kB / 0.5712 GB, free: 10.38 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.4238, allocations: 0 / 0.5712 GB, free: 10.38 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006945/0.4245, allocations: 384.9 kB / 0.5716 GB, free: 9.992 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.4245, allocations: 4 kB / 0.5716 GB, free: 9.988 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.897e-06/0.4245, allocations: 4 kB / 0.5716 GB, free: 9.984 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.4245, allocations: 8 kB / 0.5716 GB, free: 9.977 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000303/0.4248, allocations: 79.83 kB / 0.5717 GB, free: 9.898 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.101e-05/0.4248, allocations: 4 kB / 0.5717 GB, free: 9.895 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001846/0.425, allocations: 44.14 kB / 0.5717 GB, free: 9.852 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.829e-05/0.4251, allocations: 16 kB / 0.5717 GB, free: 9.836 MB / 414.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.mean1.y_last,$PRE.harmonic.mean1.y_last,harmonic.mean2.y_last,$PRE.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.0001849/0.4252, allocations: 165.8 kB / 0.5719 GB, free: 9.664 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.566e-05/0.4253, allocations: 35.75 kB / 0.5719 GB, free: 9.629 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007587/0.4261, allocations: 328.3 kB / 0.5722 GB, free: 9.297 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.4261, allocations: 4 kB / 0.5722 GB, free: 9.293 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.4261, allocations: 0 / 0.5722 GB, free: 9.293 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.4261, allocations: 96 / 0.5722 GB, free: 9.293 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001034/0.4271, allocations: 0.7285 MB / 0.573 GB, free: 8.508 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.4271, allocations: 0 / 0.573 GB, free: 8.508 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002618/0.4274, allocations: 51.91 kB / 0.573 GB, free: 8.457 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.4274, allocations: 4 kB / 0.573 GB, free: 8.453 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.854e-05/0.4274, allocations: 11.98 kB / 0.573 GB, free: 8.441 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.4274, allocations: 4 kB / 0.573 GB, free: 8.438 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.4274, allocations: 0 / 0.573 GB, free: 8.438 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009592/0.4284, allocations: 0.5302 MB / 0.5735 GB, free: 7.891 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.755e-05/0.4284, allocations: 112.9 kB / 0.5737 GB, free: 7.762 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.061e-05/0.4285, allocations: 8 kB / 0.5737 GB, free: 7.754 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001734/0.4287, allocations: 11.98 kB / 0.5737 GB, free: 7.742 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.923e-05/0.4287, allocations: 23.97 kB / 0.5737 GB, free: 7.719 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.752e-05/0.4288, allocations: 19.92 kB / 0.5737 GB, free: 7.699 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001945/0.429, allocations: 186 kB / 0.5739 GB, free: 7.52 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.429, allocations: 0 / 0.5739 GB, free: 7.52 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003735/0.4293, allocations: 75.78 kB / 0.574 GB, free: 7.445 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,harmonic.mean2.y_last,harmonic.mean1.y_last,rootMeanSquare.mean.y_last,rectifiedMean.mean.y_last,mean.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.0001538/0.4295, allocations: 116.2 kB / 0.5741 GB, free: 7.32 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005559/0.43, allocations: 251.6 kB / 0.5743 GB, free: 7.074 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.43, allocations: 0.9375 kB / 0.5743 GB, free: 7.074 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000265/0.4303, allocations: 127.8 kB / 0.5744 GB, free: 6.949 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000368/0.4307, allocations: 36.88 kB / 0.5745 GB, free: 6.914 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001201/0.4319, allocations: 0.6212 MB / 0.5751 GB, free: 6.262 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005346/0.4324, allocations: 0.7959 MB / 0.5759 GB, free: 5.438 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001381/0.4326, allocations: 42.95 kB / 0.5759 GB, free: 5.395 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.951e-05/0.4326, allocations: 31.42 kB / 0.5759 GB, free: 5.363 MB / 414.1 MB Notification: Performance of SimCode: time 3.1e-07/0.4326, allocations: 0 / 0.5759 GB, free: 5.363 MB / 414.1 MB Notification: Performance of Templates: time 0.007468/0.4401, allocations: 2.852 MB / 0.5787 GB, free: 2.52 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_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.277665428817272]