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.001707/0.001707, allocations: 81.86 kB / 21.44 MB, free: 3.055 MB / 18.57 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.001775/0.001775, allocations: 164.9 kB / 24.84 MB, free: 8.848 MB / 18.57 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.02/1.02, allocations: 158.6 MB / 186.7 MB, free: 2.785 MB / 170.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.1346/0.1346, allocations: 32.37 MB / 271.5 MB, free: 2.453 MB / 250.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.433e-06/1.433e-06, allocations: 0 / 348.9 MB, free: 4.82 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.228e-05/2.372e-05, allocations: 6.25 kB / 348.9 MB, free: 4.812 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.002551/0.002575, allocations: 2.168 MB / 351.1 MB, free: 2.629 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001109/0.003684, allocations: 0.803 MB / 351.9 MB, free: 1.816 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001389/0.003823, allocations: 7.938 kB / 351.9 MB, free: 1.809 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001277/0.00395, allocations: 31.55 kB / 351.9 MB, free: 1.777 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001858/0.004136, allocations: 67.38 kB / 352 MB, free: 1.711 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002603/0.004397, allocations: 147.6 kB / 352.1 MB, free: 1.566 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002846/0.004681, allocations: 362.9 kB / 352.5 MB, free: 1.211 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001661/0.004847, allocations: 88.83 kB / 352.6 MB, free: 1.125 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002113/0.005059, allocations: 203.5 kB / 352.8 MB, free: 0.9258 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001454/0.005204, allocations: 119.6 kB / 352.9 MB, free: 0.8086 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 3.902e-05/0.005243, allocations: 32 kB / 352.9 MB, free: 0.7773 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.961e-05/0.005273, allocations: 32 kB / 353 MB, free: 0.7461 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 5.944e-05/0.005332, allocations: 79.69 kB / 353 MB, free: 0.668 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 8.049e-05/0.005413, allocations: 99.73 kB / 353.1 MB, free: 0.5703 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002632/0.005676, allocations: 251 kB / 353.4 MB, free: 332 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.434e-06/0.005678, allocations: 0 / 353.4 MB, free: 332 kB / 330.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.005679, allocations: 4 kB / 353.4 MB, free: 328 kB / 330.7 MB Notification: Performance of Transformations before backend: time 6.151e-06/0.005686, allocations: 0 / 353.4 MB, free: 328 kB / 330.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.1307/0.1364, allocations: 0.7878 MB / 354.2 MB, free: 65.47 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.605e-05/0.1364, allocations: 10.22 kB / 354.2 MB, free: 65.47 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001018/0.1365, allocations: 55.39 kB / 354.2 MB, free: 65.45 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002997/0.1368, allocations: 255.6 kB / 354.5 MB, free: 65.3 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.345e-05/0.1369, allocations: 22.59 kB / 354.5 MB, free: 65.3 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.513e-05/0.1369, allocations: 34.61 kB / 354.5 MB, free: 65.3 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003585/0.1373, allocations: 182.9 kB / 354.7 MB, free: 65.25 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.458e-05/0.1373, allocations: 192 / 354.7 MB, free: 65.25 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.051e-05/0.1373, allocations: 12.58 kB / 354.7 MB, free: 65.25 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.099e-05/0.1373, allocations: 9.875 kB / 354.7 MB, free: 65.25 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001226/0.1375, allocations: 70 kB / 354.8 MB, free: 65.25 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001076/0.1385, allocations: 0.6266 MB / 355.4 MB, free: 64.98 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002948/0.1388, allocations: 140 kB / 355.6 MB, free: 64.95 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.588e-05/0.1389, allocations: 44.73 kB / 355.6 MB, free: 64.93 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.694e-05/0.1389, allocations: 6.812 kB / 355.6 MB, free: 64.93 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002536/0.1392, allocations: 171.3 kB / 355.8 MB, free: 64.88 MB / 330.7 MB Notification: Performance of pre-optimization done (n=31): time 2.875e-06/0.1392, allocations: 1.594 kB / 355.8 MB, free: 64.88 MB / 330.7 MB Notification: Performance of matching and sorting (n=31): time 0.0003923/0.1396, allocations: 237.8 kB / 356 MB, free: 64.82 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.604e-05/0.1396, allocations: 57.78 kB / 356.1 MB, free: 64.76 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001702/0.1398, allocations: 277.1 kB / 356.3 MB, free: 64.59 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.338e-05/0.1398, allocations: 38.95 kB / 356.4 MB, free: 64.55 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.995e-05/0.1399, allocations: 216.1 kB / 356.6 MB, free: 64.41 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.601e-05/0.14, allocations: 109.7 kB / 356.7 MB, free: 64.36 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001138/0.1401, allocations: 77.86 kB / 356.8 MB, free: 64.33 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.601e-05/0.1402, allocations: 0.5156 MB / 357.3 MB, free: 63.83 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.589e-05/0.1402, allocations: 32.69 kB / 357.3 MB, free: 63.83 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001123/0.1403, allocations: 233.7 kB / 357.6 MB, free: 63.59 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002104/0.1406, allocations: 298.9 kB / 357.8 MB, free: 63.36 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.1406, allocations: 2.094 kB / 357.8 MB, free: 63.36 MB / 330.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003427/0.1409, allocations: 275.7 kB / 358.1 MB, free: 63.31 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.419e-05/0.1409, allocations: 9.359 kB / 358.1 MB, free: 63.31 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.1409, allocations: 5.875 kB / 358.1 MB, free: 63.31 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.141, allocations: 6.656 kB / 358.1 MB, free: 63.31 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002035/0.1412, allocations: 81.12 kB / 358.2 MB, free: 63.31 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.1412, allocations: 7.766 kB / 358.2 MB, free: 63.31 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.331e-05/0.1413, allocations: 33.41 kB / 358.3 MB, free: 63.3 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.744e-05/0.1413, allocations: 18.92 kB / 358.3 MB, free: 63.3 MB / 330.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.mean1.y,$PRE.harmonic.mean1.y,harmonic.mean2.y,$PRE.harmonic.mean2.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.0001353/0.1414, allocations: 195.7 kB / 358.5 MB, free: 63.13 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.879e-05/0.1415, allocations: 36.09 kB / 358.5 MB, free: 63.12 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003429/0.1418, allocations: 225.2 kB / 358.7 MB, free: 63.08 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/0.1418, allocations: 4.594 kB / 358.7 MB, free: 63.08 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.1418, allocations: 0.6562 kB / 358.7 MB, free: 63.08 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.1418, allocations: 1.406 kB / 358.7 MB, free: 63.08 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005135/0.1423, allocations: 0.5085 MB / 359.2 MB, free: 62.8 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.215e-06/0.1423, allocations: 0 / 359.2 MB, free: 62.8 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001575/0.1425, allocations: 50.22 kB / 359.3 MB, free: 62.8 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.783e-06/0.1425, allocations: 4.031 kB / 359.3 MB, free: 62.8 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.472e-05/0.1425, allocations: 8.531 kB / 359.3 MB, free: 62.8 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.312e-06/0.1425, allocations: 4.312 kB / 359.3 MB, free: 62.8 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.1425, allocations: 0 / 359.3 MB, free: 62.8 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003885/0.1429, allocations: 419.7 kB / 359.7 MB, free: 62.58 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.845e-05/0.143, allocations: 32.83 kB / 359.7 MB, free: 62.56 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.235e-05/0.143, allocations: 11.36 kB / 359.8 MB, free: 62.56 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.454e-05/0.1431, allocations: 9.953 kB / 359.8 MB, free: 62.56 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.357e-05/0.1432, allocations: 25 kB / 359.8 MB, free: 62.56 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.973e-05/0.1432, allocations: 12.58 kB / 359.8 MB, free: 62.56 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001063/0.1433, allocations: 189.6 kB / 360 MB, free: 62.44 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1433, allocations: 0 / 360 MB, free: 62.44 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002943/0.1436, allocations: 65.36 kB / 360 MB, free: 62.43 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,harmonic.mean2.y,harmonic.mean1.y,rootMeanSquare.mean.y,rectifiedMean.mean.y,mean.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.000136/0.1437, allocations: 116.3 kB / 360.2 MB, free: 62.34 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000248/0.144, allocations: 164.2 kB / 360.3 MB, free: 62.31 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.175e-06/0.144, allocations: 1.25 kB / 360.3 MB, free: 62.31 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001173/0.1441, allocations: 88.8 kB / 360.4 MB, free: 62.29 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002668/0.1444, allocations: 47.39 kB / 360.5 MB, free: 62.29 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009737/0.1453, allocations: 0.5413 MB / 361 MB, free: 61.97 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.218e-05/0.1454, allocations: 99.38 kB / 361.1 MB, free: 61.9 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001176/0.1455, allocations: 35.55 kB / 361.1 MB, free: 61.9 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001352/0.1457, allocations: 126 kB / 361.3 MB, free: 61.83 MB / 330.7 MB Notification: Performance of SimCode: time 9.42e-07/0.1457, allocations: 0 / 361.3 MB, free: 61.83 MB / 330.7 MB Notification: Performance of Templates: time 0.006611/0.1523, allocations: 2.803 MB / 364.1 MB, free: 61.58 MB / 330.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 -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: 3.3208155389875174]