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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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.006816/0.006816, allocations: 100.7 kB / 15.73 MB, free: 6.031 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.001706/0.001706, allocations: 194.8 kB / 16.67 MB, free: 5.961 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.394/1.394, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.815/2.815, allocations: 482.4 MB / 0.7548 GB, free: 10.83 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001991/0.001991, allocations: 59.91 kB / 1.083 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3407/0.3427, allocations: 162.2 MB / 1.242 GB, free: 10.14 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002337/0.3451, allocations: 1.441 MB / 1.243 GB, free: 8.688 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.006501/0.3516, allocations: 4.191 MB / 1.247 GB, free: 4.477 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.308e-05/0.3517, allocations: 7.875 kB / 1.247 GB, free: 4.469 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001073/0.3518, allocations: 11.92 kB / 1.247 GB, free: 4.457 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.000265/0.3521, allocations: 31.78 kB / 1.247 GB, free: 4.426 MB / 0.9981 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 12.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.003911/0.356, allocations: 1.5 MB / 1.249 GB, free: 2.922 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0001594/0.3562, allocations: 95.67 kB / 1.249 GB, free: 2.828 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.16e-05/0.3562, allocations: 7.984 kB / 1.249 GB, free: 2.82 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.279e-05/0.3563, allocations: 43.89 kB / 1.249 GB, free: 2.777 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002426/0.3566, allocations: 155.6 kB / 1.249 GB, free: 2.625 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 4.162e-05/0.3566, allocations: 16 kB / 1.249 GB, free: 2.609 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003298/0.3599, allocations: 2.207 MB / 1.251 GB, free: 408 kB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002637/0.3602, allocations: 263.9 kB / 1.251 GB, free: 140 kB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.6165/0.9767, allocations: 274.6 kB / 1.252 GB, free: 9.004 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.004148/0.9809, allocations: 2.119 MB / 1.254 GB, free: 8.801 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.981, allocations: 0.75 kB / 1.254 GB, free: 8.801 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.473e-06/0.981, allocations: 1.641 kB / 1.254 GB, free: 8.801 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.012e-05/0.981, allocations: 1.125 kB / 1.254 GB, free: 8.801 MB / 0.9981 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.01096/0.9919, allocations: 1.343 MB / 1.255 GB, free: 7.895 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 6.401e-05/0.992, allocations: 14.42 kB / 1.255 GB, free: 7.891 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.161e-05/0.9921, allocations: 38.09 kB / 1.255 GB, free: 7.852 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003758/0.9925, allocations: 91.16 kB / 1.255 GB, free: 7.797 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000355/0.9928, allocations: 359.9 kB / 1.255 GB, free: 7.523 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.25e-05/0.9929, allocations: 7.047 kB / 1.255 GB, free: 7.523 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.027e-05/0.9929, allocations: 10.06 kB / 1.255 GB, free: 7.523 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00054/0.9934, allocations: 396.9 kB / 1.256 GB, free: 7.473 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.277e-06/0.9935, allocations: 0 / 1.256 GB, free: 7.473 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.348e-05/0.9935, allocations: 1.766 kB / 1.256 GB, free: 7.473 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.9935, allocations: 2.094 kB / 1.256 GB, free: 7.473 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005424/0.994, allocations: 438.2 kB / 1.256 GB, free: 7.473 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006109/0.9947, allocations: 0.6379 MB / 1.257 GB, free: 7.18 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000731/0.9954, allocations: 0.5627 MB / 1.257 GB, free: 7.133 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003686/0.9958, allocations: 338.8 kB / 1.258 GB, free: 7.117 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008167/0.9966, allocations: 1.025 MB / 1.259 GB, free: 5.992 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004161/0.997, allocations: 410.7 kB / 1.259 GB, free: 5.926 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=8): time 1.282e-06/0.997, allocations: 0 / 1.259 GB, free: 5.926 MB / 0.9981 GB Notification: Performance of matching and sorting (n=8): time 0.001571/0.9986, allocations: 1.295 MB / 1.26 GB, free: 5.84 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.398e-05/0.9987, allocations: 86.27 kB / 1.26 GB, free: 5.746 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001135/0.9998, allocations: 1.214 MB / 1.262 GB, free: 5.504 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.823e-05/0.9999, allocations: 33.64 kB / 1.262 GB, free: 5.473 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001709/1, allocations: 262.7 kB / 1.262 GB, free: 5.336 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.176e-05/1, allocations: 34.92 kB / 1.262 GB, free: 5.32 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003615/1, allocations: 348.7 kB / 1.262 GB, free: 5.305 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.947e-05/1.001, allocations: 311.8 kB / 1.263 GB, free: 5 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001362/1.002, allocations: 1.37 MB / 1.264 GB, free: 4.996 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001323/1.003, allocations: 1.508 MB / 1.265 GB, free: 4.508 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006824/1.01, allocations: 3.554 MB / 1.269 GB, free: 2.668 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/1.01, allocations: 1 kB / 1.269 GB, free: 2.668 MB / 0.9981 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004694/1.015, allocations: 4.009 MB / 1.273 GB, free: 0.6914 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.245e-05/1.015, allocations: 5.781 kB / 1.273 GB, free: 0.6914 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.042e-05/1.015, allocations: 4.047 kB / 1.273 GB, free: 0.6914 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.138e-05/1.015, allocations: 3.031 kB / 1.273 GB, free: 0.6914 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001364/1.015, allocations: 23.02 kB / 1.273 GB, free: 0.6875 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/1.015, allocations: 0 / 1.273 GB, free: 0.6875 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000561/1.016, allocations: 243 kB / 1.273 GB, free: 0.4922 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.642e-05/1.016, allocations: 23.28 kB / 1.273 GB, free: 0.4922 MB / 0.9981 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.0003639/1.016, allocations: 241 kB / 1.273 GB, free: 380 kB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.986e-05/1.016, allocations: 77.36 kB / 1.273 GB, free: 316 kB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002565/1.016, allocations: 76.56 kB / 1.273 GB, free: 256 kB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.057e-06/1.016, allocations: 2.047 kB / 1.273 GB, free: 256 kB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/1.016, allocations: 1.438 kB / 1.273 GB, free: 256 kB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/1.016, allocations: 0.75 kB / 1.273 GB, free: 256 kB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005669/1.017, allocations: 0.4898 MB / 1.274 GB, free: 15.98 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/1.017, allocations: 2 kB / 1.274 GB, free: 15.98 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.172e-05/1.017, allocations: 15 kB / 1.274 GB, free: 15.97 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/1.017, allocations: 1.188 kB / 1.274 GB, free: 15.97 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.597e-05/1.017, allocations: 3.766 kB / 1.274 GB, free: 15.97 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.488e-06/1.017, allocations: 3.734 kB / 1.274 GB, free: 15.97 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/1.017, allocations: 3.844 kB / 1.274 GB, free: 15.97 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001219/1.018, allocations: 1.001 MB / 1.275 GB, free: 15.82 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001516/1.018, allocations: 163.4 kB / 1.275 GB, free: 15.67 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.123e-05/1.019, allocations: 2.078 kB / 1.275 GB, free: 15.67 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001323/1.019, allocations: 16.47 kB / 1.275 GB, free: 15.66 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.239e-05/1.019, allocations: 6.328 kB / 1.275 GB, free: 15.66 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.854e-05/1.019, allocations: 12.17 kB / 1.275 GB, free: 15.66 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0009211/1.02, allocations: 0.6713 MB / 1.276 GB, free: 15.43 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.8e-07/1.02, allocations: 4 kB / 1.276 GB, free: 15.43 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.002888/1.023, allocations: 0.5854 MB / 1.276 GB, free: 15.32 MB / 1.014 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.003828/1.026, allocations: 2.152 MB / 1.278 GB, free: 14.52 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.002914/1.029, allocations: 2.55 MB / 1.281 GB, free: 13.5 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/1.029, allocations: 0 / 1.281 GB, free: 13.5 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0003712/1.03, allocations: 341.5 kB / 1.281 GB, free: 13.49 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003886/1.03, allocations: 35.56 kB / 1.281 GB, free: 13.46 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01847/1.049, allocations: 15.29 MB / 1.296 GB, free: 6.578 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006509/1.049, allocations: 0.9646 MB / 1.297 GB, free: 5.879 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0001578/1.049, allocations: 39.5 kB / 1.297 GB, free: 5.863 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003468/1.05, allocations: 268.5 kB / 1.297 GB, free: 5.645 MB / 1.014 GB Notification: Performance of SimCode: time 1.362e-06/1.05, allocations: 0 / 1.297 GB, free: 5.645 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06265/1.113, allocations: 23.81 MB / 1.321 GB, free: 1.34 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.45/11.57, allocations: 21.56 kB / 1.321 GB, free: 1.32 MB / 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 400 --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)