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_100boreholes.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.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(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_100boreholes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_100boreholes",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.001094/0.001094, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001115/0.001115, allocations: 194.5 kB / 16.25 MB, free: 6.629 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.373/1.373, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8955/0.8955, allocations: 135.1 MB / 425.2 MB, free: 11.95 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001395/0.001395, allocations: 68.16 kB / 0.505 GB, free: 5.523 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1417/0.1431, allocations: 80.93 MB / 0.584 GB, free: 4.766 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes): time 0.00245/0.1456, allocations: 1.452 MB / 0.5855 GB, free: 3.293 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004105/0.1497, allocations: 3.036 MB / 0.5884 GB, free: 252 kB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.025e-05/0.1498, allocations: 3.938 kB / 0.5884 GB, free: 248 kB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 8.938e-05/0.1499, allocations: 3.938 kB / 0.5884 GB, free: 244 kB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001872/0.1501, allocations: 27.89 kB / 0.5885 GB, free: 216 kB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001929/0.152, allocations: 0.8889 MB / 0.5893 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 9.867e-05/0.1521, allocations: 83.75 kB / 0.5894 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.779e-05/0.1522, allocations: 3.984 kB / 0.5894 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.184e-05/0.1522, allocations: 35.86 kB / 0.5894 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002546/0.1525, allocations: 228.9 kB / 0.5897 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.149e-05/0.1525, allocations: 16 kB / 0.5897 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001588/0.1541, allocations: 1.416 MB / 0.5911 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0005255/0.1546, allocations: 0.6836 MB / 0.5917 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002956/0.1549, allocations: 437 kB / 0.5921 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001628/0.1566, allocations: 1.787 MB / 0.5939 GB, free: 10.64 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.1566, allocations: 4 kB / 0.5939 GB, free: 10.63 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.372e-06/0.1566, allocations: 0 / 0.5939 GB, free: 10.63 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.376e-06/0.1566, allocations: 0 / 0.5939 GB, free: 10.63 MB / 0.4981 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.008633/0.1653, allocations: 1.69 MB / 0.5955 GB, free: 8.883 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.1653, allocations: 12.03 kB / 0.5956 GB, free: 8.871 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.298e-05/0.1653, allocations: 38.75 kB / 0.5956 GB, free: 8.824 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003726/0.1657, allocations: 142.9 kB / 0.5957 GB, free: 8.684 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004577/0.1662, allocations: 0.5251 MB / 0.5962 GB, free: 8.09 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.061e-05/0.1662, allocations: 4.375 kB / 0.5962 GB, free: 8.086 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.919e-05/0.1663, allocations: 11.94 kB / 0.5963 GB, free: 8.074 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003953/0.1667, allocations: 395.1 kB / 0.5966 GB, free: 7.676 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.693e-06/0.1667, allocations: 0 / 0.5966 GB, free: 7.676 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.091e-05/0.1667, allocations: 0 / 0.5966 GB, free: 7.676 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.028e-06/0.1667, allocations: 0 / 0.5966 GB, free: 7.676 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003986/0.1671, allocations: 431.8 kB / 0.597 GB, free: 7.254 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006277/0.1677, allocations: 0.8073 MB / 0.5978 GB, free: 6.383 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004502/0.1682, allocations: 0.5672 MB / 0.5984 GB, free: 5.797 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002898/0.1685, allocations: 337.6 kB / 0.5987 GB, free: 5.461 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008671/0.1694, allocations: 1.025 MB / 0.5997 GB, free: 4.215 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003624/0.1697, allocations: 412.8 kB / 0.6001 GB, free: 3.793 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.332e-06/0.1698, allocations: 0 / 0.6001 GB, free: 3.793 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.001188/0.171, allocations: 1.343 MB / 0.6014 GB, free: 2.441 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.542e-05/0.171, allocations: 85.11 kB / 0.6015 GB, free: 2.34 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001562/0.1726, allocations: 1.846 MB / 0.6033 GB, free: 456 kB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.048e-05/0.1726, allocations: 33.64 kB / 0.6033 GB, free: 416 kB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.2212/0.3938, allocations: 471.8 kB / 0.6038 GB, free: 52.15 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 6.324e-05/0.3939, allocations: 21.73 kB / 0.6038 GB, free: 52.15 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000363/0.3943, allocations: 346.9 kB / 0.6041 GB, free: 52.13 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.872e-05/0.3943, allocations: 305.4 kB / 0.6044 GB, free: 51.84 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001136/0.3955, allocations: 1.512 MB / 0.6059 GB, free: 51.83 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009966/0.3965, allocations: 1.645 MB / 0.6075 GB, free: 51.5 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006056/0.4025, allocations: 3.688 MB / 0.6111 GB, free: 49.67 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.4025, allocations: 4.531 kB / 0.6111 GB, free: 49.67 MB / 0.4981 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.003252/0.4058, allocations: 4.324 MB / 0.6153 GB, free: 47.73 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.4058, allocations: 5.375 kB / 0.6153 GB, free: 47.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.458e-05/0.4059, allocations: 6.531 kB / 0.6153 GB, free: 47.72 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.4059, allocations: 0 / 0.6153 GB, free: 47.72 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001218/0.406, allocations: 17.17 kB / 0.6154 GB, free: 47.72 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.572e-06/0.406, allocations: 0 / 0.6154 GB, free: 47.72 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004608/0.4065, allocations: 232.6 kB / 0.6156 GB, free: 47.55 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.433e-05/0.4065, allocations: 23.25 kB / 0.6156 GB, free: 47.55 MB / 0.4981 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 (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 (16): * Single equations (assignments): 13 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 1 * 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.0003556/0.4069, allocations: 368.5 kB / 0.616 GB, free: 47.43 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.755e-05/0.407, allocations: 119.5 kB / 0.6161 GB, free: 47.35 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000319/0.4073, allocations: 152.2 kB / 0.6162 GB, free: 47.28 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.646e-06/0.4073, allocations: 0 / 0.6162 GB, free: 47.28 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.4073, allocations: 3.938 kB / 0.6162 GB, free: 47.28 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.788e-06/0.4073, allocations: 6.312 kB / 0.6162 GB, free: 47.28 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004262/0.4078, allocations: 0.6775 MB / 0.6169 GB, free: 46.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.4078, allocations: 0 / 0.6169 GB, free: 46.93 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.577e-05/0.4078, allocations: 9.219 kB / 0.6169 GB, free: 46.93 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.965e-06/0.4078, allocations: 2.375 kB / 0.6169 GB, free: 46.93 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.294e-05/0.4079, allocations: 3.062 kB / 0.6169 GB, free: 46.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.4079, allocations: 1.312 kB / 0.6169 GB, free: 46.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.4079, allocations: 4.828 kB / 0.6169 GB, free: 46.93 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007168/0.4086, allocations: 1.057 MB / 0.6179 GB, free: 46.75 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001131/0.4087, allocations: 198.6 kB / 0.6181 GB, free: 46.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.02e-05/0.4088, allocations: 3.234 kB / 0.6181 GB, free: 46.57 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001838/0.409, allocations: 6.281 kB / 0.6181 GB, free: 46.57 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.91e-05/0.4091, allocations: 13.14 kB / 0.6181 GB, free: 46.57 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.608e-05/0.4091, allocations: 18.34 kB / 0.6182 GB, free: 46.57 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000917/0.41, allocations: 1.11 MB / 0.6192 GB, free: 46.23 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.41, allocations: 0 / 0.6192 GB, free: 46.23 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0009802/0.411, allocations: 428.1 kB / 0.6197 GB, free: 46.21 MB / 0.4981 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.001972/0.413, allocations: 1.98 MB / 0.6216 GB, free: 45.49 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001842/0.4148, allocations: 2.644 MB / 0.6242 GB, free: 44.51 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.4149, allocations: 0 / 0.6242 GB, free: 44.51 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002814/0.4151, allocations: 346.5 kB / 0.6245 GB, free: 44.5 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003949/0.4155, allocations: 54.58 kB / 0.6246 GB, free: 44.45 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.329/0.7445, allocations: 36.61 MB / 0.6603 GB, free: 27.97 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004928/0.7451, allocations: 1.149 MB / 0.6614 GB, free: 26.98 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002304/0.7453, allocations: 39.53 kB / 0.6615 GB, free: 26.95 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003599/0.7457, allocations: 430.4 kB / 0.6619 GB, free: 26.57 MB / 0.4981 GB Notification: Performance of SimCode: time 6.61e-07/0.7457, allocations: 4 kB / 0.6619 GB, free: 26.57 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4451/1.191, allocations: 59.62 MB / 0.7201 GB, free: 6.465 MB / 0.5294 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002539/1.191, allocations: 277.3 kB / 0.7204 GB, free: 6.086 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.638/3.829, allocations: 2.5 kB / 0.7204 GB, free: 6.086 MB / 0.5294 GB (rm -f IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_100boreholes_fmu --startTime=0 --stopTime=3.7e+11 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_100boreholes.fmu > IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe 2>&1)