Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="Buildings_latest_Buildings_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.001785/0.001785, 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.002221/0.002221, allocations: 191.8 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.403/1.403, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.819/2.819, allocations: 469.4 MB / 0.742 GB, free: 7.656 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001691/0.001691, allocations: 64.5 kB / 0.9083 GB, free: 34.4 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2913/0.293, allocations: 159.1 MB / 1.064 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002699/0.2957, allocations: 1.447 MB / 1.065 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00621/0.302, allocations: 4.193 MB / 1.069 GB, free: 8.812 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.736e-05/0.3021, allocations: 4 kB / 1.069 GB, free: 8.809 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001064/0.3022, allocations: 11.86 kB / 1.069 GB, free: 8.797 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002098/0.3024, allocations: 31.78 kB / 1.069 GB, free: 8.766 MB / 0.8262 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/Buildings 11.0.1-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.003681/0.3061, allocations: 1.502 MB / 1.071 GB, free: 7.262 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001377/0.3062, allocations: 91.67 kB / 1.071 GB, free: 7.172 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.955e-05/0.3063, allocations: 4 kB / 1.071 GB, free: 7.168 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.073e-05/0.3064, allocations: 47.89 kB / 1.071 GB, free: 7.121 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002162/0.3066, allocations: 147.6 kB / 1.071 GB, free: 6.977 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.286e-05/0.3066, allocations: 12 kB / 1.071 GB, free: 6.965 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003167/0.3098, allocations: 2.172 MB / 1.073 GB, free: 4.789 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002113/0.31, allocations: 263.8 kB / 1.073 GB, free: 4.531 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002461/0.3103, allocations: 274.3 kB / 1.074 GB, free: 4.262 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.002935/0.3132, allocations: 2.104 MB / 1.076 GB, free: 2.148 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.3132, allocations: 0 / 1.076 GB, free: 2.148 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.182e-06/0.3133, allocations: 0 / 1.076 GB, free: 2.148 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.209e-05/0.3133, allocations: 0 / 1.076 GB, free: 2.148 MB / 0.8262 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.01068/0.324, allocations: 1.3 MB / 1.077 GB, free: 0.7969 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.324, allocations: 8.031 kB / 1.077 GB, free: 0.7891 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.995e-05/0.3241, allocations: 34.75 kB / 1.077 GB, free: 0.7461 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004161/0.3245, allocations: 87.67 kB / 1.077 GB, free: 0.6602 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004072/0.3249, allocations: 364.9 kB / 1.077 GB, free: 260 kB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.3e-05/0.3249, allocations: 8.312 kB / 1.077 GB, free: 252 kB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.68e-05/0.325, allocations: 8.375 kB / 1.077 GB, free: 244 kB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004505/0.3254, allocations: 395.3 kB / 1.078 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.085e-06/0.3254, allocations: 0 / 1.078 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.39e-05/0.3255, allocations: 0 / 1.078 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.3255, allocations: 0 / 1.078 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004342/0.3259, allocations: 435.7 kB / 1.078 GB, free: 15.41 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005629/0.3265, allocations: 0.6482 MB / 1.079 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004998/0.327, allocations: 0.5555 MB / 1.079 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003079/0.3273, allocations: 341.7 kB / 1.08 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001035/0.3284, allocations: 1.021 MB / 1.081 GB, free: 12.56 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004012/0.3288, allocations: 412.8 kB / 1.081 GB, free: 12.14 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=8): time 1.442e-06/0.3288, allocations: 0 / 1.081 GB, free: 12.14 MB / 0.8419 GB Notification: Performance of matching and sorting (n=8): time 0.001299/0.3301, allocations: 1.289 MB / 1.082 GB, free: 10.84 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.049e-05/0.3302, allocations: 85.05 kB / 1.082 GB, free: 10.74 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001204/0.3314, allocations: 1.21 MB / 1.084 GB, free: 9.512 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.094e-05/0.3314, allocations: 33.69 kB / 1.084 GB, free: 9.473 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001918/0.3316, allocations: 265.4 kB / 1.084 GB, free: 9.207 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.632e-05/0.3317, allocations: 23.88 kB / 1.084 GB, free: 9.184 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003183/0.332, allocations: 347.6 kB / 1.084 GB, free: 8.84 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001074/0.3321, allocations: 314 kB / 1.085 GB, free: 8.527 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001221/0.3333, allocations: 1.373 MB / 1.086 GB, free: 7.152 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001355/0.3347, allocations: 1.507 MB / 1.087 GB, free: 5.637 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007247/0.342, allocations: 3.564 MB / 1.091 GB, free: 1.98 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.342, allocations: 0 / 1.091 GB, free: 1.98 MB / 0.8419 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004371/0.3463, allocations: 4.006 MB / 1.095 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/0.3464, allocations: 4 kB / 1.095 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.854e-05/0.3464, allocations: 4.078 kB / 1.095 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/0.3464, allocations: 0 / 1.095 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001784/0.3466, allocations: 20.02 kB / 1.095 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.3466, allocations: 3.984 kB / 1.095 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004798/0.3471, allocations: 232.3 kB / 1.095 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.918e-05/0.3472, allocations: 23.98 kB / 1.095 GB, free: 13.65 MB / 0.8575 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.0002972/0.3475, allocations: 249.5 kB / 1.095 GB, free: 13.4 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.331e-05/0.3476, allocations: 70.72 kB / 1.095 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002843/0.3478, allocations: 71.08 kB / 1.095 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.241e-06/0.3479, allocations: 8 kB / 1.095 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.3479, allocations: 0 / 1.095 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.3479, allocations: 3.984 kB / 1.095 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004239/0.3483, allocations: 492.9 kB / 1.096 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.93e-06/0.3483, allocations: 7.938 kB / 1.096 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.65e-05/0.3484, allocations: 4 kB / 1.096 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.559e-06/0.3484, allocations: 3.938 kB / 1.096 GB, free: 12.69 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.57e-05/0.3484, allocations: 15.95 kB / 1.096 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.3485, allocations: 0 / 1.096 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.3485, allocations: 0 / 1.096 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001098/0.3496, allocations: 0.9936 MB / 1.097 GB, free: 11.66 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001163/0.3497, allocations: 151.8 kB / 1.097 GB, free: 11.49 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.78e-05/0.3498, allocations: 11.98 kB / 1.097 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001404/0.3499, allocations: 0 / 1.097 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.386e-05/0.35, allocations: 7.984 kB / 1.097 GB, free: 11.47 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.62e-05/0.35, allocations: 15.98 kB / 1.097 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0007137/0.3507, allocations: 0.6766 MB / 1.098 GB, free: 10.77 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3507, allocations: 0 / 1.098 GB, free: 10.77 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.001364/0.3521, allocations: 0.5779 MB / 1.098 GB, free: 10.2 MB / 0.8575 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.003159/0.3553, allocations: 2.135 MB / 1.1 GB, free: 8.047 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.002221/0.3575, allocations: 2.553 MB / 1.103 GB, free: 5.48 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.3575, allocations: 8.062 kB / 1.103 GB, free: 5.473 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0003188/0.3578, allocations: 339.8 kB / 1.103 GB, free: 5.141 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002946/0.3581, allocations: 36.59 kB / 1.103 GB, free: 5.105 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01538/0.3735, allocations: 15.14 MB / 1.118 GB, free: 5.785 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007251/0.3743, allocations: 0.9679 MB / 1.119 GB, free: 4.793 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001741/0.3745, allocations: 44.64 kB / 1.119 GB, free: 4.75 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003791/0.3749, allocations: 267.3 kB / 1.119 GB, free: 4.492 MB / 0.8731 GB Notification: Performance of SimCode: time 7.61e-07/0.3749, allocations: 0 / 1.119 GB, free: 4.492 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05143/0.4263, allocations: 23.64 MB / 1.142 GB, free: 13.01 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.907/9.333, allocations: 9.625 kB / 1.142 GB, free: 13.01 MB / 0.9044 GB (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.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 Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.fmu > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)