Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001275/0.001275, allocations: 110 kB / 18.93 MB, free: 2.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001325/0.001325, allocations: 189.2 kB / 22.23 MB, free: 5.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.36/1.36, allocations: 225.6 MB / 251 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00244/0.00244, allocations: 285.5 kB / 306.5 MB, free: 8.312 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.187/1.187, allocations: 180.9 MB / 0.53 GB, free: 14.52 MB / 382.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters") translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002758/0.002758, allocations: 99.39 kB / 0.7309 GB, free: 39.03 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1386/0.1413, allocations: 94.2 MB / 0.8229 GB, free: 1.75 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002506/0.1438, allocations: 1.438 MB / 0.8243 GB, free: 308 kB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.006614/0.1504, allocations: 4.263 MB / 0.8285 GB, free: 12.02 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.23e-05/0.1505, allocations: 3.938 kB / 0.8285 GB, free: 12.01 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 9.584e-05/0.1506, allocations: 11.86 kB / 0.8285 GB, free: 12 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002066/0.1508, allocations: 31.83 kB / 0.8285 GB, free: 11.97 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initializeImpureRandom' contains a call to impure function 'Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Utilities/Clustering/KMeans.mo:96:7-96:35:writable] Warning: inertia was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.003831/0.1546, allocations: 1.599 MB / 0.8301 GB, free: 10.37 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0001496/0.1548, allocations: 99.67 kB / 0.8302 GB, free: 10.27 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 3.62e-05/0.1548, allocations: 0 / 0.8302 GB, free: 10.27 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 7.199e-05/0.1549, allocations: 43.89 kB / 0.8302 GB, free: 10.23 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002366/0.1551, allocations: 155.6 kB / 0.8304 GB, free: 10.08 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.763e-05/0.1552, allocations: 16 kB / 0.8304 GB, free: 10.06 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003925/0.1591, allocations: 2.62 MB / 0.8329 GB, free: 7.438 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002874/0.1594, allocations: 267.8 kB / 0.8332 GB, free: 7.172 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002467/0.1596, allocations: 278.3 kB / 0.8335 GB, free: 6.898 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.003011/0.1626, allocations: 2.15 MB / 0.8356 GB, free: 4.742 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.1626, allocations: 0 / 0.8356 GB, free: 4.742 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.282e-06/0.1626, allocations: 0 / 0.8356 GB, free: 4.742 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.394e-06/0.1626, allocations: 0 / 0.8356 GB, free: 4.742 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.008102/0.1707, allocations: 1.272 MB / 0.8368 GB, free: 3.434 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.1708, allocations: 8.031 kB / 0.8368 GB, free: 3.426 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003949/0.1712, allocations: 92.23 kB / 0.8369 GB, free: 3.336 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004216/0.1716, allocations: 311.2 kB / 0.8372 GB, free: 2.996 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.997e-06/0.1716, allocations: 4.375 kB / 0.8372 GB, free: 2.992 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.356e-05/0.1716, allocations: 8.375 kB / 0.8372 GB, free: 2.984 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000467/0.1721, allocations: 399.4 kB / 0.8376 GB, free: 2.582 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.776e-06/0.1721, allocations: 0 / 0.8376 GB, free: 2.582 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.071e-05/0.1721, allocations: 3.938 kB / 0.8376 GB, free: 2.578 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.047e-06/0.1721, allocations: 0 / 0.8376 GB, free: 2.578 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004654/0.1726, allocations: 431.8 kB / 0.838 GB, free: 2.156 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006439/0.1732, allocations: 0.6167 MB / 0.8386 GB, free: 1.496 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000579/0.1738, allocations: 0.5634 MB / 0.8392 GB, free: 0.9141 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003459/0.1742, allocations: 341.6 kB / 0.8395 GB, free: 0.5742 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006373/0.1748, allocations: 139.8 kB / 0.8396 GB, free: 448 kB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004336/0.1752, allocations: 408.8 kB / 0.84 GB, free: 20 kB / 0.5762 GB Notification: Performance of pre-optimization done (n=8): time 1.332e-06/0.1752, allocations: 0 / 0.84 GB, free: 20 kB / 0.5762 GB Notification: Performance of matching and sorting (n=8): time 0.001451/0.1767, allocations: 1.285 MB / 0.8413 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.893e-05/0.1768, allocations: 89.09 kB / 0.8413 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001273/0.178, allocations: 1.223 MB / 0.8425 GB, free: 13.38 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.037e-05/0.1781, allocations: 29.7 kB / 0.8426 GB, free: 13.35 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002057/0.1783, allocations: 265.9 kB / 0.8428 GB, free: 13.08 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 3.758e-05/0.1783, allocations: 23.84 kB / 0.8428 GB, free: 13.06 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003635/0.1787, allocations: 355.8 kB / 0.8432 GB, free: 12.71 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001363/0.1788, allocations: 310 kB / 0.8435 GB, free: 12.4 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001362/0.1802, allocations: 1.373 MB / 0.8448 GB, free: 11.02 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001475/0.1816, allocations: 1.501 MB / 0.8463 GB, free: 9.512 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007453/0.1891, allocations: 3.56 MB / 0.8498 GB, free: 5.859 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.1891, allocations: 0 / 0.8498 GB, free: 5.859 MB / 0.5919 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.00458/0.1937, allocations: 4.011 MB / 0.8537 GB, free: 1.812 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.117e-05/0.1937, allocations: 8 kB / 0.8537 GB, free: 1.805 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.616e-05/0.1937, allocations: 0 / 0.8537 GB, free: 1.805 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.204e-05/0.1937, allocations: 4 kB / 0.8537 GB, free: 1.801 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001366/0.1939, allocations: 24.02 kB / 0.8537 GB, free: 1.777 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.081e-06/0.1939, allocations: 0 / 0.8537 GB, free: 1.777 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004551/0.1943, allocations: 237.3 kB / 0.8539 GB, free: 1.543 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.975e-05/0.1944, allocations: 23.98 kB / 0.854 GB, free: 1.52 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 13 (cluSiz[1],labels[1],gFun2,$PRE.gFun2,gFun1,$PRE.gFun1,t2,$PRE.t2,t1,$PRE.t1,k,$PRE.k,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 13 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 2 * 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.0003035/0.1947, allocations: 242.3 kB / 0.8542 GB, free: 1.273 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.765e-05/0.1948, allocations: 75.23 kB / 0.8543 GB, free: 1.199 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001102/0.1959, allocations: 0.9477 MB / 0.8552 GB, free: 248 kB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.1959, allocations: 0 / 0.8552 GB, free: 248 kB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.1959, allocations: 4 kB / 0.8552 GB, free: 244 kB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.1959, allocations: 0 / 0.8552 GB, free: 244 kB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004429/0.1963, allocations: 464 kB / 0.8556 GB, free: 15.75 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.1963, allocations: 0 / 0.8556 GB, free: 15.75 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.453e-05/0.1964, allocations: 19.86 kB / 0.8557 GB, free: 15.73 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.1964, allocations: 0 / 0.8557 GB, free: 15.73 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.202e-05/0.1964, allocations: 4 kB / 0.8557 GB, free: 15.72 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.1964, allocations: 32 / 0.8557 GB, free: 15.72 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.1964, allocations: 7.938 kB / 0.8557 GB, free: 15.71 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009771/0.1974, allocations: 1.006 MB / 0.8567 GB, free: 14.69 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 8.68e-05/0.1975, allocations: 83.22 kB / 0.8567 GB, free: 14.61 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.377e-05/0.1975, allocations: 4 kB / 0.8567 GB, free: 14.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001344/0.1977, allocations: 7.984 kB / 0.8567 GB, free: 14.59 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.916e-05/0.1977, allocations: 11.98 kB / 0.8568 GB, free: 14.58 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.655e-05/0.1977, allocations: 11.98 kB / 0.8568 GB, free: 14.57 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.000803/0.1985, allocations: 0.6689 MB / 0.8574 GB, free: 13.89 MB / 0.6075 GB Notification: Performance of sort global known variables: time 8e-08/0.1985, allocations: 0 / 0.8574 GB, free: 13.89 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001512/0.2001, allocations: 0.5845 MB / 0.858 GB, free: 13.31 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,k,t1,t2,gFun1,gFun2) * Number of discrete states: 2 (k,t2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 3 * 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.001821/0.2019, allocations: 0.7061 MB / 0.8587 GB, free: 12.61 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002207/0.2041, allocations: 1.997 MB / 0.8606 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.2041, allocations: 0 / 0.8606 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0003551/0.2044, allocations: 339.8 kB / 0.861 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000311/0.2048, allocations: 37.03 kB / 0.861 GB, free: 10.23 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002183/0.2069, allocations: 1.774 MB / 0.8627 GB, free: 8.422 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006023/0.2075, allocations: 0.9724 MB / 0.8637 GB, free: 7.422 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.000124/0.2077, allocations: 28.5 kB / 0.8637 GB, free: 7.395 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.915e-05/0.2078, allocations: 27.41 kB / 0.8637 GB, free: 7.367 MB / 0.6075 GB Notification: Performance of SimCode: time 5.71e-07/0.2078, allocations: 0 / 0.8637 GB, free: 7.367 MB / 0.6075 GB Notification: Performance of Templates: time 0.0232/0.231, allocations: 13.74 MB / 0.8771 GB, free: 9.668 MB / 0.6231 GB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.makefile [Timeout 660] (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & ./BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.891891993582249] Failed to read output from testmodel.py, exit status != 0: 0.23835113365203142 0.25339170999999994 0.08772101800000001 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7fc4f4b397b0>