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.0007756/0.0007756, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001069/0.001844, allocations: 435.8 kB / 10.33 MB, free: 368 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.0007095/0.0007095, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008816/0.001591, allocations: 463.6 kB / 11.68 MB, free: 2.484 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 1.027/1.027, allocations: 177.2 MB / 189.6 MB, free: 5.301 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0923/1.119, allocations: 53.66 MB / 243.2 MB, free: 15.57 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.416/2.416, allocations: 446.7 MB / 0.6745 GB, free: 6.207 MB / 0.6511 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.2337/2.65, allocations: 145.9 MB / 0.817 GB, free: 4.211 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.573e-06/1.573e-06, allocations: 0 / 0.8183 GB, free: 2.887 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.231e-05/2.389e-05, allocations: 2.312 kB / 0.8183 GB, free: 2.883 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002549/0.002573, allocations: 1.645 MB / 0.8199 GB, free: 1.223 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.0001892/0.002763, allocations: 115.6 kB / 0.82 GB, free: 1.109 MB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.492e-05/0.002797, allocations: 0 / 0.82 GB, free: 1.109 MB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 6.292e-05/0.00286, allocations: 11.92 kB / 0.82 GB, free: 1.098 MB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 1.826e-05/0.002879, allocations: 15.86 kB / 0.8201 GB, free: 1.082 MB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.000133/0.003012, allocations: 23.97 kB / 0.8201 GB, free: 1.059 MB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 7.822e-05/0.00309, allocations: 59.78 kB / 0.8201 GB, free: 1 MB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 7.88e-05/0.003169, allocations: 23.86 kB / 0.8202 GB, free: 0.9766 MB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 6.709e-05/0.003236, allocations: 31.95 kB / 0.8202 GB, free: 0.9453 MB / 0.7917 GB Notification: Performance of NFSimplifyModel.simplify: time 5.396e-05/0.00329, allocations: 27.91 kB / 0.8202 GB, free: 0.918 MB / 0.7917 GB Notification: Performance of NFPackage.collectConstants: time 1.606e-05/0.003306, allocations: 4 kB / 0.8202 GB, free: 0.9141 MB / 0.7917 GB Notification: Performance of NFFlatten.collectFunctions: time 6.482e-05/0.003371, allocations: 15.98 kB / 0.8202 GB, free: 0.8984 MB / 0.7917 GB Notification: Performance of NFScalarize.scalarize: time 3.189e-05/0.003403, allocations: 11.94 kB / 0.8202 GB, free: 0.8867 MB / 0.7917 GB Notification: Performance of NFVerifyModel.verify: time 1.856e-05/0.003421, allocations: 16 kB / 0.8203 GB, free: 0.8711 MB / 0.7917 GB Notification: Performance of NFConvertDAE.convert: time 0.0001065/0.003528, allocations: 47.77 kB / 0.8203 GB, free: 0.8242 MB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 1.548e-05/0.003543, allocations: 0 / 0.8203 GB, free: 0.8242 MB / 0.7917 GB Notification: Performance of FrontEnd: time 1.603e-06/0.003545, allocations: 0 / 0.8203 GB, free: 0.8242 MB / 0.7917 GB Notification: Performance of Transformations before backend: time 1.668e-05/0.003561, allocations: 0 / 0.8203 GB, free: 0.8242 MB / 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.0003355/0.003897, allocations: 268.5 kB / 0.8206 GB, free: 0.5352 MB / 0.7917 GB Notification: Performance of prepare preOptimizeDAE: time 2.84e-05/0.003925, allocations: 12.62 kB / 0.8206 GB, free: 0.5234 MB / 0.7917 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.916e-05/0.003955, allocations: 12.92 kB / 0.8206 GB, free: 0.5117 MB / 0.7917 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001086/0.004063, allocations: 125.6 kB / 0.8207 GB, free: 372 kB / 0.7917 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.486e-06/0.004072, allocations: 4.375 kB / 0.8207 GB, free: 368 kB / 0.7917 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.202e-06/0.004078, allocations: 4.375 kB / 0.8207 GB, free: 364 kB / 0.7917 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001142/0.004192, allocations: 73.77 kB / 0.8208 GB, free: 280 kB / 0.7917 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-06/0.004199, allocations: 192 / 0.8208 GB, free: 280 kB / 0.7917 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.674e-06/0.004207, allocations: 4.375 kB / 0.8208 GB, free: 276 kB / 0.7917 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.101e-06/0.004213, allocations: 384 / 0.8208 GB, free: 276 kB / 0.7917 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.706e-05/0.00425, allocations: 19.86 kB / 0.8208 GB, free: 256 kB / 0.7917 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003017/0.004552, allocations: 189.9 kB / 0.821 GB, free: 48 kB / 0.7917 GB Notification: Performance of preOpt comSubExp (simulation): time 6.538e-05/0.004617, allocations: 26.61 kB / 0.821 GB, free: 12 kB / 0.7917 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.217e-05/0.004649, allocations: 12.89 kB / 0.821 GB, free: 15.99 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 3.303e-05/0.004682, allocations: 3.969 kB / 0.821 GB, free: 15.99 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.283e-05/0.004705, allocations: 38.58 kB / 0.8211 GB, free: 15.95 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=3): time 1.193e-06/0.004706, allocations: 3.938 kB / 0.8211 GB, free: 15.94 MB / 0.8073 GB Notification: Performance of matching and sorting (n=3): time 0.0001026/0.004809, allocations: 45.69 kB / 0.8211 GB, free: 15.89 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.696e-05/0.004836, allocations: 55.41 kB / 0.8212 GB, free: 15.82 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.407e-05/0.00489, allocations: 118.7 kB / 0.8213 GB, free: 15.7 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.051e-05/0.0049, allocations: 25.7 kB / 0.8213 GB, free: 15.66 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 3.486e-05/0.004935, allocations: 96.02 kB / 0.8214 GB, free: 15.57 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 1.603e-05/0.004951, allocations: 3.953 kB / 0.8214 GB, free: 15.56 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.612e-05/0.004977, allocations: 25.64 kB / 0.8214 GB, free: 15.53 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 8.031e-05/0.005058, allocations: 314.8 kB / 0.8217 GB, free: 15.21 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.159e-05/0.005069, allocations: 7.984 kB / 0.8217 GB, free: 15.21 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.218e-06/0.005078, allocations: 0 / 0.8217 GB, free: 15.21 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.792e-05/0.005106, allocations: 19.67 kB / 0.8218 GB, free: 15.18 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.005108, allocations: 4 kB / 0.8218 GB, free: 15.18 MB / 0.8073 GB Notification: Performance of matching and sorting (n=3) (initialization): time 4.936e-05/0.005158, allocations: 37.69 kB / 0.8218 GB, free: 15.14 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.156e-05/0.005169, allocations: 11.94 kB / 0.8218 GB, free: 15.12 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.886e-06/0.005172, allocations: 0 / 0.8218 GB, free: 15.12 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.183e-06/0.005179, allocations: 336 / 0.8218 GB, free: 15.12 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.042e-05/0.00524, allocations: 11.94 kB / 0.8218 GB, free: 15.11 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.806e-06/0.005243, allocations: 4 kB / 0.8218 GB, free: 15.11 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.078e-05/0.005263, allocations: 7.984 kB / 0.8218 GB, free: 15.1 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.2e-05/0.005275, allocations: 4 kB / 0.8218 GB, free: 15.1 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 4.602e-05/0.005321, allocations: 116.7 kB / 0.8219 GB, free: 14.97 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.897e-05/0.00537, allocations: 7.938 kB / 0.8219 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.218e-05/0.005453, allocations: 53.66 kB / 0.822 GB, free: 14.91 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.005455, allocations: 0 / 0.822 GB, free: 14.91 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.793e-06/0.005456, allocations: 0 / 0.822 GB, free: 14.91 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.045e-06/0.005459, allocations: 0 / 0.822 GB, free: 14.91 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.127e-05/0.005541, allocations: 77.88 kB / 0.8221 GB, free: 14.81 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.005542, allocations: 4 kB / 0.8221 GB, free: 14.81 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.258e-05/0.005574, allocations: 11.98 kB / 0.8221 GB, free: 14.8 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 6.292e-06/0.005581, allocations: 3.953 kB / 0.8221 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.005583, allocations: 7.938 kB / 0.8221 GB, free: 14.79 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.669e-06/0.005588, allocations: 7.875 kB / 0.8221 GB, free: 14.78 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.12e-07/0.005588, allocations: 0 / 0.8221 GB, free: 14.78 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.00559, allocations: 3.984 kB / 0.8221 GB, free: 14.77 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.853e-05/0.005669, allocations: 131.5 kB / 0.8222 GB, free: 14.63 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.028e-05/0.005679, allocations: 0 / 0.8222 GB, free: 14.63 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.643e-05/0.005735, allocations: 11.94 kB / 0.8222 GB, free: 14.62 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.734e-05/0.005763, allocations: 11.98 kB / 0.8223 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.759e-06/0.005767, allocations: 0 / 0.8223 GB, free: 14.61 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 1.821e-05/0.005786, allocations: 17.28 kB / 0.8223 GB, free: 14.59 MB / 0.8073 GB Notification: Performance of sort global known variables: time 7e-08/0.005786, allocations: 0 / 0.8223 GB, free: 14.59 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001366/0.005922, allocations: 11.94 kB / 0.8223 GB, free: 14.57 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.0001154/0.006038, allocations: 80.42 kB / 0.8224 GB, free: 14.49 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 8.625e-05/0.006124, allocations: 75.5 kB / 0.8224 GB, free: 14.41 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 7.714e-06/0.006132, allocations: 4 kB / 0.8224 GB, free: 14.41 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 2.074e-05/0.006152, allocations: 8.859 kB / 0.8224 GB, free: 14.39 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001781/0.00633, allocations: 12 kB / 0.8225 GB, free: 14.38 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004161/0.006747, allocations: 166 kB / 0.8226 GB, free: 14.19 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.124e-05/0.006788, allocations: 63.53 kB / 0.8227 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 2.616e-05/0.006814, allocations: 4 kB / 0.8227 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.308e-05/0.006867, allocations: 55.38 kB / 0.8227 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of SimCode: time 4.21e-07/0.006867, allocations: 0 / 0.8227 GB, free: 14.05 MB / 0.8073 GB Notification: Performance of Templates: time 0.002393/0.009261, allocations: 0.7962 MB / 0.8235 GB, free: 13.27 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,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.187386153265834]