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.004683/0.004683, allocations: 97.34 kB / 15.73 MB, free: 6.043 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.001118/0.001118, allocations: 198.1 kB / 16.67 MB, free: 5.973 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.3/1.3, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7386/0.7386, allocations: 132.2 MB / 422.7 MB, free: 1.711 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 63.89 kB / 0.5809 GB, free: 7.988 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4164/0.4178, allocations: 80.21 MB / 0.6593 GB, free: 9.855 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002211/0.42, allocations: 1.399 MB / 0.6606 GB, free: 8.879 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0042/0.4243, allocations: 3.029 MB / 0.6636 GB, free: 6.836 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.369e-05/0.4244, allocations: 0 / 0.6636 GB, free: 6.836 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001191/0.4245, allocations: 11.84 kB / 0.6636 GB, free: 6.828 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002333/0.4248, allocations: 25.45 kB / 0.6636 GB, free: 6.816 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002801/0.4276, allocations: 0.9963 MB / 0.6646 GB, free: 6.223 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001378/0.4277, allocations: 80.97 kB / 0.6647 GB, free: 6.184 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.072e-05/0.4278, allocations: 3.156 kB / 0.6647 GB, free: 6.184 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.097e-05/0.4278, allocations: 44.7 kB / 0.6647 GB, free: 6.16 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001907/0.428, allocations: 143.5 kB / 0.6649 GB, free: 6.082 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.536e-05/0.4281, allocations: 13.97 kB / 0.6649 GB, free: 6.082 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001823/0.4299, allocations: 1.376 MB / 0.6662 GB, free: 5.312 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002278/0.4301, allocations: 268.4 kB / 0.6665 GB, free: 5.176 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002131/0.4304, allocations: 273 kB / 0.6667 GB, free: 4.984 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001708/0.4321, allocations: 1.489 MB / 0.6682 GB, free: 4.105 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.4321, allocations: 0 / 0.6682 GB, free: 4.105 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.403e-06/0.4321, allocations: 1.125 kB / 0.6682 GB, free: 4.105 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.6e-05/0.4321, allocations: 0 / 0.6682 GB, free: 4.105 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.009654/0.4418, allocations: 1.245 MB / 0.6694 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.4418, allocations: 13.06 kB / 0.6694 GB, free: 3.102 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.369e-05/0.4419, allocations: 36.38 kB / 0.6694 GB, free: 3.059 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003804/0.4423, allocations: 93.17 kB / 0.6695 GB, free: 2.992 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003446/0.4426, allocations: 357.2 kB / 0.6699 GB, free: 2.672 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.279e-05/0.4426, allocations: 11.84 kB / 0.6699 GB, free: 2.664 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.412e-05/0.4427, allocations: 11.83 kB / 0.6699 GB, free: 2.656 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004051/0.4431, allocations: 390.6 kB / 0.6703 GB, free: 2.535 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.4431, allocations: 7.984 kB / 0.6703 GB, free: 2.527 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.216e-05/0.4431, allocations: 1.125 kB / 0.6703 GB, free: 2.527 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.4432, allocations: 1.406 kB / 0.6703 GB, free: 2.527 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004168/0.4436, allocations: 434.1 kB / 0.6707 GB, free: 2.457 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005383/0.4441, allocations: 0.6316 MB / 0.6713 GB, free: 1.965 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005043/0.4446, allocations: 0.5693 MB / 0.6719 GB, free: 1.82 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003513/0.445, allocations: 333.1 kB / 0.6722 GB, free: 1.754 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008193/0.4458, allocations: 1.033 MB / 0.6732 GB, free: 0.5781 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003658/0.4462, allocations: 407.3 kB / 0.6736 GB, free: 448 kB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.573e-06/0.4462, allocations: 0 / 0.6736 GB, free: 448 kB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.001352/0.4476, allocations: 1.295 MB / 0.6748 GB, free: 144 kB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.153e-05/0.4476, allocations: 84.69 kB / 0.6749 GB, free: 44 kB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001311/0.4489, allocations: 1.21 MB / 0.6761 GB, free: 15.33 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 5.485e-05/0.449, allocations: 27.08 kB / 0.6761 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001798/0.4492, allocations: 265.4 kB / 0.6764 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 3.584e-05/0.4492, allocations: 18.59 kB / 0.6764 GB, free: 15.05 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003155/0.4495, allocations: 352.2 kB / 0.6767 GB, free: 14.89 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001007/0.4497, allocations: 316.6 kB / 0.677 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001248/0.4509, allocations: 1.358 MB / 0.6784 GB, free: 14 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001405/0.4523, allocations: 1.493 MB / 0.6798 GB, free: 13.33 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00712/0.4595, allocations: 3.549 MB / 0.6833 GB, free: 11.25 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.534e-06/0.4595, allocations: 0 / 0.6833 GB, free: 11.25 MB / 0.5137 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.005003/0.4645, allocations: 3.968 MB / 0.6872 GB, free: 8.953 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/0.4646, allocations: 8 kB / 0.6872 GB, free: 8.945 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.588e-05/0.4646, allocations: 0 / 0.6872 GB, free: 8.945 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.833e-05/0.4646, allocations: 4 kB / 0.6872 GB, free: 8.941 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001368/0.4647, allocations: 15.98 kB / 0.6872 GB, free: 8.926 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.4648, allocations: 0 / 0.6872 GB, free: 8.926 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006394/0.4654, allocations: 241.4 kB / 0.6874 GB, free: 8.688 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.932e-05/0.4655, allocations: 27.98 kB / 0.6874 GB, free: 8.66 MB / 0.5137 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.0003266/0.4658, allocations: 241.5 kB / 0.6877 GB, free: 8.414 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.891e-05/0.4659, allocations: 75.28 kB / 0.6878 GB, free: 8.34 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002871/0.4662, allocations: 66.91 kB / 0.6878 GB, free: 8.266 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.572e-06/0.4662, allocations: 8.031 kB / 0.6878 GB, free: 8.258 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.677e-06/0.4662, allocations: 3.984 kB / 0.6878 GB, free: 8.254 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.4662, allocations: 0 / 0.6878 GB, free: 8.254 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004821/0.4667, allocations: 0.4889 MB / 0.6883 GB, free: 7.719 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.4667, allocations: 0 / 0.6883 GB, free: 7.719 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.389e-05/0.4668, allocations: 8 kB / 0.6883 GB, free: 7.711 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.055e-06/0.4668, allocations: 3.938 kB / 0.6883 GB, free: 7.707 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.353e-05/0.4668, allocations: 3.984 kB / 0.6883 GB, free: 7.703 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.4668, allocations: 4 kB / 0.6883 GB, free: 7.699 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.4668, allocations: 0 / 0.6883 GB, free: 7.699 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009313/0.4678, allocations: 1.002 MB / 0.6893 GB, free: 6.676 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001078/0.4679, allocations: 164.4 kB / 0.6895 GB, free: 6.496 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.942e-05/0.4679, allocations: 3.984 kB / 0.6895 GB, free: 6.492 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001352/0.4681, allocations: 8 kB / 0.6895 GB, free: 6.484 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.908e-05/0.4681, allocations: 11.98 kB / 0.6895 GB, free: 6.473 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.837e-05/0.4682, allocations: 11.98 kB / 0.6895 GB, free: 6.461 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0007032/0.4689, allocations: 0.6687 MB / 0.6901 GB, free: 5.785 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.8e-07/0.4689, allocations: 0 / 0.6901 GB, free: 5.785 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001357/0.4703, allocations: 399 kB / 0.6905 GB, free: 5.395 MB / 0.5137 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.002638/0.4729, allocations: 1.934 MB / 0.6924 GB, free: 3.426 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002342/0.4753, allocations: 2.492 MB / 0.6948 GB, free: 0.9258 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.4753, allocations: 0 / 0.6948 GB, free: 0.9258 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0003133/0.4756, allocations: 343.7 kB / 0.6952 GB, free: 0.5898 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003858/0.476, allocations: 35.41 kB / 0.6952 GB, free: 0.5586 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01435/0.4903, allocations: 15.07 MB / 0.7099 GB, free: 1.312 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005128/0.4909, allocations: 0.9678 MB / 0.7109 GB, free: 328 kB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0001949/0.4911, allocations: 36.55 kB / 0.7109 GB, free: 292 kB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002948/0.4914, allocations: 259.3 kB / 0.7112 GB, free: 32 kB / 0.5294 GB Notification: Performance of SimCode: time 7.81e-07/0.4914, allocations: 0 / 0.7112 GB, free: 32 kB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04349/0.5349, allocations: 19.57 MB / 0.7303 GB, free: 12.65 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.758/10.29, allocations: 11.5 kB / 0.7303 GB, free: 12.64 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)