Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.Average.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.0008037/0.0008037, allocations: 80.48 kB / 19.93 MB, free: 4.633 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.0008267/0.0008267, allocations: 173.9 kB / 23.21 MB, free: 1.352 MB / 18.57 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 0.8761/0.8761, allocations: 177.1 MB / 203.5 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.722/1.722, allocations: 389 MB / 0.6338 GB, free: 12.7 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|average.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|average.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Average") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.352e-06/1.352e-06, allocations: 0 / 1.001 GB, free: 13.01 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.951e-05/2.086e-05, allocations: 9.172 kB / 1.001 GB, free: 13 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.00172/0.001741, allocations: 1.538 MB / 1.002 GB, free: 11.45 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0002612/0.002002, allocations: 119.5 kB / 1.003 GB, free: 11.34 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.361e-05/0.002046, allocations: 4 kB / 1.003 GB, free: 11.33 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.0001087/0.002155, allocations: 11.92 kB / 1.003 GB, free: 11.32 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 2.016e-05/0.002175, allocations: 11.88 kB / 1.003 GB, free: 11.31 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002368/0.002412, allocations: 31.89 kB / 1.003 GB, free: 11.28 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 8.241e-05/0.002494, allocations: 55.78 kB / 1.003 GB, free: 11.22 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 9.829e-05/0.002592, allocations: 23.97 kB / 1.003 GB, free: 11.2 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 6.492e-05/0.002657, allocations: 31.95 kB / 1.003 GB, free: 11.17 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 5.33e-05/0.00271, allocations: 23.91 kB / 1.003 GB, free: 11.14 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.469e-05/0.002725, allocations: 4 kB / 1.003 GB, free: 11.14 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 5.119e-05/0.002776, allocations: 15.98 kB / 1.003 GB, free: 11.12 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 3.516e-05/0.002811, allocations: 8 kB / 1.003 GB, free: 11.12 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 2.593e-05/0.002837, allocations: 19.92 kB / 1.003 GB, free: 11.1 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001167/0.002954, allocations: 63.78 kB / 1.003 GB, free: 11.04 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 1.753e-06/0.002956, allocations: 4 kB / 1.003 GB, free: 11.03 MB / 0.9636 GB Notification: Performance of FrontEnd: time 8.12e-07/0.002957, allocations: 0 / 1.003 GB, free: 11.03 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 3.416e-06/0.00296, allocations: 0 / 1.003 GB, free: 11.03 MB / 0.9636 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003685/0.003329, allocations: 306.1 kB / 1.003 GB, free: 10.7 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.46e-05/0.003363, allocations: 8.75 kB / 1.003 GB, free: 10.69 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.034e-05/0.003394, allocations: 8.891 kB / 1.003 GB, free: 10.68 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000134/0.003528, allocations: 133.6 kB / 1.003 GB, free: 10.53 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.066e-06/0.003536, allocations: 384 / 1.003 GB, free: 10.53 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.107e-05/0.003547, allocations: 8.375 kB / 1.003 GB, free: 10.52 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001855/0.003732, allocations: 86.2 kB / 1.003 GB, free: 10.43 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.00374, allocations: 192 / 1.003 GB, free: 10.43 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.154e-05/0.003751, allocations: 4.375 kB / 1.003 GB, free: 10.43 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.003755, allocations: 384 / 1.003 GB, free: 10.43 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001515/0.003907, allocations: 79.84 kB / 1.003 GB, free: 10.35 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003275/0.004234, allocations: 264.4 kB / 1.004 GB, free: 10.06 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001124/0.004347, allocations: 59.41 kB / 1.004 GB, free: 9.992 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.489e-05/0.004422, allocations: 44.8 kB / 1.004 GB, free: 9.945 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 3.118e-05/0.004453, allocations: 4 kB / 1.004 GB, free: 9.941 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.101e-05/0.004474, allocations: 34.55 kB / 1.004 GB, free: 9.898 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=3): time 9.61e-07/0.004475, allocations: 4 kB / 1.004 GB, free: 9.895 MB / 0.9636 GB Notification: Performance of matching and sorting (n=3): time 0.0003071/0.004782, allocations: 141.5 kB / 1.004 GB, free: 9.75 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.742e-05/0.004809, allocations: 55.41 kB / 1.004 GB, free: 9.684 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.212e-05/0.004871, allocations: 113.8 kB / 1.004 GB, free: 9.562 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 9.688e-06/0.004881, allocations: 25.7 kB / 1.004 GB, free: 9.531 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 3.886e-05/0.00492, allocations: 100.1 kB / 1.004 GB, free: 9.43 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.816e-05/0.004938, allocations: 11.91 kB / 1.004 GB, free: 9.418 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.529e-05/0.004963, allocations: 13.72 kB / 1.004 GB, free: 9.398 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.291e-05/0.005036, allocations: 314.8 kB / 1.005 GB, free: 9.082 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.566e-05/0.005112, allocations: 39.89 kB / 1.005 GB, free: 9.043 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.438e-05/0.005176, allocations: 35.95 kB / 1.005 GB, free: 9.008 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001335/0.00531, allocations: 76.78 kB / 1.005 GB, free: 8.93 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.005311, allocations: 0 / 1.005 GB, free: 8.93 MB / 0.9636 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001606/0.005472, allocations: 105.6 kB / 1.005 GB, free: 8.82 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.078e-05/0.005483, allocations: 4 kB / 1.005 GB, free: 8.816 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.005488, allocations: 3.984 kB / 1.005 GB, free: 8.812 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.661e-05/0.005505, allocations: 0 / 1.005 GB, free: 8.812 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.928e-05/0.005574, allocations: 23.92 kB / 1.005 GB, free: 8.789 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.099e-06/0.005579, allocations: 3.938 kB / 1.005 GB, free: 8.785 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.55e-05/0.005615, allocations: 11.98 kB / 1.005 GB, free: 8.773 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.698e-05/0.005632, allocations: 0 / 1.005 GB, free: 8.773 MB / 0.9636 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 5.506e-05/0.005687, allocations: 117.8 kB / 1.005 GB, free: 8.648 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.622e-05/0.005703, allocations: 11.89 kB / 1.005 GB, free: 8.637 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000193/0.005896, allocations: 113.6 kB / 1.005 GB, free: 8.512 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.005898, allocations: 0 / 1.005 GB, free: 8.512 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.005901, allocations: 0 / 1.005 GB, free: 8.512 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-06/0.005903, allocations: 0 / 1.005 GB, free: 8.512 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.253e-05/0.005996, allocations: 125.2 kB / 1.005 GB, free: 8.359 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.005997, allocations: 0 / 1.005 GB, free: 8.359 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.743e-05/0.006034, allocations: 15.98 kB / 1.005 GB, free: 8.344 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.006036, allocations: 3.938 kB / 1.005 GB, free: 8.34 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.663e-06/0.006043, allocations: 0 / 1.005 GB, free: 8.34 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.21e-07/0.006043, allocations: 4 kB / 1.005 GB, free: 8.336 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.006046, allocations: 3.984 kB / 1.005 GB, free: 8.332 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001772/0.006223, allocations: 199.4 kB / 1.005 GB, free: 8.121 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 7.755e-06/0.006231, allocations: 7.938 kB / 1.005 GB, free: 8.113 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.083e-05/0.006242, allocations: 3.984 kB / 1.005 GB, free: 8.109 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.809e-05/0.00629, allocations: 11.98 kB / 1.005 GB, free: 8.098 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.43e-05/0.006324, allocations: 4 kB / 1.005 GB, free: 8.094 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.709e-06/0.006329, allocations: 4 kB / 1.005 GB, free: 8.09 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 3.266e-05/0.006361, allocations: 95.27 kB / 1.006 GB, free: 7.996 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.006361, allocations: 0 / 1.006 GB, free: 7.996 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001534/0.006515, allocations: 11.95 kB / 1.006 GB, free: 7.984 MB / 0.9636 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 9.133e-05/0.006606, allocations: 103.6 kB / 1.006 GB, free: 7.875 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0003178/0.006924, allocations: 71.86 kB / 1.006 GB, free: 7.805 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.006926, allocations: 8 kB / 1.006 GB, free: 7.797 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 7.411e-05/0.007001, allocations: 40.05 kB / 1.006 GB, free: 7.758 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001859/0.007186, allocations: 4 kB / 1.006 GB, free: 7.754 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002671/0.007454, allocations: 182.5 kB / 1.006 GB, free: 7.543 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.002e-05/0.007504, allocations: 75.33 kB / 1.006 GB, free: 7.449 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.568e-05/0.007529, allocations: 12.5 kB / 1.006 GB, free: 7.438 MB / 0.9636 GB Notification: Performance of SimCode: time 5.61e-07/0.00753, allocations: 4 kB / 1.006 GB, free: 7.434 MB / 0.9636 GB Notification: Performance of Templates: time 0.001647/0.009177, allocations: 0.9559 MB / 1.007 GB, free: 6.48 MB / 0.9636 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.Average.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Average.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 6.403840801678598]