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.005804/0.005804, allocations: 95.83 kB / 15.73 MB, free: 6.039 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.001335/0.001335, allocations: 200 kB / 16.68 MB, free: 5.969 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.418/1.418, allocations: 222.9 MB / 240.4 MB, free: 4.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002593/0.002593, allocations: 278.6 kB / 290.8 MB, free: 1.891 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.072/1.072, allocations: 178.6 MB / 0.5074 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002677/0.002677, allocations: 93.83 kB / 0.6944 GB, free: 3.496 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4757/0.4784, allocations: 89.14 MB / 0.7814 GB, free: 13.82 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002679/0.4811, allocations: 1.427 MB / 0.7828 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.006713/0.4879, allocations: 4.197 MB / 0.7869 GB, free: 10.01 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.906e-05/0.488, allocations: 1.438 kB / 0.7869 GB, free: 10.01 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001145/0.4881, allocations: 11.48 kB / 0.7869 GB, free: 10 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.000236/0.4884, allocations: 37.61 kB / 0.787 GB, free: 9.98 MB / 0.5606 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.00456/0.493, allocations: 1.505 MB / 0.7884 GB, free: 9.406 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001813/0.4932, allocations: 87.98 kB / 0.7885 GB, free: 9.383 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.268e-05/0.4932, allocations: 9.375 kB / 0.7885 GB, free: 9.379 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 7.781e-05/0.4933, allocations: 49.55 kB / 0.7886 GB, free: 9.359 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002368/0.4935, allocations: 146.9 kB / 0.7887 GB, free: 9.32 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 4.077e-05/0.4936, allocations: 13.53 kB / 0.7887 GB, free: 9.32 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004835/0.4984, allocations: 2.203 MB / 0.7909 GB, free: 8.66 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002935/0.4987, allocations: 268.5 kB / 0.7911 GB, free: 8.59 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002927/0.499, allocations: 279.8 kB / 0.7914 GB, free: 8.41 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.004256/0.5033, allocations: 2.129 MB / 0.7935 GB, free: 7.391 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.5033, allocations: 0 / 0.7935 GB, free: 7.391 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.264e-06/0.5033, allocations: 0 / 0.7935 GB, free: 7.391 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.199e-05/0.5034, allocations: 1.562 kB / 0.7935 GB, free: 7.391 MB / 0.5606 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.01088/0.5143, allocations: 1.345 MB / 0.7948 GB, free: 6.316 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.5143, allocations: 9.812 kB / 0.7948 GB, free: 6.316 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.84e-05/0.5144, allocations: 31.78 kB / 0.7948 GB, free: 6.277 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004004/0.5148, allocations: 97.11 kB / 0.7949 GB, free: 6.207 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004501/0.5152, allocations: 359.8 kB / 0.7953 GB, free: 5.887 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.304e-05/0.5153, allocations: 6.625 kB / 0.7953 GB, free: 5.883 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.918e-05/0.5153, allocations: 14.12 kB / 0.7953 GB, free: 5.875 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004462/0.5158, allocations: 390.3 kB / 0.7956 GB, free: 5.754 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.5158, allocations: 4 kB / 0.7957 GB, free: 5.75 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.429e-05/0.5158, allocations: 5.016 kB / 0.7957 GB, free: 5.746 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.5158, allocations: 1.312 kB / 0.7957 GB, free: 5.746 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004462/0.5163, allocations: 430.8 kB / 0.7961 GB, free: 5.68 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006948/0.517, allocations: 0.6451 MB / 0.7967 GB, free: 5.176 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006028/0.5176, allocations: 0.5614 MB / 0.7972 GB, free: 5.039 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000318/0.5179, allocations: 337.7 kB / 0.7976 GB, free: 4.969 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001162/0.5191, allocations: 1.028 MB / 0.7986 GB, free: 3.797 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004897/0.5196, allocations: 406.7 kB / 0.799 GB, free: 3.656 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=8): time 1.843e-06/0.5196, allocations: 0 / 0.799 GB, free: 3.656 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8): time 0.001562/0.5212, allocations: 1.296 MB / 0.8002 GB, free: 3.359 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.717e-05/0.5213, allocations: 88.48 kB / 0.8003 GB, free: 3.258 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001422/0.5227, allocations: 1.218 MB / 0.8015 GB, free: 2.547 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 5.742e-05/0.5228, allocations: 31.11 kB / 0.8015 GB, free: 2.512 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002191/0.523, allocations: 274.1 kB / 0.8018 GB, free: 2.27 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.74e-05/0.523, allocations: 22.89 kB / 0.8018 GB, free: 2.25 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003347/0.5234, allocations: 350.3 kB / 0.8021 GB, free: 2.086 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001315/0.5235, allocations: 320.7 kB / 0.8025 GB, free: 1.77 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001276/0.5248, allocations: 1.373 MB / 0.8038 GB, free: 1.191 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0014/0.5262, allocations: 1.504 MB / 0.8053 GB, free: 0.5156 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007077/0.5333, allocations: 3.556 MB / 0.8087 GB, free: 14.44 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.404e-06/0.5333, allocations: 4 kB / 0.8087 GB, free: 14.43 MB / 0.5762 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.00469/0.538, allocations: 4.011 MB / 0.8127 GB, free: 12.19 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.412e-05/0.5381, allocations: 5.375 kB / 0.8127 GB, free: 12.19 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.016e-05/0.5381, allocations: 2.156 kB / 0.8127 GB, free: 12.19 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.006e-05/0.5381, allocations: 1.062 kB / 0.8127 GB, free: 12.19 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000134/0.5383, allocations: 24.23 kB / 0.8127 GB, free: 12.18 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.303e-05/0.5383, allocations: 1.094 kB / 0.8127 GB, free: 12.18 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007479/0.539, allocations: 235.6 kB / 0.8129 GB, free: 11.98 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.464e-05/0.5391, allocations: 27.2 kB / 0.8129 GB, free: 11.98 MB / 0.5762 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.0003424/0.5395, allocations: 239.9 kB / 0.8132 GB, free: 11.81 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.528e-05/0.5395, allocations: 77.05 kB / 0.8132 GB, free: 11.75 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002786/0.5398, allocations: 70.39 kB / 0.8133 GB, free: 11.68 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.5398, allocations: 1.281 kB / 0.8133 GB, free: 11.68 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.5399, allocations: 0 / 0.8133 GB, free: 11.68 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.5399, allocations: 5.281 kB / 0.8133 GB, free: 11.68 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004979/0.5404, allocations: 0.494 MB / 0.8138 GB, free: 11.32 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.189e-06/0.5404, allocations: 9.297 kB / 0.8138 GB, free: 11.32 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.771e-05/0.5405, allocations: 8.844 kB / 0.8138 GB, free: 11.31 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.5405, allocations: 1.281 kB / 0.8138 GB, free: 11.31 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.747e-05/0.5405, allocations: 6.609 kB / 0.8138 GB, free: 11.31 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.5405, allocations: 3.938 kB / 0.8138 GB, free: 11.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.5405, allocations: 1.438 kB / 0.8138 GB, free: 11.3 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009586/0.5415, allocations: 0.9955 MB / 0.8148 GB, free: 11.03 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001354/0.5416, allocations: 158.3 kB / 0.815 GB, free: 10.88 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.925e-05/0.5417, allocations: 6.391 kB / 0.815 GB, free: 10.87 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001267/0.5418, allocations: 6.531 kB / 0.815 GB, free: 10.87 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.461e-05/0.5418, allocations: 7.484 kB / 0.815 GB, free: 10.86 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.865e-05/0.5419, allocations: 14.8 kB / 0.815 GB, free: 10.86 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0007756/0.5427, allocations: 0.6727 MB / 0.8156 GB, free: 10.5 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.375e-06/0.5427, allocations: 1.781 kB / 0.8156 GB, free: 10.5 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001935/0.5446, allocations: 0.5862 MB / 0.8162 GB, free: 10.36 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.003593/0.5482, allocations: 2.155 MB / 0.8183 GB, free: 8.656 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002609/0.5509, allocations: 2.552 MB / 0.8208 GB, free: 6.09 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.5509, allocations: 0 / 0.8208 GB, free: 6.09 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003593/0.5512, allocations: 343.8 kB / 0.8211 GB, free: 5.754 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005029/0.5518, allocations: 38 kB / 0.8212 GB, free: 5.719 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01671/0.5685, allocations: 15.28 MB / 0.8361 GB, free: 6.258 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005912/0.5692, allocations: 0.9642 MB / 0.837 GB, free: 5.266 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001648/0.5693, allocations: 48.34 kB / 0.8371 GB, free: 5.215 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003359/0.5697, allocations: 263.3 kB / 0.8373 GB, free: 4.957 MB / 0.5919 GB Notification: Performance of SimCode: time 7.51e-07/0.5697, allocations: 0 / 0.8373 GB, free: 4.957 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0571/0.6268, allocations: 23.83 MB / 0.8606 GB, free: 13.36 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.18/10.81, allocations: 10.38 kB / 0.8606 GB, free: 13.35 MB / 0.6231 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)