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.001046/0.001046, allocations: 80.92 kB / 21.49 MB, free: 2.996 MB / 18.57 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.001295/0.001295, allocations: 170.6 kB / 24.91 MB, free: 8.723 MB / 18.57 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.006/1.006, allocations: 177.1 MB / 205.3 MB, free: 5.117 MB / 186.7 MB " [Timeout remaining time 179] 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.2831/0.2831, allocations: 34.26 MB / 296.1 MB, free: 0.6758 MB / 266.7 MB " [Timeout remaining time 180] 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 1.934e-06/1.934e-06, allocations: 0 / 325.3 MB, free: 7.691 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.745e-05/2.939e-05, allocations: 5.891 kB / 325.3 MB, free: 7.688 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.0102/0.01023, allocations: 2.298 MB / 327.6 MB, free: 5.375 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002169/0.0124, allocations: 0.9076 MB / 328.5 MB, free: 4.461 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002069/0.0126, allocations: 7.938 kB / 328.5 MB, free: 4.453 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001637/0.01277, allocations: 35.53 kB / 328.5 MB, free: 4.418 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002781/0.01305, allocations: 75.25 kB / 328.6 MB, free: 4.344 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005972/0.01364, allocations: 179.5 kB / 328.8 MB, free: 4.168 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005243/0.01417, allocations: 402.8 kB / 329.2 MB, free: 3.773 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002455/0.01441, allocations: 95.44 kB / 329.3 MB, free: 3.68 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004314/0.01484, allocations: 223.4 kB / 329.5 MB, free: 3.461 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002394/0.01508, allocations: 119.6 kB / 329.6 MB, free: 3.344 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.974e-05/0.01515, allocations: 36 kB / 329.6 MB, free: 3.309 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001343/0.01529, allocations: 59.91 kB / 329.7 MB, free: 3.25 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.525e-05/0.01537, allocations: 91.61 kB / 329.8 MB, free: 3.16 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001273/0.0155, allocations: 112.3 kB / 329.9 MB, free: 3.051 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004247/0.01593, allocations: 274.9 kB / 330.2 MB, free: 2.781 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.116e-06/0.01593, allocations: 7.984 kB / 330.2 MB, free: 2.773 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.374e-06/0.01594, allocations: 0 / 330.2 MB, free: 2.773 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.507e-05/0.01595, allocations: 0 / 330.2 MB, free: 2.773 MB / 298.7 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.0009516/0.0169, allocations: 0.5585 MB / 330.7 MB, free: 2.191 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.01694, allocations: 12.03 kB / 330.7 MB, free: 2.18 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004153/0.01736, allocations: 84.8 kB / 330.8 MB, free: 2.098 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000371/0.01773, allocations: 253.6 kB / 331.1 MB, free: 1.828 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.411e-05/0.01776, allocations: 25.03 kB / 331.1 MB, free: 1.805 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.027e-05/0.01781, allocations: 32.38 kB / 331.1 MB, free: 1.773 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003356/0.01815, allocations: 195.3 kB / 331.3 MB, free: 1.57 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.753e-05/0.01817, allocations: 192 / 331.3 MB, free: 1.57 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.865e-05/0.0182, allocations: 16.12 kB / 331.3 MB, free: 1.555 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.977e-06/0.0182, allocations: 8 kB / 331.3 MB, free: 1.547 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001489/0.01835, allocations: 64.55 kB / 331.4 MB, free: 1.484 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004132/0.02248, allocations: 0.5034 MB / 331.9 MB, free: 0.9609 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002828/0.02277, allocations: 114.4 kB / 332 MB, free: 0.8359 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.139e-05/0.02286, allocations: 40.84 kB / 332.1 MB, free: 0.793 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.172e-05/0.02289, allocations: 4 kB / 332.1 MB, free: 0.7891 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002787/0.02317, allocations: 168.4 kB / 332.2 MB, free: 0.6133 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 2.424e-06/0.02317, allocations: 0 / 332.2 MB, free: 0.6133 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.0003748/0.02355, allocations: 170.8 kB / 332.4 MB, free: 452 kB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.763e-05/0.02359, allocations: 67.34 kB / 332.5 MB, free: 372 kB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002071/0.0238, allocations: 247 kB / 332.7 MB, free: 112 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.461e-05/0.02384, allocations: 37.69 kB / 332.7 MB, free: 68 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001097/0.02395, allocations: 161.1 kB / 332.9 MB, free: 15.9 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.55e-05/0.02403, allocations: 99.14 kB / 333 MB, free: 15.8 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001061/0.02414, allocations: 78.02 kB / 333.1 MB, free: 15.72 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.02425, allocations: 346.7 kB / 333.4 MB, free: 15.38 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.6e-05/0.02433, allocations: 28.73 kB / 333.4 MB, free: 15.35 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000153/0.02448, allocations: 170.5 kB / 333.6 MB, free: 15.12 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003345/0.02782, allocations: 251.6 kB / 333.8 MB, free: 14.81 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.825e-06/0.02783, allocations: 4 kB / 333.8 MB, free: 14.81 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003963/0.02823, allocations: 227.2 kB / 334.1 MB, free: 14.58 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.02825, allocations: 12.06 kB / 334.1 MB, free: 14.57 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/0.02826, allocations: 4.141 kB / 334.1 MB, free: 14.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.276e-05/0.02828, allocations: 8 kB / 334.1 MB, free: 14.56 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003001/0.02858, allocations: 79.88 kB / 334.2 MB, free: 14.48 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.02859, allocations: 15.88 kB / 334.2 MB, free: 14.46 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000169/0.02876, allocations: 35.83 kB / 334.2 MB, free: 14.43 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.496e-05/0.02879, allocations: 12 kB / 334.2 MB, free: 14.42 MB / 314.7 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.0001645/0.02895, allocations: 144.5 kB / 334.4 MB, free: 14.27 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.487e-05/0.02901, allocations: 27.97 kB / 334.4 MB, free: 14.24 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003377/0.02934, allocations: 167.9 kB / 334.6 MB, free: 14.06 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.541e-06/0.02935, allocations: 4 kB / 334.6 MB, free: 14.06 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.02935, allocations: 3.938 kB / 334.6 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.189e-06/0.02936, allocations: 0 / 334.6 MB, free: 14.05 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005378/0.0299, allocations: 399.2 kB / 335 MB, free: 13.64 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.0299, allocations: 0 / 335 MB, free: 13.64 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002293/0.03013, allocations: 47.97 kB / 335 MB, free: 13.59 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.03013, allocations: 7.938 kB / 335 MB, free: 13.59 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.938e-05/0.03016, allocations: 11.98 kB / 335 MB, free: 13.57 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/0.03017, allocations: 4 kB / 335 MB, free: 13.57 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.03017, allocations: 3.938 kB / 335 MB, free: 13.57 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003455/0.03362, allocations: 302.3 kB / 335.3 MB, free: 13.25 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.354e-05/0.03367, allocations: 27.75 kB / 335.4 MB, free: 13.23 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.327e-05/0.03371, allocations: 8 kB / 335.4 MB, free: 13.22 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001334/0.03384, allocations: 11.98 kB / 335.4 MB, free: 13.21 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.887e-05/0.0339, allocations: 27.89 kB / 335.4 MB, free: 13.18 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.09e-05/0.03392, allocations: 11.98 kB / 335.4 MB, free: 13.17 MB / 314.7 MB Notification: Performance of sorting global known variables: time 9.468e-05/0.03402, allocations: 96.62 kB / 335.5 MB, free: 13.07 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.03402, allocations: 0 / 335.5 MB, free: 13.07 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003208/0.03434, allocations: 71.84 kB / 335.6 MB, free: 13 MB / 314.7 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.0001191/0.03446, allocations: 95.64 kB / 335.7 MB, free: 12.91 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002574/0.03472, allocations: 150.8 kB / 335.8 MB, free: 12.76 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.271e-06/0.03472, allocations: 8.062 kB / 335.8 MB, free: 12.75 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001063/0.03483, allocations: 80.84 kB / 335.9 MB, free: 12.67 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002695/0.0351, allocations: 41.23 kB / 336 MB, free: 12.62 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009482/0.03605, allocations: 0.5903 MB / 336.5 MB, free: 12 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.359e-05/0.03612, allocations: 101.5 kB / 336.6 MB, free: 11.88 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001078/0.03623, allocations: 34.97 kB / 336.7 MB, free: 11.85 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001379/0.03637, allocations: 107.3 kB / 336.8 MB, free: 11.75 MB / 314.7 MB Notification: Performance of SimCode: time 9.12e-07/0.03637, allocations: 0 / 336.8 MB, free: 11.75 MB / 314.7 MB Notification: Performance of Templates: time 0.007058/0.04342, allocations: 2.933 MB / 339.7 MB, free: 8.875 MB / 314.7 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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0626241909340024]