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.005663/0.005663, allocations: 101.2 kB / 15.73 MB, free: 5.996 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.001336/0.001336, allocations: 187.4 kB / 16.67 MB, free: 5.93 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.475/1.475, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8373/0.8373, allocations: 132.2 MB / 422.7 MB, free: 1.684 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001958/0.001958, allocations: 71.58 kB / 0.5809 GB, free: 1.289 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1782/0.1801, allocations: 80.2 MB / 0.6593 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003298/0.1835, allocations: 1.721 MB / 0.6609 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.006786/0.1903, allocations: 4.23 MB / 0.6651 GB, free: 8.145 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001184/0.1905, allocations: 0 / 0.6651 GB, free: 8.145 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001264/0.1918, allocations: 362.4 kB / 0.6654 GB, free: 7.789 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001464/0.192, allocations: 59.72 kB / 0.6655 GB, free: 7.73 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002901/0.1949, allocations: 0.9859 MB / 0.6664 GB, free: 6.742 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002844/0.1952, allocations: 155.4 kB / 0.6666 GB, free: 6.59 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.821e-05/0.1952, allocations: 9.562 kB / 0.6666 GB, free: 6.578 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.159e-05/0.1953, allocations: 51.72 kB / 0.6667 GB, free: 6.527 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002465/0.1956, allocations: 159.5 kB / 0.6668 GB, free: 6.371 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001173/0.1957, allocations: 16 kB / 0.6668 GB, free: 6.355 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002311/0.198, allocations: 1.385 MB / 0.6682 GB, free: 4.969 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000273/0.1983, allocations: 275.8 kB / 0.6684 GB, free: 4.695 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0004409/0.1988, allocations: 302.1 kB / 0.6687 GB, free: 4.398 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002098/0.2009, allocations: 1.561 MB / 0.6702 GB, free: 2.832 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.2009, allocations: 4 kB / 0.6703 GB, free: 2.828 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.503e-06/0.2009, allocations: 0 / 0.6703 GB, free: 2.828 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.097e-06/0.2009, allocations: 0 / 0.6703 GB, free: 2.828 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.01089/0.2118, allocations: 1.313 MB / 0.6715 GB, free: 1.461 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/0.2119, allocations: 12.03 kB / 0.6715 GB, free: 1.449 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.071e-05/0.2119, allocations: 30.75 kB / 0.6716 GB, free: 1.41 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003696/0.2123, allocations: 100.2 kB / 0.6717 GB, free: 1.312 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006531/0.213, allocations: 414.1 kB / 0.6721 GB, free: 0.8594 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.731e-05/0.213, allocations: 8.125 kB / 0.6721 GB, free: 0.8516 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.304e-05/0.213, allocations: 4 kB / 0.6721 GB, free: 0.8477 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004621/0.2135, allocations: 387.2 kB / 0.6724 GB, free: 468 kB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.2135, allocations: 3.938 kB / 0.6724 GB, free: 464 kB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.459e-05/0.2136, allocations: 4 kB / 0.6725 GB, free: 460 kB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.2136, allocations: 8 kB / 0.6725 GB, free: 452 kB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005636/0.2141, allocations: 435.7 kB / 0.6729 GB, free: 16 kB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007191/0.2149, allocations: 0.658 MB / 0.6735 GB, free: 15.31 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005897/0.2155, allocations: 0.5671 MB / 0.6741 GB, free: 14.72 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003525/0.2158, allocations: 345.7 kB / 0.6744 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001241/0.2171, allocations: 1.017 MB / 0.6754 GB, free: 13.14 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004426/0.2175, allocations: 408.8 kB / 0.6758 GB, free: 12.72 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=8): time 1.694e-06/0.2175, allocations: 0 / 0.6758 GB, free: 12.72 MB / 0.5137 GB Notification: Performance of matching and sorting (n=8): time 0.001491/0.219, allocations: 1.301 MB / 0.6771 GB, free: 11.41 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.909e-05/0.2191, allocations: 85.03 kB / 0.6771 GB, free: 11.31 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001454/0.2206, allocations: 1.289 MB / 0.6784 GB, free: 10.01 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 4.847e-05/0.2206, allocations: 33.7 kB / 0.6784 GB, free: 9.973 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002318/0.2209, allocations: 285.8 kB / 0.6787 GB, free: 9.688 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 3.603e-05/0.2209, allocations: 23.8 kB / 0.6787 GB, free: 9.664 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000355/0.2213, allocations: 351.5 kB / 0.6791 GB, free: 9.316 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001517/0.2214, allocations: 318 kB / 0.6794 GB, free: 9 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001398/0.2228, allocations: 1.365 MB / 0.6807 GB, free: 7.633 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001561/0.2244, allocations: 1.501 MB / 0.6822 GB, free: 6.121 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00735/0.2318, allocations: 3.541 MB / 0.6856 GB, free: 2.488 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.2318, allocations: 0 / 0.6856 GB, free: 2.488 MB / 0.5137 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.00502/0.2369, allocations: 3.969 MB / 0.6895 GB, free: 14.48 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.09e-05/0.2369, allocations: 6.031 kB / 0.6895 GB, free: 14.48 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.799e-05/0.2369, allocations: 8 kB / 0.6895 GB, free: 14.47 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.799e-05/0.237, allocations: 0 / 0.6895 GB, free: 14.47 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001323/0.2371, allocations: 19.92 kB / 0.6895 GB, free: 14.45 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.121e-06/0.2371, allocations: 0 / 0.6895 GB, free: 14.45 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005267/0.2376, allocations: 237.4 kB / 0.6898 GB, free: 14.21 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.405e-05/0.2377, allocations: 23.98 kB / 0.6898 GB, free: 14.19 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.000359/0.2381, allocations: 253.6 kB / 0.69 GB, free: 13.93 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001726/0.2383, allocations: 79.25 kB / 0.6901 GB, free: 13.86 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002839/0.2385, allocations: 83.66 kB / 0.6902 GB, free: 13.77 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.764e-06/0.2386, allocations: 7.984 kB / 0.6902 GB, free: 13.76 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.2386, allocations: 0 / 0.6902 GB, free: 13.76 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.2386, allocations: 0 / 0.6902 GB, free: 13.76 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005151/0.2391, allocations: 0.5137 MB / 0.6907 GB, free: 13.2 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.2391, allocations: 8.031 kB / 0.6907 GB, free: 13.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.759e-05/0.2392, allocations: 4 kB / 0.6907 GB, free: 13.19 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.2392, allocations: 0 / 0.6907 GB, free: 13.19 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.624e-05/0.2392, allocations: 7.984 kB / 0.6907 GB, free: 13.18 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.2392, allocations: 0 / 0.6907 GB, free: 13.18 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.2392, allocations: 0 / 0.6907 GB, free: 13.18 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001045/0.2403, allocations: 1.014 MB / 0.6917 GB, free: 12.15 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001463/0.2404, allocations: 172.3 kB / 0.6919 GB, free: 11.96 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.25e-05/0.2405, allocations: 8 kB / 0.6919 GB, free: 11.95 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000141/0.2407, allocations: 4 kB / 0.6919 GB, free: 11.95 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.16e-05/0.2407, allocations: 3.984 kB / 0.6919 GB, free: 11.95 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.87e-05/0.2407, allocations: 11.98 kB / 0.6919 GB, free: 11.93 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0009395/0.2417, allocations: 0.7218 MB / 0.6926 GB, free: 11.21 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.51e-07/0.2417, allocations: 7.938 kB / 0.6926 GB, free: 11.2 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001032/0.2427, allocations: 403.1 kB / 0.693 GB, free: 10.8 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.002605/0.2454, allocations: 1.936 MB / 0.6949 GB, free: 8.832 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002694/0.2481, allocations: 2.506 MB / 0.6973 GB, free: 6.32 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.2481, allocations: 4.062 kB / 0.6973 GB, free: 6.316 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0003691/0.2485, allocations: 339.8 kB / 0.6976 GB, free: 5.984 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003931/0.2489, allocations: 52.7 kB / 0.6977 GB, free: 5.934 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01755/0.2664, allocations: 15.02 MB / 0.7124 GB, free: 6.75 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006752/0.2671, allocations: 0.984 MB / 0.7133 GB, free: 5.742 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0001928/0.2673, allocations: 41.41 kB / 0.7134 GB, free: 5.699 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000371/0.2677, allocations: 283.3 kB / 0.7136 GB, free: 5.422 MB / 0.545 GB Notification: Performance of SimCode: time 6.72e-07/0.2677, allocations: 0 / 0.7136 GB, free: 5.422 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05184/0.3196, allocations: 19.84 MB / 0.733 GB, free: 1.805 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.55/10.87, allocations: 11.44 kB / 0.733 GB, free: 1.793 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)