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.004693/0.004693, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.001133/0.001133, allocations: 195.1 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.351/1.351, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.945/0.945, allocations: 135.1 MB / 425.7 MB, free: 11.88 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001419/0.001419, allocations: 63.91 kB / 0.5852 GB, free: 3.781 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4265/0.428, allocations: 80.91 MB / 0.6642 GB, free: 7.258 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes): time 0.003076/0.4311, allocations: 1.408 MB / 0.6656 GB, free: 6.152 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.004455/0.4356, allocations: 3.023 MB / 0.6686 GB, free: 3.785 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.067e-05/0.4357, allocations: 0 / 0.6686 GB, free: 3.785 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001295/0.4359, allocations: 13.02 kB / 0.6686 GB, free: 3.773 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002549/0.4361, allocations: 27.81 kB / 0.6686 GB, free: 3.754 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002697/0.4388, allocations: 0.9995 MB / 0.6696 GB, free: 3.141 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001388/0.439, allocations: 79.58 kB / 0.6696 GB, free: 3.102 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.285e-05/0.439, allocations: 3.625 kB / 0.6696 GB, free: 3.102 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.909e-05/0.4391, allocations: 40.55 kB / 0.6697 GB, free: 3.082 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002207/0.4393, allocations: 164.7 kB / 0.6698 GB, free: 2.988 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.512e-05/0.4394, allocations: 12.53 kB / 0.6699 GB, free: 2.988 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002164/0.4416, allocations: 1.38 MB / 0.6712 GB, free: 2.215 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0006632/0.4422, allocations: 0.6814 MB / 0.6719 GB, free: 1.895 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000354/0.4426, allocations: 447.4 kB / 0.6723 GB, free: 1.598 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002383/0.445, allocations: 1.798 MB / 0.674 GB, free: 0.5703 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.445, allocations: 0 / 0.674 GB, free: 0.5703 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.024e-06/0.445, allocations: 0 / 0.674 GB, free: 0.5703 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.47e-05/0.445, allocations: 1.219 kB / 0.6741 GB, free: 0.5703 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.01082/0.4559, allocations: 1.747 MB / 0.6758 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 6.161e-05/0.4559, allocations: 13.45 kB / 0.6758 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.511e-05/0.456, allocations: 35.88 kB / 0.6758 GB, free: 15.15 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005731/0.4566, allocations: 153.5 kB / 0.676 GB, free: 15.05 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006716/0.4573, allocations: 0.5323 MB / 0.6765 GB, free: 14.58 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.672e-05/0.4573, allocations: 7.859 kB / 0.6765 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.669e-05/0.4573, allocations: 8.25 kB / 0.6765 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004711/0.4578, allocations: 383 kB / 0.6769 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.4578, allocations: 0 / 0.6769 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.737e-05/0.4579, allocations: 9.031 kB / 0.6769 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.4579, allocations: 5.062 kB / 0.6769 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004713/0.4584, allocations: 438.4 kB / 0.6773 GB, free: 14.37 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009971/0.4594, allocations: 0.8104 MB / 0.6781 GB, free: 13.77 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005796/0.46, allocations: 0.5659 MB / 0.6786 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003444/0.4603, allocations: 341.4 kB / 0.679 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001088/0.4614, allocations: 1.032 MB / 0.68 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004289/0.4618, allocations: 402.7 kB / 0.6803 GB, free: 12.24 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=8): time 1.172e-06/0.4619, allocations: 0 / 0.6803 GB, free: 12.24 MB / 0.5137 GB Notification: Performance of matching and sorting (n=8): time 0.001708/0.4636, allocations: 1.347 MB / 0.6817 GB, free: 11.91 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.41e-05/0.4636, allocations: 84.78 kB / 0.6817 GB, free: 11.82 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002468/0.4661, allocations: 1.854 MB / 0.6835 GB, free: 10.82 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 7.306e-05/0.4662, allocations: 27.08 kB / 0.6836 GB, free: 10.79 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004225/0.4666, allocations: 484.1 kB / 0.684 GB, free: 10.38 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 4.333e-05/0.4667, allocations: 23.97 kB / 0.6841 GB, free: 10.36 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003936/0.4671, allocations: 348.5 kB / 0.6844 GB, free: 10.2 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001107/0.4672, allocations: 301.1 kB / 0.6847 GB, free: 9.902 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00182/0.469, allocations: 1.512 MB / 0.6862 GB, free: 9.312 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001584/0.4706, allocations: 1.648 MB / 0.6878 GB, free: 8.617 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007051/0.4777, allocations: 3.687 MB / 0.6914 GB, free: 5.094 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.212e-06/0.4777, allocations: 3.984 kB / 0.6914 GB, free: 5.09 MB / 0.5137 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.004442/0.4822, allocations: 4.328 MB / 0.6956 GB, free: 0.7266 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.259e-05/0.4822, allocations: 11.94 kB / 0.6956 GB, free: 0.7148 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.523e-05/0.4822, allocations: 0 / 0.6956 GB, free: 0.7148 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.82e-05/0.4822, allocations: 0 / 0.6956 GB, free: 0.7148 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001365/0.4824, allocations: 15.98 kB / 0.6956 GB, free: 0.6992 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.428e-06/0.4824, allocations: 4 kB / 0.6956 GB, free: 0.6953 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000805/0.4832, allocations: 237.4 kB / 0.6959 GB, free: 472 kB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.83e-05/0.4833, allocations: 23.98 kB / 0.6959 GB, free: 448 kB / 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.0005973/0.4839, allocations: 371.1 kB / 0.6962 GB, free: 68 kB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001291/0.484, allocations: 138.8 kB / 0.6964 GB, free: 15.93 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003417/0.4844, allocations: 141.1 kB / 0.6965 GB, free: 15.78 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.4844, allocations: 0 / 0.6965 GB, free: 15.78 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/0.4844, allocations: 3.984 kB / 0.6965 GB, free: 15.78 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.4844, allocations: 0 / 0.6965 GB, free: 15.78 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006461/0.485, allocations: 0.6794 MB / 0.6972 GB, free: 15.04 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.4851, allocations: 4.031 kB / 0.6972 GB, free: 15.04 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.239e-05/0.4851, allocations: 15.92 kB / 0.6972 GB, free: 15.02 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.4851, allocations: 3.938 kB / 0.6972 GB, free: 15.02 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.588e-05/0.4852, allocations: 8 kB / 0.6972 GB, free: 15.01 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.734e-06/0.4852, allocations: 0 / 0.6972 GB, free: 15.01 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.4852, allocations: 0 / 0.6972 GB, free: 15.01 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008934/0.4861, allocations: 1.06 MB / 0.6982 GB, free: 13.92 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001806/0.4863, allocations: 200 kB / 0.6984 GB, free: 13.71 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.66e-05/0.4864, allocations: 7.938 kB / 0.6984 GB, free: 13.7 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000203/0.4866, allocations: 3.984 kB / 0.6984 GB, free: 13.7 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.486e-05/0.4866, allocations: 11.94 kB / 0.6984 GB, free: 13.68 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.546e-05/0.4867, allocations: 19.92 kB / 0.6985 GB, free: 13.66 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001178/0.4878, allocations: 1.104 MB / 0.6995 GB, free: 12.54 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.4e-07/0.4879, allocations: 4 kB / 0.6995 GB, free: 12.53 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001367/0.4892, allocations: 435 kB / 0.7 GB, free: 12.11 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.002455/0.4917, allocations: 1.999 MB / 0.7019 GB, free: 10.07 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002288/0.494, allocations: 2.648 MB / 0.7045 GB, free: 7.414 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.494, allocations: 4.062 kB / 0.7045 GB, free: 7.41 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0002993/0.4943, allocations: 343.7 kB / 0.7048 GB, free: 7.074 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004846/0.4948, allocations: 42.55 kB / 0.7049 GB, free: 7.027 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2649/0.7597, allocations: 36.42 MB / 0.7404 GB, free: 2.367 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006403/0.7604, allocations: 1.149 MB / 0.7416 GB, free: 1.191 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001983/0.7606, allocations: 32.55 kB / 0.7416 GB, free: 1.16 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004269/0.761, allocations: 435.3 kB / 0.742 GB, free: 0.7344 MB / 0.5606 GB Notification: Performance of SimCode: time 9.22e-07/0.761, allocations: 4 kB / 0.742 GB, free: 0.7305 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08842/0.8494, allocations: 59.98 MB / 0.8006 GB, free: 4.895 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.28/12.13, allocations: 4.75 kB / 0.8006 GB, free: 4.895 MB / 0.6231 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)