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.001406/0.001406, allocations: 91.22 kB / 20.43 MB, free: 4.141 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.001139/0.001139, allocations: 169 kB / 23.8 MB, free: 0.7734 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 0.8495/0.8495, allocations: 158.6 MB / 185.7 MB, free: 2.5 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.1311/0.1311, allocations: 32.38 MB / 270.4 MB, free: 14.68 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.913e-06/1.913e-06, allocations: 0 / 347.6 MB, free: 9.461 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.029e-05/3.22e-05, allocations: 6.25 kB / 347.7 MB, free: 9.453 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.003039/0.003071, allocations: 2.199 MB / 349.9 MB, free: 7.25 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001029/0.004101, allocations: 0.8071 MB / 350.7 MB, free: 6.434 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001346/0.004235, allocations: 7.938 kB / 350.7 MB, free: 6.426 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001352/0.00437, allocations: 27.61 kB / 350.7 MB, free: 6.398 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002006/0.004571, allocations: 67.33 kB / 350.8 MB, free: 6.332 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002732/0.004844, allocations: 147.6 kB / 350.9 MB, free: 6.188 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002439/0.005088, allocations: 362.9 kB / 351.3 MB, free: 5.832 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001768/0.005265, allocations: 80.84 kB / 351.3 MB, free: 5.754 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000189/0.005454, allocations: 203.5 kB / 351.5 MB, free: 5.555 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000152/0.005606, allocations: 123.6 kB / 351.7 MB, free: 5.434 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.033e-05/0.005646, allocations: 32 kB / 351.7 MB, free: 5.402 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.92e-05/0.005675, allocations: 32 kB / 351.7 MB, free: 5.371 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.667e-05/0.005742, allocations: 83.67 kB / 351.8 MB, free: 5.289 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.417e-05/0.005826, allocations: 99.75 kB / 351.9 MB, free: 5.191 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002366/0.006063, allocations: 251 kB / 352.1 MB, free: 4.945 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.006067, allocations: 0 / 352.1 MB, free: 4.945 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.006068, allocations: 0 / 352.1 MB, free: 4.945 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.622e-06/0.006074, allocations: 0 / 352.1 MB, free: 4.945 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.0007417/0.006816, allocations: 0.7895 MB / 352.9 MB, free: 4.098 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.006854, allocations: 8.031 kB / 352.9 MB, free: 4.09 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.701e-05/0.006931, allocations: 56.75 kB / 353 MB, free: 4.035 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002932/0.007225, allocations: 271.9 kB / 353.3 MB, free: 3.742 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.432e-05/0.007249, allocations: 20.88 kB / 353.3 MB, free: 3.723 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.509e-05/0.007294, allocations: 36.36 kB / 353.3 MB, free: 3.688 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002576/0.007552, allocations: 197.2 kB / 353.5 MB, free: 3.488 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.007565, allocations: 192 / 353.5 MB, free: 3.488 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.162e-05/0.007586, allocations: 24.11 kB / 353.5 MB, free: 3.465 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.889e-06/0.007596, allocations: 4 kB / 353.5 MB, free: 3.461 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001345/0.007731, allocations: 78.94 kB / 353.6 MB, free: 3.379 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007324/0.008463, allocations: 0.6743 MB / 354.3 MB, free: 2.668 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002289/0.008692, allocations: 151.2 kB / 354.4 MB, free: 2.508 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.259e-05/0.008765, allocations: 51.66 kB / 354.5 MB, free: 2.453 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.836e-05/0.008793, allocations: 8 kB / 354.5 MB, free: 2.445 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001862/0.008979, allocations: 180.8 kB / 354.7 MB, free: 2.254 MB / 282.7 MB Notification: Performance of pre-optimization done (n=31): time 1.593e-06/0.008981, allocations: 0 / 354.7 MB, free: 2.254 MB / 282.7 MB Notification: Performance of matching and sorting (n=31): time 0.0003758/0.009357, allocations: 265.3 kB / 354.9 MB, free: 1.988 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.403e-05/0.009391, allocations: 55.41 kB / 355 MB, free: 1.922 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001415/0.009532, allocations: 296.1 kB / 355.3 MB, free: 1.613 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.167e-05/0.009554, allocations: 29.7 kB / 355.3 MB, free: 1.578 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.818e-05/0.009622, allocations: 215.5 kB / 355.5 MB, free: 1.363 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.751e-05/0.00967, allocations: 107.1 kB / 355.6 MB, free: 1.258 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.564e-05/0.009735, allocations: 75.72 kB / 355.7 MB, free: 1.172 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.663e-05/0.009792, allocations: 0.5079 MB / 356.2 MB, free: 0.6523 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.873e-05/0.009861, allocations: 48.7 kB / 356.2 MB, free: 0.6055 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001047/0.009965, allocations: 230.9 kB / 356.5 MB, free: 304 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002311/0.0102, allocations: 313.5 kB / 356.8 MB, free: 15.91 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.0102, allocations: 0 / 356.8 MB, free: 15.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0003424/0.01054, allocations: 305.2 kB / 357.1 MB, free: 15.6 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.567e-05/0.01057, allocations: 12.06 kB / 357.1 MB, free: 15.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.01058, allocations: 4 kB / 357.1 MB, free: 15.59 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.376e-05/0.0106, allocations: 8 kB / 357.1 MB, free: 15.58 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001964/0.0108, allocations: 79.83 kB / 357.2 MB, free: 15.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.01081, allocations: 8 kB / 357.2 MB, free: 15.49 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.794e-05/0.0109, allocations: 35.77 kB / 357.2 MB, free: 15.46 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.762e-05/0.01091, allocations: 16 kB / 357.2 MB, free: 15.44 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,$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.0001244/0.01104, allocations: 192.2 kB / 357.4 MB, free: 15.24 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.125e-05/0.01108, allocations: 43.84 kB / 357.5 MB, free: 15.2 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003405/0.01142, allocations: 231.5 kB / 357.7 MB, free: 14.97 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.01142, allocations: 7.984 kB / 357.7 MB, free: 14.96 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.01143, allocations: 0 / 357.7 MB, free: 14.96 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.206e-06/0.01144, allocations: 7.938 kB / 357.7 MB, free: 14.95 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000504/0.01194, allocations: 0.5557 MB / 358.3 MB, free: 14.36 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.01194, allocations: 4 kB / 358.3 MB, free: 14.35 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001403/0.01208, allocations: 47.91 kB / 358.3 MB, free: 14.3 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.01209, allocations: 4 kB / 358.3 MB, free: 14.3 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.955e-05/0.01211, allocations: 12 kB / 358.3 MB, free: 14.29 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.444e-06/0.01211, allocations: 0 / 358.3 MB, free: 14.29 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.01211, allocations: 7.938 kB / 358.3 MB, free: 14.28 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004236/0.01254, allocations: 440 kB / 358.8 MB, free: 13.83 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.652e-05/0.01256, allocations: 31.75 kB / 358.8 MB, free: 13.8 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.055e-05/0.01259, allocations: 4 kB / 358.8 MB, free: 13.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.958e-05/0.01267, allocations: 15.98 kB / 358.8 MB, free: 13.78 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.038e-05/0.01273, allocations: 27.89 kB / 358.8 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.717e-05/0.01275, allocations: 16 kB / 358.9 MB, free: 13.74 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001039/0.01285, allocations: 189.1 kB / 359 MB, free: 13.56 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.01285, allocations: 0 / 359 MB, free: 13.56 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002545/0.01311, allocations: 71.88 kB / 359.1 MB, free: 13.49 MB / 298.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.0001204/0.01323, allocations: 107.2 kB / 359.2 MB, free: 13.38 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000277/0.01351, allocations: 192.5 kB / 359.4 MB, free: 13.18 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.01351, allocations: 4.062 kB / 359.4 MB, free: 13.18 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000115/0.01362, allocations: 91.52 kB / 359.5 MB, free: 13.09 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002691/0.01389, allocations: 40.78 kB / 359.5 MB, free: 13.05 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009306/0.01482, allocations: 0.55 MB / 360.1 MB, free: 12.46 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.08e-05/0.01488, allocations: 101.5 kB / 360.2 MB, free: 12.35 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.225e-05/0.01497, allocations: 38.95 kB / 360.2 MB, free: 12.31 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.653e-05/0.01503, allocations: 28.5 kB / 360.3 MB, free: 12.28 MB / 298.7 MB Notification: Performance of SimCode: time 9.51e-07/0.01503, allocations: 4 kB / 360.3 MB, free: 12.28 MB / 298.7 MB Notification: Performance of Templates: time 0.00469/0.01972, allocations: 2.545 MB / 362.8 MB, free: 9.758 MB / 298.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.1829840089194477]