Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.conf.json 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/IDEAS 3.0.0-master/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) Running command: "" <> buildModelFMU(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="IDEAS_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="IDEAS_IDEAS_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/Complex 4.0.0+maint.om/package.mo): time 0.006398/0.006398, allocations: 172.5 kB / 15.12 MB, free: 5.984 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7435/0.7435, allocations: 135.2 MB / 151 MB, free: 13.84 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.445/1.445, allocations: 223.2 MB / 406.9 MB, free: 3.219 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.001042/0.001041, allocations: 98.44 kB / 489.9 MB, free: 10.93 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004104/0.0004104, allocations: 12 kB / 0.5692 GB, free: 14.04 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4184/0.4189, allocations: 82.31 MB / 0.6496 GB, free: 36.15 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1652/0.5841, allocations: 126.3 MB / 0.7729 GB, free: 5.688 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003201/0.5844, allocations: 111.9 kB / 0.773 GB, free: 5.578 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.417/1.001, allocations: 22.06 MB / 0.7946 GB, free: 130.9 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.954e-06/1.002, allocations: 0.75 kB / 0.7946 GB, free: 130.9 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 9.401e-05/1.002, allocations: 12.75 kB / 0.7946 GB, free: 130.9 MB / 0.5573 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.002803/1.004, allocations: 1.158 MB / 0.7957 GB, free: 130.3 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 4.994e-05/1.005, allocations: 13.39 kB / 0.7957 GB, free: 130.3 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.362e-05/1.005, allocations: 36.45 kB / 0.7957 GB, free: 130.2 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003582/1.005, allocations: 93.52 kB / 0.7958 GB, free: 130.2 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000711/1.006, allocations: 422.1 kB / 0.7962 GB, free: 129.9 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.947e-05/1.006, allocations: 25.95 kB / 0.7963 GB, free: 129.9 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.161e-05/1.006, allocations: 34.41 kB / 0.7963 GB, free: 129.9 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006248/1.006, allocations: 392.7 kB / 0.7967 GB, free: 129.9 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/1.006, allocations: 0 / 0.7967 GB, free: 129.9 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.565e-05/1.006, allocations: 5.812 kB / 0.7967 GB, free: 129.9 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/1.006, allocations: 1.062 kB / 0.7967 GB, free: 129.9 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006282/1.007, allocations: 433.4 kB / 0.7971 GB, free: 129.9 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001073/1.008, allocations: 0.7508 MB / 0.7978 GB, free: 129.6 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008575/1.009, allocations: 0.56 MB / 0.7984 GB, free: 129.5 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009219/1.01, allocations: 1.034 MB / 0.7994 GB, free: 128.4 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005849/1.011, allocations: 403.5 kB / 0.7998 GB, free: 128.4 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=8): time 2.775e-06/1.011, allocations: 0 / 0.7998 GB, free: 128.4 MB / 0.5573 GB Notification: Performance of matching and sorting (n=8): time 0.002075/1.013, allocations: 1.299 MB / 0.801 GB, free: 128.3 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.302e-05/1.013, allocations: 85.45 kB / 0.8011 GB, free: 128.2 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001481/1.014, allocations: 1.063 MB / 0.8022 GB, free: 127.9 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 6.425e-05/1.014, allocations: 45.94 kB / 0.8022 GB, free: 127.9 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002287/1.015, allocations: 270.6 kB / 0.8025 GB, free: 127.8 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 4.049e-05/1.015, allocations: 28.3 kB / 0.8025 GB, free: 127.8 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.119e-05/1.015, allocations: 14.25 kB / 0.8025 GB, free: 127.8 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001874/1.015, allocations: 420 kB / 0.8029 GB, free: 127.5 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001923/1.017, allocations: 1.221 MB / 0.8041 GB, free: 127.4 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00153/1.018, allocations: 1.363 MB / 0.8054 GB, free: 127.4 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001403/1.02, allocations: 1.607 MB / 0.807 GB, free: 126.6 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/1.02, allocations: 0 / 0.807 GB, free: 126.6 MB / 0.5573 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.003467/1.023, allocations: 3.446 MB / 0.8104 GB, free: 124.9 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.511e-05/1.023, allocations: 8.328 kB / 0.8104 GB, free: 124.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.636e-05/1.023, allocations: 5.094 kB / 0.8104 GB, free: 124.9 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.891e-05/1.023, allocations: 3.594 kB / 0.8104 GB, free: 124.9 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005784/1.024, allocations: 143 kB / 0.8105 GB, free: 124.9 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.204e-05/1.024, allocations: 4.406 kB / 0.8105 GB, free: 124.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006334/1.025, allocations: 248.8 kB / 0.8107 GB, free: 124.7 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.956e-05/1.025, allocations: 53.69 kB / 0.8108 GB, free: 124.7 MB / 0.5573 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.0002707/1.025, allocations: 262.4 kB / 0.811 GB, free: 124.6 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.935e-05/1.025, allocations: 65.53 kB / 0.8111 GB, free: 124.6 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008367/1.026, allocations: 0.944 MB / 0.812 GB, free: 124.5 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/1.026, allocations: 0 / 0.812 GB, free: 124.5 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/1.026, allocations: 0 / 0.812 GB, free: 124.5 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/1.026, allocations: 3.812 kB / 0.812 GB, free: 124.5 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004013/1.026, allocations: 497.7 kB / 0.8125 GB, free: 124.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/1.026, allocations: 0 / 0.8125 GB, free: 124.2 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.015e-05/1.026, allocations: 16.58 kB / 0.8125 GB, free: 124.2 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/1.026, allocations: 0 / 0.8125 GB, free: 124.2 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.559e-05/1.026, allocations: 7.625 kB / 0.8125 GB, free: 124.2 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/1.026, allocations: 0 / 0.8125 GB, free: 124.2 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/1.026, allocations: 0 / 0.8125 GB, free: 124.2 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006996/1.027, allocations: 1.014 MB / 0.8135 GB, free: 124 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 7.822e-05/1.027, allocations: 152.7 kB / 0.8137 GB, free: 123.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.658e-05/1.027, allocations: 3.531 kB / 0.8137 GB, free: 123.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000141/1.027, allocations: 7.625 kB / 0.8137 GB, free: 123.9 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.417e-05/1.027, allocations: 10.48 kB / 0.8137 GB, free: 123.9 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.751e-05/1.027, allocations: 18.92 kB / 0.8137 GB, free: 123.9 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0005284/1.028, allocations: 0.6503 MB / 0.8143 GB, free: 123.7 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.4e-07/1.028, allocations: 0 / 0.8143 GB, free: 123.7 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.001504/1.03, allocations: 490.6 kB / 0.8148 GB, free: 123.5 MB / 0.5573 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.00227/1.032, allocations: 2.094 MB / 0.8169 GB, free: 122.5 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001624/1.033, allocations: 2.368 MB / 0.8192 GB, free: 120.3 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/1.033, allocations: 0 / 0.8192 GB, free: 120.3 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.000226/1.034, allocations: 337.3 kB / 0.8195 GB, free: 120.1 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000208/1.034, allocations: 35.42 kB / 0.8195 GB, free: 120 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002521/1.036, allocations: 2.679 MB / 0.8221 GB, free: 117.6 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000314/1.037, allocations: 0.9808 MB / 0.8231 GB, free: 116.8 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0001874/1.037, allocations: 58.12 kB / 0.8232 GB, free: 116.7 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002308/1.037, allocations: 273.3 kB / 0.8234 GB, free: 116.5 MB / 0.5573 GB Notification: Performance of SimCode: time 4.6e-07/1.037, allocations: 0 / 0.8234 GB, free: 116.5 MB / 0.5573 GB [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: 5.0 * floor(0.0).