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.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.001027/0.001027, allocations: 81.95 kB / 19.87 MB, free: 4.621 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.00115/0.00115, allocations: 169.7 kB / 23.27 MB, free: 1.223 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.9574/0.9574, allocations: 177.1 MB / 203.7 MB, free: 5.523 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002555/0.002555, allocations: 237.5 kB / 260.5 MB, free: 12.68 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 0.7311/0.7311, allocations: 138.4 MB / 455.5 MB, free: 30.02 MB / 410.7 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 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(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 1.914e-06/1.914e-06, allocations: 0 / 0.5557 GB, free: 15.79 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.888e-05/3.08e-05, allocations: 5.688 kB / 0.5557 GB, free: 15.79 MB / 490.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002748/0.002779, allocations: 1.466 MB / 0.5571 GB, free: 14.3 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.006362/0.009141, allocations: 3.97 MB / 0.561 GB, free: 10.31 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.843e-05/0.009239, allocations: 3.938 kB / 0.561 GB, free: 10.31 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001293/0.009369, allocations: 7.922 kB / 0.561 GB, free: 10.3 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002787/0.009647, allocations: 39.7 kB / 0.561 GB, free: 10.26 MB / 490.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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 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.00449/0.01414, allocations: 1.605 MB / 0.5626 GB, free: 8.652 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001725/0.01431, allocations: 95.66 kB / 0.5627 GB, free: 8.559 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.291e-05/0.01435, allocations: 7.938 kB / 0.5627 GB, free: 8.551 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001102/0.01446, allocations: 59.88 kB / 0.5627 GB, free: 8.492 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001362/0.0146, allocations: 53.17 kB / 0.5628 GB, free: 8.441 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 2.089e-05/0.01462, allocations: 4 kB / 0.5628 GB, free: 8.438 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004059/0.01868, allocations: 2.396 MB / 0.5651 GB, free: 6.051 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002147/0.01889, allocations: 251.3 kB / 0.5654 GB, free: 5.805 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000135/0.01903, allocations: 123.4 kB / 0.5655 GB, free: 5.684 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004166/0.02319, allocations: 2.329 MB / 0.5678 GB, free: 3.348 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.0232, allocations: 0 / 0.5678 GB, free: 3.348 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.0232, allocations: 4 kB / 0.5678 GB, free: 3.344 MB / 490.7 MB Notification: Performance of Transformations before backend: time 1.045e-05/0.02321, allocations: 0 / 0.5678 GB, free: 3.344 MB / 490.7 MB 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.002068/0.02528, allocations: 1.376 MB / 0.5691 GB, free: 1.926 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.321e-05/0.02533, allocations: 9.938 kB / 0.5691 GB, free: 1.918 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003387/0.02567, allocations: 88.25 kB / 0.5692 GB, free: 1.832 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003619/0.02603, allocations: 297.3 kB / 0.5695 GB, free: 1.504 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.551e-05/0.02605, allocations: 8.375 kB / 0.5695 GB, free: 1.496 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.565e-05/0.02608, allocations: 8.375 kB / 0.5695 GB, free: 1.488 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002989/0.02638, allocations: 234.1 kB / 0.5697 GB, free: 1.242 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.617e-06/0.02639, allocations: 4.188 kB / 0.5697 GB, free: 1.238 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.053e-05/0.0264, allocations: 384 / 0.5697 GB, free: 1.238 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.02641, allocations: 3.938 kB / 0.5697 GB, free: 1.234 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001877/0.0266, allocations: 199.9 kB / 0.5699 GB, free: 1.039 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005042/0.0271, allocations: 497.1 kB / 0.5704 GB, free: 0.5234 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000295/0.0274, allocations: 301.9 kB / 0.5707 GB, free: 208 kB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001415/0.02754, allocations: 163.3 kB / 0.5709 GB, free: 36 kB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004854/0.02802, allocations: 130.6 kB / 0.571 GB, free: 15.91 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000272/0.0283, allocations: 244.2 kB / 0.5712 GB, free: 15.65 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=8): time 1.904e-06/0.0283, allocations: 0 / 0.5712 GB, free: 15.65 MB / 0.4948 GB Notification: Performance of matching and sorting (n=8): time 0.0007038/0.029, allocations: 0.7623 MB / 0.572 GB, free: 14.88 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.659e-05/0.02904, allocations: 81.11 kB / 0.572 GB, free: 14.78 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006543/0.02969, allocations: 1.198 MB / 0.5732 GB, free: 13.57 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.768e-05/0.02972, allocations: 33.69 kB / 0.5732 GB, free: 13.53 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001566/0.02988, allocations: 352.5 kB / 0.5736 GB, free: 13.18 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 3.174e-05/0.02991, allocations: 27.81 kB / 0.5736 GB, free: 13.15 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002668/0.03018, allocations: 422.2 kB / 0.574 GB, free: 12.73 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001078/0.03028, allocations: 492.4 kB / 0.5745 GB, free: 12.24 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003067/0.03059, allocations: 494.4 kB / 0.5749 GB, free: 11.76 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003974/0.03099, allocations: 0.6562 MB / 0.5756 GB, free: 11.09 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001516/0.0325, allocations: 2.266 MB / 0.5778 GB, free: 8.734 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.03251, allocations: 0 / 0.5778 GB, free: 8.734 MB / 0.4948 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.002649/0.03515, allocations: 3.844 MB / 0.5816 GB, free: 4.855 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.03517, allocations: 8 kB / 0.5816 GB, free: 4.848 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.736e-05/0.03519, allocations: 0 / 0.5816 GB, free: 4.848 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.437e-05/0.03521, allocations: 4 kB / 0.5816 GB, free: 4.844 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001122/0.03532, allocations: 19.98 kB / 0.5816 GB, free: 4.824 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.03532, allocations: 3.938 kB / 0.5816 GB, free: 4.82 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002796/0.0356, allocations: 241.4 kB / 0.5818 GB, free: 4.582 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.044e-05/0.03563, allocations: 23.98 kB / 0.5818 GB, free: 4.559 MB / 0.4948 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 (labels[1],cluSiz[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.0001474/0.03578, allocations: 171.5 kB / 0.582 GB, free: 4.383 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.36e-05/0.03582, allocations: 71.34 kB / 0.5821 GB, free: 4.312 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004438/0.03627, allocations: 0.5769 MB / 0.5826 GB, free: 3.723 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-06/0.03627, allocations: 0 / 0.5826 GB, free: 3.723 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.913e-06/0.03627, allocations: 0 / 0.5826 GB, free: 3.723 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.03628, allocations: 3.938 kB / 0.5826 GB, free: 3.719 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002743/0.03655, allocations: 374.7 kB / 0.583 GB, free: 3.328 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.03655, allocations: 0 / 0.583 GB, free: 3.328 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.067e-05/0.0366, allocations: 7.984 kB / 0.583 GB, free: 3.32 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.03661, allocations: 0 / 0.583 GB, free: 3.32 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.304e-06/0.03661, allocations: 4 kB / 0.583 GB, free: 3.316 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.03662, allocations: 3.938 kB / 0.583 GB, free: 3.312 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.03662, allocations: 0 / 0.583 GB, free: 3.312 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003912/0.03701, allocations: 0.6572 MB / 0.5837 GB, free: 2.629 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 5.203e-05/0.03706, allocations: 79.34 kB / 0.5837 GB, free: 2.551 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.937e-05/0.03709, allocations: 0 / 0.5837 GB, free: 2.551 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.862e-05/0.03716, allocations: 8 kB / 0.5837 GB, free: 2.543 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.691e-05/0.03719, allocations: 11.92 kB / 0.5837 GB, free: 2.531 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.815e-05/0.03721, allocations: 15.97 kB / 0.5838 GB, free: 2.516 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0002956/0.03751, allocations: 0.5204 MB / 0.5843 GB, free: 1.988 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.4e-07/0.03751, allocations: 0 / 0.5843 GB, free: 1.988 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.001201/0.03871, allocations: 0.5923 MB / 0.5848 GB, free: 1.395 MB / 0.4948 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.00137/0.04008, allocations: 0.805 MB / 0.5856 GB, free: 0.6172 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0007953/0.04088, allocations: 1.086 MB / 0.5867 GB, free: 15.51 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.04088, allocations: 0 / 0.5867 GB, free: 15.51 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0001111/0.04099, allocations: 167.5 kB / 0.5869 GB, free: 15.34 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002265/0.04122, allocations: 37.34 kB / 0.5869 GB, free: 15.3 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001141/0.04236, allocations: 1.442 MB / 0.5883 GB, free: 13.82 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000104/0.04246, allocations: 191.1 kB / 0.5885 GB, free: 13.61 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 8.282e-05/0.04254, allocations: 28.47 kB / 0.5885 GB, free: 13.58 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001154/0.04266, allocations: 98.17 kB / 0.5886 GB, free: 13.48 MB / 0.5105 GB Notification: Performance of SimCode: time 1.222e-06/0.04266, allocations: 0 / 0.5886 GB, free: 13.48 MB / 0.5105 GB Notification: Performance of Templates: time 0.01771/0.06037, allocations: 15.68 MB / 0.6039 GB, free: 13.96 MB / 0.5261 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=240 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.052081755828112]