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.008586/0.008586, allocations: 100.8 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.002284/0.002284, allocations: 192.8 kB / 16.67 MB, free: 5.969 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.431/1.431, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8641/0.8641, allocations: 135.6 MB / 426.1 MB, free: 3.684 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001899/0.001899, allocations: 68.52 kB / 0.5858 GB, free: 21.4 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1573/0.1593, allocations: 81.02 MB / 0.6649 GB, free: 5.598 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.0036/0.1629, allocations: 1.732 MB / 0.6666 GB, free: 3.859 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.007035/0.17, allocations: 4.214 MB / 0.6707 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001894/0.1702, allocations: 7.938 kB / 0.6707 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.001575/0.1719, allocations: 359.8 kB / 0.6711 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.0001814/0.1721, allocations: 63.66 kB / 0.6711 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.002785/0.1748, allocations: 0.9893 MB / 0.6721 GB, free: 14.21 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0002871/0.1751, allocations: 143.4 kB / 0.6722 GB, free: 14.07 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 5.459e-05/0.1752, allocations: 13.55 kB / 0.6723 GB, free: 14.06 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 8.407e-05/0.1753, allocations: 59.72 kB / 0.6723 GB, free: 14 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000255/0.1756, allocations: 159.5 kB / 0.6725 GB, free: 13.84 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 4.881e-05/0.1756, allocations: 16 kB / 0.6725 GB, free: 13.83 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002343/0.178, allocations: 1.385 MB / 0.6738 GB, free: 12.44 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002568/0.1782, allocations: 271.8 kB / 0.6741 GB, free: 12.18 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0002938/0.1785, allocations: 302.2 kB / 0.6744 GB, free: 11.88 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.002167/0.1807, allocations: 1.557 MB / 0.6759 GB, free: 10.32 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.1807, allocations: 4 kB / 0.6759 GB, free: 10.31 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.944e-06/0.1808, allocations: 3.938 kB / 0.6759 GB, free: 10.31 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 9.277e-06/0.1808, allocations: 4 kB / 0.6759 GB, free: 10.3 MB / 0.5137 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.01128/0.1921, allocations: 1.313 MB / 0.6772 GB, free: 8.938 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.883e-05/0.1921, allocations: 8.031 kB / 0.6772 GB, free: 8.93 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.511e-05/0.1922, allocations: 38.73 kB / 0.6772 GB, free: 8.883 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003907/0.1926, allocations: 96.2 kB / 0.6773 GB, free: 8.789 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006132/0.1932, allocations: 410.1 kB / 0.6777 GB, free: 8.34 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.225e-05/0.1932, allocations: 12.12 kB / 0.6777 GB, free: 8.328 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.79e-05/0.1933, allocations: 11.94 kB / 0.6777 GB, free: 8.316 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004667/0.1937, allocations: 383.2 kB / 0.6781 GB, free: 7.93 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.1938, allocations: 0 / 0.6781 GB, free: 7.93 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.456e-05/0.1938, allocations: 3.984 kB / 0.6781 GB, free: 7.926 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.488e-06/0.1938, allocations: 0 / 0.6781 GB, free: 7.926 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004818/0.1943, allocations: 439.7 kB / 0.6785 GB, free: 7.496 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006906/0.195, allocations: 0.658 MB / 0.6792 GB, free: 6.789 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005864/0.1956, allocations: 0.5672 MB / 0.6797 GB, free: 6.203 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003436/0.1959, allocations: 333.7 kB / 0.68 GB, free: 5.871 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001113/0.197, allocations: 1.032 MB / 0.6811 GB, free: 4.617 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004456/0.1975, allocations: 408.9 kB / 0.6814 GB, free: 4.199 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=8): time 1.783e-06/0.1975, allocations: 0 / 0.6814 GB, free: 4.199 MB / 0.5137 GB Notification: Performance of matching and sorting (n=8): time 0.001453/0.199, allocations: 1.293 MB / 0.6827 GB, free: 2.898 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.218e-05/0.199, allocations: 85.09 kB / 0.6828 GB, free: 2.797 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001355/0.2004, allocations: 1.289 MB / 0.684 GB, free: 1.496 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 4.118e-05/0.2004, allocations: 29.7 kB / 0.6841 GB, free: 1.461 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002315/0.2007, allocations: 294 kB / 0.6844 GB, free: 1.168 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 4.152e-05/0.2007, allocations: 23.84 kB / 0.6844 GB, free: 1.145 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003583/0.2011, allocations: 351.5 kB / 0.6847 GB, free: 0.7969 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001583/0.2013, allocations: 318 kB / 0.685 GB, free: 492 kB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001313/0.2026, allocations: 1.365 MB / 0.6864 GB, free: 15.11 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001408/0.204, allocations: 1.497 MB / 0.6878 GB, free: 13.6 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007199/0.2112, allocations: 3.545 MB / 0.6913 GB, free: 9.965 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.2113, allocations: 0 / 0.6913 GB, free: 9.965 MB / 0.5294 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.004544/0.2158, allocations: 3.973 MB / 0.6952 GB, free: 5.957 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.279e-05/0.2158, allocations: 4 kB / 0.6952 GB, free: 5.953 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.932e-05/0.2159, allocations: 8.031 kB / 0.6952 GB, free: 5.945 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.403e-05/0.2159, allocations: 3.984 kB / 0.6952 GB, free: 5.941 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001325/0.216, allocations: 12 kB / 0.6952 GB, free: 5.93 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.2161, allocations: 4.297 kB / 0.6952 GB, free: 5.926 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005295/0.2166, allocations: 241.4 kB / 0.6954 GB, free: 5.688 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.217e-05/0.2167, allocations: 19.98 kB / 0.6954 GB, free: 5.668 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.0003409/0.217, allocations: 253.5 kB / 0.6957 GB, free: 5.41 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.489e-05/0.2171, allocations: 79.3 kB / 0.6958 GB, free: 5.332 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002888/0.2174, allocations: 75.72 kB / 0.6958 GB, free: 5.246 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.2174, allocations: 0 / 0.6958 GB, free: 5.246 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.2174, allocations: 4 kB / 0.6958 GB, free: 5.242 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.2174, allocations: 0 / 0.6958 GB, free: 5.242 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005044/0.2179, allocations: 0.5176 MB / 0.6963 GB, free: 4.684 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.2179, allocations: 0 / 0.6963 GB, free: 4.684 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.126e-05/0.218, allocations: 15.92 kB / 0.6964 GB, free: 4.668 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.846e-06/0.218, allocations: 4.031 kB / 0.6964 GB, free: 4.664 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.812e-05/0.218, allocations: 11.94 kB / 0.6964 GB, free: 4.652 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.2181, allocations: 3.984 kB / 0.6964 GB, free: 4.648 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.2181, allocations: 0 / 0.6964 GB, free: 4.648 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001013/0.2191, allocations: 1.006 MB / 0.6974 GB, free: 3.621 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001488/0.2192, allocations: 168.3 kB / 0.6975 GB, free: 3.438 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.677e-05/0.2193, allocations: 7.984 kB / 0.6975 GB, free: 3.43 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000141/0.2195, allocations: 4 kB / 0.6975 GB, free: 3.426 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.224e-05/0.2195, allocations: 11.92 kB / 0.6975 GB, free: 3.414 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.417e-05/0.2196, allocations: 15.92 kB / 0.6976 GB, free: 3.398 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0008335/0.2204, allocations: 0.7179 MB / 0.6983 GB, free: 2.676 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2204, allocations: 0 / 0.6983 GB, free: 2.676 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001063/0.2215, allocations: 407 kB / 0.6986 GB, free: 2.277 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.002634/0.2241, allocations: 1.939 MB / 0.7005 GB, free: 308 kB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002564/0.2267, allocations: 2.491 MB / 0.703 GB, free: 13.8 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.925e-06/0.2267, allocations: 0 / 0.703 GB, free: 13.8 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0003719/0.2271, allocations: 347.8 kB / 0.7033 GB, free: 13.46 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004262/0.2275, allocations: 59.38 kB / 0.7034 GB, free: 13.41 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01686/0.2444, allocations: 15.02 MB / 0.718 GB, free: 14.23 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006748/0.2451, allocations: 0.98 MB / 0.719 GB, free: 13.22 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001784/0.2453, allocations: 49.41 kB / 0.719 GB, free: 13.17 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003538/0.2457, allocations: 283.3 kB / 0.7193 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of SimCode: time 8.01e-07/0.2457, allocations: 0 / 0.7193 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05/0.2957, allocations: 19.85 MB / 0.7387 GB, free: 9.238 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.23/10.53, allocations: 20.3 kB / 0.7387 GB, free: 9.219 MB / 0.5762 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)