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.0007594/0.0007594, allocations: 76.19 kB / 9.911 MB, free: 0.7773 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001021/0.001781, allocations: 447.8 kB / 10.35 MB, free: 348 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.0006691/0.0006691, allocations: 161.1 kB / 11.23 MB, free: 2.938 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008445/0.001514, allocations: 463.6 kB / 11.69 MB, free: 2.48 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 1.019/1.019, allocations: 158.6 MB / 171 MB, free: 2.184 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1877/1.207, allocations: 49.5 MB / 220.5 MB, free: 5.277 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.139/0.139, allocations: 32.34 MB / 253.6 MB, free: 4.164 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02299/0.162, allocations: 12.3 MB / 265.9 MB, free: 7.832 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 2.034e-06/2.034e-06, allocations: 0 / 267.2 MB, free: 6.539 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.591e-05/2.794e-05, allocations: 2.312 kB / 267.2 MB, free: 6.535 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.004164/0.004192, allocations: 2.22 MB / 269.4 MB, free: 4.297 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001744/0.005936, allocations: 0.8186 MB / 270.2 MB, free: 3.469 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001975/0.006134, allocations: 7.938 kB / 270.3 MB, free: 3.461 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001321/0.006266, allocations: 39.53 kB / 270.3 MB, free: 3.422 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002042/0.00647, allocations: 63.39 kB / 270.4 MB, free: 3.359 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003944/0.006864, allocations: 151.6 kB / 270.5 MB, free: 3.211 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004191/0.007283, allocations: 351 kB / 270.8 MB, free: 2.867 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002/0.007483, allocations: 87.47 kB / 270.9 MB, free: 2.781 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003588/0.007842, allocations: 240.1 kB / 271.2 MB, free: 2.547 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001957/0.008038, allocations: 107.7 kB / 271.3 MB, free: 2.441 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.388e-05/0.008092, allocations: 32 kB / 271.3 MB, free: 2.41 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.53e-05/0.008127, allocations: 36 kB / 271.3 MB, free: 2.375 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.069e-05/0.008198, allocations: 59.75 kB / 271.4 MB, free: 2.316 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.452e-05/0.008292, allocations: 79.81 kB / 271.5 MB, free: 2.238 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002841/0.008576, allocations: 223.1 kB / 271.7 MB, free: 2.02 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.738e-05/0.008594, allocations: 0 / 271.7 MB, free: 2.02 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.462e-06/0.008595, allocations: 0 / 271.7 MB, free: 2.02 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.634e-05/0.008612, allocations: 0 / 271.7 MB, free: 2.02 MB / 266.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.0007915/0.009403, allocations: 0.5724 MB / 272.3 MB, free: 1.422 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.009441, allocations: 8.031 kB / 272.3 MB, free: 1.414 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.887e-05/0.00951, allocations: 48.89 kB / 272.3 MB, free: 1.367 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002843/0.009794, allocations: 220.6 kB / 272.5 MB, free: 1.125 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.552e-05/0.00982, allocations: 20.88 kB / 272.6 MB, free: 1.105 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.348e-05/0.009863, allocations: 40.36 kB / 272.6 MB, free: 1.066 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002289/0.01009, allocations: 177.3 kB / 272.8 MB, free: 0.8867 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.719e-05/0.01011, allocations: 16.12 kB / 272.8 MB, free: 0.8711 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.603e-05/0.01014, allocations: 12.12 kB / 272.8 MB, free: 0.8594 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.855e-06/0.01014, allocations: 8 kB / 272.8 MB, free: 0.8516 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.795e-05/0.01023, allocations: 59.39 kB / 272.9 MB, free: 0.7891 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006798/0.01091, allocations: 474.7 kB / 273.3 MB, free: 320 kB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000192/0.0111, allocations: 126.2 kB / 273.5 MB, free: 184 kB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.626e-05/0.01116, allocations: 32.84 kB / 273.5 MB, free: 148 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.325e-05/0.01119, allocations: 8 kB / 273.5 MB, free: 140 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001889/0.01138, allocations: 167.1 kB / 273.7 MB, free: 15.96 MB / 282.7 MB Notification: Performance of pre-optimization done (n=31): time 1.593e-06/0.01138, allocations: 0 / 273.7 MB, free: 15.96 MB / 282.7 MB Notification: Performance of matching and sorting (n=31): time 0.0002817/0.01166, allocations: 173.5 kB / 273.8 MB, free: 15.79 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.554e-05/0.01172, allocations: 63.41 kB / 273.9 MB, free: 15.71 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001467/0.01187, allocations: 217 kB / 274.1 MB, free: 15.48 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.473e-05/0.01189, allocations: 37.69 kB / 274.1 MB, free: 15.44 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.582e-05/0.01196, allocations: 157.1 kB / 274.3 MB, free: 15.29 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.702e-05/0.01201, allocations: 91.22 kB / 274.4 MB, free: 15.2 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.465e-05/0.01209, allocations: 78.02 kB / 274.5 MB, free: 15.11 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.01219, allocations: 346.7 kB / 274.8 MB, free: 14.77 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.013e-05/0.01223, allocations: 28.73 kB / 274.8 MB, free: 14.74 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001145/0.01234, allocations: 173.9 kB / 275 MB, free: 14.51 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002047/0.01255, allocations: 255.6 kB / 275.2 MB, free: 14.2 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.479e-06/0.01255, allocations: 4 kB / 275.2 MB, free: 14.19 MB / 282.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0002357/0.01279, allocations: 221.6 kB / 275.5 MB, free: 13.97 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.01281, allocations: 12 kB / 275.5 MB, free: 13.96 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.01282, allocations: 11.97 kB / 275.5 MB, free: 13.95 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.248e-05/0.01283, allocations: 8 kB / 275.5 MB, free: 13.94 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001806/0.01301, allocations: 87.89 kB / 275.6 MB, free: 13.85 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.224e-06/0.01302, allocations: 11.92 kB / 275.6 MB, free: 13.84 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.853e-05/0.0131, allocations: 35.78 kB / 275.6 MB, free: 13.8 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.548e-05/0.01312, allocations: 16 kB / 275.6 MB, free: 13.79 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.0001093/0.01323, allocations: 152.3 kB / 275.8 MB, free: 13.63 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.929e-05/0.01326, allocations: 31.98 kB / 275.8 MB, free: 13.6 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002246/0.01348, allocations: 171.5 kB / 276 MB, free: 13.43 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.01349, allocations: 4 kB / 276 MB, free: 13.42 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.01349, allocations: 0 / 276 MB, free: 13.42 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.0135, allocations: 0 / 276 MB, free: 13.42 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003275/0.01382, allocations: 386.3 kB / 276.4 MB, free: 13.02 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.01383, allocations: 0 / 276.4 MB, free: 13.02 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001362/0.01396, allocations: 51.95 kB / 276.4 MB, free: 12.97 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.258e-05/0.01399, allocations: 31.75 kB / 276.4 MB, free: 12.94 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.606e-06/0.01399, allocations: 7.938 kB / 276.5 MB, free: 12.93 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.75e-05/0.01401, allocations: 7.984 kB / 276.5 MB, free: 12.92 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.01401, allocations: 0 / 276.5 MB, free: 12.92 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.01402, allocations: 7.938 kB / 276.5 MB, free: 12.91 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002728/0.01429, allocations: 294.6 kB / 276.8 MB, free: 12.61 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.878e-05/0.01432, allocations: 12 kB / 276.8 MB, free: 12.6 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.758e-05/0.0144, allocations: 11.98 kB / 276.8 MB, free: 12.59 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.535e-05/0.01444, allocations: 23.95 kB / 276.8 MB, free: 12.56 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.394e-05/0.01445, allocations: 12 kB / 276.8 MB, free: 12.55 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.847e-05/0.01451, allocations: 78.75 kB / 276.9 MB, free: 12.47 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01451, allocations: 0 / 276.9 MB, free: 12.47 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002102/0.01472, allocations: 67.83 kB / 277 MB, free: 12.41 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 0.000105/0.01483, allocations: 96.34 kB / 277.1 MB, free: 12.3 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002038/0.01503, allocations: 149.3 kB / 277.2 MB, free: 12.16 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 9.588e-06/0.01504, allocations: 8.062 kB / 277.2 MB, free: 12.15 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 8.368e-05/0.01513, allocations: 76.69 kB / 277.3 MB, free: 12.07 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002185/0.01534, allocations: 60.64 kB / 277.3 MB, free: 12.01 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001293/0.01664, allocations: 0.535 MB / 277.9 MB, free: 11.45 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.041e-05/0.01671, allocations: 93.55 kB / 278 MB, free: 11.34 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 9.608e-05/0.0168, allocations: 34.97 kB / 278 MB, free: 11.3 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001037/0.01691, allocations: 99.34 kB / 278.1 MB, free: 11.2 MB / 282.7 MB Notification: Performance of SimCode: time 4.61e-07/0.01691, allocations: 4 kB / 278.1 MB, free: 11.2 MB / 282.7 MB Notification: Performance of Templates: time 0.004618/0.02153, allocations: 2.736 MB / 280.8 MB, free: 8.469 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.867591922171414]