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.001143/0.001143, 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.001155/0.001155, allocations: 198.7 kB / 16.54 MB, free: 6.672 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.304/1.304, allocations: 222.9 MB / 240.2 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.729/0.729, allocations: 132.2 MB / 422.6 MB, free: 1.742 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 68.98 kB / 0.5019 GB, free: 3.684 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3697/0.371, allocations: 80.19 MB / 0.5802 GB, free: 4.566 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes): time 0.002359/0.3734, allocations: 1.404 MB / 0.5816 GB, free: 3.574 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.003819/0.3773, allocations: 3.024 MB / 0.5846 GB, free: 1.543 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.623e-05/0.3773, allocations: 3.938 kB / 0.5846 GB, free: 1.539 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 9.303e-05/0.3774, allocations: 8.453 kB / 0.5846 GB, free: 1.535 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002091/0.3777, allocations: 32.75 kB / 0.5846 GB, free: 1.516 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002386/0.3801, allocations: 1.006 MB / 0.5856 GB, free: 1.137 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001151/0.3802, allocations: 83.02 kB / 0.5857 GB, free: 1.109 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.141e-05/0.3802, allocations: 8.641 kB / 0.5857 GB, free: 1.105 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.125e-05/0.3803, allocations: 33.67 kB / 0.5857 GB, free: 1.098 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002248/0.3805, allocations: 158.5 kB / 0.5858 GB, free: 1.059 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 4.334e-05/0.3806, allocations: 12.5 kB / 0.5859 GB, free: 1.059 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002097/0.3827, allocations: 1.377 MB / 0.5872 GB, free: 0.6406 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006941/0.3834, allocations: 0.6903 MB / 0.5879 GB, free: 472 kB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003314/0.3837, allocations: 445 kB / 0.5883 GB, free: 188 kB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002588/0.3863, allocations: 1.766 MB / 0.59 GB, free: 15.59 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.3864, allocations: 1.688 kB / 0.59 GB, free: 15.59 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3864, allocations: 0 / 0.59 GB, free: 15.59 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.648e-05/0.3864, allocations: 0.7031 kB / 0.59 GB, free: 15.59 MB / 446.1 MB 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.01085/0.3972, allocations: 1.69 MB / 0.5917 GB, free: 14.41 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.3973, allocations: 9.719 kB / 0.5917 GB, free: 14.41 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.361e-05/0.3973, allocations: 38.05 kB / 0.5917 GB, free: 14.37 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004231/0.3978, allocations: 145.4 kB / 0.5919 GB, free: 14.29 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005222/0.3983, allocations: 0.5208 MB / 0.5924 GB, free: 13.86 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.305e-05/0.3983, allocations: 7.219 kB / 0.5924 GB, free: 13.85 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.031e-05/0.3984, allocations: 9.359 kB / 0.5924 GB, free: 13.85 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003997/0.3988, allocations: 392.7 kB / 0.5928 GB, free: 13.79 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.3988, allocations: 0.5156 kB / 0.5928 GB, free: 13.79 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.302e-05/0.3988, allocations: 6.484 kB / 0.5928 GB, free: 13.78 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.3988, allocations: 0 / 0.5928 GB, free: 13.78 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004089/0.3992, allocations: 435.9 kB / 0.5932 GB, free: 13.72 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007643/0.4, allocations: 0.8 MB / 0.594 GB, free: 13.12 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004788/0.4005, allocations: 0.5682 MB / 0.5945 GB, free: 12.98 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002837/0.4008, allocations: 342.2 kB / 0.5949 GB, free: 12.91 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001007/0.4018, allocations: 1.023 MB / 0.5959 GB, free: 11.74 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003895/0.4022, allocations: 406.9 kB / 0.5962 GB, free: 11.6 MB / 446.1 MB Notification: Performance of pre-optimization done (n=8): time 1.272e-06/0.4022, allocations: 0 / 0.5962 GB, free: 11.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=8): time 0.001332/0.4036, allocations: 1.35 MB / 0.5976 GB, free: 11.27 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.716e-05/0.4036, allocations: 84.08 kB / 0.5976 GB, free: 11.17 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002001/0.4056, allocations: 1.849 MB / 0.5994 GB, free: 10.18 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.611e-05/0.4057, allocations: 32.02 kB / 0.5995 GB, free: 10.14 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003465/0.4061, allocations: 475.8 kB / 0.5999 GB, free: 9.746 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.118e-05/0.4061, allocations: 15.94 kB / 0.5999 GB, free: 9.734 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003137/0.4064, allocations: 351.1 kB / 0.6003 GB, free: 9.566 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.816e-05/0.4065, allocations: 302.5 kB / 0.6006 GB, free: 9.27 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001295/0.4078, allocations: 1.523 MB / 0.6021 GB, free: 8.668 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001369/0.4092, allocations: 1.648 MB / 0.6037 GB, free: 7.977 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007077/0.4163, allocations: 3.691 MB / 0.6073 GB, free: 5.156 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/0.4163, allocations: 3.938 kB / 0.6073 GB, free: 5.152 MB / 446.1 MB Notification: Performance of matching and sorting (n=317) (initialization): time 0.004373/0.4207, allocations: 4.32 MB / 0.6115 GB, free: 0.7969 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.001e-05/0.4207, allocations: 4 kB / 0.6115 GB, free: 0.793 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.852e-05/0.4207, allocations: 4 kB / 0.6115 GB, free: 0.7891 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.948e-05/0.4208, allocations: 3.984 kB / 0.6115 GB, free: 0.7852 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001369/0.4209, allocations: 15.94 kB / 0.6115 GB, free: 0.7695 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.4209, allocations: 0 / 0.6115 GB, free: 0.7695 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007971/0.4217, allocations: 236.3 kB / 0.6117 GB, free: 0.5352 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.945e-05/0.4218, allocations: 19.98 kB / 0.6118 GB, free: 0.5156 MB / 446.1 MB 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.0005786/0.4224, allocations: 371.1 kB / 0.6121 GB, free: 148 kB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.739e-05/0.4225, allocations: 122 kB / 0.6122 GB, free: 24 kB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003583/0.4228, allocations: 145 kB / 0.6124 GB, free: 15.88 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.521e-06/0.4228, allocations: 4 kB / 0.6124 GB, free: 15.87 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.4229, allocations: 0 / 0.6124 GB, free: 15.87 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.4229, allocations: 0 / 0.6124 GB, free: 15.87 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006363/0.4235, allocations: 0.6794 MB / 0.613 GB, free: 15.13 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.4235, allocations: 3.984 kB / 0.613 GB, free: 15.13 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.148e-05/0.4236, allocations: 8 kB / 0.613 GB, free: 15.12 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.417e-06/0.4236, allocations: 0 / 0.613 GB, free: 15.12 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.57e-05/0.4236, allocations: 7.984 kB / 0.6131 GB, free: 15.11 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.536e-06/0.4236, allocations: 4 kB / 0.6131 GB, free: 15.11 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.4236, allocations: 0 / 0.6131 GB, free: 15.11 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009447/0.4246, allocations: 1.059 MB / 0.6141 GB, free: 14.02 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001645/0.4248, allocations: 199.1 kB / 0.6143 GB, free: 13.81 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.545e-05/0.4249, allocations: 3.984 kB / 0.6143 GB, free: 13.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000189/0.4251, allocations: 4 kB / 0.6143 GB, free: 13.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.439e-05/0.4251, allocations: 11.98 kB / 0.6143 GB, free: 13.79 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.844e-05/0.4251, allocations: 11.98 kB / 0.6143 GB, free: 13.78 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001214/0.4264, allocations: 1.104 MB / 0.6154 GB, free: 12.65 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.4264, allocations: 0 / 0.6154 GB, free: 12.65 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001601/0.428, allocations: 427.9 kB / 0.6158 GB, free: 12.23 MB / 462.1 MB 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.002675/0.4307, allocations: 1.99 MB / 0.6177 GB, free: 10.21 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002469/0.4331, allocations: 2.644 MB / 0.6203 GB, free: 7.555 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.4332, allocations: 4.062 kB / 0.6203 GB, free: 7.551 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000308/0.4335, allocations: 336.3 kB / 0.6206 GB, free: 7.223 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004536/0.4339, allocations: 58.47 kB / 0.6207 GB, free: 7.16 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2814/0.7153, allocations: 36.43 MB / 0.6563 GB, free: 2.496 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007329/0.7161, allocations: 1.149 MB / 0.6574 GB, free: 1.32 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0002675/0.7164, allocations: 36.56 kB / 0.6574 GB, free: 1.285 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004452/0.7168, allocations: 435.3 kB / 0.6579 GB, free: 0.8594 MB / 494.1 MB Notification: Performance of SimCode: time 7.21e-07/0.7169, allocations: 0 / 0.6579 GB, free: 0.8594 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0795/0.7964, allocations: 59.72 MB / 0.7162 GB, free: 5.254 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.027/8.823, allocations: 8.984 kB / 0.7162 GB, free: 5.25 MB / 0.545 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)