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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008833/0.008833, allocations: 97.95 kB / 15.73 MB, free: 6.062 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.002239/0.002239, allocations: 193 kB / 16.68 MB, free: 5.969 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.458/1.458, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8404/0.8404, allocations: 132.2 MB / 422.7 MB, free: 6.566 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001948/0.001948, allocations: 68.27 kB / 0.5809 GB, free: 23.98 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.142/0.144, allocations: 80.21 MB / 0.6593 GB, free: 10.74 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002785/0.1468, allocations: 1.403 MB / 0.6606 GB, free: 9.336 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.00494/0.1518, allocations: 3.028 MB / 0.6636 GB, free: 6.293 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.023e-05/0.1519, allocations: 0 / 0.6636 GB, free: 6.293 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001086/0.1521, allocations: 11.88 kB / 0.6636 GB, free: 6.281 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.000225/0.1523, allocations: 31.83 kB / 0.6636 GB, free: 6.25 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002877/0.1552, allocations: 0.9865 MB / 0.6646 GB, free: 5.258 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002071/0.1554, allocations: 79.73 kB / 0.6647 GB, free: 5.18 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.928e-05/0.1555, allocations: 15.92 kB / 0.6647 GB, free: 5.164 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.712e-05/0.1556, allocations: 47.83 kB / 0.6647 GB, free: 5.117 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002439/0.1558, allocations: 135.7 kB / 0.6648 GB, free: 4.984 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.597e-05/0.1559, allocations: 16 kB / 0.6649 GB, free: 4.969 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002409/0.1583, allocations: 1.377 MB / 0.6662 GB, free: 3.59 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000278/0.1586, allocations: 263.8 kB / 0.6665 GB, free: 3.328 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002897/0.1589, allocations: 274.3 kB / 0.6667 GB, free: 3.059 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002803/0.1617, allocations: 1.487 MB / 0.6682 GB, free: 1.566 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.1617, allocations: 11.92 kB / 0.6682 GB, free: 1.555 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.643e-06/0.1618, allocations: 0 / 0.6682 GB, free: 1.555 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.678e-05/0.1618, allocations: 0 / 0.6682 GB, free: 1.555 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.01075/0.1725, allocations: 1.239 MB / 0.6694 GB, free: 268 kB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.381e-05/0.1726, allocations: 8.031 kB / 0.6694 GB, free: 260 kB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.636e-05/0.1727, allocations: 38.75 kB / 0.6694 GB, free: 212 kB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003871/0.173, allocations: 96.23 kB / 0.6695 GB, free: 116 kB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004897/0.1735, allocations: 360.9 kB / 0.6699 GB, free: 15.71 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.913e-05/0.1736, allocations: 8.125 kB / 0.6699 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.988e-05/0.1736, allocations: 4 kB / 0.6699 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004934/0.1741, allocations: 387.2 kB / 0.6703 GB, free: 15.31 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.958e-06/0.1741, allocations: 0 / 0.6703 GB, free: 15.31 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.873e-05/0.1742, allocations: 11.97 kB / 0.6703 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.588e-06/0.1742, allocations: 0 / 0.6703 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004953/0.1747, allocations: 439.7 kB / 0.6707 GB, free: 14.87 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007199/0.1754, allocations: 0.6369 MB / 0.6713 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005916/0.176, allocations: 0.5672 MB / 0.6719 GB, free: 13.59 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003593/0.1764, allocations: 341.7 kB / 0.6722 GB, free: 13.25 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001207/0.1776, allocations: 1.025 MB / 0.6732 GB, free: 12.01 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004632/0.1781, allocations: 404.9 kB / 0.6736 GB, free: 11.59 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=8): time 1.774e-06/0.1781, allocations: 4 kB / 0.6736 GB, free: 11.59 MB / 0.5137 GB Notification: Performance of matching and sorting (n=8): time 0.001606/0.1797, allocations: 1.285 MB / 0.6748 GB, free: 10.3 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.952e-05/0.1798, allocations: 85.11 kB / 0.6749 GB, free: 10.2 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001309/0.1811, allocations: 1.214 MB / 0.6761 GB, free: 8.965 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 4.877e-05/0.1812, allocations: 29.83 kB / 0.6761 GB, free: 8.93 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002204/0.1814, allocations: 261.9 kB / 0.6764 GB, free: 8.668 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 4.418e-05/0.1814, allocations: 23.83 kB / 0.6764 GB, free: 8.645 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003691/0.1818, allocations: 347.5 kB / 0.6767 GB, free: 8.301 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001453/0.182, allocations: 310 kB / 0.677 GB, free: 7.992 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001392/0.1834, allocations: 1.365 MB / 0.6784 GB, free: 6.625 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001437/0.1848, allocations: 1.497 MB / 0.6798 GB, free: 5.117 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007484/0.1923, allocations: 3.537 MB / 0.6833 GB, free: 1.488 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.1923, allocations: 0 / 0.6833 GB, free: 1.488 MB / 0.5137 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.004859/0.1972, allocations: 3.973 MB / 0.6872 GB, free: 13.48 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/0.1973, allocations: 12.03 kB / 0.6872 GB, free: 13.47 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.535e-05/0.1973, allocations: 0 / 0.6872 GB, free: 13.47 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/0.1973, allocations: 0 / 0.6872 GB, free: 13.47 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001361/0.1974, allocations: 15.98 kB / 0.6872 GB, free: 13.45 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.031e-05/0.1975, allocations: 4.312 kB / 0.6872 GB, free: 13.45 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005134/0.198, allocations: 233.4 kB / 0.6874 GB, free: 13.22 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.749e-05/0.1981, allocations: 23.98 kB / 0.6874 GB, free: 13.2 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.0003342/0.1984, allocations: 249.5 kB / 0.6877 GB, free: 12.94 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.221e-05/0.1985, allocations: 75.28 kB / 0.6877 GB, free: 12.87 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002983/0.1988, allocations: 70.91 kB / 0.6878 GB, free: 12.79 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.1988, allocations: 0 / 0.6878 GB, free: 12.79 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.1988, allocations: 4 kB / 0.6878 GB, free: 12.79 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.692e-06/0.1988, allocations: 0 / 0.6878 GB, free: 12.79 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004863/0.1993, allocations: 0.4888 MB / 0.6883 GB, free: 12.25 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.1993, allocations: 3.938 kB / 0.6883 GB, free: 12.25 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.178e-05/0.1994, allocations: 12.02 kB / 0.6883 GB, free: 12.23 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.272e-06/0.1994, allocations: 4 kB / 0.6883 GB, free: 12.23 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.467e-05/0.1994, allocations: 4 kB / 0.6883 GB, free: 12.23 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.6e-06/0.1995, allocations: 3.984 kB / 0.6883 GB, free: 12.22 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.583e-06/0.1995, allocations: 7.984 kB / 0.6883 GB, free: 12.21 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001121/0.2006, allocations: 1.002 MB / 0.6893 GB, free: 11.19 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001618/0.2008, allocations: 152.5 kB / 0.6895 GB, free: 11.02 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.298e-05/0.2008, allocations: 7.984 kB / 0.6895 GB, free: 11.02 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001306/0.201, allocations: 4 kB / 0.6895 GB, free: 11.01 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.189e-05/0.201, allocations: 15.92 kB / 0.6895 GB, free: 11 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.937e-05/0.2011, allocations: 11.98 kB / 0.6895 GB, free: 10.98 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0007753/0.2019, allocations: 0.6687 MB / 0.6901 GB, free: 10.31 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2019, allocations: 0 / 0.6901 GB, free: 10.31 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001034/0.2029, allocations: 403 kB / 0.6905 GB, free: 9.914 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.002944/0.2059, allocations: 1.931 MB / 0.6924 GB, free: 7.949 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002608/0.2085, allocations: 2.492 MB / 0.6948 GB, free: 5.449 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.2085, allocations: 4.062 kB / 0.6949 GB, free: 5.445 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0003695/0.2089, allocations: 343.7 kB / 0.6952 GB, free: 5.109 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003424/0.2092, allocations: 34.8 kB / 0.6952 GB, free: 5.078 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01653/0.2258, allocations: 15.06 MB / 0.7099 GB, free: 5.848 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000651/0.2265, allocations: 0.9718 MB / 0.7109 GB, free: 4.852 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0001525/0.2266, allocations: 32.56 kB / 0.7109 GB, free: 4.82 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003318/0.227, allocations: 263.3 kB / 0.7111 GB, free: 4.562 MB / 0.545 GB Notification: Performance of SimCode: time 6.71e-07/0.227, allocations: 0 / 0.7111 GB, free: 4.562 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05657/0.2836, allocations: 19.58 MB / 0.7303 GB, free: 1.16 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.26/10.54, allocations: 4.828 kB / 0.7303 GB, free: 1.156 MB / 0.5606 GB (rm -f IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters_res.csv --start-time 0 --stop-time 4.12e+08 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 164800 IDEAS_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.fmu > IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)