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.001064/0.001064, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001576/0.00264, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.001041/0.001041, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001354/0.002395, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.039/1.039, allocations: 177.2 MB / 189.8 MB, free: 5.25 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1057/1.145, allocations: 53.65 MB / 243.4 MB, free: 15.52 MB / 250.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.262/0.262, allocations: 34.26 MB / 278.4 MB, free: 15.29 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02728/0.2893, allocations: 13.1 MB / 291.5 MB, free: 7.348 MB / 282.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.222e-06/1.222e-06, allocations: 0 / 292.8 MB, free: 6.223 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.447e-05/1.569e-05, allocations: 3.844 kB / 292.8 MB, free: 6.219 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002312/0.002328, allocations: 2.305 MB / 295.1 MB, free: 3.902 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.00117/0.003497, allocations: 0.9081 MB / 296 MB, free: 2.988 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000136/0.003633, allocations: 7.938 kB / 296.1 MB, free: 2.98 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 8.681e-05/0.00372, allocations: 43.53 kB / 296.1 MB, free: 2.938 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001333/0.003853, allocations: 71.31 kB / 296.2 MB, free: 2.867 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000314/0.004167, allocations: 195.4 kB / 296.4 MB, free: 2.676 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003029/0.00447, allocations: 378.9 kB / 296.7 MB, free: 2.305 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001708/0.004641, allocations: 91.44 kB / 296.8 MB, free: 2.219 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002998/0.004941, allocations: 279.9 kB / 297.1 MB, free: 1.945 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001569/0.005098, allocations: 115.6 kB / 297.2 MB, free: 1.832 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.165e-05/0.005139, allocations: 36 kB / 297.2 MB, free: 1.797 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.336e-05/0.005233, allocations: 48 kB / 297.3 MB, free: 1.75 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.513e-05/0.005288, allocations: 63.75 kB / 297.3 MB, free: 1.688 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.659e-05/0.005364, allocations: 87.8 kB / 297.4 MB, free: 1.602 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002666/0.005631, allocations: 254.9 kB / 297.7 MB, free: 1.352 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.151e-05/0.005643, allocations: 4 kB / 297.7 MB, free: 1.348 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.71e-07/0.005643, allocations: 0 / 297.7 MB, free: 1.348 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.959e-06/0.005653, allocations: 0 / 297.7 MB, free: 1.348 MB / 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.0006925/0.006346, allocations: 0.6323 MB / 298.3 MB, free: 0.6875 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.155e-05/0.006377, allocations: 8.625 kB / 298.3 MB, free: 0.6797 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003177/0.006695, allocations: 173.8 kB / 298.5 MB, free: 0.4922 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002716/0.006966, allocations: 245.7 kB / 298.7 MB, free: 236 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.531e-05/0.006992, allocations: 25.03 kB / 298.8 MB, free: 212 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.729e-05/0.007039, allocations: 44.28 kB / 298.8 MB, free: 168 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002318/0.007271, allocations: 195.4 kB / 299 MB, free: 15.96 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.007281, allocations: 192 / 299 MB, free: 15.96 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.864e-05/0.0073, allocations: 16.12 kB / 299 MB, free: 15.94 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.007308, allocations: 8 kB / 299 MB, free: 15.93 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.301e-05/0.007391, allocations: 60.55 kB / 299.1 MB, free: 15.88 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006375/0.008028, allocations: 0.4995 MB / 299.6 MB, free: 15.36 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001593/0.008187, allocations: 114.3 kB / 299.7 MB, free: 15.23 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.69e-05/0.008234, allocations: 41.5 kB / 299.7 MB, free: 15.19 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.032e-05/0.008255, allocations: 8 kB / 299.7 MB, free: 15.18 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001741/0.008429, allocations: 167.7 kB / 299.9 MB, free: 15.01 MB / 298.7 MB Notification: Performance of pre-optimization done (n=31): time 1.883e-06/0.008431, allocations: 0 / 299.9 MB, free: 15.01 MB / 298.7 MB Notification: Performance of matching and sorting (n=31): time 0.0002308/0.008661, allocations: 173.5 kB / 300.1 MB, free: 14.83 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.014e-05/0.008702, allocations: 63.33 kB / 300.1 MB, free: 14.76 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001322/0.008834, allocations: 247 kB / 300.4 MB, free: 14.51 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.303e-05/0.008857, allocations: 37.7 kB / 300.4 MB, free: 14.46 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.055e-05/0.008917, allocations: 161.1 kB / 300.6 MB, free: 14.3 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.52e-05/0.008973, allocations: 103.1 kB / 300.7 MB, free: 14.2 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.488e-05/0.009037, allocations: 74.02 kB / 300.7 MB, free: 14.12 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.074e-05/0.009118, allocations: 342.7 kB / 301.1 MB, free: 13.78 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.769e-05/0.009156, allocations: 32.73 kB / 301.1 MB, free: 13.75 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.565e-05/0.009252, allocations: 172 kB / 301.3 MB, free: 13.52 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001886/0.00944, allocations: 253.8 kB / 301.5 MB, free: 13.21 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.009443, allocations: 4 kB / 301.5 MB, free: 13.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0002139/0.009657, allocations: 225.1 kB / 301.7 MB, free: 12.98 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.009671, allocations: 8 kB / 301.8 MB, free: 12.97 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/0.009676, allocations: 4.469 kB / 301.8 MB, free: 12.97 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.009692, allocations: 12 kB / 301.8 MB, free: 12.96 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001818/0.009873, allocations: 91.88 kB / 301.9 MB, free: 12.87 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.009881, allocations: 11.88 kB / 301.9 MB, free: 12.86 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.104e-05/0.009962, allocations: 31.78 kB / 301.9 MB, free: 12.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.483e-05/0.009977, allocations: 19.98 kB / 301.9 MB, free: 12.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 9.463e-05/0.01007, allocations: 132.6 kB / 302 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.855e-05/0.0101, allocations: 31.97 kB / 302.1 MB, free: 12.63 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001993/0.0103, allocations: 167.9 kB / 302.2 MB, free: 12.46 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.0103, allocations: 4 kB / 302.2 MB, free: 12.46 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.01031, allocations: 7.938 kB / 302.3 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.01031, allocations: 7.922 kB / 302.3 MB, free: 12.44 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003204/0.01063, allocations: 390.9 kB / 302.6 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.01063, allocations: 0 / 302.6 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001293/0.01076, allocations: 52.09 kB / 302.7 MB, free: 11.98 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.454e-05/0.01079, allocations: 31.73 kB / 302.7 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.01079, allocations: 0 / 302.7 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.73e-05/0.01081, allocations: 19.92 kB / 302.7 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.01081, allocations: 0 / 302.7 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.01081, allocations: 0 / 302.7 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002524/0.01106, allocations: 310.5 kB / 303 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.64e-05/0.01109, allocations: 12 kB / 303.1 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.267e-05/0.01116, allocations: 11.98 kB / 303.1 MB, free: 11.59 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.432e-05/0.0112, allocations: 27.89 kB / 303.1 MB, free: 11.56 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.109e-05/0.01122, allocations: 7.984 kB / 303.1 MB, free: 11.55 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.424e-05/0.01128, allocations: 92.62 kB / 303.2 MB, free: 11.46 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01128, allocations: 0 / 303.2 MB, free: 11.46 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002134/0.01149, allocations: 79.78 kB / 303.3 MB, free: 11.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 8.58e-05/0.01158, allocations: 95.59 kB / 303.4 MB, free: 11.29 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001746/0.01175, allocations: 154.4 kB / 303.5 MB, free: 11.13 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 8.446e-06/0.01176, allocations: 8 kB / 303.5 MB, free: 11.12 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.014e-05/0.01185, allocations: 88.91 kB / 303.6 MB, free: 11.04 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002632/0.01212, allocations: 304.4 kB / 303.9 MB, free: 10.69 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001344/0.01346, allocations: 0.5667 MB / 304.5 MB, free: 10.09 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.951e-05/0.01352, allocations: 101.5 kB / 304.6 MB, free: 9.973 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.459e-05/0.0136, allocations: 46.94 kB / 304.6 MB, free: 9.926 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001108/0.01372, allocations: 95.3 kB / 304.7 MB, free: 9.832 MB / 298.7 MB Notification: Performance of SimCode: time 7.82e-07/0.01372, allocations: 0 / 304.7 MB, free: 9.832 MB / 298.7 MB Notification: Performance of Templates: time 0.004802/0.01852, allocations: 2.983 MB / 307.7 MB, free: 6.91 MB / 298.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 -emit_protected -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8162044528871775]