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_SmallScaleValidation.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_SmallScaleValidation,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation",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.001265/0.001265, allocations: 108 kB / 15.61 MB, free: 152 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.001341/0.001341, allocations: 196.1 kB / 16.53 MB, free: 6.664 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.373/1.373, allocations: 222.9 MB / 240.2 MB, free: 4.398 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 0.9796/0.9796, allocations: 143 MB / 433.4 MB, free: 11.44 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 67.91 kB / 0.5143 GB, free: 11.55 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1603/0.1616, allocations: 82.03 MB / 0.5944 GB, free: 9.492 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002729/0.1644, allocations: 1.751 MB / 0.5961 GB, free: 7.723 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.006926/0.1713, allocations: 5.398 MB / 0.6014 GB, free: 2.301 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.136e-05/0.1714, allocations: 7.875 kB / 0.6014 GB, free: 2.293 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001052/0.1725, allocations: 362.4 kB / 0.6018 GB, free: 1.938 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.000105/0.1726, allocations: 67.64 kB / 0.6018 GB, free: 1.871 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.003166/0.1758, allocations: 1.492 MB / 0.6033 GB, free: 384 kB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002028/0.176, allocations: 155.4 kB / 0.6034 GB, free: 228 kB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.519e-05/0.176, allocations: 13.55 kB / 0.6035 GB, free: 216 kB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.629e-05/0.1761, allocations: 63.72 kB / 0.6035 GB, free: 152 kB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.2623/0.4385, allocations: 165 kB / 0.6037 GB, free: 37.53 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.586e-05/0.4386, allocations: 17.28 kB / 0.6037 GB, free: 37.53 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003139/0.4417, allocations: 2.145 MB / 0.6058 GB, free: 37.53 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000179/0.4419, allocations: 278.8 kB / 0.606 GB, free: 37.53 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002277/0.4422, allocations: 309.1 kB / 0.6063 GB, free: 37.4 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002392/0.4446, allocations: 2.175 MB / 0.6085 GB, free: 37.17 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.4446, allocations: 0 / 0.6085 GB, free: 37.17 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.605e-06/0.4446, allocations: 0 / 0.6085 GB, free: 37.17 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.152e-05/0.4446, allocations: 2.125 kB / 0.6085 GB, free: 37.17 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.01025/0.4549, allocations: 1.366 MB / 0.6098 GB, free: 36.27 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.4549, allocations: 11.03 kB / 0.6098 GB, free: 36.27 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.85e-05/0.455, allocations: 36.62 kB / 0.6098 GB, free: 36.23 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003647/0.4553, allocations: 90.91 kB / 0.6099 GB, free: 36.18 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003594/0.4557, allocations: 415 kB / 0.6103 GB, free: 35.89 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.498e-05/0.4557, allocations: 5.5 kB / 0.6103 GB, free: 35.89 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.881e-05/0.4558, allocations: 10.3 kB / 0.6103 GB, free: 35.89 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003454/0.4561, allocations: 389.3 kB / 0.6107 GB, free: 35.84 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.598e-06/0.4561, allocations: 0.5312 kB / 0.6107 GB, free: 35.84 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.338e-05/0.4562, allocations: 7.656 kB / 0.6107 GB, free: 35.84 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.4562, allocations: 0.7812 kB / 0.6107 GB, free: 35.84 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003332/0.4565, allocations: 434.9 kB / 0.6111 GB, free: 35.84 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004426/0.457, allocations: 0.6658 MB / 0.6118 GB, free: 35.55 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003781/0.4573, allocations: 0.5602 MB / 0.6123 GB, free: 35.51 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002262/0.4576, allocations: 338.2 kB / 0.6127 GB, free: 35.49 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008242/0.4584, allocations: 1.029 MB / 0.6137 GB, free: 34.37 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002987/0.4587, allocations: 416.2 kB / 0.6141 GB, free: 34.3 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 2.765e-06/0.4587, allocations: 0.6562 kB / 0.6141 GB, free: 34.3 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.001125/0.4599, allocations: 1.294 MB / 0.6153 GB, free: 34.21 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.442e-05/0.4599, allocations: 89.89 kB / 0.6154 GB, free: 34.12 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009403/0.4609, allocations: 1.292 MB / 0.6167 GB, free: 33.88 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.027e-05/0.4609, allocations: 28.95 kB / 0.6167 GB, free: 33.85 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001384/0.461, allocations: 282.4 kB / 0.617 GB, free: 33.71 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.91e-05/0.4611, allocations: 22.39 kB / 0.617 GB, free: 33.71 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002383/0.4613, allocations: 348.7 kB / 0.6173 GB, free: 33.69 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.631e-05/0.4614, allocations: 323.5 kB / 0.6176 GB, free: 33.39 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009475/0.4623, allocations: 1.372 MB / 0.619 GB, free: 33.38 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009861/0.4633, allocations: 1.502 MB / 0.6204 GB, free: 33.11 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006367/0.4697, allocations: 3.561 MB / 0.6239 GB, free: 31.27 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.4697, allocations: 0 / 0.6239 GB, free: 31.27 MB / 0.4981 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003498/0.4732, allocations: 4.012 MB / 0.6278 GB, free: 29.29 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.509e-05/0.4733, allocations: 5.906 kB / 0.6278 GB, free: 29.29 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.967e-05/0.4733, allocations: 11.34 kB / 0.6279 GB, free: 29.29 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.861e-05/0.4733, allocations: 3.812 kB / 0.6279 GB, free: 29.29 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001294/0.4735, allocations: 18.16 kB / 0.6279 GB, free: 29.29 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.4735, allocations: 1 kB / 0.6279 GB, free: 29.29 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004714/0.474, allocations: 235.1 kB / 0.6281 GB, free: 29.09 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.71e-05/0.474, allocations: 23.5 kB / 0.6281 GB, free: 29.09 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.00028/0.4743, allocations: 253.8 kB / 0.6284 GB, free: 28.97 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.49e-05/0.4744, allocations: 77.53 kB / 0.6284 GB, free: 28.91 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002609/0.4746, allocations: 76.78 kB / 0.6285 GB, free: 28.86 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.451e-06/0.4746, allocations: 1.344 kB / 0.6285 GB, free: 28.86 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.4746, allocations: 3.469 kB / 0.6285 GB, free: 28.86 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.4747, allocations: 7.266 kB / 0.6285 GB, free: 28.85 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004499/0.4751, allocations: 0.5149 MB / 0.629 GB, free: 28.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.4751, allocations: 3.938 kB / 0.629 GB, free: 28.57 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.748e-05/0.4752, allocations: 12.98 kB / 0.629 GB, free: 28.56 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.417e-06/0.4752, allocations: 2.031 kB / 0.629 GB, free: 28.56 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.325e-05/0.4752, allocations: 1.531 kB / 0.629 GB, free: 28.56 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.4752, allocations: 1.094 kB / 0.629 GB, free: 28.56 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.4752, allocations: 1.094 kB / 0.629 GB, free: 28.56 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009816/0.4762, allocations: 1.009 MB / 0.63 GB, free: 28.41 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001022/0.4763, allocations: 164.4 kB / 0.6302 GB, free: 28.26 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.904e-05/0.4764, allocations: 5.469 kB / 0.6302 GB, free: 28.25 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001419/0.4766, allocations: 6.328 kB / 0.6302 GB, free: 28.25 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.517e-05/0.4766, allocations: 6.875 kB / 0.6302 GB, free: 28.25 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.09e-05/0.4766, allocations: 15.16 kB / 0.6302 GB, free: 28.25 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000769/0.4774, allocations: 0.7227 MB / 0.6309 GB, free: 28.01 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.3e-07/0.4774, allocations: 1.375 kB / 0.6309 GB, free: 28.01 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001716/0.4791, allocations: 0.5842 MB / 0.6315 GB, free: 27.91 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.002842/0.482, allocations: 2.146 MB / 0.6336 GB, free: 27.12 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00206/0.4841, allocations: 2.55 MB / 0.6361 GB, free: 26.1 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.4841, allocations: 0 / 0.6361 GB, free: 26.1 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003897/0.4845, allocations: 338.9 kB / 0.6364 GB, free: 26.09 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004102/0.4849, allocations: 64.61 kB / 0.6365 GB, free: 26.06 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01476/0.4997, allocations: 15.16 MB / 0.6513 GB, free: 19.09 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003931/0.5001, allocations: 0.9939 MB / 0.6522 GB, free: 18.39 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002146/0.5003, allocations: 38.81 kB / 0.6523 GB, free: 18.38 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002734/0.5006, allocations: 290.6 kB / 0.6526 GB, free: 18.14 MB / 0.4981 GB Notification: Performance of SimCode: time 9.02e-07/0.5006, allocations: 0 / 0.6526 GB, free: 18.14 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0507/0.5513, allocations: 24.04 MB / 0.676 GB, free: 7.754 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.544/9.095, allocations: 12.14 kB / 0.676 GB, free: 7.746 MB / 0.4981 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & python3 -m fmpy simulate --output-file BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.csv --start-time 0 --stop-time 1.8e+12 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 7.2e+08 BuildSysPro_BuildSysPro_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)