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.001074/0.001074, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001922/0.002996, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 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.00117/0.00117, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001493/0.002663, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 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.9639/0.9639, allocations: 177.4 MB / 189.9 MB, free: 4.844 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1348/1.099, allocations: 53.87 MB / 243.7 MB, free: 14.91 MB / 250.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.2712/0.2712, allocations: 34.86 MB / 279.3 MB, free: 14.92 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02891/0.3002, allocations: 13.23 MB / 292.6 MB, free: 6.48 MB / 282.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 2.034e-06/2.034e-06, allocations: 0 / 293.9 MB, free: 5.215 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.895e-05/3.099e-05, allocations: 3.516 kB / 293.9 MB, free: 5.211 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.00389/0.003921, allocations: 2.305 MB / 296.2 MB, free: 2.891 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001828/0.005749, allocations: 0.9115 MB / 297.1 MB, free: 1.973 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000191/0.00594, allocations: 7.938 kB / 297.1 MB, free: 1.965 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001111/0.006051, allocations: 39.53 kB / 297.1 MB, free: 1.926 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001909/0.006242, allocations: 71.27 kB / 297.2 MB, free: 1.855 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004422/0.006684, allocations: 179.5 kB / 297.4 MB, free: 1.68 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005058/0.00719, allocations: 390.8 kB / 297.7 MB, free: 1.297 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002155/0.007406, allocations: 95.45 kB / 297.8 MB, free: 1.207 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000429/0.007835, allocations: 267.9 kB / 298.1 MB, free: 0.9453 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002173/0.008052, allocations: 119.6 kB / 298.2 MB, free: 0.8281 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 5.697e-05/0.008109, allocations: 36 kB / 298.3 MB, free: 0.793 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001252/0.008234, allocations: 51.97 kB / 298.3 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001554/0.008389, allocations: 63.75 kB / 298.4 MB, free: 0.6797 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001119/0.008501, allocations: 87.75 kB / 298.5 MB, free: 0.5938 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003674/0.008869, allocations: 258.9 kB / 298.7 MB, free: 348 kB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.717e-05/0.008886, allocations: 4 kB / 298.7 MB, free: 344 kB / 282.7 MB Notification: Performance of FrontEnd: time 1.203e-06/0.008887, allocations: 0 / 298.7 MB, free: 344 kB / 282.7 MB Notification: Performance of Transformations before backend: time 1.933e-05/0.008906, allocations: 0 / 298.7 MB, free: 344 kB / 282.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.001062/0.009969, allocations: 0.6206 MB / 299.3 MB, free: 15.69 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.01001, allocations: 12.03 kB / 299.3 MB, free: 15.68 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004176/0.01043, allocations: 169.8 kB / 299.5 MB, free: 15.49 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003734/0.0108, allocations: 249.6 kB / 299.8 MB, free: 15.22 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.358e-05/0.01083, allocations: 29.02 kB / 299.8 MB, free: 15.2 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.434e-05/0.01089, allocations: 36.36 kB / 299.8 MB, free: 15.16 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003049/0.01119, allocations: 191.3 kB / 300 MB, free: 14.96 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.535e-05/0.01121, allocations: 192 / 300 MB, free: 14.96 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.732e-05/0.01123, allocations: 24.05 kB / 300 MB, free: 14.94 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/0.01124, allocations: 8 kB / 300 MB, free: 14.93 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001324/0.01138, allocations: 60.56 kB / 300.1 MB, free: 14.88 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001136/0.01251, allocations: 0.4918 MB / 300.6 MB, free: 14.36 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002422/0.01275, allocations: 125.8 kB / 300.7 MB, free: 14.23 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.147e-05/0.01283, allocations: 44.83 kB / 300.8 MB, free: 14.18 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.13e-05/0.01286, allocations: 4 kB / 300.8 MB, free: 14.18 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002592/0.01312, allocations: 163.2 kB / 300.9 MB, free: 14.01 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 2.455e-06/0.01312, allocations: 0 / 300.9 MB, free: 14.01 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.0003474/0.01347, allocations: 177.5 kB / 301.1 MB, free: 13.83 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.458e-05/0.01352, allocations: 59.34 kB / 301.1 MB, free: 13.76 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001903/0.01371, allocations: 250.9 kB / 301.4 MB, free: 13.5 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.163e-05/0.01374, allocations: 41.69 kB / 301.4 MB, free: 13.45 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.45e-05/0.01383, allocations: 157.2 kB / 301.6 MB, free: 13.3 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.629e-05/0.0139, allocations: 103.1 kB / 301.7 MB, free: 13.2 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.649e-05/0.01399, allocations: 74.03 kB / 301.8 MB, free: 13.12 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001028/0.01409, allocations: 346.7 kB / 302.1 MB, free: 12.77 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.496e-05/0.01415, allocations: 28.73 kB / 302.1 MB, free: 12.74 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001385/0.01429, allocations: 174.3 kB / 302.3 MB, free: 12.51 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002523/0.01454, allocations: 257 kB / 302.5 MB, free: 12.2 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.121e-06/0.01454, allocations: 4 kB / 302.5 MB, free: 12.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003048/0.01485, allocations: 226.7 kB / 302.8 MB, free: 11.97 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.01487, allocations: 12.06 kB / 302.8 MB, free: 11.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.01487, allocations: 4 kB / 302.8 MB, free: 11.96 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.01489, allocations: 8 kB / 302.8 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000246/0.01514, allocations: 91.83 kB / 302.9 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.144e-05/0.01515, allocations: 11.94 kB / 302.9 MB, free: 11.85 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001208/0.01527, allocations: 35.77 kB / 302.9 MB, free: 11.81 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.146e-05/0.01529, allocations: 12 kB / 302.9 MB, free: 11.8 MB / 298.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.000136/0.01543, allocations: 144.5 kB / 303.1 MB, free: 11.65 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.056e-05/0.01547, allocations: 31.97 kB / 303.1 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002857/0.01575, allocations: 164.5 kB / 303.3 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.01576, allocations: 4 kB / 303.3 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.01576, allocations: 3.938 kB / 303.3 MB, free: 11.44 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.311e-06/0.01577, allocations: 0 / 303.3 MB, free: 11.44 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008502/0.01662, allocations: 399 kB / 303.7 MB, free: 11.03 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.01662, allocations: 0 / 303.7 MB, free: 11.03 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001983/0.01682, allocations: 63.88 kB / 303.7 MB, free: 10.96 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.669e-05/0.01686, allocations: 31.75 kB / 303.8 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.628e-06/0.01686, allocations: 4 kB / 303.8 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.269e-05/0.01688, allocations: 7.938 kB / 303.8 MB, free: 10.92 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.829e-06/0.01689, allocations: 3.984 kB / 303.8 MB, free: 10.92 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.01689, allocations: 4 kB / 303.8 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000381/0.01727, allocations: 298.6 kB / 304.1 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.294e-05/0.01731, allocations: 8 kB / 304.1 MB, free: 10.6 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001323/0.01745, allocations: 8 kB / 304.1 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.117e-05/0.01751, allocations: 27.89 kB / 304.1 MB, free: 10.56 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.116e-05/0.01753, allocations: 11.98 kB / 304.1 MB, free: 10.55 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.906e-05/0.01763, allocations: 96.62 kB / 304.2 MB, free: 10.45 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.01763, allocations: 0 / 304.2 MB, free: 10.45 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003603/0.01799, allocations: 79.72 kB / 304.3 MB, free: 10.38 MB / 298.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.000127/0.01811, allocations: 92.34 kB / 304.4 MB, free: 10.28 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002527/0.01837, allocations: 150 kB / 304.5 MB, free: 10.13 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.125e-05/0.01838, allocations: 16.12 kB / 304.6 MB, free: 10.11 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.319e-05/0.01846, allocations: 80.62 kB / 304.6 MB, free: 10.03 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002174/0.01868, allocations: 69.75 kB / 304.7 MB, free: 9.965 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00144/0.02012, allocations: 0.5628 MB / 305.3 MB, free: 9.371 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.728e-05/0.02018, allocations: 97.53 kB / 305.4 MB, free: 9.25 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.934e-05/0.02027, allocations: 43.23 kB / 305.4 MB, free: 9.207 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001102/0.02038, allocations: 99.34 kB / 305.5 MB, free: 9.109 MB / 298.7 MB Notification: Performance of SimCode: time 7.51e-07/0.02038, allocations: 0 / 305.5 MB, free: 9.109 MB / 298.7 MB Notification: Performance of Templates: time 0.004808/0.02518, allocations: 2.988 MB / 308.5 MB, free: 6.191 MB / 298.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 -emit_protected -ignoreHideResult -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.9841219587251544]