Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.0007724/0.0007724, allocations: 89.05 kB / 9.989 MB, free: 0.6992 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001028/0.001801, allocations: 452 kB / 10.43 MB, free: 264 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.0006811/0.0006811, allocations: 161.1 kB / 11.33 MB, free: 2.84 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009366/0.001618, allocations: 483.5 kB / 11.8 MB, free: 2.363 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8024/0.8024, allocations: 158.6 MB / 171.2 MB, free: 2.504 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1348/0.9372, allocations: 49.51 MB / 220.7 MB, free: 1.359 MB / 218.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1314/0.1314, allocations: 32.36 MB / 253.8 MB, free: 228 kB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.01917/0.1506, allocations: 12.3 MB / 266.1 MB, free: 3.879 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Blocks.Mean") translateModel(ModelicaTest.Blocks.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.323e-06/1.323e-06, allocations: 3.938 kB / 267.4 MB, free: 2.57 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.307e-05/1.439e-05, allocations: 6.25 kB / 267.4 MB, free: 2.562 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002139/0.002154, allocations: 2.232 MB / 269.6 MB, free: 316 kB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009937/0.003148, allocations: 0.8108 MB / 270.4 MB, free: 15.49 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001091/0.003257, allocations: 11.88 kB / 270.4 MB, free: 15.48 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 8.037e-05/0.003337, allocations: 31.59 kB / 270.5 MB, free: 15.45 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001272/0.003464, allocations: 75.25 kB / 270.5 MB, free: 15.37 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002527/0.003717, allocations: 143.7 kB / 270.7 MB, free: 15.23 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000262/0.003979, allocations: 355 kB / 271 MB, free: 14.88 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001537/0.004133, allocations: 87.47 kB / 271.1 MB, free: 14.8 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002383/0.004371, allocations: 240 kB / 271.4 MB, free: 14.57 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001528/0.004524, allocations: 115.6 kB / 271.5 MB, free: 14.45 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.369e-05/0.004568, allocations: 32 kB / 271.5 MB, free: 14.42 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.628e-05/0.004604, allocations: 32 kB / 271.5 MB, free: 14.39 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.619e-05/0.00466, allocations: 55.81 kB / 271.6 MB, free: 14.34 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.862e-05/0.004749, allocations: 87.8 kB / 271.7 MB, free: 14.25 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000221/0.00497, allocations: 215.1 kB / 271.9 MB, free: 14.04 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.028e-05/0.00498, allocations: 0 / 271.9 MB, free: 14.04 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.01e-07/0.004981, allocations: 0 / 271.9 MB, free: 14.04 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.659e-06/0.00499, allocations: 0 / 271.9 MB, free: 14.04 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: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.000706/0.005696, allocations: 0.5685 MB / 272.4 MB, free: 13.45 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.261e-05/0.005729, allocations: 12.03 kB / 272.5 MB, free: 13.43 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.892e-05/0.005798, allocations: 52.89 kB / 272.5 MB, free: 13.38 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002647/0.006063, allocations: 228.6 kB / 272.7 MB, free: 13.13 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.657e-05/0.006089, allocations: 20.88 kB / 272.8 MB, free: 13.11 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.51e-05/0.006134, allocations: 32.38 kB / 272.8 MB, free: 13.08 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002468/0.006381, allocations: 181.3 kB / 273 MB, free: 12.89 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/0.006395, allocations: 192 / 273 MB, free: 12.89 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001086/0.006503, allocations: 16.12 kB / 273 MB, free: 12.88 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.211e-05/0.006515, allocations: 15.98 kB / 273 MB, free: 12.86 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.154e-05/0.006607, allocations: 55.47 kB / 273 MB, free: 12.81 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006625/0.00727, allocations: 478.6 kB / 273.5 MB, free: 12.33 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001801/0.00745, allocations: 114.5 kB / 273.6 MB, free: 12.21 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.855e-05/0.007498, allocations: 36.84 kB / 273.7 MB, free: 12.17 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.31e-05/0.007521, allocations: 11.98 kB / 273.7 MB, free: 12.16 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001939/0.007715, allocations: 171.1 kB / 273.8 MB, free: 11.98 MB / 282.7 MB Notification: Performance of pre-optimization done (n=31): time 1.482e-06/0.007717, allocations: 0 / 273.8 MB, free: 11.98 MB / 282.7 MB Notification: Performance of matching and sorting (n=31): time 0.0002534/0.00797, allocations: 169.6 kB / 274 MB, free: 11.8 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.591e-05/0.008026, allocations: 59.34 kB / 274.1 MB, free: 11.73 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001241/0.00815, allocations: 221 kB / 274.3 MB, free: 11.5 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.47e-05/0.008175, allocations: 37.7 kB / 274.3 MB, free: 11.46 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.219e-05/0.008237, allocations: 157.1 kB / 274.5 MB, free: 11.3 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.775e-05/0.008295, allocations: 95.2 kB / 274.6 MB, free: 11.21 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.74e-05/0.008362, allocations: 73.95 kB / 274.6 MB, free: 11.13 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002605/0.008623, allocations: 354.7 kB / 275 MB, free: 10.77 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.481e-05/0.008667, allocations: 32.72 kB / 275 MB, free: 10.74 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001005/0.008768, allocations: 158.6 kB / 275.2 MB, free: 10.53 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001983/0.008966, allocations: 259.5 kB / 275.4 MB, free: 10.21 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.008969, allocations: 0 / 275.4 MB, free: 10.21 MB / 282.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0002159/0.009185, allocations: 217.1 kB / 275.6 MB, free: 9.992 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/0.009199, allocations: 8.469 kB / 275.6 MB, free: 9.984 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.009205, allocations: 4 kB / 275.6 MB, free: 9.98 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/0.00922, allocations: 12 kB / 275.7 MB, free: 9.969 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001865/0.009406, allocations: 95.81 kB / 275.8 MB, free: 9.875 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.618e-06/0.009416, allocations: 15.94 kB / 275.8 MB, free: 9.859 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.408e-05/0.0095, allocations: 27.78 kB / 275.8 MB, free: 9.832 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.599e-05/0.009516, allocations: 19.98 kB / 275.8 MB, free: 9.812 MB / 282.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,$PRE.mean.y,rectifiedMean.mean.y,$PRE.rectifiedMean.mean.y,rootMeanSquare.mean.y,$PRE.rootMeanSquare.mean.y,harmonic.mean2.y,$PRE.harmonic.mean2.y,harmonic.mean1.y,$PRE.harmonic.mean1.y) * 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.000106/0.009622, allocations: 152.3 kB / 276 MB, free: 9.652 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.122e-05/0.009653, allocations: 27.97 kB / 276 MB, free: 9.625 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002134/0.009867, allocations: 171.5 kB / 276.2 MB, free: 9.453 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.379e-06/0.009871, allocations: 4 kB / 276.2 MB, free: 9.449 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.563e-06/0.009872, allocations: 0 / 276.2 MB, free: 9.449 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.009878, allocations: 3.984 kB / 276.2 MB, free: 9.445 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003021/0.01018, allocations: 382.4 kB / 276.5 MB, free: 9.047 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.01018, allocations: 144 / 276.5 MB, free: 9.047 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001318/0.01031, allocations: 51.91 kB / 276.6 MB, free: 8.996 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.155e-05/0.01034, allocations: 31.77 kB / 276.6 MB, free: 8.965 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.929e-06/0.01034, allocations: 8 kB / 276.6 MB, free: 8.957 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.537e-05/0.01036, allocations: 4 kB / 276.6 MB, free: 8.953 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.01036, allocations: 4 kB / 276.6 MB, free: 8.949 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.01036, allocations: 0 / 276.6 MB, free: 8.949 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002563/0.01062, allocations: 310.5 kB / 276.9 MB, free: 8.629 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.808e-05/0.01065, allocations: 12 kB / 277 MB, free: 8.617 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.291e-05/0.01072, allocations: 11.98 kB / 277 MB, free: 8.605 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.857e-05/0.01077, allocations: 23.95 kB / 277 MB, free: 8.582 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.242e-05/0.01078, allocations: 7.984 kB / 277 MB, free: 8.574 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.405e-05/0.01083, allocations: 70.78 kB / 277.1 MB, free: 8.504 MB / 282.7 MB Notification: Performance of sort global known variables: time 4e-08/0.01083, allocations: 4 kB / 277.1 MB, free: 8.5 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002132/0.01105, allocations: 71.83 kB / 277.1 MB, free: 8.43 MB / 282.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,rectifiedMean.mean.y,rootMeanSquare.mean.y,harmonic.mean1.y,harmonic.mean2.y) * 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.397e-05/0.01114, allocations: 96.39 kB / 277.2 MB, free: 8.328 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001869/0.01133, allocations: 162.1 kB / 277.4 MB, free: 8.168 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 8.366e-06/0.01134, allocations: 4.469 kB / 277.4 MB, free: 8.164 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001025/0.01144, allocations: 92.95 kB / 277.5 MB, free: 8.07 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002568/0.01169, allocations: 238.7 kB / 277.7 MB, free: 7.801 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001435/0.01313, allocations: 0.5276 MB / 278.2 MB, free: 7.242 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.942e-05/0.01318, allocations: 97.55 kB / 278.3 MB, free: 7.129 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 8.11e-05/0.01326, allocations: 43.36 kB / 278.4 MB, free: 7.086 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.943e-05/0.01336, allocations: 91.36 kB / 278.5 MB, free: 6.996 MB / 282.7 MB Notification: Performance of SimCode: time 6.61e-07/0.01336, allocations: 4 kB / 278.5 MB, free: 6.992 MB / 282.7 MB Notification: Performance of Templates: time 0.004373/0.01773, allocations: 2.672 MB / 281.2 MB, free: 4.316 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.Mean_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.4691426903009415]