Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="BuildingSystems_BuildingSystems_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/BuildingSystems 2.0.0-master/package.mo): time 0.8268/0.8268, allocations: 143.3 MB / 158.3 MB, free: 5.82 MB / 122.7 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: 183.3 kB / 191.5 MB, free: 5.777 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.461/1.461, allocations: 223.1 MB / 447.7 MB, free: 4.855 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009685/0.0009684, allocations: 100.2 kB / 0.5187 GB, free: 1.199 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001785/0.001786, allocations: 265.1 kB / 0.6005 GB, free: 48.78 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004424/0.0004425, allocations: 13.03 kB / 0.693 GB, free: 59.75 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1671/0.1675, allocations: 82.79 MB / 0.7738 GB, free: 13.73 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.537/0.7046, allocations: 123.6 MB / 0.8945 GB, free: 21.84 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003811/0.7051, allocations: 115.2 kB / 0.8946 GB, free: 21.84 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.07696/0.782, allocations: 22.07 MB / 0.9162 GB, free: 20.1 MB / 0.5417 GB Notification: Performance of FrontEnd: time 3.005e-06/0.7821, allocations: 0 / 0.9162 GB, free: 20.1 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 3.575e-05/0.7821, allocations: 15.72 kB / 0.9162 GB, free: 20.1 MB / 0.5417 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.00224/0.7844, allocations: 1.152 MB / 0.9173 GB, free: 19.27 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.7844, allocations: 7.688 kB / 0.9173 GB, free: 19.27 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.749e-05/0.7845, allocations: 34.36 kB / 0.9174 GB, free: 19.23 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003377/0.7848, allocations: 97.22 kB / 0.9175 GB, free: 19.18 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006145/0.7854, allocations: 426.1 kB / 0.9179 GB, free: 18.91 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.128e-05/0.7855, allocations: 30.75 kB / 0.9179 GB, free: 18.9 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.426e-05/0.7855, allocations: 37.55 kB / 0.9179 GB, free: 18.9 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003399/0.7859, allocations: 393.8 kB / 0.9183 GB, free: 18.85 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.7859, allocations: 0 / 0.9183 GB, free: 18.85 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.316e-05/0.7859, allocations: 0 / 0.9183 GB, free: 18.85 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.7859, allocations: 0 / 0.9183 GB, free: 18.85 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003167/0.7863, allocations: 436.6 kB / 0.9187 GB, free: 18.85 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005595/0.7868, allocations: 0.7444 MB / 0.9195 GB, free: 18.55 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003691/0.7872, allocations: 0.5691 MB / 0.92 GB, free: 18.5 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007394/0.788, allocations: 1.031 MB / 0.921 GB, free: 17.37 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002915/0.7883, allocations: 407.2 kB / 0.9214 GB, free: 17.3 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=8): time 1.142e-06/0.7883, allocations: 0 / 0.9214 GB, free: 17.3 MB / 0.5417 GB Notification: Performance of matching and sorting (n=8): time 0.001362/0.7896, allocations: 1.3 MB / 0.9227 GB, free: 17.21 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.321e-05/0.7897, allocations: 80.98 kB / 0.9228 GB, free: 17.12 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009467/0.7906, allocations: 1.068 MB / 0.9238 GB, free: 16.89 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 6.042e-05/0.7907, allocations: 44.86 kB / 0.9238 GB, free: 16.86 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001715/0.7909, allocations: 274 kB / 0.9241 GB, free: 16.72 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 3.651e-05/0.7909, allocations: 22.77 kB / 0.9241 GB, free: 16.71 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.472e-05/0.791, allocations: 14.81 kB / 0.9241 GB, free: 16.71 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000147/0.7911, allocations: 416.6 kB / 0.9245 GB, free: 16.39 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001156/0.7923, allocations: 1.222 MB / 0.9257 GB, free: 16.36 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001284/0.7936, allocations: 1.358 MB / 0.9271 GB, free: 16.14 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001345/0.795, allocations: 1.61 MB / 0.9286 GB, free: 15.7 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.795, allocations: 0 / 0.9286 GB, free: 15.7 MB / 0.5417 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.003675/0.7987, allocations: 3.453 MB / 0.932 GB, free: 14.65 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.7987, allocations: 3.906 kB / 0.932 GB, free: 14.65 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.124e-05/0.7987, allocations: 3.844 kB / 0.932 GB, free: 14.65 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.082e-05/0.7987, allocations: 7.812 kB / 0.932 GB, free: 14.65 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00058/0.7993, allocations: 139 kB / 0.9322 GB, free: 14.62 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.046e-05/0.7993, allocations: 3.812 kB / 0.9322 GB, free: 14.62 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005366/0.7999, allocations: 237.3 kB / 0.9324 GB, free: 14.44 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.445e-05/0.8, allocations: 61.78 kB / 0.9324 GB, free: 14.43 MB / 0.5417 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.0002764/0.8003, allocations: 264.9 kB / 0.9327 GB, free: 14.26 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.346e-05/0.8003, allocations: 62.12 kB / 0.9328 GB, free: 14.21 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000782/0.8011, allocations: 0.94 MB / 0.9337 GB, free: 14.02 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.8011, allocations: 3.875 kB / 0.9337 GB, free: 14.02 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.8011, allocations: 0 / 0.9337 GB, free: 14.02 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.8011, allocations: 7.969 kB / 0.9337 GB, free: 14.01 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003793/0.8015, allocations: 0.4918 MB / 0.9342 GB, free: 13.74 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.492e-06/0.8015, allocations: 0 / 0.9342 GB, free: 13.74 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.871e-05/0.8016, allocations: 7.859 kB / 0.9342 GB, free: 13.73 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.8016, allocations: 7.828 kB / 0.9342 GB, free: 13.73 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.425e-05/0.8016, allocations: 0 / 0.9342 GB, free: 13.73 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.955e-06/0.8016, allocations: 3.875 kB / 0.9342 GB, free: 13.73 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.8017, allocations: 0 / 0.9342 GB, free: 13.73 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006873/0.8023, allocations: 1.019 MB / 0.9352 GB, free: 13.45 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 7.848e-05/0.8024, allocations: 151 kB / 0.9353 GB, free: 13.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.007e-05/0.8025, allocations: 3.875 kB / 0.9353 GB, free: 13.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001383/0.8026, allocations: 7.953 kB / 0.9353 GB, free: 13.3 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.474e-05/0.8027, allocations: 3.875 kB / 0.9353 GB, free: 13.3 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.484e-05/0.8027, allocations: 23.38 kB / 0.9354 GB, free: 13.29 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0005526/0.8033, allocations: 0.652 MB / 0.936 GB, free: 13.05 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8033, allocations: 0 / 0.936 GB, free: 13.05 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.001735/0.8051, allocations: 490.1 kB / 0.9365 GB, free: 12.92 MB / 0.5417 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.002427/0.8075, allocations: 2.087 MB / 0.9385 GB, free: 11.87 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.00171/0.8092, allocations: 2.367 MB / 0.9408 GB, free: 11.6 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.8092, allocations: 7.969 kB / 0.9408 GB, free: 11.59 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0002887/0.8095, allocations: 336.3 kB / 0.9411 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002185/0.8098, allocations: 36.95 kB / 0.9412 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002795/0.8126, allocations: 2.673 MB / 0.9438 GB, free: 10.09 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007359/0.8133, allocations: 0.9821 MB / 0.9447 GB, free: 25.25 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0002262/0.8135, allocations: 58.61 kB / 0.9448 GB, free: 25.23 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000262/0.8138, allocations: 275.2 kB / 0.9451 GB, free: 25.2 MB / 0.5573 GB Notification: Performance of SimCode: time 5.01e-07/0.8138, allocations: 0 / 0.9451 GB, free: 25.2 MB / 0.5573 GB [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: 5.0 * floor(0.0).