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.001205/0.001205, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001323/0.001323, allocations: 193.1 kB / 16.53 MB, free: 6.391 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.383/1.383, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.944/0.944, allocations: 135.1 MB / 425.5 MB, free: 11.99 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 59.62 kB / 0.5055 GB, free: 5.199 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1468/0.1481, allocations: 80.93 MB / 0.5845 GB, free: 4.422 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes): time 0.002634/0.1508, allocations: 1.387 MB / 0.5859 GB, free: 3.016 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004411/0.1553, allocations: 3.018 MB / 0.5888 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.019e-05/0.1554, allocations: 0 / 0.5888 GB, free: 15.98 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001021/0.1555, allocations: 11.92 kB / 0.5888 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002176/0.1557, allocations: 31.7 kB / 0.5889 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002564/0.1583, allocations: 0.9934 MB / 0.5898 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001142/0.1584, allocations: 83.69 kB / 0.5899 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.258e-05/0.1585, allocations: 4 kB / 0.5899 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.681e-05/0.1585, allocations: 43.84 kB / 0.59 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002367/0.1588, allocations: 165.6 kB / 0.5901 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.332e-05/0.1588, allocations: 12 kB / 0.5901 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002032/0.1609, allocations: 1.373 MB / 0.5915 GB, free: 13.28 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0006794/0.1616, allocations: 0.6875 MB / 0.5921 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0004038/0.162, allocations: 437 kB / 0.5926 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002265/0.1643, allocations: 1.772 MB / 0.5943 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.1643, allocations: 0 / 0.5943 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.583e-06/0.1643, allocations: 0 / 0.5943 GB, free: 10.38 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 2.349e-05/0.1643, allocations: 4 kB / 0.5943 GB, free: 10.38 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.01071/0.175, allocations: 1.694 MB / 0.5959 GB, free: 8.621 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.1751, allocations: 12.03 kB / 0.596 GB, free: 8.609 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.889e-05/0.1751, allocations: 38.75 kB / 0.596 GB, free: 8.562 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004166/0.1755, allocations: 142.9 kB / 0.5961 GB, free: 8.422 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000511/0.1761, allocations: 0.5212 MB / 0.5966 GB, free: 7.832 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.746e-06/0.1761, allocations: 384 / 0.5966 GB, free: 7.832 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.287e-05/0.1761, allocations: 15.94 kB / 0.5967 GB, free: 7.816 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004192/0.1766, allocations: 399.1 kB / 0.597 GB, free: 7.414 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.1766, allocations: 0 / 0.597 GB, free: 7.414 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.355e-05/0.1766, allocations: 0 / 0.597 GB, free: 7.414 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.611e-06/0.1766, allocations: 0 / 0.597 GB, free: 7.414 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003982/0.177, allocations: 431.8 kB / 0.5974 GB, free: 6.992 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006971/0.1777, allocations: 0.8073 MB / 0.5982 GB, free: 6.121 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004699/0.1782, allocations: 0.5671 MB / 0.5988 GB, free: 5.535 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002832/0.1785, allocations: 333.7 kB / 0.5991 GB, free: 5.203 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009941/0.1795, allocations: 1.028 MB / 0.6001 GB, free: 3.953 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003604/0.1799, allocations: 408.8 kB / 0.6005 GB, free: 3.535 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.433e-06/0.1799, allocations: 0 / 0.6005 GB, free: 3.535 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.00121/0.1811, allocations: 1.343 MB / 0.6018 GB, free: 2.184 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.766e-05/0.1812, allocations: 85.11 kB / 0.6019 GB, free: 2.082 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001655/0.1828, allocations: 1.839 MB / 0.6037 GB, free: 200 kB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.785e-05/0.1829, allocations: 29.7 kB / 0.6037 GB, free: 164 kB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.2187/0.4016, allocations: 477.7 kB / 0.6042 GB, free: 52.31 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.805e-05/0.4017, allocations: 22.72 kB / 0.6042 GB, free: 52.31 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003068/0.402, allocations: 354.3 kB / 0.6045 GB, free: 52.3 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 3.615e-05/0.402, allocations: 301.1 kB / 0.6048 GB, free: 52 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001032/0.4031, allocations: 1.511 MB / 0.6063 GB, free: 51.91 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009865/0.404, allocations: 1.644 MB / 0.6079 GB, free: 51.39 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006243/0.4103, allocations: 3.691 MB / 0.6115 GB, free: 49.55 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.918e-06/0.4103, allocations: 6.031 kB / 0.6115 GB, free: 49.55 MB / 0.4981 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.003442/0.4138, allocations: 4.323 MB / 0.6157 GB, free: 47.58 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.249e-05/0.4138, allocations: 5.906 kB / 0.6157 GB, free: 47.58 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.6e-05/0.4138, allocations: 0 / 0.6157 GB, free: 47.58 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.127e-05/0.4139, allocations: 4.062 kB / 0.6157 GB, free: 47.58 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001249/0.414, allocations: 16.19 kB / 0.6158 GB, free: 47.58 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.106e-06/0.414, allocations: 1.578 kB / 0.6158 GB, free: 47.58 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005204/0.4145, allocations: 231.7 kB / 0.616 GB, free: 47.41 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.062e-05/0.4146, allocations: 25.2 kB / 0.616 GB, free: 47.41 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.0004113/0.415, allocations: 367.6 kB / 0.6164 GB, free: 47.29 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.332e-05/0.4151, allocations: 119.6 kB / 0.6165 GB, free: 47.21 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003199/0.4154, allocations: 149.8 kB / 0.6166 GB, free: 47.14 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.109e-06/0.4154, allocations: 6.719 kB / 0.6166 GB, free: 47.14 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.4155, allocations: 0 / 0.6166 GB, free: 47.14 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.4155, allocations: 6 kB / 0.6166 GB, free: 47.14 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004553/0.4159, allocations: 0.6739 MB / 0.6173 GB, free: 46.79 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.4159, allocations: 0 / 0.6173 GB, free: 46.79 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.003e-05/0.416, allocations: 9.156 kB / 0.6173 GB, free: 46.79 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.416, allocations: 5.062 kB / 0.6173 GB, free: 46.79 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.469e-05/0.416, allocations: 10.64 kB / 0.6173 GB, free: 46.79 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.416, allocations: 3.938 kB / 0.6173 GB, free: 46.79 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.416, allocations: 2.438 kB / 0.6173 GB, free: 46.79 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000748/0.4168, allocations: 1.061 MB / 0.6183 GB, free: 46.61 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001155/0.4169, allocations: 197.8 kB / 0.6185 GB, free: 46.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.405e-05/0.417, allocations: 3.094 kB / 0.6185 GB, free: 46.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001922/0.4172, allocations: 11.06 kB / 0.6186 GB, free: 46.42 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.025e-05/0.4173, allocations: 6.188 kB / 0.6186 GB, free: 46.42 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.539e-05/0.4173, allocations: 16.25 kB / 0.6186 GB, free: 46.42 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0009246/0.4182, allocations: 1.104 MB / 0.6197 GB, free: 46.09 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4183, allocations: 3.312 kB / 0.6197 GB, free: 46.09 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0009766/0.4192, allocations: 429.3 kB / 0.6201 GB, free: 46.07 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.001878/0.4211, allocations: 1.984 MB / 0.622 GB, free: 45.35 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001769/0.4229, allocations: 2.65 MB / 0.6246 GB, free: 44.36 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.4229, allocations: 0 / 0.6246 GB, free: 44.36 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002637/0.4232, allocations: 339.9 kB / 0.6249 GB, free: 44.35 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000411/0.4236, allocations: 51.17 kB / 0.625 GB, free: 44.3 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3194/0.743, allocations: 36.43 MB / 0.6605 GB, free: 27.98 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004361/0.7434, allocations: 1.153 MB / 0.6617 GB, free: 27 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001944/0.7436, allocations: 31.94 kB / 0.6617 GB, free: 26.97 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003085/0.744, allocations: 434.4 kB / 0.6621 GB, free: 26.59 MB / 0.4981 GB Notification: Performance of SimCode: time 7.11e-07/0.744, allocations: 0 / 0.6621 GB, free: 26.59 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07493/0.8189, allocations: 59.75 MB / 0.7205 GB, free: 6.164 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.492/9.311, allocations: 5.25 kB / 0.7205 GB, free: 6.164 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 & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes_res.csv --start-time 0 --stop-time 3.7e+11 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.48e+08 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)