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_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-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_SmallScaleValidation,fileNamePrefix="IDEAS_dev_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_dev_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.001131/0.001131, 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.001227/0.001227, allocations: 193.4 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.361/1.361, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9488/0.9488, allocations: 135.1 MB / 425.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 63.97 kB / 0.5055 GB, free: 5.188 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1525/0.1538, allocations: 80.94 MB / 0.5845 GB, free: 4.406 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003063/0.1569, allocations: 1.705 MB / 0.5862 GB, free: 2.684 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.006061/0.163, allocations: 4.218 MB / 0.5903 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001101/0.1631, allocations: 4 kB / 0.5903 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001179/0.1643, allocations: 373.5 kB / 0.5907 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001162/0.1644, allocations: 55.67 kB / 0.5907 GB, free: 14.03 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002486/0.1669, allocations: 0.9861 MB / 0.5917 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002147/0.1672, allocations: 147.4 kB / 0.5918 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.17e-05/0.1672, allocations: 17.53 kB / 0.5918 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.775e-05/0.1673, allocations: 47.78 kB / 0.5919 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002277/0.1675, allocations: 163.5 kB / 0.592 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.713e-05/0.1676, allocations: 16 kB / 0.5921 GB, free: 12.65 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001978/0.1696, allocations: 1.373 MB / 0.5934 GB, free: 11.28 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002273/0.1698, allocations: 279.8 kB / 0.5937 GB, free: 11 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002945/0.1701, allocations: 310.1 kB / 0.594 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.00189/0.172, allocations: 1.523 MB / 0.5955 GB, free: 9.168 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.172, allocations: 0 / 0.5955 GB, free: 9.168 MB / 0.4981 GB Notification: Performance of FrontEnd: time 4.388e-06/0.172, allocations: 3.984 kB / 0.5955 GB, free: 9.164 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.027e-05/0.1721, allocations: 0 / 0.5955 GB, free: 9.164 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.01058/0.1826, allocations: 1.277 MB / 0.5967 GB, free: 7.836 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.1827, allocations: 8.031 kB / 0.5967 GB, free: 7.828 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.631e-05/0.1827, allocations: 38.75 kB / 0.5967 GB, free: 7.781 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003786/0.1831, allocations: 99.58 kB / 0.5968 GB, free: 7.684 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004517/0.1836, allocations: 405.9 kB / 0.5972 GB, free: 7.238 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.137e-05/0.1836, allocations: 384 / 0.5972 GB, free: 7.238 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.292e-05/0.1837, allocations: 15.94 kB / 0.5972 GB, free: 7.223 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004237/0.1841, allocations: 391.1 kB / 0.5976 GB, free: 6.828 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.1841, allocations: 8 kB / 0.5976 GB, free: 6.82 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.161e-05/0.1841, allocations: 4 kB / 0.5976 GB, free: 6.816 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-06/0.1841, allocations: 0 / 0.5976 GB, free: 6.816 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004299/0.1846, allocations: 435.7 kB / 0.598 GB, free: 6.391 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006068/0.1852, allocations: 0.6574 MB / 0.5987 GB, free: 5.684 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004976/0.1857, allocations: 0.571 MB / 0.5992 GB, free: 5.094 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003035/0.186, allocations: 333.7 kB / 0.5996 GB, free: 4.762 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001124/0.1872, allocations: 1.028 MB / 0.6006 GB, free: 3.512 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004277/0.1876, allocations: 404.8 kB / 0.601 GB, free: 3.098 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.683e-06/0.1876, allocations: 0 / 0.601 GB, free: 3.098 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.001376/0.189, allocations: 1.3 MB / 0.6022 GB, free: 1.789 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.506e-05/0.1891, allocations: 89.23 kB / 0.6023 GB, free: 1.684 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00129/0.1904, allocations: 1.277 MB / 0.6036 GB, free: 404 kB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.597e-05/0.1904, allocations: 29.69 kB / 0.6036 GB, free: 368 kB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002139/0.1907, allocations: 285.4 kB / 0.6039 GB, free: 76 kB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.515e-05/0.1907, allocations: 19.72 kB / 0.6039 GB, free: 56 kB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.2433/0.434, allocations: 348.1 kB / 0.6042 GB, free: 52.52 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 6.88e-05/0.4341, allocations: 317.2 kB / 0.6045 GB, free: 52.21 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001047/0.4352, allocations: 1.366 MB / 0.6058 GB, free: 52.21 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009676/0.4362, allocations: 1.488 MB / 0.6073 GB, free: 51.79 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006245/0.4424, allocations: 3.544 MB / 0.6108 GB, free: 49.96 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.4424, allocations: 3.75 kB / 0.6108 GB, free: 49.96 MB / 0.4981 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.003415/0.4459, allocations: 3.965 MB / 0.6146 GB, free: 48.05 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.241e-05/0.4459, allocations: 5.812 kB / 0.6146 GB, free: 48.05 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.765e-05/0.4459, allocations: 0 / 0.6146 GB, free: 48.05 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.459e-05/0.446, allocations: 3.625 kB / 0.6146 GB, free: 48.05 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001439/0.4461, allocations: 18.8 kB / 0.6147 GB, free: 48.05 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.4461, allocations: 6.141 kB / 0.6147 GB, free: 48.05 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004484/0.4466, allocations: 234.3 kB / 0.6149 GB, free: 47.88 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.574e-05/0.4466, allocations: 21.53 kB / 0.6149 GB, free: 47.88 MB / 0.4981 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.0002606/0.4469, allocations: 244.3 kB / 0.6151 GB, free: 47.76 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.439e-05/0.447, allocations: 74.08 kB / 0.6152 GB, free: 47.71 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002818/0.4472, allocations: 83.52 kB / 0.6153 GB, free: 47.65 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.4473, allocations: 2.406 kB / 0.6153 GB, free: 47.65 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.4473, allocations: 3.938 kB / 0.6153 GB, free: 47.65 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.4473, allocations: 6.078 kB / 0.6153 GB, free: 47.65 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003596/0.4476, allocations: 0.5109 MB / 0.6158 GB, free: 47.37 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.4477, allocations: 3.234 kB / 0.6158 GB, free: 47.37 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.009e-05/0.4477, allocations: 9.812 kB / 0.6158 GB, free: 47.37 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-06/0.4477, allocations: 0 / 0.6158 GB, free: 47.37 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.515e-05/0.4478, allocations: 6.375 kB / 0.6158 GB, free: 47.37 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.4478, allocations: 0 / 0.6158 GB, free: 47.37 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.4478, allocations: 3.938 kB / 0.6158 GB, free: 47.36 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007779/0.4486, allocations: 1.007 MB / 0.6168 GB, free: 47.22 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.85e-05/0.4486, allocations: 156.5 kB / 0.617 GB, free: 47.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.71e-05/0.4487, allocations: 6.125 kB / 0.617 GB, free: 47.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001432/0.4489, allocations: 6.953 kB / 0.617 GB, free: 47.07 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.539e-05/0.4489, allocations: 15.88 kB / 0.617 GB, free: 47.06 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.352e-05/0.4489, allocations: 8.938 kB / 0.617 GB, free: 47.06 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0005815/0.4495, allocations: 0.7248 MB / 0.6177 GB, free: 46.82 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.112e-06/0.4495, allocations: 0 / 0.6177 GB, free: 46.82 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0009056/0.4505, allocations: 398.5 kB / 0.6181 GB, free: 46.8 MB / 0.4981 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.001974/0.4524, allocations: 1.933 MB / 0.62 GB, free: 46.11 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001699/0.4541, allocations: 2.502 MB / 0.6224 GB, free: 45.12 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.4542, allocations: 0 / 0.6224 GB, free: 45.12 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002687/0.4544, allocations: 344.1 kB / 0.6227 GB, free: 45.11 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003753/0.4548, allocations: 62.42 kB / 0.6228 GB, free: 45.08 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01292/0.4677, allocations: 14.89 MB / 0.6373 GB, free: 38.27 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003642/0.4681, allocations: 0.9829 MB / 0.6383 GB, free: 37.58 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002028/0.4684, allocations: 38.42 kB / 0.6383 GB, free: 37.57 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002662/0.4686, allocations: 287.4 kB / 0.6386 GB, free: 37.33 MB / 0.4981 GB Notification: Performance of SimCode: time 6.52e-07/0.4686, allocations: 1.219 kB / 0.6386 GB, free: 37.33 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05162/0.5203, allocations: 19.68 MB / 0.6578 GB, free: 35.84 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.612/9.132, allocations: 4.375 kB / 0.6578 GB, free: 35.84 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.fmu > IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)