Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_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.001086/0.001086, allocations: 88.73 kB / 21.5 MB, free: 2.984 MB / 18.57 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.001311/0.001311, allocations: 162.2 kB / 24.91 MB, free: 8.766 MB / 18.57 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 0.9902/0.9902, allocations: 177 MB / 205.2 MB, free: 5.441 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2915/0.2915, allocations: 34.86 MB / 296.6 MB, free: 0.5273 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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|yMean|yRectifiedMean|yRootMeanSquare|yHarmonicCos|yHarmonicSin|yHarmonicAbs|yHarmonicArg",fileNamePrefix="ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.Mean") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.913e-06/1.913e-06, allocations: 0 / 325.9 MB, free: 7.137 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.159e-05/2.35e-05, allocations: 2.312 kB / 325.9 MB, free: 7.133 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003872/0.003895, allocations: 2.291 MB / 328.2 MB, free: 4.828 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001833/0.005728, allocations: 0.9115 MB / 329.1 MB, free: 3.91 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001636/0.005892, allocations: 7.938 kB / 329.2 MB, free: 3.902 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001539/0.006046, allocations: 35.53 kB / 329.2 MB, free: 3.867 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002584/0.006304, allocations: 79.31 kB / 329.3 MB, free: 3.789 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004176/0.006722, allocations: 179.5 kB / 329.4 MB, free: 3.613 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004532/0.007175, allocations: 399.4 kB / 329.8 MB, free: 3.223 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002562/0.007431, allocations: 95.44 kB / 329.9 MB, free: 3.129 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004019/0.007833, allocations: 231.4 kB / 330.1 MB, free: 2.902 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002521/0.008085, allocations: 115.6 kB / 330.3 MB, free: 2.789 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.846e-05/0.008154, allocations: 43.98 kB / 330.3 MB, free: 2.746 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001345/0.008288, allocations: 51.92 kB / 330.4 MB, free: 2.695 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.376e-05/0.008382, allocations: 91.61 kB / 330.4 MB, free: 2.605 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001313/0.008513, allocations: 111.7 kB / 330.6 MB, free: 2.496 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004169/0.00893, allocations: 282.9 kB / 330.8 MB, free: 2.219 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.964e-06/0.008932, allocations: 0 / 330.8 MB, free: 2.219 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.81e-07/0.008933, allocations: 0 / 330.8 MB, free: 2.219 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.115e-06/0.008941, allocations: 4 kB / 330.8 MB, free: 2.215 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.0009716/0.009913, allocations: 0.5585 MB / 331.4 MB, free: 1.633 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.644e-05/0.009949, allocations: 8.031 kB / 331.4 MB, free: 1.625 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004191/0.01037, allocations: 88.8 kB / 331.5 MB, free: 1.539 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003778/0.01075, allocations: 241.7 kB / 331.7 MB, free: 1.281 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.149e-05/0.01078, allocations: 25.03 kB / 331.7 MB, free: 1.258 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.67e-05/0.01083, allocations: 44.3 kB / 331.8 MB, free: 1.215 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000341/0.01118, allocations: 191.3 kB / 332 MB, free: 1.012 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.877e-05/0.01119, allocations: 192 / 332 MB, free: 1.012 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.223e-05/0.01123, allocations: 20.11 kB / 332 MB, free: 0.9922 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.08e-05/0.01124, allocations: 8 kB / 332 MB, free: 0.9844 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001482/0.01139, allocations: 56.56 kB / 332.1 MB, free: 0.9297 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001039/0.01242, allocations: 0.5073 MB / 332.6 MB, free: 412 kB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002487/0.01267, allocations: 116.4 kB / 332.7 MB, free: 292 kB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.853e-05/0.01275, allocations: 36.84 kB / 332.7 MB, free: 252 kB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.617e-05/0.01278, allocations: 8 kB / 332.7 MB, free: 244 kB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002587/0.01304, allocations: 167.2 kB / 332.9 MB, free: 64 kB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 2.054e-06/0.01304, allocations: 3.938 kB / 332.9 MB, free: 60 kB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.0003614/0.0134, allocations: 166.4 kB / 333.1 MB, free: 15.89 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.017e-05/0.01345, allocations: 67.34 kB / 333.1 MB, free: 15.81 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002121/0.01366, allocations: 247 kB / 333.4 MB, free: 15.55 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.318e-05/0.0137, allocations: 37.7 kB / 333.4 MB, free: 15.51 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.58e-05/0.01379, allocations: 161.1 kB / 333.6 MB, free: 15.35 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.233e-05/0.01387, allocations: 103.1 kB / 333.7 MB, free: 15.25 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.962e-05/0.01394, allocations: 74.02 kB / 333.7 MB, free: 15.17 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.58e-05/0.01404, allocations: 346.7 kB / 334.1 MB, free: 14.82 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.276e-05/0.01408, allocations: 28.73 kB / 334.1 MB, free: 14.79 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001012/0.01418, allocations: 170.5 kB / 334.3 MB, free: 14.57 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001938/0.01438, allocations: 253.6 kB / 334.5 MB, free: 14.26 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.01438, allocations: 0 / 334.5 MB, free: 14.26 MB / 314.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0002237/0.0146, allocations: 233.1 kB / 334.7 MB, free: 14.02 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/0.01462, allocations: 11.83 kB / 334.7 MB, free: 14.02 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.304e-05/0.01463, allocations: 4 kB / 334.8 MB, free: 14.01 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.01464, allocations: 4 kB / 334.8 MB, free: 14.01 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001804/0.01482, allocations: 83.89 kB / 334.8 MB, free: 13.93 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.518e-06/0.01483, allocations: 16.34 kB / 334.9 MB, free: 13.91 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.093e-05/0.01492, allocations: 31.83 kB / 334.9 MB, free: 13.88 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.499e-05/0.01493, allocations: 16 kB / 334.9 MB, free: 13.86 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 9.347e-05/0.01502, allocations: 140.5 kB / 335 MB, free: 13.71 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.681e-05/0.01505, allocations: 27.97 kB / 335.1 MB, free: 13.69 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002015/0.01525, allocations: 171.8 kB / 335.2 MB, free: 13.51 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.01526, allocations: 4 kB / 335.2 MB, free: 13.5 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.01526, allocations: 7.938 kB / 335.2 MB, free: 13.5 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.01526, allocations: 4 kB / 335.2 MB, free: 13.49 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003074/0.01557, allocations: 394.9 kB / 335.6 MB, free: 13.08 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.01557, allocations: 0 / 335.6 MB, free: 13.08 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001221/0.0157, allocations: 43.97 kB / 335.7 MB, free: 13.04 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.0157, allocations: 0 / 335.7 MB, free: 13.04 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.677e-05/0.01571, allocations: 11.98 kB / 335.7 MB, free: 13.03 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.01572, allocations: 0 / 335.7 MB, free: 13.03 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.01572, allocations: 3.938 kB / 335.7 MB, free: 13.02 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002711/0.01599, allocations: 306.5 kB / 336 MB, free: 12.71 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.558e-05/0.01601, allocations: 35.75 kB / 336 MB, free: 12.67 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.85e-05/0.01604, allocations: 12 kB / 336 MB, free: 12.66 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.444e-05/0.01612, allocations: 11.98 kB / 336.1 MB, free: 12.65 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.958e-05/0.01617, allocations: 27.89 kB / 336.1 MB, free: 12.62 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.237e-05/0.01618, allocations: 7.984 kB / 336.1 MB, free: 12.61 MB / 314.7 MB Notification: Performance of sorting global known variables: time 6.186e-05/0.01624, allocations: 88.62 kB / 336.2 MB, free: 12.53 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01624, allocations: 0 / 336.2 MB, free: 12.53 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002106/0.01645, allocations: 75.84 kB / 336.2 MB, free: 12.45 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 9.083e-05/0.01654, allocations: 95.08 kB / 336.3 MB, free: 12.36 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001826/0.01673, allocations: 149.3 kB / 336.5 MB, free: 12.21 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/0.01673, allocations: 4 kB / 336.5 MB, free: 12.2 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 8.083e-05/0.01681, allocations: 76.62 kB / 336.6 MB, free: 12.12 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001968/0.01701, allocations: 47.58 kB / 336.6 MB, free: 12.08 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008263/0.01784, allocations: 0.5945 MB / 337.2 MB, free: 11.45 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.36e-05/0.0179, allocations: 97.53 kB / 337.3 MB, free: 11.34 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 8.289e-05/0.01798, allocations: 38.97 kB / 337.3 MB, free: 11.3 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001178/0.0181, allocations: 103.3 kB / 337.4 MB, free: 11.2 MB / 314.7 MB Notification: Performance of SimCode: time 7.61e-07/0.0181, allocations: 0 / 337.4 MB, free: 11.2 MB / 314.7 MB Notification: Performance of Templates: time 0.004988/0.02309, allocations: 2.927 MB / 340.4 MB, free: 8.348 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.Mean.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_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: 2.9060388542711735]