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.00092/0.00092, allocations: 73.09 kB / 20.65 MB, free: 3.844 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.0009609/0.0009609, allocations: 173 kB / 24.06 MB, free: 456 kB / 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.9322/0.9322, allocations: 177.1 MB / 204.5 MB, free: 5.496 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.001715/0.001715, allocations: 245.4 kB / 261.3 MB, free: 12.65 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.7041/0.7041, allocations: 138.4 MB / 456.3 MB, free: 1.422 MB / 362.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.673e-06/1.673e-06, allocations: 0 / 0.5565 GB, free: 176 kB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.355e-05/2.523e-05, allocations: 2.312 kB / 0.5565 GB, free: 172 kB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002689/0.002714, allocations: 1.457 MB / 0.5579 GB, free: 14.69 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.006385/0.009099, allocations: 3.966 MB / 0.5618 GB, free: 10.7 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.914e-05/0.009168, allocations: 0 / 0.5618 GB, free: 10.7 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001236/0.009291, allocations: 11.86 kB / 0.5618 GB, free: 10.69 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002498/0.009541, allocations: 39.7 kB / 0.5618 GB, free: 10.65 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.003939/0.01348, allocations: 1.605 MB / 0.5634 GB, free: 9.047 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001577/0.01364, allocations: 95.61 kB / 0.5635 GB, free: 8.953 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.463e-05/0.01368, allocations: 11.92 kB / 0.5635 GB, free: 8.941 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001001/0.01378, allocations: 59.88 kB / 0.5635 GB, free: 8.883 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001321/0.01391, allocations: 49.19 kB / 0.5636 GB, free: 8.836 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 2.127e-05/0.01394, allocations: 4 kB / 0.5636 GB, free: 8.832 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00359/0.01753, allocations: 2.398 MB / 0.5659 GB, free: 6.445 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001437/0.01767, allocations: 251.3 kB / 0.5662 GB, free: 6.199 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 9.271e-05/0.01776, allocations: 123.4 kB / 0.5663 GB, free: 6.078 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002257/0.02002, allocations: 2.329 MB / 0.5686 GB, free: 3.742 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.02002, allocations: 0 / 0.5686 GB, free: 3.742 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.02002, allocations: 4 kB / 0.5686 GB, free: 3.738 MB / 490.7 MB Notification: Performance of Transformations before backend: time 8.075e-06/0.02003, allocations: 4 kB / 0.5686 GB, free: 3.734 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.001409/0.02144, allocations: 1.372 MB / 0.5699 GB, free: 2.32 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.408e-05/0.02148, allocations: 12.75 kB / 0.5699 GB, free: 2.309 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002351/0.02171, allocations: 88.25 kB / 0.57 GB, free: 2.223 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002474/0.02196, allocations: 297.3 kB / 0.5703 GB, free: 1.895 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.224e-05/0.02197, allocations: 4.375 kB / 0.5703 GB, free: 1.891 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.612e-05/0.022, allocations: 8.375 kB / 0.5703 GB, free: 1.883 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002055/0.0222, allocations: 242.2 kB / 0.5705 GB, free: 1.629 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/0.02221, allocations: 192 / 0.5705 GB, free: 1.629 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.317e-06/0.02222, allocations: 4.375 kB / 0.5705 GB, free: 1.625 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.171e-06/0.02222, allocations: 3.938 kB / 0.5705 GB, free: 1.621 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001275/0.02235, allocations: 199.8 kB / 0.5707 GB, free: 1.426 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000326/0.02268, allocations: 0.4932 MB / 0.5712 GB, free: 0.9023 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001932/0.02287, allocations: 297.9 kB / 0.5715 GB, free: 0.5859 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001052/0.02298, allocations: 175.5 kB / 0.5717 GB, free: 416 kB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002907/0.02327, allocations: 123.9 kB / 0.5718 GB, free: 292 kB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001879/0.02346, allocations: 228.3 kB / 0.572 GB, free: 40 kB / 490.7 MB Notification: Performance of pre-optimization done (n=8): time 7.82e-07/0.02346, allocations: 0 / 0.572 GB, free: 40 kB / 490.7 MB Notification: Performance of matching and sorting (n=8): time 0.0005909/0.02405, allocations: 0.7583 MB / 0.5727 GB, free: 15.27 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.885e-05/0.02409, allocations: 85.05 kB / 0.5728 GB, free: 15.17 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006518/0.02474, allocations: 1.202 MB / 0.574 GB, free: 13.95 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.81e-05/0.02477, allocations: 29.7 kB / 0.574 GB, free: 13.92 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001578/0.02492, allocations: 348.5 kB / 0.5743 GB, free: 13.57 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 3.168e-05/0.02496, allocations: 31.77 kB / 0.5744 GB, free: 13.54 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002534/0.02521, allocations: 430.2 kB / 0.5748 GB, free: 13.11 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001047/0.02531, allocations: 488.4 kB / 0.5753 GB, free: 12.63 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003164/0.02563, allocations: 494.4 kB / 0.5757 GB, free: 12.14 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003985/0.02603, allocations: 0.6562 MB / 0.5764 GB, free: 11.48 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001513/0.02754, allocations: 2.254 MB / 0.5786 GB, free: 9.133 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.02754, allocations: 4 kB / 0.5786 GB, free: 9.129 MB / 0.4948 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.002544/0.03009, allocations: 3.844 MB / 0.5823 GB, free: 5.246 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.0301, allocations: 4 kB / 0.5823 GB, free: 5.242 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.429e-05/0.03012, allocations: 4 kB / 0.5823 GB, free: 5.238 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.014e-05/0.03013, allocations: 0 / 0.5823 GB, free: 5.238 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.604e-05/0.03023, allocations: 27.92 kB / 0.5824 GB, free: 5.211 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.637e-06/0.03023, allocations: 3.938 kB / 0.5824 GB, free: 5.207 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002492/0.03048, allocations: 237.4 kB / 0.5826 GB, free: 4.973 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.024e-05/0.03051, allocations: 27.92 kB / 0.5826 GB, free: 4.945 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.0001225/0.03063, allocations: 168.6 kB / 0.5828 GB, free: 4.77 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.09e-05/0.03067, allocations: 71.34 kB / 0.5828 GB, free: 4.699 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004307/0.0311, allocations: 0.5807 MB / 0.5834 GB, free: 4.105 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.03111, allocations: 4 kB / 0.5834 GB, free: 4.102 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.412e-06/0.03111, allocations: 0 / 0.5834 GB, free: 4.102 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.399e-06/0.03111, allocations: 3.938 kB / 0.5834 GB, free: 4.098 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002325/0.03134, allocations: 358.8 kB / 0.5838 GB, free: 3.723 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.03135, allocations: 4 kB / 0.5838 GB, free: 3.719 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.87e-05/0.03138, allocations: 12.02 kB / 0.5838 GB, free: 3.707 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.03139, allocations: 0 / 0.5838 GB, free: 3.707 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.987e-06/0.03139, allocations: 4 kB / 0.5838 GB, free: 3.703 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.0314, allocations: 0 / 0.5838 GB, free: 3.703 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-06/0.0314, allocations: 3.938 kB / 0.5838 GB, free: 3.699 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003996/0.0318, allocations: 0.6572 MB / 0.5844 GB, free: 3.016 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 5.021e-05/0.03185, allocations: 79.34 kB / 0.5845 GB, free: 2.938 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.377e-05/0.03188, allocations: 0 / 0.5845 GB, free: 2.938 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.729e-05/0.03195, allocations: 4 kB / 0.5845 GB, free: 2.934 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.525e-05/0.03197, allocations: 11.98 kB / 0.5845 GB, free: 2.922 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.475e-05/0.032, allocations: 15.97 kB / 0.5845 GB, free: 2.906 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0002823/0.03228, allocations: 0.5204 MB / 0.585 GB, free: 2.379 MB / 0.4948 GB Notification: Performance of sort global known variables: time 6e-08/0.03228, allocations: 0 / 0.585 GB, free: 2.379 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.001086/0.03337, allocations: 0.5883 MB / 0.5856 GB, free: 1.789 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.001223/0.03459, allocations: 0.8067 MB / 0.5864 GB, free: 1 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.000764/0.03535, allocations: 1.09 MB / 0.5875 GB, free: 15.89 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.262e-06/0.03535, allocations: 0 / 0.5875 GB, free: 15.89 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0001084/0.03546, allocations: 167.6 kB / 0.5876 GB, free: 15.72 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002065/0.03567, allocations: 32.59 kB / 0.5877 GB, free: 15.69 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001072/0.03674, allocations: 1.45 MB / 0.5891 GB, free: 14.2 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001043/0.03685, allocations: 187.1 kB / 0.5893 GB, free: 13.99 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 7.467e-05/0.03692, allocations: 32.45 kB / 0.5893 GB, free: 13.96 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001149/0.03704, allocations: 102.2 kB / 0.5894 GB, free: 13.86 MB / 0.5105 GB Notification: Performance of SimCode: time 5.31e-07/0.03704, allocations: 0 / 0.5894 GB, free: 13.86 MB / 0.5105 GB Notification: Performance of Templates: time 0.1697/0.2067, allocations: 15.73 MB / 0.6047 GB, free: 92.23 MB / 0.5105 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.312902177684009]