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_1borehole_5meters.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_1borehole_5meters,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",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.001211/0.001211, allocations: 108 kB / 15.61 MB, free: 148 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.001302/0.001302, allocations: 195.3 kB / 16.53 MB, free: 6.656 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.302/1.302, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8985/0.8985, allocations: 135.1 MB / 425.5 MB, free: 11.93 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 62.06 kB / 0.5055 GB, free: 5.168 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1456/0.1468, allocations: 80.92 MB / 0.5845 GB, free: 4.402 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002751/0.1496, allocations: 1.405 MB / 0.5859 GB, free: 2.977 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00475/0.1544, allocations: 3.014 MB / 0.5888 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.45e-05/0.1545, allocations: 0 / 0.5888 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001394/0.1547, allocations: 7.875 kB / 0.5888 GB, free: 15.94 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002767/0.155, allocations: 35.83 kB / 0.5889 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002561/0.1575, allocations: 0.9992 MB / 0.5898 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001244/0.1577, allocations: 71.81 kB / 0.5899 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.32e-05/0.1577, allocations: 8 kB / 0.5899 GB, free: 14.84 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.169e-05/0.1578, allocations: 43.78 kB / 0.59 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002256/0.158, allocations: 139.6 kB / 0.5901 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.552e-05/0.1581, allocations: 16 kB / 0.5901 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002104/0.1602, allocations: 1.377 MB / 0.5915 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002056/0.1604, allocations: 267.8 kB / 0.5917 GB, free: 13 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002357/0.1607, allocations: 274.3 kB / 0.592 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001806/0.1625, allocations: 1.457 MB / 0.5934 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1625, allocations: 0 / 0.5934 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.162e-06/0.1625, allocations: 0 / 0.5934 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.273e-05/0.1625, allocations: 0 / 0.5934 GB, free: 11.27 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.01019/0.1727, allocations: 1.214 MB / 0.5946 GB, free: 10 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.781e-05/0.1728, allocations: 12.02 kB / 0.5946 GB, free: 9.988 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.953e-05/0.1728, allocations: 38.67 kB / 0.5946 GB, free: 9.941 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003971/0.1732, allocations: 87.69 kB / 0.5947 GB, free: 9.855 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003909/0.1736, allocations: 360.9 kB / 0.5951 GB, free: 9.453 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.204e-05/0.1736, allocations: 8.312 kB / 0.5951 GB, free: 9.445 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.325e-05/0.1737, allocations: 11.94 kB / 0.5951 GB, free: 9.434 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004213/0.1741, allocations: 391.2 kB / 0.5954 GB, free: 9.039 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.1741, allocations: 0 / 0.5954 GB, free: 9.039 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.216e-05/0.1742, allocations: 0 / 0.5954 GB, free: 9.039 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.1742, allocations: 0 / 0.5954 GB, free: 9.039 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004053/0.1746, allocations: 439.7 kB / 0.5959 GB, free: 8.609 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000557/0.1751, allocations: 0.6325 MB / 0.5965 GB, free: 7.926 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005077/0.1757, allocations: 0.5632 MB / 0.597 GB, free: 7.344 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002902/0.176, allocations: 337.7 kB / 0.5974 GB, free: 7.008 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001014/0.177, allocations: 1.028 MB / 0.5984 GB, free: 5.758 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003827/0.1774, allocations: 400.9 kB / 0.5987 GB, free: 5.348 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.553e-06/0.1774, allocations: 0 / 0.5987 GB, free: 5.348 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.001214/0.1786, allocations: 1.293 MB / 0.6 GB, free: 4.047 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.38e-05/0.1787, allocations: 85.05 kB / 0.6001 GB, free: 3.945 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001074/0.1798, allocations: 1.198 MB / 0.6013 GB, free: 2.73 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.242e-05/0.1798, allocations: 37.69 kB / 0.6013 GB, free: 2.688 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001651/0.18, allocations: 261.3 kB / 0.6015 GB, free: 2.426 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.902e-05/0.18, allocations: 31.62 kB / 0.6016 GB, free: 2.395 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003015/0.1803, allocations: 347.7 kB / 0.6019 GB, free: 2.051 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 8.742e-05/0.1804, allocations: 310 kB / 0.6022 GB, free: 1.742 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001106/0.1815, allocations: 1.365 MB / 0.6035 GB, free: 384 kB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2397/0.4212, allocations: 1.485 MB / 0.605 GB, free: 51.85 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006384/0.4276, allocations: 3.537 MB / 0.6084 GB, free: 50.38 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/0.4276, allocations: 5.531 kB / 0.6084 GB, free: 50.38 MB / 0.4981 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.003234/0.4309, allocations: 3.957 MB / 0.6123 GB, free: 48.46 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.4309, allocations: 8 kB / 0.6123 GB, free: 48.46 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.59e-05/0.431, allocations: 0 / 0.6123 GB, free: 48.46 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.882e-05/0.431, allocations: 0.5938 kB / 0.6123 GB, free: 48.46 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001332/0.4311, allocations: 18.06 kB / 0.6123 GB, free: 48.46 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.223e-06/0.4311, allocations: 3.312 kB / 0.6123 GB, free: 48.46 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004236/0.4316, allocations: 234.8 kB / 0.6126 GB, free: 48.29 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.304e-05/0.4316, allocations: 19.77 kB / 0.6126 GB, free: 48.29 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.0002231/0.4318, allocations: 245.3 kB / 0.6128 GB, free: 48.18 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.121e-05/0.4319, allocations: 64.06 kB / 0.6129 GB, free: 48.12 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002595/0.4322, allocations: 76.91 kB / 0.6129 GB, free: 48.07 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.4322, allocations: 0 / 0.6129 GB, free: 48.07 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.4322, allocations: 0.75 kB / 0.6129 GB, free: 48.07 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.4322, allocations: 0.625 kB / 0.6129 GB, free: 48.07 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002899/0.4325, allocations: 0.4898 MB / 0.6134 GB, free: 47.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.4325, allocations: 0.5625 kB / 0.6134 GB, free: 47.8 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.941e-05/0.4326, allocations: 9.578 kB / 0.6134 GB, free: 47.8 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.806e-06/0.4326, allocations: 4.281 kB / 0.6134 GB, free: 47.8 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.159e-05/0.4326, allocations: 3.688 kB / 0.6134 GB, free: 47.8 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.484e-06/0.4326, allocations: 2.719 kB / 0.6134 GB, free: 47.8 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.4326, allocations: 0 / 0.6134 GB, free: 47.8 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006877/0.4333, allocations: 1.008 MB / 0.6144 GB, free: 47.65 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.526e-05/0.4334, allocations: 156.6 kB / 0.6146 GB, free: 47.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.972e-05/0.4335, allocations: 3.594 kB / 0.6146 GB, free: 47.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001321/0.4336, allocations: 7.375 kB / 0.6146 GB, free: 47.5 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.742e-05/0.4336, allocations: 9.609 kB / 0.6146 GB, free: 47.5 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.819e-05/0.4337, allocations: 21.38 kB / 0.6146 GB, free: 47.5 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000545/0.4342, allocations: 0.6664 MB / 0.6153 GB, free: 47.27 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.41e-07/0.4342, allocations: 0 / 0.6153 GB, free: 47.27 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0009441/0.4352, allocations: 397.3 kB / 0.6156 GB, free: 47.25 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.001923/0.4371, allocations: 1.919 MB / 0.6175 GB, free: 46.57 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001643/0.4388, allocations: 2.499 MB / 0.62 GB, free: 45.59 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.4388, allocations: 0 / 0.62 GB, free: 45.59 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002598/0.4391, allocations: 342.6 kB / 0.6203 GB, free: 45.58 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003129/0.4394, allocations: 38.31 kB / 0.6203 GB, free: 45.55 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01216/0.4515, allocations: 14.93 MB / 0.6349 GB, free: 38.91 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003715/0.452, allocations: 0.9642 MB / 0.6359 GB, free: 38.22 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001783/0.4521, allocations: 34.23 kB / 0.6359 GB, free: 38.2 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002284/0.4524, allocations: 265.7 kB / 0.6361 GB, free: 37.99 MB / 0.4981 GB Notification: Performance of SimCode: time 9.62e-07/0.4524, allocations: 0 / 0.6361 GB, free: 37.99 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05067/0.5031, allocations: 19.43 MB / 0.6551 GB, free: 36.72 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.515/9.018, allocations: 3.734 kB / 0.6551 GB, free: 36.72 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters_res.csv --start-time 0 --stop-time 4.12e+08 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 164800 IDEAS_dev_IDEAS_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.fmu > IDEAS_dev_IDEAS.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)