Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001366/0.001366, allocations: 113.1 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001556/0.001556, allocations: 214.4 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.533/1.533, allocations: 230.6 MB / 257.5 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.3106/0.3106, allocations: 46.93 MB / 360.9 MB, free: 4.266 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+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|yMean|yRectifiedMean|yRootMeanSquare|yHarmonicCos|yHarmonicSin|yHarmonicAbs|yHarmonicArg",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|yMean|yRectifiedMean|yRootMeanSquare|yHarmonicCos|yHarmonicSin|yHarmonicAbs|yHarmonicArg",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00211/0.00211, allocations: 59.91 kB / 0.4966 GB, free: 7.406 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4154/0.4175, allocations: 66.04 MB / 0.5611 GB, free: 4.434 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.004506/0.422, allocations: 2.322 MB / 0.5634 GB, free: 2.098 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00182/0.4239, allocations: 0.9163 MB / 0.5643 GB, free: 1.176 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001634/0.424, allocations: 11.94 kB / 0.5643 GB, free: 1.164 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001746/0.4242, allocations: 35.53 kB / 0.5643 GB, free: 1.129 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002767/0.4245, allocations: 75.31 kB / 0.5644 GB, free: 1.055 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004665/0.4249, allocations: 179.7 kB / 0.5646 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000552/0.4255, allocations: 394.9 kB / 0.565 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002849/0.4258, allocations: 96.58 kB / 0.565 GB, free: 404 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003382/0.4261, allocations: 167.3 kB / 0.5652 GB, free: 236 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002976/0.4264, allocations: 167.1 kB / 0.5654 GB, free: 68 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001152/0.4265, allocations: 36 kB / 0.5654 GB, free: 32 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001438/0.4267, allocations: 52.03 kB / 0.5655 GB, free: 15.98 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.494e-05/0.4268, allocations: 83.66 kB / 0.5655 GB, free: 15.9 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001992/0.427, allocations: 179 kB / 0.5657 GB, free: 15.72 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005313/0.4275, allocations: 400.9 kB / 0.5661 GB, free: 15.34 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.4275, allocations: 4 kB / 0.5661 GB, free: 15.33 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.4275, allocations: 0 / 0.5661 GB, free: 15.33 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.433e-05/0.4275, allocations: 0 / 0.5661 GB, free: 15.33 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.001395/0.4289, allocations: 0.7345 MB / 0.5668 GB, free: 14.55 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.446e-05/0.429, allocations: 12.03 kB / 0.5668 GB, free: 14.54 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004765/0.4294, allocations: 84.59 kB / 0.5669 GB, free: 14.46 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006245/0.4301, allocations: 299 kB / 0.5672 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.392e-05/0.4301, allocations: 21.03 kB / 0.5672 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.753e-05/0.4302, allocations: 40.33 kB / 0.5672 GB, free: 14.08 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005635/0.4307, allocations: 270.2 kB / 0.5675 GB, free: 13.81 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.047e-05/0.4307, allocations: 4 kB / 0.5675 GB, free: 13.81 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.506e-05/0.4308, allocations: 19.94 kB / 0.5675 GB, free: 13.79 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.326e-06/0.4308, allocations: 4 kB / 0.5675 GB, free: 13.79 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004389/0.4312, allocations: 194.4 kB / 0.5677 GB, free: 13.59 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001462/0.4327, allocations: 0.7886 MB / 0.5685 GB, free: 12.76 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004384/0.4331, allocations: 186.8 kB / 0.5687 GB, free: 12.57 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002061/0.4333, allocations: 92.75 kB / 0.5687 GB, free: 12.47 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.902e-05/0.4334, allocations: 7.938 kB / 0.5688 GB, free: 12.46 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004443/0.4338, allocations: 235.6 kB / 0.569 GB, free: 12.22 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 1.823e-06/0.4338, allocations: 0 / 0.569 GB, free: 12.22 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.0009468/0.4348, allocations: 373.3 kB / 0.5693 GB, free: 11.85 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.302e-05/0.4348, allocations: 63.39 kB / 0.5694 GB, free: 11.78 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003762/0.4352, allocations: 260.2 kB / 0.5696 GB, free: 11.52 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.27e-05/0.4352, allocations: 41.7 kB / 0.5697 GB, free: 11.47 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001548/0.4354, allocations: 180.7 kB / 0.5699 GB, free: 11.29 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001084/0.4355, allocations: 103.2 kB / 0.57 GB, free: 11.19 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001168/0.4356, allocations: 74.05 kB / 0.57 GB, free: 11.11 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001794/0.4358, allocations: 346.8 kB / 0.5704 GB, free: 10.76 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000223/0.436, allocations: 92.69 kB / 0.5704 GB, free: 10.67 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003284/0.4364, allocations: 228.8 kB / 0.5707 GB, free: 10.39 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005435/0.4369, allocations: 344.8 kB / 0.571 GB, free: 9.988 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.59e-06/0.4369, allocations: 4 kB / 0.571 GB, free: 9.984 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006884/0.4376, allocations: 385 kB / 0.5714 GB, free: 9.602 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.4376, allocations: 8 kB / 0.5714 GB, free: 9.594 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.358e-06/0.4376, allocations: 4 kB / 0.5714 GB, free: 9.59 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.22e-05/0.4376, allocations: 7.984 kB / 0.5714 GB, free: 9.582 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003032/0.4379, allocations: 75.84 kB / 0.5715 GB, free: 9.508 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.562e-05/0.438, allocations: 11.98 kB / 0.5715 GB, free: 9.496 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001777/0.4381, allocations: 35.78 kB / 0.5715 GB, free: 9.461 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.315e-05/0.4382, allocations: 16.22 kB / 0.5715 GB, free: 9.445 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.0002066/0.4384, allocations: 173.6 kB / 0.5717 GB, free: 9.266 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.141e-05/0.4384, allocations: 31.75 kB / 0.5717 GB, free: 9.234 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006748/0.4391, allocations: 324.3 kB / 0.572 GB, free: 8.906 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.4391, allocations: 4.141 kB / 0.572 GB, free: 8.902 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.4391, allocations: 0 / 0.572 GB, free: 8.902 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.4391, allocations: 3.984 kB / 0.572 GB, free: 8.898 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001/0.4401, allocations: 0.6886 MB / 0.5727 GB, free: 8.16 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.4401, allocations: 0 / 0.5727 GB, free: 8.16 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002537/0.4404, allocations: 51.91 kB / 0.5727 GB, free: 8.109 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.464e-06/0.4404, allocations: 4 kB / 0.5728 GB, free: 8.105 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.832e-05/0.4404, allocations: 15.98 kB / 0.5728 GB, free: 8.09 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.4404, allocations: 0 / 0.5728 GB, free: 8.09 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.4404, allocations: 0 / 0.5728 GB, free: 8.09 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009264/0.4413, allocations: 0.531 MB / 0.5733 GB, free: 7.543 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.465e-05/0.4414, allocations: 27.75 kB / 0.5733 GB, free: 7.516 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.492e-05/0.4414, allocations: 16 kB / 0.5733 GB, free: 7.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000173/0.4416, allocations: 16.08 kB / 0.5733 GB, free: 7.484 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.847e-05/0.4417, allocations: 27.89 kB / 0.5734 GB, free: 7.457 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.907e-05/0.4417, allocations: 15.98 kB / 0.5734 GB, free: 7.441 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002058/0.4419, allocations: 191.1 kB / 0.5736 GB, free: 7.254 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4419, allocations: 0 / 0.5736 GB, free: 7.254 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003972/0.4423, allocations: 67.84 kB / 0.5736 GB, free: 7.188 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.0001453/0.4425, allocations: 119.2 kB / 0.5737 GB, free: 7.062 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005729/0.443, allocations: 251.6 kB / 0.574 GB, free: 6.816 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.443, allocations: 0 / 0.574 GB, free: 6.816 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002457/0.4433, allocations: 116.8 kB / 0.5741 GB, free: 6.703 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003751/0.4436, allocations: 48.19 kB / 0.5741 GB, free: 6.66 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001147/0.4448, allocations: 0.6216 MB / 0.5747 GB, free: 6.012 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004728/0.4453, allocations: 0.7919 MB / 0.5755 GB, free: 5.191 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000139/0.4454, allocations: 43.23 kB / 0.5756 GB, free: 5.148 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.805e-05/0.4455, allocations: 35.42 kB / 0.5756 GB, free: 5.113 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.4455, allocations: 0 / 0.5756 GB, free: 5.113 MB / 414.1 MB Notification: Performance of Templates: time 0.007468/0.453, allocations: 2.929 MB / 0.5785 GB, free: 2.199 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/Mean/Mean.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.665852383011952]