Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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_dev_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_dev_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.00514/0.00514, allocations: 172 kB / 15.11 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7018/0.7018, allocations: 135.2 MB / 151 MB, free: 13.8 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.234/1.234, allocations: 223.2 MB / 406.8 MB, free: 3.238 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.0008523/0.0008522, allocations: 100.8 kB / 489.9 MB, free: 10.94 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003077/0.0003077, allocations: 8 kB / 0.5692 GB, free: 14.06 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3182/0.3185, allocations: 82.3 MB / 0.6496 GB, free: 36.04 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1315/0.4501, allocations: 126.3 MB / 0.7729 GB, free: 5.574 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002727/0.4504, allocations: 111.9 kB / 0.773 GB, free: 5.465 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.3003/0.7507, allocations: 22.06 MB / 0.7946 GB, free: 130.8 MB / 0.5573 GB Notification: Performance of FrontEnd: time 1.884e-06/0.7507, allocations: 0.75 kB / 0.7946 GB, free: 130.8 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 3.255e-05/0.7508, allocations: 13.06 kB / 0.7946 GB, free: 130.8 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.001802/0.7526, allocations: 1.155 MB / 0.7957 GB, free: 130.1 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.7526, allocations: 8.906 kB / 0.7957 GB, free: 130.1 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.883e-05/0.7527, allocations: 35.34 kB / 0.7957 GB, free: 130.1 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003135/0.753, allocations: 93.56 kB / 0.7958 GB, free: 130 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006024/0.7536, allocations: 423.3 kB / 0.7962 GB, free: 129.8 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.743e-05/0.7536, allocations: 24.55 kB / 0.7963 GB, free: 129.8 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.358e-05/0.7537, allocations: 38.88 kB / 0.7963 GB, free: 129.8 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004511/0.7542, allocations: 387.6 kB / 0.7967 GB, free: 129.7 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.212e-06/0.7542, allocations: 0 / 0.7967 GB, free: 129.7 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.235e-05/0.7542, allocations: 4.312 kB / 0.7967 GB, free: 129.7 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.979e-06/0.7542, allocations: 1.594 kB / 0.7967 GB, free: 129.7 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004746/0.7547, allocations: 441.3 kB / 0.7971 GB, free: 129.7 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007013/0.7554, allocations: 0.7491 MB / 0.7978 GB, free: 129.4 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005733/0.756, allocations: 0.5571 MB / 0.7984 GB, free: 129.4 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006536/0.7567, allocations: 1.035 MB / 0.7994 GB, free: 128.2 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004255/0.7571, allocations: 407 kB / 0.7998 GB, free: 128.2 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=8): time 1.113e-06/0.7571, allocations: 3.938 kB / 0.7998 GB, free: 128.2 MB / 0.5573 GB Notification: Performance of matching and sorting (n=8): time 0.001437/0.7585, allocations: 1.295 MB / 0.801 GB, free: 128.1 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.19e-05/0.7586, allocations: 86.84 kB / 0.8011 GB, free: 128 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009931/0.7596, allocations: 1.061 MB / 0.8021 GB, free: 127.8 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 5.19e-05/0.7596, allocations: 41.52 kB / 0.8022 GB, free: 127.7 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.000164/0.7598, allocations: 273 kB / 0.8024 GB, free: 127.6 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 3.021e-05/0.7599, allocations: 27.33 kB / 0.8025 GB, free: 127.6 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.398e-05/0.7599, allocations: 14.84 kB / 0.8025 GB, free: 127.6 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001298/0.76, allocations: 421 kB / 0.8029 GB, free: 127.3 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00154/0.7616, allocations: 1.216 MB / 0.8041 GB, free: 127.3 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00118/0.7628, allocations: 1.363 MB / 0.8054 GB, free: 127.2 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001059/0.7638, allocations: 1.61 MB / 0.807 GB, free: 126.4 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.7638, allocations: 0 / 0.807 GB, free: 126.4 MB / 0.5573 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.002841/0.7667, allocations: 3.445 MB / 0.8103 GB, free: 124.8 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/0.7667, allocations: 7.031 kB / 0.8104 GB, free: 124.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/0.7667, allocations: 5.734 kB / 0.8104 GB, free: 124.8 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.508e-05/0.7668, allocations: 4.812 kB / 0.8104 GB, free: 124.8 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000519/0.7673, allocations: 142.1 kB / 0.8105 GB, free: 124.8 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.814e-06/0.7673, allocations: 8.125 kB / 0.8105 GB, free: 124.8 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000423/0.7677, allocations: 242.8 kB / 0.8107 GB, free: 124.6 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.776e-05/0.7678, allocations: 55 kB / 0.8108 GB, free: 124.6 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.0002027/0.768, allocations: 265.1 kB / 0.811 GB, free: 124.4 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.426e-05/0.768, allocations: 66.47 kB / 0.8111 GB, free: 124.4 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006707/0.7687, allocations: 0.9375 MB / 0.812 GB, free: 124.3 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.7687, allocations: 3.562 kB / 0.812 GB, free: 124.3 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.7687, allocations: 0.625 kB / 0.812 GB, free: 124.3 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.7688, allocations: 0 / 0.812 GB, free: 124.3 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002768/0.769, allocations: 0.4907 MB / 0.8125 GB, free: 124.1 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.769, allocations: 2.531 kB / 0.8125 GB, free: 124.1 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.469e-05/0.7691, allocations: 7.531 kB / 0.8125 GB, free: 124.1 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.7691, allocations: 3.828 kB / 0.8125 GB, free: 124.1 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.268e-05/0.7691, allocations: 11.7 kB / 0.8125 GB, free: 124 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.7691, allocations: 3.781 kB / 0.8125 GB, free: 124 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.7692, allocations: 2.531 kB / 0.8125 GB, free: 124 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005776/0.7697, allocations: 1.008 MB / 0.8135 GB, free: 123.9 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 6.413e-05/0.7698, allocations: 150.3 kB / 0.8137 GB, free: 123.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.818e-05/0.7699, allocations: 10.86 kB / 0.8137 GB, free: 123.7 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000135/0.77, allocations: 7.531 kB / 0.8137 GB, free: 123.7 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.739e-05/0.77, allocations: 7.391 kB / 0.8137 GB, free: 123.7 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.317e-05/0.7701, allocations: 13.61 kB / 0.8137 GB, free: 123.7 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0004668/0.7705, allocations: 0.6556 MB / 0.8143 GB, free: 123.5 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7706, allocations: 0 / 0.8143 GB, free: 123.5 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0009589/0.7715, allocations: 498.5 kB / 0.8148 GB, free: 123.4 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.001741/0.7733, allocations: 2.09 MB / 0.8169 GB, free: 122.3 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.001414/0.7747, allocations: 2.362 MB / 0.8192 GB, free: 120.2 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.7747, allocations: 3.125 kB / 0.8192 GB, free: 120.2 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0002129/0.7749, allocations: 340.7 kB / 0.8195 GB, free: 119.9 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001681/0.7751, allocations: 28.5 kB / 0.8195 GB, free: 119.8 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001985/0.7771, allocations: 2.684 MB / 0.8221 GB, free: 117.5 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002665/0.7774, allocations: 0.9868 MB / 0.8231 GB, free: 116.6 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0001691/0.7775, allocations: 58.19 kB / 0.8232 GB, free: 116.5 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002051/0.7778, allocations: 273.9 kB / 0.8234 GB, free: 116.3 MB / 0.5573 GB Notification: Performance of SimCode: time 2.21e-07/0.7778, allocations: 0 / 0.8234 GB, free: 116.3 MB / 0.5573 GB [CodegenUtil.tpl:197:14-197:14:writable] Error: Template error: initial value of unknown type: 5.0 * floor(0.0).