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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-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.008354/0.008353, allocations: 99.81 kB / 15.73 MB, free: 6.062 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.001879/0.001879, allocations: 195.1 kB / 16.67 MB, free: 5.973 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.401/1.401, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.694/2.694, allocations: 469.4 MB / 0.7422 GB, free: 3.598 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001385, allocations: 63.91 kB / 1.064 GB, free: 14.23 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8062/0.8076, allocations: 159.1 MB / 1.22 GB, free: 2.234 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002645/0.8103, allocations: 1.445 MB / 1.221 GB, free: 0.7812 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.006256/0.8165, allocations: 4.196 MB / 1.225 GB, free: 12.57 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.055e-05/0.8167, allocations: 4 kB / 1.225 GB, free: 12.56 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001164/0.8168, allocations: 11.86 kB / 1.225 GB, free: 12.55 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0002614/0.8171, allocations: 35.77 kB / 1.225 GB, free: 12.52 MB / 0.9512 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.1.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.004303/0.8214, allocations: 1.5 MB / 1.227 GB, free: 11.02 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.000179/0.8216, allocations: 91.67 kB / 1.227 GB, free: 10.93 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 8.971e-05/0.8217, allocations: 15.98 kB / 1.227 GB, free: 10.91 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002098/0.8219, allocations: 43.89 kB / 1.227 GB, free: 10.87 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002239/0.8221, allocations: 151.6 kB / 1.227 GB, free: 10.72 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 3.898e-05/0.8222, allocations: 12 kB / 1.227 GB, free: 10.71 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003497/0.8257, allocations: 2.204 MB / 1.229 GB, free: 8.5 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0002178/0.8259, allocations: 267.8 kB / 1.23 GB, free: 8.234 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0002531/0.8262, allocations: 278.3 kB / 1.23 GB, free: 7.961 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.003558/0.8298, allocations: 2.13 MB / 1.232 GB, free: 5.832 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.8298, allocations: 0 / 1.232 GB, free: 5.832 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.854e-06/0.8298, allocations: 0 / 1.232 GB, free: 5.832 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 2.081e-05/0.8298, allocations: 0 / 1.232 GB, free: 5.832 MB / 0.9512 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.01014/0.84, allocations: 1.344 MB / 1.233 GB, free: 4.434 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 5.042e-05/0.84, allocations: 8.625 kB / 1.233 GB, free: 4.426 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.874e-05/0.8401, allocations: 34.75 kB / 1.233 GB, free: 4.383 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004361/0.8405, allocations: 100.2 kB / 1.233 GB, free: 4.285 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000471/0.841, allocations: 357 kB / 1.234 GB, free: 3.887 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.61e-05/0.841, allocations: 12.36 kB / 1.234 GB, free: 3.875 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.746e-05/0.8411, allocations: 4.375 kB / 1.234 GB, free: 3.871 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004462/0.8415, allocations: 391.3 kB / 1.234 GB, free: 3.477 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.8416, allocations: 7.984 kB / 1.234 GB, free: 3.469 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.537e-05/0.8416, allocations: 4 kB / 1.234 GB, free: 3.465 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.508e-06/0.8416, allocations: 0 / 1.234 GB, free: 3.465 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004215/0.842, allocations: 435.6 kB / 1.234 GB, free: 3.039 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00069/0.8428, allocations: 0.6449 MB / 1.235 GB, free: 2.344 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004644/0.8432, allocations: 0.5594 MB / 1.236 GB, free: 1.766 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002748/0.8435, allocations: 337.7 kB / 1.236 GB, free: 1.43 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001023/0.8445, allocations: 1.028 MB / 1.237 GB, free: 184 kB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003927/0.845, allocations: 404.8 kB / 1.237 GB, free: 15.77 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=8): time 1.673e-06/0.845, allocations: 0 / 1.237 GB, free: 15.77 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8): time 0.001418/0.8464, allocations: 1.297 MB / 1.239 GB, free: 14.46 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.945e-05/0.8465, allocations: 85.23 kB / 1.239 GB, free: 14.36 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001281/0.8477, allocations: 1.219 MB / 1.24 GB, free: 13.12 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 5.104e-05/0.8478, allocations: 33.64 kB / 1.24 GB, free: 13.09 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001911/0.848, allocations: 265.9 kB / 1.24 GB, free: 12.82 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.73e-05/0.8481, allocations: 23.8 kB / 1.24 GB, free: 12.8 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003332/0.8484, allocations: 355.6 kB / 1.241 GB, free: 12.45 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000107/0.8485, allocations: 318 kB / 1.241 GB, free: 12.13 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001304/0.8498, allocations: 1.373 MB / 1.242 GB, free: 10.75 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001373/0.8512, allocations: 1.505 MB / 1.244 GB, free: 9.238 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006809/0.8581, allocations: 3.557 MB / 1.247 GB, free: 5.59 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.189e-06/0.8581, allocations: 0 / 1.247 GB, free: 5.59 MB / 0.9669 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.00487/0.863, allocations: 4.015 MB / 1.251 GB, free: 1.539 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.529e-05/0.863, allocations: 4 kB / 1.251 GB, free: 1.535 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.386e-05/0.8631, allocations: 4 kB / 1.251 GB, free: 1.531 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.072e-05/0.8631, allocations: 0 / 1.251 GB, free: 1.531 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001586/0.8633, allocations: 19.98 kB / 1.251 GB, free: 1.512 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.018e-05/0.8633, allocations: 4 kB / 1.251 GB, free: 1.508 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005265/0.8638, allocations: 233.4 kB / 1.251 GB, free: 1.277 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.824e-05/0.8639, allocations: 28.02 kB / 1.251 GB, free: 1.25 MB / 0.9669 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.000354/0.8643, allocations: 249.4 kB / 1.252 GB, free: 1 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.249e-05/0.8644, allocations: 75.23 kB / 1.252 GB, free: 0.9258 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003136/0.8647, allocations: 75.06 kB / 1.252 GB, free: 0.8438 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.8647, allocations: 0 / 1.252 GB, free: 0.8438 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.8647, allocations: 0 / 1.252 GB, free: 0.8438 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.8647, allocations: 4.031 kB / 1.252 GB, free: 0.8398 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005343/0.8653, allocations: 0.493 MB / 1.252 GB, free: 308 kB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.8653, allocations: 3.938 kB / 1.252 GB, free: 304 kB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.618e-05/0.8654, allocations: 11.92 kB / 1.252 GB, free: 292 kB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.54e-06/0.8654, allocations: 4 kB / 1.252 GB, free: 288 kB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.696e-05/0.8654, allocations: 0 / 1.252 GB, free: 288 kB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.8654, allocations: 0 / 1.252 GB, free: 288 kB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.8654, allocations: 0 / 1.252 GB, free: 288 kB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001359/0.8668, allocations: 1.002 MB / 1.253 GB, free: 15.26 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001631/0.8669, allocations: 172.2 kB / 1.253 GB, free: 15.07 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.138e-05/0.867, allocations: 4 kB / 1.253 GB, free: 15.07 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000146/0.8672, allocations: 7.984 kB / 1.253 GB, free: 15.06 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.162e-05/0.8672, allocations: 3.984 kB / 1.253 GB, free: 15.05 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.977e-05/0.8673, allocations: 15.92 kB / 1.253 GB, free: 15.04 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0008773/0.8682, allocations: 0.6728 MB / 1.254 GB, free: 14.36 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8682, allocations: 0 / 1.254 GB, free: 14.36 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.001821/0.87, allocations: 0.5884 MB / 1.255 GB, free: 13.77 MB / 0.9825 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.003953/0.874, allocations: 2.149 MB / 1.257 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.002894/0.8769, allocations: 2.552 MB / 1.259 GB, free: 9.039 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.8769, allocations: 4 kB / 1.259 GB, free: 9.035 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0003313/0.8772, allocations: 339.8 kB / 1.26 GB, free: 8.703 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003982/0.8776, allocations: 36.59 kB / 1.26 GB, free: 8.664 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01821/0.8959, allocations: 15.28 MB / 1.275 GB, free: 9.207 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006241/0.8965, allocations: 0.9679 MB / 1.275 GB, free: 8.215 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0002094/0.8968, allocations: 36.55 kB / 1.275 GB, free: 8.18 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003082/0.8971, allocations: 267.3 kB / 1.276 GB, free: 7.918 MB / 0.9981 GB Notification: Performance of SimCode: time 1.253e-06/0.8971, allocations: 0 / 1.276 GB, free: 7.918 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05369/0.9508, allocations: 23.8 MB / 1.299 GB, free: 308 kB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.32/11.27, allocations: 9.469 kB / 1.299 GB, free: 304 kB / 1.014 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)