Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_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_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.004837/0.004837, allocations: 99.95 kB / 15.73 MB, free: 6.066 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.001157/0.001157, allocations: 189.4 kB / 16.67 MB, free: 5.977 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.253/1.253, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8196/0.8196, allocations: 132.2 MB / 422.7 MB, free: 6.566 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 67.98 kB / 0.5809 GB, free: 24.18 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1457/0.147, allocations: 80.2 MB / 0.6592 GB, free: 10.77 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes): time 0.002527/0.1495, allocations: 1.408 MB / 0.6606 GB, free: 9.355 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.004493/0.154, allocations: 3.02 MB / 0.6636 GB, free: 6.32 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.859e-05/0.1541, allocations: 0 / 0.6636 GB, free: 6.32 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001282/0.1543, allocations: 15.81 kB / 0.6636 GB, free: 6.305 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002524/0.1546, allocations: 31.83 kB / 0.6636 GB, free: 6.273 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003109/0.1577, allocations: 0.9904 MB / 0.6646 GB, free: 5.277 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001594/0.1579, allocations: 87.73 kB / 0.6647 GB, free: 5.191 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.456e-05/0.1579, allocations: 3.984 kB / 0.6647 GB, free: 5.188 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.926e-05/0.158, allocations: 55.77 kB / 0.6647 GB, free: 5.133 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002316/0.1582, allocations: 149.6 kB / 0.6649 GB, free: 4.984 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.268e-05/0.1583, allocations: 16 kB / 0.6649 GB, free: 4.969 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002184/0.1605, allocations: 1.381 MB / 0.6662 GB, free: 3.586 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0006561/0.1611, allocations: 0.6836 MB / 0.6669 GB, free: 2.898 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0004169/0.1616, allocations: 441 kB / 0.6673 GB, free: 2.465 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002439/0.164, allocations: 1.801 MB / 0.6691 GB, free: 0.6562 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.164, allocations: 0 / 0.6691 GB, free: 0.6562 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.292e-06/0.164, allocations: 0 / 0.6691 GB, free: 0.6562 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 2.42e-05/0.1641, allocations: 4 kB / 0.6691 GB, free: 0.6523 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.01029/0.1744, allocations: 1.75 MB / 0.6708 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.1744, allocations: 8.031 kB / 0.6708 GB, free: 14.83 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.422e-05/0.1745, allocations: 34.75 kB / 0.6708 GB, free: 14.79 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004398/0.1749, allocations: 147.9 kB / 0.671 GB, free: 14.64 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005904/0.1755, allocations: 0.5374 MB / 0.6715 GB, free: 14.04 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.522e-05/0.1755, allocations: 12.11 kB / 0.6715 GB, free: 14.03 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.516e-05/0.1756, allocations: 8 kB / 0.6715 GB, free: 14.02 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004276/0.176, allocations: 387.2 kB / 0.6719 GB, free: 13.63 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.1761, allocations: 4 kB / 0.6719 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.243e-05/0.1761, allocations: 0 / 0.6719 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.1761, allocations: 0 / 0.6719 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004107/0.1765, allocations: 439.7 kB / 0.6723 GB, free: 13.2 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007748/0.1773, allocations: 0.804 MB / 0.6731 GB, free: 12.33 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004852/0.1778, allocations: 0.5672 MB / 0.6736 GB, free: 11.74 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002859/0.1781, allocations: 337.6 kB / 0.674 GB, free: 11.41 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001029/0.1791, allocations: 1.028 MB / 0.675 GB, free: 10.16 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003785/0.1795, allocations: 396.9 kB / 0.6754 GB, free: 9.75 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=8): time 1.362e-06/0.1795, allocations: 4 kB / 0.6754 GB, free: 9.746 MB / 0.5137 GB Notification: Performance of matching and sorting (n=8): time 0.001289/0.1808, allocations: 1.355 MB / 0.6767 GB, free: 8.383 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.164e-05/0.1809, allocations: 81.11 kB / 0.6768 GB, free: 8.285 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001698/0.1826, allocations: 1.847 MB / 0.6786 GB, free: 6.391 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.802e-05/0.1826, allocations: 33.69 kB / 0.6786 GB, free: 6.352 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003228/0.183, allocations: 481.9 kB / 0.6791 GB, free: 5.875 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 3.048e-05/0.183, allocations: 19.91 kB / 0.6791 GB, free: 5.855 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002867/0.1833, allocations: 351.5 kB / 0.6794 GB, free: 5.508 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 8.802e-05/0.1834, allocations: 301.1 kB / 0.6797 GB, free: 5.211 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001223/0.1846, allocations: 1.517 MB / 0.6812 GB, free: 3.691 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001295/0.1859, allocations: 1.646 MB / 0.6828 GB, free: 2.035 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006705/0.1926, allocations: 3.694 MB / 0.6864 GB, free: 14.25 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.482e-06/0.1927, allocations: 0 / 0.6864 GB, free: 14.25 MB / 0.5294 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.00416/0.1968, allocations: 4.324 MB / 0.6906 GB, free: 9.891 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.201e-05/0.1969, allocations: 5.875 kB / 0.6906 GB, free: 9.887 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.588e-05/0.1969, allocations: 4 kB / 0.6906 GB, free: 9.883 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.611e-05/0.1969, allocations: 4.031 kB / 0.6906 GB, free: 9.879 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001268/0.197, allocations: 15.98 kB / 0.6906 GB, free: 9.863 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.365e-06/0.1971, allocations: 7.938 kB / 0.6906 GB, free: 9.855 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005474/0.1976, allocations: 241.3 kB / 0.6909 GB, free: 9.617 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.574e-05/0.1977, allocations: 23.98 kB / 0.6909 GB, free: 9.594 MB / 0.5294 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.0004195/0.1981, allocations: 370.3 kB / 0.6913 GB, free: 9.223 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.774e-05/0.1982, allocations: 126.9 kB / 0.6914 GB, free: 9.098 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000334/0.1985, allocations: 153.1 kB / 0.6915 GB, free: 8.941 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.1986, allocations: 0 / 0.6915 GB, free: 8.941 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.95e-06/0.1986, allocations: 0 / 0.6915 GB, free: 8.941 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.1986, allocations: 0 / 0.6915 GB, free: 8.941 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005828/0.1992, allocations: 0.6794 MB / 0.6922 GB, free: 8.203 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.1992, allocations: 0 / 0.6922 GB, free: 8.203 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.557e-05/0.1992, allocations: 19.92 kB / 0.6922 GB, free: 8.184 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.806e-06/0.1993, allocations: 3.938 kB / 0.6922 GB, free: 8.18 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.413e-05/0.1993, allocations: 8.031 kB / 0.6922 GB, free: 8.172 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.1993, allocations: 0 / 0.6922 GB, free: 8.172 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.1993, allocations: 3.984 kB / 0.6922 GB, free: 8.168 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009777/0.2003, allocations: 1.068 MB / 0.6933 GB, free: 7.074 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001914/0.2005, allocations: 204 kB / 0.6935 GB, free: 6.855 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.258e-05/0.2006, allocations: 11.98 kB / 0.6935 GB, free: 6.844 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001929/0.2008, allocations: 4 kB / 0.6935 GB, free: 6.84 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.571e-05/0.2008, allocations: 7.984 kB / 0.6935 GB, free: 6.832 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.703e-05/0.2009, allocations: 15.92 kB / 0.6935 GB, free: 6.816 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00122/0.2021, allocations: 1.101 MB / 0.6946 GB, free: 5.691 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2021, allocations: 0 / 0.6946 GB, free: 5.691 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001255/0.2034, allocations: 439.1 kB / 0.695 GB, free: 5.262 MB / 0.5294 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.002381/0.2058, allocations: 1.995 MB / 0.6969 GB, free: 3.234 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00259/0.2084, allocations: 2.648 MB / 0.6995 GB, free: 0.5781 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.2084, allocations: 4 kB / 0.6995 GB, free: 0.5742 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0003229/0.2087, allocations: 347.8 kB / 0.6999 GB, free: 240 kB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004838/0.2092, allocations: 50.53 kB / 0.6999 GB, free: 184 kB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2598/0.4691, allocations: 36.4 MB / 0.7355 GB, free: 11.55 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006738/0.4698, allocations: 1.153 MB / 0.7366 GB, free: 10.37 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001852/0.47, allocations: 32.55 kB / 0.7366 GB, free: 10.34 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004182/0.4704, allocations: 435.2 kB / 0.737 GB, free: 9.91 MB / 0.5762 GB Notification: Performance of SimCode: time 7.61e-07/0.4704, allocations: 0 / 0.737 GB, free: 9.91 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3716/0.842, allocations: 59.97 MB / 0.7956 GB, free: 49.26 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.57/11.41, allocations: 11.42 kB / 0.7956 GB, free: 49.25 MB / 0.5762 GB (rm -f IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe ; mkfifo IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe >> ../files/IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.sim & python3 -m fmpy simulate --output-file IDEAS_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_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_100boreholes.fmu > IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe 2>&1)