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.0007634/0.0007634, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001047/0.001811, allocations: 440 kB / 10.41 MB, free: 284 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.0006887/0.0006887, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008729/0.001562, allocations: 475.6 kB / 11.79 MB, free: 2.375 MB / 13.93 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.9946/0.9946, allocations: 177.2 MB / 189.7 MB, free: 5.238 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09901/1.094, allocations: 53.67 MB / 243.4 MB, free: 15.49 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo): time 2.323/2.323, allocations: 447.1 MB / 0.675 GB, free: 5.918 MB / 0.6511 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.2448/2.567, allocations: 146 MB / 0.8176 GB, free: 3.844 MB / 0.7917 GB " [Timeout remaining time 177] Using package Buildings with version 15.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-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.493e-06/1.493e-06, allocations: 0 / 0.8189 GB, free: 2.5 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.531e-05/1.68e-05, allocations: 2.312 kB / 0.8189 GB, free: 2.496 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002756/0.002773, allocations: 1.639 MB / 0.8205 GB, free: 0.8398 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.0002396/0.003012, allocations: 119.6 kB / 0.8207 GB, free: 0.7227 MB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.283e-05/0.003065, allocations: 0 / 0.8207 GB, free: 0.7227 MB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 0.0001156/0.003181, allocations: 7.922 kB / 0.8207 GB, free: 0.7148 MB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 3.032e-05/0.003211, allocations: 11.88 kB / 0.8207 GB, free: 0.7031 MB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001973/0.003408, allocations: 23.97 kB / 0.8207 GB, free: 0.6797 MB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 0.0001181/0.003526, allocations: 55.83 kB / 0.8208 GB, free: 0.625 MB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001099/0.003636, allocations: 19.92 kB / 0.8208 GB, free: 0.6055 MB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001033/0.00374, allocations: 39.91 kB / 0.8208 GB, free: 0.5664 MB / 0.7917 GB Notification: Performance of NFSimplifyModel.simplify: time 8.364e-05/0.003823, allocations: 27.89 kB / 0.8208 GB, free: 0.5391 MB / 0.7917 GB Notification: Performance of NFPackage.collectConstants: time 2.406e-05/0.003847, allocations: 12 kB / 0.8208 GB, free: 0.5273 MB / 0.7917 GB Notification: Performance of NFFlatten.collectFunctions: time 7.938e-05/0.003927, allocations: 11.94 kB / 0.8209 GB, free: 0.5156 MB / 0.7917 GB Notification: Performance of NFScalarize.scalarize: time 4.234e-05/0.003969, allocations: 11.98 kB / 0.8209 GB, free: 0.5039 MB / 0.7917 GB Notification: Performance of NFVerifyModel.verify: time 2.893e-05/0.003998, allocations: 15.94 kB / 0.8209 GB, free: 500 kB / 0.7917 GB Notification: Performance of NFConvertDAE.convert: time 0.0001289/0.004127, allocations: 39.84 kB / 0.8209 GB, free: 460 kB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 1.255e-05/0.004139, allocations: 4 kB / 0.8209 GB, free: 456 kB / 0.7917 GB Notification: Performance of FrontEnd: time 6.61e-07/0.00414, allocations: 0 / 0.8209 GB, free: 456 kB / 0.7917 GB Notification: Performance of Transformations before backend: time 1.4e-05/0.004154, allocations: 0 / 0.8209 GB, free: 456 kB / 0.7917 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.0004543/0.004608, allocations: 276.4 kB / 0.8212 GB, free: 152 kB / 0.7917 GB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.004645, allocations: 12.03 kB / 0.8212 GB, free: 140 kB / 0.7917 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.297e-05/0.004688, allocations: 12.92 kB / 0.8212 GB, free: 128 kB / 0.7917 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001703/0.004858, allocations: 125.7 kB / 0.8213 GB, free: 15.97 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.109e-05/0.004869, allocations: 4.375 kB / 0.8213 GB, free: 15.97 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.724e-05/0.004887, allocations: 12.25 kB / 0.8213 GB, free: 15.96 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000163/0.00505, allocations: 73.7 kB / 0.8214 GB, free: 15.88 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.325e-06/0.005058, allocations: 192 / 0.8214 GB, free: 15.88 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.466e-06/0.005066, allocations: 384 / 0.8214 GB, free: 15.88 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.104e-06/0.005074, allocations: 4.375 kB / 0.8214 GB, free: 15.88 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.452e-05/0.005108, allocations: 11.92 kB / 0.8214 GB, free: 15.86 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003909/0.005499, allocations: 201.8 kB / 0.8216 GB, free: 15.65 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 7.133e-05/0.00557, allocations: 22.58 kB / 0.8216 GB, free: 15.62 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.528e-05/0.005596, allocations: 12.86 kB / 0.8217 GB, free: 15.6 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 3.482e-05/0.00563, allocations: 4 kB / 0.8217 GB, free: 15.6 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.711e-05/0.005658, allocations: 42.61 kB / 0.8217 GB, free: 15.55 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=3): time 9.72e-07/0.005659, allocations: 0 / 0.8217 GB, free: 15.55 MB / 0.8073 GB Notification: Performance of matching and sorting (n=3): time 0.0001353/0.005794, allocations: 41.69 kB / 0.8217 GB, free: 15.5 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.065e-05/0.005824, allocations: 51.41 kB / 0.8218 GB, free: 15.44 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.986e-05/0.005894, allocations: 114.7 kB / 0.8219 GB, free: 15.31 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.539e-05/0.00591, allocations: 25.7 kB / 0.8219 GB, free: 15.28 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 4.376e-05/0.005953, allocations: 108 kB / 0.822 GB, free: 15.17 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.081e-05/0.005974, allocations: 7.953 kB / 0.822 GB, free: 15.16 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.171e-05/0.006006, allocations: 13.66 kB / 0.8221 GB, free: 15.14 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 8.919e-05/0.006095, allocations: 318.8 kB / 0.8224 GB, free: 14.82 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.548e-05/0.006111, allocations: 3.984 kB / 0.8224 GB, free: 14.82 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.508e-05/0.006126, allocations: 7.938 kB / 0.8224 GB, free: 14.81 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.867e-05/0.006164, allocations: 23.94 kB / 0.8224 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.006167, allocations: 0 / 0.8224 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of matching and sorting (n=3) (initialization): time 7.042e-05/0.006238, allocations: 37.69 kB / 0.8224 GB, free: 14.74 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.006253, allocations: 7.938 kB / 0.8224 GB, free: 14.73 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.006259, allocations: 4 kB / 0.8224 GB, free: 14.73 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.006272, allocations: 4 kB / 0.8224 GB, free: 14.73 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.669e-05/0.006359, allocations: 12 kB / 0.8225 GB, free: 14.71 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.056e-06/0.006362, allocations: 0 / 0.8225 GB, free: 14.71 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.91e-05/0.006401, allocations: 11.98 kB / 0.8225 GB, free: 14.7 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.759e-05/0.006418, allocations: 0 / 0.8225 GB, free: 14.7 MB / 0.8073 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 6.726e-05/0.006486, allocations: 116.6 kB / 0.8226 GB, free: 14.58 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.482e-05/0.00651, allocations: 3.938 kB / 0.8226 GB, free: 14.57 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001033/0.006614, allocations: 53.67 kB / 0.8226 GB, free: 14.51 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.006616, allocations: 0 / 0.8226 GB, free: 14.51 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.272e-06/0.006617, allocations: 4 kB / 0.8226 GB, free: 14.51 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.00662, allocations: 0 / 0.8226 GB, free: 14.51 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000126/0.006746, allocations: 73.88 kB / 0.8227 GB, free: 14.42 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.006747, allocations: 0 / 0.8227 GB, free: 14.42 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.642e-05/0.006804, allocations: 15.98 kB / 0.8227 GB, free: 14.4 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 9.057e-06/0.006813, allocations: 3.953 kB / 0.8227 GB, free: 14.4 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.006814, allocations: 0 / 0.8227 GB, free: 14.4 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.853e-06/0.006821, allocations: 3.938 kB / 0.8227 GB, free: 14.39 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.006823, allocations: 0 / 0.8227 GB, free: 14.39 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.006824, allocations: 4 kB / 0.8227 GB, free: 14.39 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001067/0.006931, allocations: 147.5 kB / 0.8229 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.156e-05/0.006942, allocations: 4 kB / 0.8229 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.68e-05/0.007009, allocations: 7.938 kB / 0.8229 GB, free: 14.22 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.478e-05/0.007044, allocations: 3.984 kB / 0.8229 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.823e-06/0.007051, allocations: 4 kB / 0.8229 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 2.514e-05/0.007076, allocations: 24.77 kB / 0.8229 GB, free: 14.18 MB / 0.8073 GB Notification: Performance of sort global known variables: time 9e-08/0.007076, allocations: 0 / 0.8229 GB, free: 14.18 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0002241/0.0073, allocations: 15.94 kB / 0.8229 GB, free: 14.17 MB / 0.8073 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 0.0001205/0.007421, allocations: 76.42 kB / 0.823 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 9.759e-05/0.007518, allocations: 63.58 kB / 0.8231 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 7.063e-06/0.007525, allocations: 4 kB / 0.8231 GB, free: 14.02 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 3.459e-05/0.00756, allocations: 16.8 kB / 0.8231 GB, free: 14 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002322/0.007792, allocations: 68.8 kB / 0.8231 GB, free: 13.92 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005851/0.008377, allocations: 162 kB / 0.8233 GB, free: 13.73 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.448e-05/0.008412, allocations: 63.2 kB / 0.8234 GB, free: 13.65 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 1.933e-05/0.008431, allocations: 4 kB / 0.8234 GB, free: 13.64 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.801e-05/0.008479, allocations: 63.36 kB / 0.8234 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of SimCode: time 8.31e-07/0.00848, allocations: 0 / 0.8234 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of Templates: time 0.002243/0.01072, allocations: 0.7896 MB / 0.8242 GB, free: 12.8 MB / 0.8073 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Average_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_latest_Buildings.Utilities.Math.Examples.Average/Buildings_latest_Buildings.Utilities.Math.Examples.Average.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.072426684200764]