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_SmallScaleValidation.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_SmallScaleValidation,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation",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.005411/0.00541, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.001286/0.001286, allocations: 192.6 kB / 16.67 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.328/1.328, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.597/2.597, allocations: 469.4 MB / 0.7422 GB, free: 3.453 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001386/0.001386, allocations: 63.91 kB / 1.064 GB, free: 14.19 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8205/0.8219, allocations: 159.1 MB / 1.22 GB, free: 2.238 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003072/0.825, allocations: 1.747 MB / 1.222 GB, free: 492 kB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.007967/0.833, allocations: 5.394 MB / 1.227 GB, free: 11.07 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001467/0.8333, allocations: 4 kB / 1.227 GB, free: 11.06 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.00144/0.8347, allocations: 370.4 kB / 1.227 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0002249/0.8349, allocations: 59.67 kB / 1.227 GB, free: 10.64 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.004412/0.8394, allocations: 1.499 MB / 1.229 GB, free: 9.145 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0002901/0.8397, allocations: 159.3 kB / 1.229 GB, free: 8.988 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 5.819e-05/0.8397, allocations: 17.53 kB / 1.229 GB, free: 8.973 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 9.695e-05/0.8398, allocations: 55.78 kB / 1.229 GB, free: 8.918 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002248/0.8401, allocations: 167.5 kB / 1.229 GB, free: 8.754 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 4.461e-05/0.8401, allocations: 16 kB / 1.229 GB, free: 8.738 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003715/0.8438, allocations: 2.204 MB / 1.231 GB, free: 6.531 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0002745/0.8441, allocations: 287.8 kB / 1.231 GB, free: 6.246 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0003562/0.8445, allocations: 306.1 kB / 1.232 GB, free: 5.945 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.003817/0.8483, allocations: 2.186 MB / 1.234 GB, free: 3.754 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 6.221e-06/0.8484, allocations: 3.984 kB / 1.234 GB, free: 3.75 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.413e-06/0.8484, allocations: 0 / 1.234 GB, free: 3.75 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 2.074e-05/0.8484, allocations: 0 / 1.234 GB, free: 3.75 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.01049/0.8589, allocations: 1.421 MB / 1.235 GB, free: 2.273 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.908e-05/0.859, allocations: 12.62 kB / 1.235 GB, free: 2.262 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.414e-05/0.859, allocations: 34.73 kB / 1.235 GB, free: 2.219 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004369/0.8595, allocations: 100.1 kB / 1.235 GB, free: 2.121 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000658/0.8601, allocations: 414.4 kB / 1.236 GB, free: 1.668 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.218e-05/0.8602, allocations: 4.312 kB / 1.236 GB, free: 1.664 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.767e-05/0.8602, allocations: 12.38 kB / 1.236 GB, free: 1.652 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004266/0.8606, allocations: 391.3 kB / 1.236 GB, free: 1.258 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.837e-06/0.8607, allocations: 0 / 1.236 GB, free: 1.258 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.639e-05/0.8607, allocations: 4 kB / 1.236 GB, free: 1.254 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.385e-06/0.8607, allocations: 4 kB / 1.236 GB, free: 1.25 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004236/0.8611, allocations: 439.7 kB / 1.237 GB, free: 0.8203 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006726/0.8618, allocations: 0.6699 MB / 1.237 GB, free: 104 kB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005165/0.8623, allocations: 0.5633 MB / 1.238 GB, free: 15.52 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002895/0.8626, allocations: 333.7 kB / 1.238 GB, free: 15.19 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001046/0.8637, allocations: 1.036 MB / 1.239 GB, free: 13.93 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004115/0.8641, allocations: 396.8 kB / 1.24 GB, free: 13.52 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=8): time 1.823e-06/0.8641, allocations: 0 / 1.24 GB, free: 13.52 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8): time 0.001327/0.8655, allocations: 1.305 MB / 1.241 GB, free: 12.21 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.125e-05/0.8655, allocations: 89.09 kB / 1.241 GB, free: 12.11 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001371/0.8669, allocations: 1.29 MB / 1.242 GB, free: 10.8 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 5.095e-05/0.867, allocations: 29.7 kB / 1.242 GB, free: 10.77 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002125/0.8672, allocations: 293.9 kB / 1.243 GB, free: 10.48 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.359e-05/0.8672, allocations: 23.91 kB / 1.243 GB, free: 10.45 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003142/0.8676, allocations: 359.6 kB / 1.243 GB, free: 10.1 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001115/0.8677, allocations: 322 kB / 1.243 GB, free: 9.777 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001162/0.8689, allocations: 1.369 MB / 1.245 GB, free: 8.406 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00129/0.8702, allocations: 1.497 MB / 1.246 GB, free: 6.898 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007041/0.8772, allocations: 3.56 MB / 1.249 GB, free: 3.246 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/0.8773, allocations: 0 / 1.249 GB, free: 3.246 MB / 0.9669 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.00477/0.882, allocations: 4.023 MB / 1.253 GB, free: 15.18 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.696e-05/0.8821, allocations: 11.98 kB / 1.253 GB, free: 15.17 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.178e-05/0.8821, allocations: 0 / 1.253 GB, free: 15.17 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.183e-05/0.8821, allocations: 0 / 1.253 GB, free: 15.17 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001424/0.8823, allocations: 23.97 kB / 1.253 GB, free: 15.15 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.119e-05/0.8823, allocations: 7.922 kB / 1.253 GB, free: 15.14 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005523/0.8829, allocations: 233.4 kB / 1.254 GB, free: 14.91 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.011e-05/0.8829, allocations: 27.98 kB / 1.254 GB, free: 14.88 MB / 0.9825 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.0003348/0.8833, allocations: 245.3 kB / 1.254 GB, free: 14.64 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.645e-05/0.8834, allocations: 83.23 kB / 1.254 GB, free: 14.55 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003278/0.8837, allocations: 87.7 kB / 1.254 GB, free: 14.46 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.052e-06/0.8837, allocations: 7.938 kB / 1.254 GB, free: 14.45 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.8838, allocations: 0 / 1.254 GB, free: 14.45 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.8838, allocations: 3.984 kB / 1.254 GB, free: 14.45 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005095/0.8843, allocations: 0.514 MB / 1.255 GB, free: 13.89 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.8843, allocations: 3.938 kB / 1.255 GB, free: 13.89 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.02e-05/0.8844, allocations: 4 kB / 1.255 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.8844, allocations: 0 / 1.255 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.903e-05/0.8844, allocations: 7.984 kB / 1.255 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.8844, allocations: 4.031 kB / 1.255 GB, free: 13.87 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.8844, allocations: 0 / 1.255 GB, free: 13.87 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009344/0.8854, allocations: 1.006 MB / 1.256 GB, free: 12.84 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001734/0.8855, allocations: 176.2 kB / 1.256 GB, free: 12.65 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.159e-05/0.8856, allocations: 7.938 kB / 1.256 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001554/0.8858, allocations: 8 kB / 1.256 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.002e-05/0.8859, allocations: 11.98 kB / 1.256 GB, free: 12.62 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.947e-05/0.8859, allocations: 11.98 kB / 1.256 GB, free: 12.61 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0007771/0.8867, allocations: 0.7222 MB / 1.257 GB, free: 11.89 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.3e-07/0.8867, allocations: 0 / 1.257 GB, free: 11.89 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.00158/0.8883, allocations: 0.5845 MB / 1.257 GB, free: 11.3 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.003466/0.8917, allocations: 2.171 MB / 1.259 GB, free: 9.113 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.002418/0.8942, allocations: 2.552 MB / 1.262 GB, free: 6.547 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.8942, allocations: 0 / 1.262 GB, free: 6.547 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0003397/0.8946, allocations: 339.8 kB / 1.262 GB, free: 6.215 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005031/0.8951, allocations: 60.95 kB / 1.262 GB, free: 6.156 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01598/0.9111, allocations: 15.29 MB / 1.277 GB, free: 6.684 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007071/0.9118, allocations: 0.9879 MB / 1.278 GB, free: 5.672 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001766/0.912, allocations: 41.42 kB / 1.278 GB, free: 5.629 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003581/0.9124, allocations: 287.3 kB / 1.278 GB, free: 5.348 MB / 0.9981 GB Notification: Performance of SimCode: time 1.493e-06/0.9124, allocations: 0 / 1.278 GB, free: 5.348 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05229/0.9647, allocations: 24.07 MB / 1.302 GB, free: 13.49 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.31/11.27, allocations: 7.062 kB / 1.302 GB, free: 13.48 MB / 1.029 GB (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.csv --start-time 0 --stop-time 1.8e+12 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 7.2e+08 Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.fmu > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)