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.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="BuildingSystems_BuildingSystems_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.005371/0.005371, allocations: 102.7 kB / 15.74 MB, free: 5.551 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.00134/0.00134, allocations: 194.8 kB / 16.67 MB, free: 5.48 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.42/1.42, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002634/0.002634, allocations: 293.7 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.009/1.009, allocations: 169.2 MB / 0.4983 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002773/0.002773, allocations: 91.84 kB / 0.681 GB, free: 7.398 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4222/0.425, allocations: 86.98 MB / 0.766 GB, free: 3.832 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002582/0.4276, allocations: 1.423 MB / 0.7674 GB, free: 2.402 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.006676/0.4343, allocations: 4.193 MB / 0.7715 GB, free: 14.19 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.978e-05/0.4343, allocations: 3.938 kB / 0.7715 GB, free: 14.19 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001051/0.4345, allocations: 15.81 kB / 0.7715 GB, free: 14.17 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0002091/0.4347, allocations: 43.77 kB / 0.7715 GB, free: 14.13 MB / 0.545 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/BuildingSystems 2.0.0-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.003735/0.4384, allocations: 1.499 MB / 0.773 GB, free: 12.62 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001489/0.4386, allocations: 95.66 kB / 0.7731 GB, free: 12.53 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 3.73e-05/0.4386, allocations: 4 kB / 0.7731 GB, free: 12.53 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 7.734e-05/0.4387, allocations: 43.91 kB / 0.7731 GB, free: 12.48 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002276/0.439, allocations: 147.6 kB / 0.7733 GB, free: 12.34 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 4.316e-05/0.439, allocations: 16 kB / 0.7733 GB, free: 12.32 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003505/0.4425, allocations: 2.204 MB / 0.7754 GB, free: 10.12 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002389/0.4428, allocations: 267.8 kB / 0.7757 GB, free: 9.855 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0002703/0.4431, allocations: 278.3 kB / 0.776 GB, free: 9.582 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.002991/0.4461, allocations: 2.12 MB / 0.778 GB, free: 7.461 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.4461, allocations: 8 kB / 0.778 GB, free: 7.453 MB / 0.545 GB Notification: Performance of FrontEnd: time 3.055e-06/0.4461, allocations: 0 / 0.778 GB, free: 7.453 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.394e-06/0.4461, allocations: 3.938 kB / 0.778 GB, free: 7.449 MB / 0.545 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.01015/0.4563, allocations: 1.336 MB / 0.7793 GB, free: 6.059 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.4563, allocations: 12.03 kB / 0.7794 GB, free: 6.047 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.715e-05/0.4564, allocations: 38.69 kB / 0.7794 GB, free: 6 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003761/0.4567, allocations: 96.23 kB / 0.7795 GB, free: 5.906 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004306/0.4572, allocations: 369 kB / 0.7798 GB, free: 5.496 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.268e-05/0.4572, allocations: 4.375 kB / 0.7798 GB, free: 5.492 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.461e-05/0.4573, allocations: 4.375 kB / 0.7798 GB, free: 5.488 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005601/0.4578, allocations: 395.3 kB / 0.7802 GB, free: 5.09 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.4578, allocations: 4 kB / 0.7802 GB, free: 5.086 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.049e-05/0.4579, allocations: 0 / 0.7802 GB, free: 5.086 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.4579, allocations: 0 / 0.7802 GB, free: 5.086 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004764/0.4584, allocations: 443.7 kB / 0.7806 GB, free: 4.652 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006604/0.459, allocations: 0.6448 MB / 0.7813 GB, free: 3.957 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006041/0.4596, allocations: 0.5632 MB / 0.7818 GB, free: 3.375 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003949/0.46, allocations: 341.7 kB / 0.7821 GB, free: 3.035 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001357/0.4614, allocations: 1.017 MB / 0.7831 GB, free: 1.797 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004652/0.4619, allocations: 412.8 kB / 0.7835 GB, free: 1.375 MB / 0.545 GB Notification: Performance of pre-optimization done (n=8): time 1.383e-06/0.4619, allocations: 0 / 0.7835 GB, free: 1.375 MB / 0.545 GB Notification: Performance of matching and sorting (n=8): time 0.001483/0.4634, allocations: 1.289 MB / 0.7848 GB, free: 80 kB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.192e-05/0.4635, allocations: 81.09 kB / 0.7849 GB, free: 15.98 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001325/0.4648, allocations: 1.219 MB / 0.7861 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.303e-05/0.4649, allocations: 37.64 kB / 0.7861 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002146/0.4651, allocations: 269.9 kB / 0.7864 GB, free: 14.43 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.746e-05/0.4651, allocations: 23.8 kB / 0.7864 GB, free: 14.41 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003839/0.4655, allocations: 351.6 kB / 0.7867 GB, free: 14.06 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000144/0.4657, allocations: 318 kB / 0.787 GB, free: 13.75 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001515/0.4672, allocations: 1.373 MB / 0.7884 GB, free: 12.37 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001541/0.4688, allocations: 1.511 MB / 0.7898 GB, free: 10.85 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007561/0.4764, allocations: 3.557 MB / 0.7933 GB, free: 7.199 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/0.4764, allocations: 0 / 0.7933 GB, free: 7.199 MB / 0.5606 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004997/0.4814, allocations: 4.007 MB / 0.7972 GB, free: 3.156 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/0.4815, allocations: 11.97 kB / 0.7972 GB, free: 3.145 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.9e-05/0.4815, allocations: 4 kB / 0.7972 GB, free: 3.141 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.4815, allocations: 0 / 0.7972 GB, free: 3.141 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001311/0.4816, allocations: 15.98 kB / 0.7973 GB, free: 3.125 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.483e-06/0.4817, allocations: 3.938 kB / 0.7973 GB, free: 3.121 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005092/0.4822, allocations: 241.4 kB / 0.7975 GB, free: 2.883 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.652e-05/0.4822, allocations: 24.3 kB / 0.7975 GB, free: 2.859 MB / 0.5606 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.0003224/0.4826, allocations: 245.6 kB / 0.7977 GB, free: 2.609 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.356e-05/0.4826, allocations: 75.28 kB / 0.7978 GB, free: 2.535 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002886/0.4829, allocations: 74.95 kB / 0.7979 GB, free: 2.449 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/0.483, allocations: 4 kB / 0.7979 GB, free: 2.445 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.483, allocations: 0 / 0.7979 GB, free: 2.445 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.483, allocations: 0 / 0.7979 GB, free: 2.445 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004883/0.4835, allocations: 0.4891 MB / 0.7984 GB, free: 1.91 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/0.4835, allocations: 7.938 kB / 0.7984 GB, free: 1.902 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.525e-05/0.4836, allocations: 8.031 kB / 0.7984 GB, free: 1.895 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.465e-06/0.4836, allocations: 0 / 0.7984 GB, free: 1.895 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.773e-05/0.4836, allocations: 7.984 kB / 0.7984 GB, free: 1.887 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.4836, allocations: 0 / 0.7984 GB, free: 1.887 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.4836, allocations: 0 / 0.7984 GB, free: 1.887 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001108/0.4847, allocations: 1.014 MB / 0.7994 GB, free: 0.8516 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001254/0.4848, allocations: 160.4 kB / 0.7995 GB, free: 0.6758 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.931e-05/0.4849, allocations: 7.984 kB / 0.7995 GB, free: 0.668 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001257/0.485, allocations: 0 / 0.7995 GB, free: 0.668 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.328e-05/0.4851, allocations: 7.984 kB / 0.7995 GB, free: 0.6602 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.924e-05/0.4851, allocations: 15.98 kB / 0.7996 GB, free: 0.6445 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0008202/0.4859, allocations: 0.6729 MB / 0.8002 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.01e-07/0.486, allocations: 0 / 0.8002 GB, free: 15.96 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001451/0.4874, allocations: 0.5845 MB / 0.8008 GB, free: 15.38 MB / 0.5762 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.003445/0.4909, allocations: 2.151 MB / 0.8029 GB, free: 13.21 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002813/0.4937, allocations: 2.548 MB / 0.8054 GB, free: 10.65 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.4938, allocations: 0 / 0.8054 GB, free: 10.65 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0005299/0.4943, allocations: 343.8 kB / 0.8057 GB, free: 10.31 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004982/0.4948, allocations: 32.59 kB / 0.8057 GB, free: 10.28 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01703/0.5119, allocations: 15.27 MB / 0.8207 GB, free: 10.83 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006361/0.5125, allocations: 0.9601 MB / 0.8216 GB, free: 9.84 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001398/0.5127, allocations: 44.66 kB / 0.8216 GB, free: 9.797 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003393/0.513, allocations: 263.3 kB / 0.8219 GB, free: 9.539 MB / 0.5919 GB Notification: Performance of SimCode: time 1.022e-06/0.5131, allocations: 4 kB / 0.8219 GB, free: 9.535 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05633/0.5694, allocations: 23.83 MB / 0.8452 GB, free: 1.934 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.32/10.89, allocations: 20.31 kB / 0.8452 GB, free: 1.918 MB / 0.6075 GB (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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.fmu > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)