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.006971/0.006971, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.001583/0.001584, allocations: 195 kB / 16.67 MB, free: 5.977 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.37/1.37, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.732/0.732, allocations: 132.2 MB / 422.7 MB, free: 1.695 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 64.2 kB / 0.5809 GB, free: 1.113 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1588/0.16, allocations: 80.2 MB / 0.6593 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.00311/0.1631, allocations: 1.726 MB / 0.6609 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.005843/0.169, allocations: 4.222 MB / 0.6651 GB, free: 8.012 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001202/0.1691, allocations: 4 kB / 0.6651 GB, free: 8.008 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001264/0.1705, allocations: 366.4 kB / 0.6654 GB, free: 7.648 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001758/0.1706, allocations: 63.67 kB / 0.6655 GB, free: 7.586 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002771/0.1734, allocations: 0.986 MB / 0.6664 GB, free: 6.598 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002484/0.1737, allocations: 143.5 kB / 0.6666 GB, free: 6.457 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.996e-05/0.1737, allocations: 17.53 kB / 0.6666 GB, free: 6.438 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.234e-05/0.1738, allocations: 51.73 kB / 0.6666 GB, free: 6.387 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002168/0.174, allocations: 159.5 kB / 0.6668 GB, free: 6.23 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.259e-05/0.1741, allocations: 16 kB / 0.6668 GB, free: 6.215 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001957/0.1761, allocations: 1.381 MB / 0.6682 GB, free: 4.832 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001991/0.1763, allocations: 279.8 kB / 0.6684 GB, free: 4.555 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002177/0.1765, allocations: 306.1 kB / 0.6687 GB, free: 4.254 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001637/0.1781, allocations: 1.553 MB / 0.6702 GB, free: 2.695 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.1782, allocations: 0 / 0.6702 GB, free: 2.695 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.402e-06/0.1782, allocations: 3.938 kB / 0.6702 GB, free: 2.691 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.894e-06/0.1782, allocations: 0 / 0.6702 GB, free: 2.691 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.009514/0.1877, allocations: 1.321 MB / 0.6715 GB, free: 1.316 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.637e-05/0.1878, allocations: 12.03 kB / 0.6715 GB, free: 1.305 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.013e-05/0.1878, allocations: 34.75 kB / 0.6716 GB, free: 1.262 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003626/0.1882, allocations: 100.2 kB / 0.6717 GB, free: 1.164 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005316/0.1887, allocations: 406.1 kB / 0.6721 GB, free: 0.7188 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.394e-05/0.1888, allocations: 8.125 kB / 0.6721 GB, free: 0.7109 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.981e-05/0.1888, allocations: 8 kB / 0.6721 GB, free: 0.7031 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003961/0.1892, allocations: 391.1 kB / 0.6724 GB, free: 316 kB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.695e-06/0.1892, allocations: 0 / 0.6724 GB, free: 316 kB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.813e-05/0.1892, allocations: 4 kB / 0.6725 GB, free: 312 kB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.1893, allocations: 0 / 0.6725 GB, free: 312 kB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004104/0.1897, allocations: 435.7 kB / 0.6729 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005889/0.1903, allocations: 0.658 MB / 0.6735 GB, free: 15.17 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007011/0.191, allocations: 0.571 MB / 0.6741 GB, free: 14.58 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000284/0.1913, allocations: 337.7 kB / 0.6744 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009037/0.1922, allocations: 1.025 MB / 0.6754 GB, free: 13 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003533/0.1925, allocations: 408.8 kB / 0.6758 GB, free: 12.58 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=8): time 1.362e-06/0.1926, allocations: 0 / 0.6758 GB, free: 12.58 MB / 0.5137 GB Notification: Performance of matching and sorting (n=8): time 0.00117/0.1937, allocations: 1.305 MB / 0.6771 GB, free: 11.27 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.548e-05/0.1938, allocations: 81.23 kB / 0.6771 GB, free: 11.17 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001073/0.1949, allocations: 1.289 MB / 0.6784 GB, free: 9.871 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.426e-05/0.1949, allocations: 33.69 kB / 0.6784 GB, free: 9.832 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001822/0.1951, allocations: 289.8 kB / 0.6787 GB, free: 9.543 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 3.354e-05/0.1952, allocations: 19.86 kB / 0.6787 GB, free: 9.523 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002784/0.1954, allocations: 355.5 kB / 0.6791 GB, free: 9.172 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 9.772e-05/0.1956, allocations: 318 kB / 0.6794 GB, free: 8.855 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001138/0.1967, allocations: 1.361 MB / 0.6807 GB, free: 7.492 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001234/0.1979, allocations: 1.504 MB / 0.6822 GB, free: 5.98 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006677/0.2046, allocations: 3.549 MB / 0.6856 GB, free: 2.34 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.2046, allocations: 0 / 0.6856 GB, free: 2.34 MB / 0.5137 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.004235/0.2089, allocations: 3.969 MB / 0.6895 GB, free: 14.33 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.2089, allocations: 4 kB / 0.6895 GB, free: 14.33 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.609e-05/0.2089, allocations: 4 kB / 0.6895 GB, free: 14.32 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.209, allocations: 0 / 0.6895 GB, free: 14.32 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001286/0.2091, allocations: 19.92 kB / 0.6895 GB, free: 14.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.2091, allocations: 0 / 0.6895 GB, free: 14.3 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00049/0.2096, allocations: 241.4 kB / 0.6898 GB, free: 14.07 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.692e-05/0.2097, allocations: 23.98 kB / 0.6898 GB, free: 14.04 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.0002956/0.21, allocations: 253.6 kB / 0.69 GB, free: 13.79 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.356e-05/0.2101, allocations: 79.25 kB / 0.6901 GB, free: 13.71 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002731/0.2103, allocations: 79.97 kB / 0.6902 GB, free: 13.62 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.2103, allocations: 4 kB / 0.6902 GB, free: 13.62 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.2104, allocations: 0 / 0.6902 GB, free: 13.62 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.317e-06/0.2104, allocations: 0 / 0.6902 GB, free: 13.62 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004321/0.2108, allocations: 0.5137 MB / 0.6907 GB, free: 13.06 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.2108, allocations: 8.031 kB / 0.6907 GB, free: 13.05 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.72e-05/0.2109, allocations: 4 kB / 0.6907 GB, free: 13.05 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.2109, allocations: 0 / 0.6907 GB, free: 13.05 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.601e-05/0.2109, allocations: 7.984 kB / 0.6907 GB, free: 13.04 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.2109, allocations: 0 / 0.6907 GB, free: 13.04 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.2109, allocations: 0 / 0.6907 GB, free: 13.04 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000893/0.2118, allocations: 1.018 MB / 0.6917 GB, free: 12 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000131/0.212, allocations: 172.3 kB / 0.6919 GB, free: 11.82 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.989e-05/0.212, allocations: 4 kB / 0.6919 GB, free: 11.81 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001555/0.2122, allocations: 4 kB / 0.6919 GB, free: 11.81 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.334e-05/0.2122, allocations: 11.92 kB / 0.6919 GB, free: 11.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.485e-05/0.2123, allocations: 11.98 kB / 0.6919 GB, free: 11.79 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0007402/0.213, allocations: 0.7179 MB / 0.6926 GB, free: 11.06 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.31e-07/0.213, allocations: 4 kB / 0.6926 GB, free: 11.06 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0009939/0.214, allocations: 407 kB / 0.693 GB, free: 10.66 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.002313/0.2164, allocations: 1.931 MB / 0.6949 GB, free: 8.691 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002151/0.2185, allocations: 2.507 MB / 0.6973 GB, free: 6.176 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.2185, allocations: 0 / 0.6973 GB, free: 6.176 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0003048/0.2189, allocations: 335.8 kB / 0.6976 GB, free: 5.848 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003636/0.2192, allocations: 62.41 kB / 0.6977 GB, free: 5.789 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01348/0.2327, allocations: 15.02 MB / 0.7124 GB, free: 6.602 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005028/0.2333, allocations: 0.984 MB / 0.7133 GB, free: 5.594 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0001482/0.2334, allocations: 37.42 kB / 0.7134 GB, free: 5.555 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002995/0.2337, allocations: 283.3 kB / 0.7136 GB, free: 5.277 MB / 0.545 GB Notification: Performance of SimCode: time 7.22e-07/0.2337, allocations: 0 / 0.7136 GB, free: 5.277 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04146/0.2752, allocations: 19.84 MB / 0.733 GB, free: 1.66 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.649/9.924, allocations: 16.98 kB / 0.733 GB, free: 1.648 MB / 0.5606 GB (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)