Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="Buildings_9_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_9_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/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.096/2.096, allocations: 390.3 MB / 405.3 MB, free: 13.47 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001009/0.001009, allocations: 185 kB / 498.1 MB, free: 5.742 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.373/1.373, allocations: 223.2 MB / 0.7948 GB, free: 17.85 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00086/0.00086, allocations: 100.2 kB / 0.9346 GB, free: 6.176 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003448/0.0003448, allocations: 11.12 kB / 1.084 GB, free: 221.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2279/0.2283, allocations: 142.3 MB / 1.223 GB, free: 114.1 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1769/0.4052, allocations: 164.3 MB / 1.383 GB, free: 13.59 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003214/0.4056, allocations: 119.8 kB / 1.384 GB, free: 13.48 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.07671/0.4823, allocations: 22.08 MB / 1.405 GB, free: 7.359 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.754e-06/0.4824, allocations: 0 / 1.405 GB, free: 7.359 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 3.799e-05/0.4824, allocations: 12 kB / 1.405 GB, free: 7.348 MB / 0.9011 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.002808/0.4852, allocations: 1.156 MB / 1.406 GB, free: 6.141 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 5.54e-05/0.4853, allocations: 12.03 kB / 1.406 GB, free: 6.129 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.431e-05/0.4853, allocations: 30.56 kB / 1.406 GB, free: 6.09 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000446/0.4858, allocations: 98.73 kB / 1.406 GB, free: 5.992 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007941/0.4866, allocations: 427.4 kB / 1.407 GB, free: 5.523 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.091e-05/0.4867, allocations: 24 kB / 1.407 GB, free: 5.5 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.823e-05/0.4867, allocations: 36 kB / 1.407 GB, free: 5.465 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004377/0.4872, allocations: 395.2 kB / 1.407 GB, free: 5.066 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.946e-06/0.4872, allocations: 0 / 1.407 GB, free: 5.066 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.429e-05/0.4872, allocations: 7.891 kB / 1.407 GB, free: 5.059 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.109e-06/0.4872, allocations: 0 / 1.407 GB, free: 5.059 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004067/0.4877, allocations: 439.7 kB / 1.408 GB, free: 4.629 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007308/0.4884, allocations: 0.7456 MB / 1.408 GB, free: 3.832 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005144/0.4889, allocations: 0.5594 MB / 1.409 GB, free: 3.254 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008926/0.4898, allocations: 1.033 MB / 1.41 GB, free: 2 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003914/0.4902, allocations: 405 kB / 1.41 GB, free: 1.586 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=8): time 1.322e-06/0.4902, allocations: 0 / 1.41 GB, free: 1.586 MB / 0.9011 GB Notification: Performance of matching and sorting (n=8): time 0.001217/0.4915, allocations: 1.293 MB / 1.412 GB, free: 292 kB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.188e-05/0.4915, allocations: 97.03 kB / 1.412 GB, free: 176 kB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001011/0.4925, allocations: 1.06 MB / 1.413 GB, free: 15.1 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 6.836e-05/0.4926, allocations: 45.69 kB / 1.413 GB, free: 15.05 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.000211/0.4928, allocations: 274 kB / 1.413 GB, free: 14.77 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 3.643e-05/0.4929, allocations: 23.7 kB / 1.413 GB, free: 14.75 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.422e-05/0.4929, allocations: 12 kB / 1.413 GB, free: 14.74 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001555/0.4931, allocations: 419.8 kB / 1.413 GB, free: 14.32 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001207/0.4943, allocations: 1.214 MB / 1.415 GB, free: 13.11 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001309/0.4956, allocations: 1.365 MB / 1.416 GB, free: 11.73 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001489/0.4971, allocations: 1.607 MB / 1.418 GB, free: 10.11 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.4971, allocations: 0 / 1.418 GB, free: 10.11 MB / 0.9167 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.003878/0.501, allocations: 3.443 MB / 1.421 GB, free: 6.629 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.973e-05/0.5011, allocations: 8 kB / 1.421 GB, free: 6.621 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.471e-05/0.5011, allocations: 0 / 1.421 GB, free: 6.621 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.931e-05/0.5011, allocations: 4 kB / 1.421 GB, free: 6.617 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006071/0.5017, allocations: 147.7 kB / 1.421 GB, free: 6.473 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.112e-05/0.5018, allocations: 4 kB / 1.421 GB, free: 6.469 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004992/0.5023, allocations: 244.2 kB / 1.421 GB, free: 6.227 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.091e-05/0.5024, allocations: 59.98 kB / 1.421 GB, free: 6.168 MB / 0.9167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.k,k,$PRE.t1,t1,$PRE.t2,t2,$PRE.gFun1,gFun1,$PRE.gFun2,gFun2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 89 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003048/0.5027, allocations: 262 kB / 1.422 GB, free: 5.902 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.79e-05/0.5027, allocations: 62.78 kB / 1.422 GB, free: 5.84 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009513/0.5037, allocations: 0.9398 MB / 1.423 GB, free: 4.891 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.5037, allocations: 0 / 1.423 GB, free: 4.891 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.5037, allocations: 4 kB / 1.423 GB, free: 4.887 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.5037, allocations: 3.984 kB / 1.423 GB, free: 4.883 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004218/0.5042, allocations: 0.4928 MB / 1.423 GB, free: 4.344 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.5042, allocations: 0 / 1.423 GB, free: 4.344 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.922e-05/0.5042, allocations: 8 kB / 1.423 GB, free: 4.336 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.099e-06/0.5043, allocations: 11.94 kB / 1.423 GB, free: 4.324 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.831e-05/0.5043, allocations: 3.984 kB / 1.423 GB, free: 4.32 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.936e-06/0.5043, allocations: 0 / 1.423 GB, free: 4.32 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.5043, allocations: 7.938 kB / 1.423 GB, free: 4.312 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008686/0.5052, allocations: 1.008 MB / 1.424 GB, free: 3.277 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001076/0.5053, allocations: 155.9 kB / 1.424 GB, free: 3.105 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.899e-05/0.5053, allocations: 7.984 kB / 1.424 GB, free: 3.098 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001372/0.5055, allocations: 4 kB / 1.424 GB, free: 3.094 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.748e-05/0.5055, allocations: 7.984 kB / 1.424 GB, free: 3.086 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.978e-05/0.5056, allocations: 19.94 kB / 1.424 GB, free: 3.066 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0006549/0.5062, allocations: 0.6531 MB / 1.425 GB, free: 2.406 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5063, allocations: 0 / 1.425 GB, free: 2.406 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.001418/0.5077, allocations: 0.4916 MB / 1.425 GB, free: 1.914 MB / 0.9167 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.4491/0.9567, allocations: 2.076 MB / 1.427 GB, free: 190.4 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.002584/0.9594, allocations: 2.364 MB / 1.43 GB, free: 190.3 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.9594, allocations: 1.094 kB / 1.43 GB, free: 190.3 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0003656/0.9598, allocations: 340.8 kB / 1.43 GB, free: 190.3 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002617/0.96, allocations: 35.53 kB / 1.43 GB, free: 190.3 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003667/0.9637, allocations: 2.674 MB / 1.433 GB, free: 189.3 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004872/0.9642, allocations: 0.9823 MB / 1.434 GB, free: 188.6 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0002073/0.9644, allocations: 52.41 kB / 1.434 GB, free: 188.6 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002913/0.9647, allocations: 273.5 kB / 1.434 GB, free: 188.6 MB / 0.9167 GB Notification: Performance of SimCode: time 1.193e-06/0.9647, allocations: 0 / 1.434 GB, free: 188.6 MB / 0.9167 GB [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: 5.0 * floor(0.0).