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.005245/0.005245, allocations: 102.7 kB / 15.74 MB, free: 6.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001224/0.001224, allocations: 195.4 kB / 16.67 MB, free: 6.352 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.352/1.352, allocations: 222.9 MB / 240.4 MB, free: 4.336 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.006/1.006, allocations: 143 MB / 433.6 MB, free: 11.53 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 71.89 kB / 0.5952 GB, free: 8.781 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4127/0.414, allocations: 82.02 MB / 0.6753 GB, free: 1.199 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.00203/0.4161, allocations: 1.424 MB / 0.6766 GB, free: 76 kB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.006261/0.4223, allocations: 4.205 MB / 0.6807 GB, free: 12.79 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.962e-05/0.4224, allocations: 4 kB / 0.6808 GB, free: 12.79 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0001154/0.4225, allocations: 14.08 kB / 0.6808 GB, free: 12.77 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.0002419/0.4228, allocations: 30.69 kB / 0.6808 GB, free: 12.75 MB / 0.5137 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.003728/0.4265, allocations: 1.511 MB / 0.6823 GB, free: 11.8 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0001349/0.4267, allocations: 85.88 kB / 0.6824 GB, free: 11.76 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 4.208e-05/0.4267, allocations: 3.688 kB / 0.6824 GB, free: 11.76 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 7.817e-05/0.4268, allocations: 54.05 kB / 0.6824 GB, free: 11.73 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000213/0.427, allocations: 142.8 kB / 0.6825 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 3.491e-05/0.4271, allocations: 13.75 kB / 0.6826 GB, free: 11.66 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003017/0.4301, allocations: 2.207 MB / 0.6847 GB, free: 10.42 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002165/0.4303, allocations: 269.4 kB / 0.685 GB, free: 10.29 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0002536/0.4306, allocations: 282.3 kB / 0.6852 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.002905/0.4335, allocations: 2.122 MB / 0.6873 GB, free: 8.863 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.4335, allocations: 0 / 0.6873 GB, free: 8.863 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.894e-06/0.4335, allocations: 1.469 kB / 0.6873 GB, free: 8.863 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.14e-05/0.4336, allocations: 0 / 0.6873 GB, free: 8.863 MB / 0.5137 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.01024/0.4438, allocations: 1.345 MB / 0.6886 GB, free: 7.793 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.4439, allocations: 9.781 kB / 0.6886 GB, free: 7.793 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.043e-05/0.4439, allocations: 34.73 kB / 0.6887 GB, free: 7.75 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004002/0.4443, allocations: 93.84 kB / 0.6888 GB, free: 7.684 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004453/0.4448, allocations: 367.8 kB / 0.6891 GB, free: 7.355 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.462e-05/0.4448, allocations: 1.781 kB / 0.6891 GB, free: 7.355 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.707e-05/0.4448, allocations: 9.5 kB / 0.6891 GB, free: 7.352 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005089/0.4454, allocations: 395.4 kB / 0.6895 GB, free: 7.227 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.4454, allocations: 0 / 0.6895 GB, free: 7.227 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.398e-05/0.4454, allocations: 5.125 kB / 0.6895 GB, free: 7.223 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/0.4454, allocations: 5.281 kB / 0.6895 GB, free: 7.219 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004659/0.4459, allocations: 438 kB / 0.6899 GB, free: 7.145 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006341/0.4465, allocations: 0.6469 MB / 0.6906 GB, free: 6.543 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005905/0.4471, allocations: 0.5594 MB / 0.6911 GB, free: 5.965 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003247/0.4475, allocations: 333.7 kB / 0.6914 GB, free: 5.633 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001203/0.4487, allocations: 1.032 MB / 0.6924 GB, free: 4.379 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004356/0.4491, allocations: 408.8 kB / 0.6928 GB, free: 3.961 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=8): time 1.754e-06/0.4491, allocations: 0 / 0.6928 GB, free: 3.961 MB / 0.5137 GB Notification: Performance of matching and sorting (n=8): time 0.00138/0.4505, allocations: 1.289 MB / 0.6941 GB, free: 2.664 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.839e-05/0.4506, allocations: 85.22 kB / 0.6942 GB, free: 2.562 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001163/0.4518, allocations: 1.219 MB / 0.6953 GB, free: 1.328 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 4.063e-05/0.4518, allocations: 37.69 kB / 0.6954 GB, free: 1.285 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001937/0.452, allocations: 261.9 kB / 0.6956 GB, free: 1.023 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 3.716e-05/0.4521, allocations: 27.77 kB / 0.6957 GB, free: 0.9961 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003404/0.4524, allocations: 355.6 kB / 0.696 GB, free: 0.6445 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001186/0.4525, allocations: 314 kB / 0.6963 GB, free: 340 kB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001339/0.4539, allocations: 1.369 MB / 0.6976 GB, free: 14.96 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001385/0.4553, allocations: 1.509 MB / 0.6991 GB, free: 13.44 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007025/0.4623, allocations: 3.553 MB / 0.7026 GB, free: 9.797 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.531e-06/0.4623, allocations: 4 kB / 0.7026 GB, free: 9.793 MB / 0.5294 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.0045/0.4668, allocations: 4.007 MB / 0.7065 GB, free: 5.75 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.778e-05/0.4669, allocations: 8 kB / 0.7065 GB, free: 5.742 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.597e-05/0.4669, allocations: 0 / 0.7065 GB, free: 5.742 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.4669, allocations: 4 kB / 0.7065 GB, free: 5.738 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001306/0.4671, allocations: 19.98 kB / 0.7065 GB, free: 5.719 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.368e-06/0.4671, allocations: 0 / 0.7065 GB, free: 5.719 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005175/0.4676, allocations: 241.3 kB / 0.7068 GB, free: 5.48 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.198e-05/0.4677, allocations: 23.97 kB / 0.7068 GB, free: 5.457 MB / 0.5294 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.0003128/0.468, allocations: 245.6 kB / 0.707 GB, free: 5.207 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.538e-05/0.468, allocations: 71.28 kB / 0.7071 GB, free: 5.137 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002925/0.4683, allocations: 79.02 kB / 0.7072 GB, free: 5.043 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.4684, allocations: 0 / 0.7072 GB, free: 5.043 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.326e-06/0.4684, allocations: 4 kB / 0.7072 GB, free: 5.039 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.4684, allocations: 0 / 0.7072 GB, free: 5.039 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004345/0.4688, allocations: 0.4969 MB / 0.7076 GB, free: 4.496 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.4688, allocations: 3.938 kB / 0.7076 GB, free: 4.492 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.987e-05/0.4689, allocations: 11.94 kB / 0.7077 GB, free: 4.48 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.4689, allocations: 0 / 0.7077 GB, free: 4.48 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.414e-05/0.4689, allocations: 3.984 kB / 0.7077 GB, free: 4.477 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.4689, allocations: 4 kB / 0.7077 GB, free: 4.473 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.4689, allocations: 0 / 0.7077 GB, free: 4.473 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008954/0.4698, allocations: 1.006 MB / 0.7086 GB, free: 3.445 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001049/0.47, allocations: 160.4 kB / 0.7088 GB, free: 3.27 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.924e-05/0.47, allocations: 0 / 0.7088 GB, free: 3.27 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000149/0.4702, allocations: 12 kB / 0.7088 GB, free: 3.258 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.365e-05/0.4702, allocations: 7.984 kB / 0.7088 GB, free: 3.25 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.345e-05/0.4703, allocations: 15.92 kB / 0.7088 GB, free: 3.234 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0006977/0.471, allocations: 0.6767 MB / 0.7095 GB, free: 2.551 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.01e-07/0.471, allocations: 0 / 0.7095 GB, free: 2.551 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001825/0.4728, allocations: 0.5806 MB / 0.7101 GB, free: 1.969 MB / 0.5294 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.002849/0.4757, allocations: 2.155 MB / 0.7122 GB, free: 15.79 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.002304/0.478, allocations: 2.544 MB / 0.7147 GB, free: 13.23 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.478, allocations: 0 / 0.7147 GB, free: 13.23 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0003183/0.4783, allocations: 347.7 kB / 0.715 GB, free: 12.89 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003173/0.4786, allocations: 39.98 kB / 0.715 GB, free: 12.86 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01451/0.4932, allocations: 15.28 MB / 0.7299 GB, free: 13.4 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005384/0.4937, allocations: 0.9646 MB / 0.7309 GB, free: 12.41 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001504/0.4939, allocations: 36.56 kB / 0.7309 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003095/0.4942, allocations: 263.3 kB / 0.7312 GB, free: 12.12 MB / 0.5606 GB Notification: Performance of SimCode: time 6.91e-07/0.4942, allocations: 0 / 0.7312 GB, free: 12.12 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04923/0.5435, allocations: 23.95 MB / 0.7546 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.01/10.55, allocations: 8.375 kB / 0.7546 GB, free: 4.367 MB / 0.5762 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)