Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.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_SmallScaleValidation,fileNamePrefix="IDEAS_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="IDEAS_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation",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.00109/0.00109, 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.001498/0.001498, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.342/1.342, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7633/0.7633, allocations: 132.2 MB / 422.6 MB, free: 1.766 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001194, allocations: 63.53 kB / 0.5019 GB, free: 3.703 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3825/0.3837, allocations: 80.19 MB / 0.5802 GB, free: 4.586 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002975/0.3867, allocations: 1.729 MB / 0.5819 GB, free: 3.379 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.005313/0.3921, allocations: 4.215 MB / 0.586 GB, free: 492 kB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.277e-05/0.3922, allocations: 1.906 kB / 0.586 GB, free: 492 kB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00116/0.3934, allocations: 372 kB / 0.5864 GB, free: 320 kB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001194/0.3935, allocations: 56.56 kB / 0.5864 GB, free: 288 kB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003128/0.3966, allocations: 0.9878 MB / 0.5874 GB, free: 15.91 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002315/0.3969, allocations: 152.3 kB / 0.5876 GB, free: 15.86 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001139/0.397, allocations: 9.078 kB / 0.5876 GB, free: 15.86 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002134/0.3972, allocations: 52.91 kB / 0.5876 GB, free: 15.84 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002425/0.3975, allocations: 158.6 kB / 0.5878 GB, free: 15.79 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.3e-05/0.3975, allocations: 18.91 kB / 0.5878 GB, free: 15.79 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002361/0.3999, allocations: 1.379 MB / 0.5891 GB, free: 15.37 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004345/0.4003, allocations: 275.4 kB / 0.5894 GB, free: 15.29 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003262/0.4007, allocations: 303.4 kB / 0.5897 GB, free: 15.09 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002184/0.4029, allocations: 1.531 MB / 0.5912 GB, free: 14.6 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.4029, allocations: 0 / 0.5912 GB, free: 14.6 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4029, allocations: 1.156 kB / 0.5912 GB, free: 14.6 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.768e-06/0.4029, allocations: 0 / 0.5912 GB, free: 14.6 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.01055/0.4135, allocations: 1.282 MB / 0.5924 GB, free: 13.69 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.4135, allocations: 10.12 kB / 0.5924 GB, free: 13.69 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.508e-05/0.4136, allocations: 37.7 kB / 0.5925 GB, free: 13.65 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003697/0.4139, allocations: 92.3 kB / 0.5926 GB, free: 13.59 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004974/0.4144, allocations: 405.8 kB / 0.593 GB, free: 13.25 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.125e-06/0.4145, allocations: 2.688 kB / 0.593 GB, free: 13.25 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.535e-05/0.4145, allocations: 13.22 kB / 0.593 GB, free: 13.24 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004274/0.4149, allocations: 394.3 kB / 0.5933 GB, free: 13.12 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.415, allocations: 1.5 kB / 0.5933 GB, free: 13.12 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.29e-05/0.415, allocations: 0 / 0.5933 GB, free: 13.12 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.66e-06/0.415, allocations: 1.688 kB / 0.5934 GB, free: 13.12 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000435/0.4154, allocations: 429.6 kB / 0.5938 GB, free: 13.05 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000817/0.4163, allocations: 0.6698 MB / 0.5944 GB, free: 12.53 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005084/0.4168, allocations: 0.5652 MB / 0.595 GB, free: 12.39 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003093/0.4171, allocations: 338.2 kB / 0.5953 GB, free: 12.32 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001017/0.4182, allocations: 1.031 MB / 0.5963 GB, free: 11.14 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004101/0.4186, allocations: 402.7 kB / 0.5967 GB, free: 11.01 MB / 446.1 MB Notification: Performance of pre-optimization done (n=8): time 5.711e-06/0.4186, allocations: 1.219 kB / 0.5967 GB, free: 11.01 MB / 446.1 MB Notification: Performance of matching and sorting (n=8): time 0.00141/0.42, allocations: 1.298 MB / 0.5979 GB, free: 10.71 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.073e-05/0.4201, allocations: 83.61 kB / 0.598 GB, free: 10.61 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001254/0.4214, allocations: 1.273 MB / 0.5993 GB, free: 9.887 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.775e-05/0.4214, allocations: 31.25 kB / 0.5993 GB, free: 9.852 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002897/0.4217, allocations: 288.2 kB / 0.5996 GB, free: 9.598 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001294/0.4219, allocations: 27.58 kB / 0.5996 GB, free: 9.574 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003362/0.4222, allocations: 352.9 kB / 0.5999 GB, free: 9.406 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.752e-05/0.4223, allocations: 316.9 kB / 0.6002 GB, free: 9.094 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001295/0.4236, allocations: 1.362 MB / 0.6016 GB, free: 8.52 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001615/0.4253, allocations: 1.489 MB / 0.603 GB, free: 7.852 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007131/0.4324, allocations: 3.546 MB / 0.6065 GB, free: 5.777 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.601e-06/0.4324, allocations: 3.938 kB / 0.6065 GB, free: 5.773 MB / 446.1 MB Notification: Performance of matching and sorting (n=317) (initialization): time 0.004283/0.4367, allocations: 3.969 MB / 0.6104 GB, free: 2.02 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.231e-05/0.4368, allocations: 6.344 kB / 0.6104 GB, free: 2.016 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.713e-05/0.4368, allocations: 4 kB / 0.6104 GB, free: 2.012 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.994e-05/0.4368, allocations: 0 / 0.6104 GB, free: 2.012 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001285/0.4369, allocations: 23.95 kB / 0.6104 GB, free: 1.988 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.655e-06/0.437, allocations: 0 / 0.6104 GB, free: 1.988 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009012/0.4379, allocations: 236.2 kB / 0.6106 GB, free: 1.754 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.541e-05/0.4379, allocations: 23.92 kB / 0.6106 GB, free: 1.73 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.0003761/0.4383, allocations: 249.6 kB / 0.6109 GB, free: 1.477 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.893e-05/0.4384, allocations: 74.69 kB / 0.611 GB, free: 1.402 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002789/0.4387, allocations: 83.66 kB / 0.611 GB, free: 1.309 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.057e-06/0.4387, allocations: 0 / 0.611 GB, free: 1.309 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.4387, allocations: 4 kB / 0.611 GB, free: 1.305 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.4387, allocations: 0 / 0.611 GB, free: 1.305 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004525/0.4392, allocations: 0.5138 MB / 0.6115 GB, free: 0.7461 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.4392, allocations: 0 / 0.6115 GB, free: 0.7461 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.574e-05/0.4392, allocations: 8 kB / 0.6116 GB, free: 0.7383 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.4392, allocations: 0 / 0.6116 GB, free: 0.7383 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.259e-05/0.4393, allocations: 3.984 kB / 0.6116 GB, free: 0.7344 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.4393, allocations: 4 kB / 0.6116 GB, free: 0.7305 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.4393, allocations: 4.031 kB / 0.6116 GB, free: 0.7266 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009141/0.4402, allocations: 1.006 MB / 0.6125 GB, free: 15.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001392/0.4404, allocations: 159.8 kB / 0.6127 GB, free: 15.52 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.674e-05/0.4405, allocations: 4 kB / 0.6127 GB, free: 15.52 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001634/0.4406, allocations: 8 kB / 0.6127 GB, free: 15.51 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.914e-05/0.4407, allocations: 7.984 kB / 0.6127 GB, free: 15.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.627e-05/0.4407, allocations: 11.98 kB / 0.6127 GB, free: 15.49 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0008442/0.4416, allocations: 0.7218 MB / 0.6134 GB, free: 14.77 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4416, allocations: 0 / 0.6134 GB, free: 14.77 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001451/0.443, allocations: 395.8 kB / 0.6138 GB, free: 14.38 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.002409/0.4454, allocations: 1.935 MB / 0.6157 GB, free: 12.41 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002276/0.4477, allocations: 2.505 MB / 0.6181 GB, free: 9.898 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.4477, allocations: 0 / 0.6181 GB, free: 9.898 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002897/0.448, allocations: 340.2 kB / 0.6185 GB, free: 9.566 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003732/0.4484, allocations: 60.97 kB / 0.6185 GB, free: 9.508 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01444/0.4629, allocations: 14.9 MB / 0.6331 GB, free: 10.45 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004981/0.4634, allocations: 0.9878 MB / 0.634 GB, free: 9.434 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0001942/0.4636, allocations: 37.44 kB / 0.6341 GB, free: 9.395 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002998/0.4639, allocations: 291.3 kB / 0.6344 GB, free: 9.113 MB / 478.1 MB Notification: Performance of SimCode: time 5.72e-07/0.4639, allocations: 0 / 0.6344 GB, free: 9.113 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04475/0.5087, allocations: 19.66 MB / 0.6536 GB, free: 5.656 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.21/8.718, allocations: 7.859 kB / 0.6536 GB, free: 5.652 MB / 494.1 MB (rm -f IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.csv --start-time 0 --stop-time 1.8e+12 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 7.2e+08 IDEAS_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.fmu > IDEAS_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)