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.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.001656/0.001656, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001498/0.001498, allocations: 208.1 kB / 23.73 MB, free: 4.387 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.594/1.594, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.2715/0.2715, allocations: 44.93 MB / 358.8 MB, free: 6.062 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.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|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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002129/0.002129, allocations: 63.91 kB / 0.4935 GB, free: 10.05 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3949/0.3971, allocations: 65.48 MB / 0.5574 GB, free: 7.34 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.005137/0.4022, allocations: 2.179 MB / 0.5596 GB, free: 5.148 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002256/0.4045, allocations: 0.8579 MB / 0.5604 GB, free: 4.285 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001815/0.4046, allocations: 11.88 kB / 0.5604 GB, free: 4.273 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001799/0.4048, allocations: 39.53 kB / 0.5605 GB, free: 4.234 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003173/0.4051, allocations: 71.38 kB / 0.5605 GB, free: 4.164 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006116/0.4058, allocations: 183.6 kB / 0.5607 GB, free: 3.984 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006039/0.4064, allocations: 387 kB / 0.5611 GB, free: 3.605 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003031/0.4067, allocations: 88.58 kB / 0.5612 GB, free: 3.516 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000373/0.407, allocations: 163.3 kB / 0.5613 GB, free: 3.355 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003116/0.4073, allocations: 143.2 kB / 0.5615 GB, free: 3.215 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.863e-05/0.4074, allocations: 36 kB / 0.5615 GB, free: 3.18 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001416/0.4076, allocations: 63.86 kB / 0.5615 GB, free: 3.117 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001244/0.4077, allocations: 83.75 kB / 0.5616 GB, free: 3.035 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00023/0.4079, allocations: 147.2 kB / 0.5618 GB, free: 2.891 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006798/0.4086, allocations: 404.9 kB / 0.5622 GB, free: 2.5 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.4086, allocations: 4 kB / 0.5622 GB, free: 2.496 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.4086, allocations: 0 / 0.5622 GB, free: 2.496 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.864e-06/0.4086, allocations: 0 / 0.5622 GB, free: 2.496 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.001799/0.4104, allocations: 0.7345 MB / 0.5629 GB, free: 1.715 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.4105, allocations: 12.03 kB / 0.5629 GB, free: 1.703 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006689/0.4111, allocations: 80.61 kB / 0.563 GB, free: 1.625 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007467/0.4119, allocations: 291 kB / 0.5632 GB, free: 1.316 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.034e-05/0.4119, allocations: 21.03 kB / 0.5633 GB, free: 1.297 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.987e-05/0.412, allocations: 44.31 kB / 0.5633 GB, free: 1.254 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007566/0.4128, allocations: 266.2 kB / 0.5636 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.717e-05/0.4128, allocations: 7.984 kB / 0.5636 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.56e-05/0.4128, allocations: 15.94 kB / 0.5636 GB, free: 0.9648 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.024e-05/0.4128, allocations: 4 kB / 0.5636 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006389/0.4135, allocations: 190.5 kB / 0.5638 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00183/0.4153, allocations: 0.6721 MB / 0.5644 GB, free: 68 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006138/0.4159, allocations: 182.9 kB / 0.5646 GB, free: 15.88 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003026/0.4162, allocations: 96.8 kB / 0.5647 GB, free: 15.78 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.473e-05/0.4163, allocations: 4 kB / 0.5647 GB, free: 15.77 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006032/0.4169, allocations: 239.5 kB / 0.5649 GB, free: 15.53 MB / 414.1 MB Notification: Performance of pre-optimization done (n=31): time 2.706e-06/0.4169, allocations: 4 kB / 0.5649 GB, free: 15.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=31): time 0.001193/0.4181, allocations: 373.3 kB / 0.5653 GB, free: 15.15 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.357e-05/0.4181, allocations: 59.41 kB / 0.5653 GB, free: 15.08 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003994/0.4185, allocations: 260.2 kB / 0.5656 GB, free: 14.82 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.241e-05/0.4186, allocations: 41.69 kB / 0.5656 GB, free: 14.77 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000188/0.4188, allocations: 180.7 kB / 0.5658 GB, free: 14.59 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001267/0.4189, allocations: 107 kB / 0.5659 GB, free: 14.49 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001613/0.4191, allocations: 70.06 kB / 0.566 GB, free: 14.41 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002147/0.4193, allocations: 350.8 kB / 0.5663 GB, free: 14.06 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002961/0.4196, allocations: 88.7 kB / 0.5664 GB, free: 13.98 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004685/0.42, allocations: 222.6 kB / 0.5666 GB, free: 13.7 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000785/0.4208, allocations: 352.7 kB / 0.5669 GB, free: 13.29 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.4208, allocations: 0 / 0.5669 GB, free: 13.29 MB / 414.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.00101/0.4218, allocations: 384.8 kB / 0.5673 GB, free: 12.91 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.688e-05/0.4219, allocations: 4.469 kB / 0.5673 GB, free: 12.91 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.755e-05/0.4219, allocations: 16 kB / 0.5673 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.538e-05/0.4219, allocations: 4 kB / 0.5673 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004478/0.4224, allocations: 75.89 kB / 0.5674 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.062e-05/0.4224, allocations: 11.94 kB / 0.5674 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002632/0.4227, allocations: 35.77 kB / 0.5674 GB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.877e-05/0.4227, allocations: 16 kB / 0.5675 GB, free: 12.75 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.0003022/0.423, allocations: 170.7 kB / 0.5676 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.43e-05/0.4231, allocations: 31.75 kB / 0.5676 GB, free: 12.54 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009757/0.4241, allocations: 328.3 kB / 0.568 GB, free: 12.21 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.181e-05/0.4241, allocations: 7.984 kB / 0.568 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.4241, allocations: 96 / 0.568 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.4241, allocations: 3.938 kB / 0.568 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001379/0.4255, allocations: 0.615 MB / 0.5686 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.157e-06/0.4255, allocations: 0 / 0.5686 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003575/0.4258, allocations: 51.89 kB / 0.5686 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.4258, allocations: 0 / 0.5686 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.875e-05/0.4259, allocations: 8 kB / 0.5686 GB, free: 11.49 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.4259, allocations: 0 / 0.5686 GB, free: 11.49 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.4259, allocations: 0 / 0.5686 GB, free: 11.49 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001491/0.4274, allocations: 0.5311 MB / 0.5691 GB, free: 10.94 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.628e-05/0.4274, allocations: 35.73 kB / 0.5692 GB, free: 10.91 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.256e-05/0.4275, allocations: 16 kB / 0.5692 GB, free: 10.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002381/0.4277, allocations: 15.98 kB / 0.5692 GB, free: 10.88 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001153/0.4279, allocations: 23.95 kB / 0.5692 GB, free: 10.85 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.684e-05/0.4279, allocations: 8 kB / 0.5692 GB, free: 10.84 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003051/0.4282, allocations: 191.1 kB / 0.5694 GB, free: 10.66 MB / 414.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.4282, allocations: 0 / 0.5694 GB, free: 10.66 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0006079/0.4288, allocations: 75.83 kB / 0.5695 GB, free: 10.58 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.0002025/0.429, allocations: 116.9 kB / 0.5696 GB, free: 10.46 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0007688/0.4298, allocations: 251.6 kB / 0.5699 GB, free: 10.21 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.4298, allocations: 0 / 0.5699 GB, free: 10.21 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003428/0.4301, allocations: 116.8 kB / 0.57 GB, free: 10.1 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006168/0.4307, allocations: 53.02 kB / 0.57 GB, free: 10.05 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001641/0.4324, allocations: 0.6216 MB / 0.5706 GB, free: 9.402 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000277/0.4327, allocations: 189.9 kB / 0.5708 GB, free: 9.195 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002064/0.4329, allocations: 42.95 kB / 0.5708 GB, free: 9.156 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001219/0.433, allocations: 31.44 kB / 0.5709 GB, free: 9.125 MB / 414.1 MB Notification: Performance of SimCode: time 6.22e-07/0.433, allocations: 0 / 0.5709 GB, free: 9.125 MB / 414.1 MB Notification: Performance of Templates: time 0.01096/0.444, allocations: 3.035 MB / 0.5738 GB, free: 6.133 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.517621677368879]