Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/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: "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001171/0.001171, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001262/0.001262, allocations: 194.2 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.371/1.371, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo): time 1.003/1.003, allocations: 143 MB / 433.4 MB, free: 11.61 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002034/0.002034, allocations: 59.91 kB / 0.5143 GB, free: 11.5 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1657/0.1677, allocations: 82.05 MB / 0.5944 GB, free: 9.422 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.00265/0.1704, allocations: 1.42 MB / 0.5958 GB, free: 7.984 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.005992/0.1764, allocations: 4.203 MB / 0.5999 GB, free: 3.762 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.729e-05/0.1765, allocations: 0 / 0.5999 GB, free: 3.762 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001037/0.1766, allocations: 11.88 kB / 0.6 GB, free: 3.75 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002165/0.1768, allocations: 31.83 kB / 0.6 GB, free: 3.719 MB / 0.4981 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/BuildSysPro 3.6.0/IBPSA/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.003586/0.1804, allocations: 1.495 MB / 0.6014 GB, free: 2.219 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001266/0.1806, allocations: 99.67 kB / 0.6015 GB, free: 2.121 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.696e-05/0.1806, allocations: 4 kB / 0.6015 GB, free: 2.117 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.117e-05/0.1807, allocations: 43.89 kB / 0.6016 GB, free: 2.074 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002085/0.1809, allocations: 151.5 kB / 0.6017 GB, free: 1.926 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.374e-05/0.181, allocations: 16 kB / 0.6017 GB, free: 1.91 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.2647/0.4457, allocations: 2.148 MB / 0.6038 GB, free: 37.8 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002015/0.4459, allocations: 267.3 kB / 0.6041 GB, free: 37.8 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002111/0.4461, allocations: 279.5 kB / 0.6044 GB, free: 37.67 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002982/0.4491, allocations: 2.105 MB / 0.6064 GB, free: 37.48 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.4491, allocations: 2.531 kB / 0.6064 GB, free: 37.48 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.124e-06/0.4491, allocations: 0 / 0.6064 GB, free: 37.48 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.039e-05/0.4492, allocations: 0.6875 kB / 0.6064 GB, free: 37.48 MB / 0.4981 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.009989/0.4592, allocations: 1.295 MB / 0.6077 GB, free: 36.63 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.243e-05/0.4592, allocations: 14.73 kB / 0.6077 GB, free: 36.63 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.782e-05/0.4593, allocations: 31.28 kB / 0.6077 GB, free: 36.59 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003732/0.4596, allocations: 94.17 kB / 0.6078 GB, free: 36.54 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003067/0.4599, allocations: 361 kB / 0.6082 GB, free: 36.27 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.184e-05/0.46, allocations: 10.91 kB / 0.6082 GB, free: 36.26 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.898e-05/0.46, allocations: 6.875 kB / 0.6082 GB, free: 36.26 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003898/0.4604, allocations: 400 kB / 0.6086 GB, free: 36.21 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.4604, allocations: 0 / 0.6086 GB, free: 36.21 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.248e-05/0.4604, allocations: 1.125 kB / 0.6086 GB, free: 36.21 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.4605, allocations: 0 / 0.6086 GB, free: 36.21 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003349/0.4608, allocations: 434.1 kB / 0.609 GB, free: 36.21 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004246/0.4612, allocations: 0.6469 MB / 0.6096 GB, free: 35.92 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003805/0.4616, allocations: 0.5607 MB / 0.6102 GB, free: 35.88 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002354/0.4619, allocations: 336.1 kB / 0.6105 GB, free: 35.86 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008382/0.4627, allocations: 1.029 MB / 0.6115 GB, free: 34.73 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003136/0.463, allocations: 409.6 kB / 0.6119 GB, free: 34.67 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.223e-06/0.463, allocations: 0 / 0.6119 GB, free: 34.67 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.001192/0.4642, allocations: 1.287 MB / 0.6131 GB, free: 34.59 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.991e-05/0.4643, allocations: 84.89 kB / 0.6132 GB, free: 34.49 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000985/0.4653, allocations: 1.211 MB / 0.6144 GB, free: 34.26 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.196e-05/0.4653, allocations: 31.95 kB / 0.6144 GB, free: 34.23 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001437/0.4655, allocations: 264 kB / 0.6147 GB, free: 34.09 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.008e-05/0.4655, allocations: 23.53 kB / 0.6147 GB, free: 34.08 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002489/0.4658, allocations: 350.8 kB / 0.615 GB, free: 34.07 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.129e-05/0.4658, allocations: 309.5 kB / 0.6153 GB, free: 33.76 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001072/0.4669, allocations: 1.37 MB / 0.6167 GB, free: 33.76 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001047/0.468, allocations: 1.508 MB / 0.6181 GB, free: 33.72 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006254/0.4742, allocations: 3.562 MB / 0.6216 GB, free: 32.32 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.4742, allocations: 0 / 0.6216 GB, free: 32.32 MB / 0.4981 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003568/0.4778, allocations: 4.003 MB / 0.6255 GB, free: 30.34 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.179e-05/0.4779, allocations: 5.25 kB / 0.6255 GB, free: 30.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.091e-05/0.4779, allocations: 6 kB / 0.6255 GB, free: 30.34 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.991e-05/0.4779, allocations: 0 / 0.6255 GB, free: 30.34 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001336/0.478, allocations: 23.66 kB / 0.6256 GB, free: 30.33 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.879e-06/0.4781, allocations: 3.188 kB / 0.6256 GB, free: 30.33 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006071/0.4787, allocations: 231.7 kB / 0.6258 GB, free: 30.14 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.824e-05/0.4787, allocations: 22.34 kB / 0.6258 GB, free: 30.14 MB / 0.4981 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.0002609/0.479, allocations: 246.2 kB / 0.626 GB, free: 30.03 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.871e-05/0.4791, allocations: 68.22 kB / 0.6261 GB, free: 29.97 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002687/0.4793, allocations: 80.83 kB / 0.6262 GB, free: 29.91 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.4793, allocations: 2.625 kB / 0.6262 GB, free: 29.91 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/0.4794, allocations: 0 / 0.6262 GB, free: 29.91 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.4794, allocations: 3.188 kB / 0.6262 GB, free: 29.91 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003424/0.4797, allocations: 494.6 kB / 0.6267 GB, free: 29.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.4797, allocations: 0 / 0.6267 GB, free: 29.64 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.121e-05/0.4798, allocations: 13.08 kB / 0.6267 GB, free: 29.64 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.4798, allocations: 4.594 kB / 0.6267 GB, free: 29.64 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.261e-05/0.4798, allocations: 4 kB / 0.6267 GB, free: 29.63 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.4798, allocations: 6.25 kB / 0.6267 GB, free: 29.63 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/0.4798, allocations: 6.906 kB / 0.6267 GB, free: 29.63 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008454/0.4807, allocations: 0.9933 MB / 0.6277 GB, free: 29.49 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 9.288e-05/0.4808, allocations: 156.3 kB / 0.6278 GB, free: 29.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.137e-05/0.4809, allocations: 0.5156 kB / 0.6278 GB, free: 29.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001309/0.481, allocations: 9.75 kB / 0.6278 GB, free: 29.34 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.868e-05/0.4811, allocations: 10.5 kB / 0.6278 GB, free: 29.33 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.861e-05/0.4811, allocations: 13.28 kB / 0.6278 GB, free: 29.33 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0007185/0.4818, allocations: 0.672 MB / 0.6285 GB, free: 29.11 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.71e-07/0.4818, allocations: 0 / 0.6285 GB, free: 29.11 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001647/0.4835, allocations: 0.5733 MB / 0.6291 GB, free: 29.01 MB / 0.4981 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.003148/0.4866, allocations: 2.144 MB / 0.6312 GB, free: 28.22 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002428/0.4891, allocations: 2.554 MB / 0.6336 GB, free: 27.2 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.4891, allocations: 5.125 kB / 0.6336 GB, free: 27.19 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003534/0.4895, allocations: 340.3 kB / 0.634 GB, free: 27.18 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003294/0.4898, allocations: 40.62 kB / 0.634 GB, free: 27.16 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01452/0.5043, allocations: 15.15 MB / 0.6488 GB, free: 20.36 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003809/0.5048, allocations: 0.9642 MB / 0.6497 GB, free: 19.66 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001655/0.5049, allocations: 34.72 kB / 0.6498 GB, free: 19.65 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002511/0.5052, allocations: 264 kB / 0.65 GB, free: 19.43 MB / 0.4981 GB Notification: Performance of SimCode: time 1.362e-06/0.5052, allocations: 0 / 0.65 GB, free: 19.43 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05355/0.5587, allocations: 23.79 MB / 0.6733 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.589/9.147, allocations: 16.5 kB / 0.6733 GB, free: 11.22 MB / 0.4981 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & python3 -m fmpy simulate --output-file BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters_res.csv --start-time 0 --stop-time 4.12e+08 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 164800 BuildSysPro_BuildSysPro_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)