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.001366/0.001366, allocations: 108.6 kB / 15.73 MB, free: 72 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.001364/0.001364, allocations: 189.2 kB / 16.67 MB, free: 6.613 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.398/1.398, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9546/0.9546, allocations: 135.6 MB / 426.1 MB, free: 11.94 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001906/0.001906, allocations: 71.88 kB / 0.5858 GB, free: 3.125 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3794/0.3813, allocations: 81.02 MB / 0.6649 GB, free: 6.965 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes): time 0.00196/0.3833, allocations: 1.4 MB / 0.6663 GB, free: 5.863 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.003487/0.3868, allocations: 3.026 MB / 0.6693 GB, free: 3.492 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.675e-05/0.3869, allocations: 0 / 0.6693 GB, free: 3.492 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 9.56e-05/0.387, allocations: 8.906 kB / 0.6693 GB, free: 3.484 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002523/0.3873, allocations: 35.52 kB / 0.6693 GB, free: 3.457 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.00214/0.3894, allocations: 0.9957 MB / 0.6703 GB, free: 2.848 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001477/0.3896, allocations: 80.53 kB / 0.6703 GB, free: 2.809 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.854e-05/0.3896, allocations: 11.31 kB / 0.6704 GB, free: 2.801 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.394e-05/0.3897, allocations: 35.73 kB / 0.6704 GB, free: 2.785 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001923/0.3899, allocations: 168.5 kB / 0.6705 GB, free: 2.688 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.888e-05/0.3899, allocations: 12.53 kB / 0.6706 GB, free: 2.688 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001808/0.3917, allocations: 1.376 MB / 0.6719 GB, free: 1.918 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0005593/0.3923, allocations: 0.6898 MB / 0.6726 GB, free: 1.59 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002917/0.3926, allocations: 444.3 kB / 0.673 GB, free: 1.297 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001962/0.3946, allocations: 1.795 MB / 0.6748 GB, free: 280 kB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.3946, allocations: 0 / 0.6748 GB, free: 280 kB / 0.4981 GB Notification: Performance of FrontEnd: time 1.833e-06/0.3946, allocations: 0.9375 kB / 0.6748 GB, free: 280 kB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.439e-05/0.3946, allocations: 0 / 0.6748 GB, free: 280 kB / 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.01129/0.4059, allocations: 1.746 MB / 0.6765 GB, free: 14.91 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.406, allocations: 17.25 kB / 0.6765 GB, free: 14.9 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.129e-05/0.406, allocations: 35.91 kB / 0.6765 GB, free: 14.86 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004466/0.4065, allocations: 148.5 kB / 0.6767 GB, free: 14.76 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00063/0.4071, allocations: 0.5318 MB / 0.6772 GB, free: 14.29 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.877e-05/0.4071, allocations: 11.44 kB / 0.6772 GB, free: 14.28 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.763e-05/0.4072, allocations: 12.48 kB / 0.6772 GB, free: 14.27 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004475/0.4076, allocations: 386.8 kB / 0.6776 GB, free: 14.15 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.4077, allocations: 0 / 0.6776 GB, free: 14.15 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.355e-05/0.4077, allocations: 5.078 kB / 0.6776 GB, free: 14.15 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.4077, allocations: 1.094 kB / 0.6776 GB, free: 14.15 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004569/0.4081, allocations: 434.4 kB / 0.678 GB, free: 14.08 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009151/0.4091, allocations: 0.8078 MB / 0.6788 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005414/0.4096, allocations: 0.5682 MB / 0.6793 GB, free: 13.33 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003233/0.41, allocations: 333.5 kB / 0.6796 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001203/0.4112, allocations: 1.032 MB / 0.6807 GB, free: 12.09 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004254/0.4116, allocations: 398.1 kB / 0.681 GB, free: 11.96 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=8): time 1.583e-06/0.4116, allocations: 0 / 0.681 GB, free: 11.96 MB / 0.5137 GB Notification: Performance of matching and sorting (n=8): time 0.001578/0.4132, allocations: 1.363 MB / 0.6824 GB, free: 11.62 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.71e-05/0.4133, allocations: 86.77 kB / 0.6824 GB, free: 11.52 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002115/0.4154, allocations: 1.846 MB / 0.6842 GB, free: 10.53 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 7.426e-05/0.4155, allocations: 28.45 kB / 0.6843 GB, free: 10.5 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.000422/0.4159, allocations: 484 kB / 0.6847 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 4.248e-05/0.416, allocations: 18.64 kB / 0.6848 GB, free: 10.07 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003714/0.4164, allocations: 352.4 kB / 0.6851 GB, free: 9.906 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001363/0.4165, allocations: 306.5 kB / 0.6854 GB, free: 9.605 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001451/0.418, allocations: 1.507 MB / 0.6869 GB, free: 9.02 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001553/0.4195, allocations: 1.647 MB / 0.6885 GB, free: 8.18 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007678/0.4272, allocations: 3.694 MB / 0.6921 GB, free: 4.395 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.03e-06/0.4272, allocations: 4 kB / 0.6921 GB, free: 4.391 MB / 0.5137 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.005297/0.4326, allocations: 4.328 MB / 0.6963 GB, free: 28 kB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.154e-05/0.4326, allocations: 4 kB / 0.6963 GB, free: 24 kB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.625e-05/0.4326, allocations: 0 / 0.6963 GB, free: 24 kB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.558e-05/0.4326, allocations: 4 kB / 0.6963 GB, free: 20 kB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001382/0.4328, allocations: 19.92 kB / 0.6963 GB, free: 0 / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/0.4328, allocations: 0 / 0.6963 GB, free: 0 / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008292/0.4336, allocations: 245.6 kB / 0.6966 GB, free: 15.75 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.727e-05/0.4337, allocations: 23.98 kB / 0.6966 GB, free: 15.73 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.0006195/0.4343, allocations: 369.3 kB / 0.6969 GB, free: 15.36 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001479/0.4345, allocations: 134.9 kB / 0.6971 GB, free: 15.23 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003675/0.4349, allocations: 145 kB / 0.6972 GB, free: 15.08 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/0.4349, allocations: 4 kB / 0.6972 GB, free: 15.07 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.4349, allocations: 4.031 kB / 0.6972 GB, free: 15.07 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.4349, allocations: 0 / 0.6972 GB, free: 15.07 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007757/0.4357, allocations: 0.6755 MB / 0.6979 GB, free: 14.34 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.943e-06/0.4357, allocations: 0 / 0.6979 GB, free: 14.34 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.557e-05/0.4358, allocations: 7.984 kB / 0.6979 GB, free: 14.33 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.623e-06/0.4358, allocations: 4 kB / 0.6979 GB, free: 14.32 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.218e-05/0.4358, allocations: 0 / 0.6979 GB, free: 14.32 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.4358, allocations: 0 / 0.6979 GB, free: 14.32 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.4358, allocations: 4 kB / 0.6979 GB, free: 14.32 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001301/0.4371, allocations: 1.075 MB / 0.6989 GB, free: 13.22 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002076/0.4373, allocations: 200.1 kB / 0.6991 GB, free: 13 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.801e-05/0.4374, allocations: 0 / 0.6991 GB, free: 13 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001913/0.4376, allocations: 7.984 kB / 0.6991 GB, free: 13 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.377e-05/0.4377, allocations: 8 kB / 0.6991 GB, free: 12.99 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.748e-05/0.4377, allocations: 19.97 kB / 0.6992 GB, free: 12.97 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001403/0.4391, allocations: 1.101 MB / 0.7002 GB, free: 11.84 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4391, allocations: 0 / 0.7002 GB, free: 11.84 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001332/0.4405, allocations: 439 kB / 0.7007 GB, free: 11.41 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.002738/0.4432, allocations: 2 MB / 0.7026 GB, free: 9.379 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00282/0.4461, allocations: 2.648 MB / 0.7052 GB, free: 6.723 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.4461, allocations: 0 / 0.7052 GB, free: 6.723 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0004032/0.4465, allocations: 339.8 kB / 0.7055 GB, free: 6.391 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005124/0.447, allocations: 47.2 kB / 0.7056 GB, free: 6.34 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2783/0.7254, allocations: 36.42 MB / 0.7411 GB, free: 1.68 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008954/0.7263, allocations: 1.157 MB / 0.7423 GB, free: 0.5039 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0002201/0.7266, allocations: 37.17 kB / 0.7423 GB, free: 480 kB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004951/0.7271, allocations: 427.3 kB / 0.7427 GB, free: 52 kB / 0.5606 GB Notification: Performance of SimCode: time 1.533e-06/0.7271, allocations: 0 / 0.7427 GB, free: 52 kB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09982/0.8269, allocations: 59.99 MB / 0.8013 GB, free: 4.215 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.8/12.62, allocations: 4.938 kB / 0.8013 GB, free: 4.211 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)