Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="IBPSA_latest_IBPSA_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.001373/0.001374, allocations: 101.6 kB / 16.27 MB, free: 5.93 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.001338/0.001338, allocations: 190.5 kB / 17.2 MB, free: 5.574 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.323/1.323, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7756/0.7756, allocations: 122.8 MB / 413.9 MB, free: 15.83 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001696/0.001696, allocations: 63.89 kB / 0.4912 GB, free: 7.301 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.332/0.3337, allocations: 77.93 MB / 0.5673 GB, free: 32.67 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002617/0.3364, allocations: 1.743 MB / 0.569 GB, free: 31.46 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.006473/0.3429, allocations: 5.383 MB / 0.5743 GB, free: 27.81 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.593e-05/0.343, allocations: 1.281 kB / 0.5743 GB, free: 27.81 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001003/0.344, allocations: 366.8 kB / 0.5746 GB, free: 27.65 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000101/0.3441, allocations: 62.55 kB / 0.5747 GB, free: 27.62 MB / 446.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initializeImpureRandom' contains a call to impure function 'Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/Utilities/Clustering/KMeans.mo:96:7-96:35:writable] Warning: inertia was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.003283/0.3474, allocations: 1.505 MB / 0.5762 GB, free: 27.05 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002588/0.3477, allocations: 157.6 kB / 0.5763 GB, free: 27 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001406/0.3479, allocations: 15.44 kB / 0.5763 GB, free: 26.99 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.827e-05/0.348, allocations: 63.94 kB / 0.5764 GB, free: 26.96 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002137/0.3482, allocations: 166.9 kB / 0.5765 GB, free: 26.91 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.114e-05/0.3482, allocations: 15.31 kB / 0.5766 GB, free: 26.91 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002884/0.3511, allocations: 2.155 MB / 0.5787 GB, free: 26.14 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001898/0.3513, allocations: 274.5 kB / 0.5789 GB, free: 26.01 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001996/0.3515, allocations: 314.7 kB / 0.5792 GB, free: 25.79 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002244/0.3538, allocations: 2.171 MB / 0.5813 GB, free: 24.52 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.3538, allocations: 5.75 kB / 0.5814 GB, free: 24.51 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.3538, allocations: 0.5625 kB / 0.5814 GB, free: 24.51 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.739e-06/0.3538, allocations: 0 / 0.5814 GB, free: 24.51 MB / 446.1 MB 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.009844/0.3637, allocations: 1.358 MB / 0.5827 GB, free: 23.45 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.041e-05/0.3637, allocations: 11.12 kB / 0.5827 GB, free: 23.45 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.685e-05/0.3638, allocations: 35.97 kB / 0.5827 GB, free: 23.41 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003627/0.3641, allocations: 93.5 kB / 0.5828 GB, free: 23.34 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003501/0.3645, allocations: 412.9 kB / 0.5832 GB, free: 22.99 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.215e-06/0.3645, allocations: 8.5 kB / 0.5832 GB, free: 22.98 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.482e-05/0.3646, allocations: 4.406 kB / 0.5832 GB, free: 22.98 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003858/0.365, allocations: 392.4 kB / 0.5836 GB, free: 22.86 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.365, allocations: 3.938 kB / 0.5836 GB, free: 22.86 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.232e-05/0.365, allocations: 1.438 kB / 0.5836 GB, free: 22.86 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.977e-06/0.365, allocations: 0 / 0.5836 GB, free: 22.86 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004015/0.3654, allocations: 437.8 kB / 0.584 GB, free: 22.79 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006412/0.3661, allocations: 0.6635 MB / 0.5847 GB, free: 22.28 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005159/0.3666, allocations: 0.5637 MB / 0.5852 GB, free: 22.14 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003185/0.3669, allocations: 342.4 kB / 0.5855 GB, free: 22.07 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007947/0.3677, allocations: 1.025 MB / 0.5865 GB, free: 20.9 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004051/0.3681, allocations: 417.2 kB / 0.5869 GB, free: 20.75 MB / 446.1 MB Notification: Performance of pre-optimization done (n=8): time 1.944e-06/0.3681, allocations: 0 / 0.5869 GB, free: 20.75 MB / 446.1 MB Notification: Performance of matching and sorting (n=8): time 0.001582/0.3697, allocations: 1.294 MB / 0.5882 GB, free: 20.46 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.756e-05/0.3698, allocations: 87.28 kB / 0.5883 GB, free: 20.36 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001109/0.3709, allocations: 1.298 MB / 0.5896 GB, free: 19.54 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.97e-05/0.3709, allocations: 33.69 kB / 0.5896 GB, free: 19.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001276/0.3711, allocations: 281.4 kB / 0.5899 GB, free: 19.22 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.661e-05/0.3711, allocations: 19.8 kB / 0.5899 GB, free: 19.2 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000211/0.3713, allocations: 355.5 kB / 0.5902 GB, free: 18.85 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.277e-05/0.3714, allocations: 322.6 kB / 0.5905 GB, free: 18.53 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007855/0.3722, allocations: 1.37 MB / 0.5919 GB, free: 17.16 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009419/0.3731, allocations: 1.504 MB / 0.5933 GB, free: 15.64 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006062/0.3792, allocations: 3.562 MB / 0.5968 GB, free: 11.99 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.3792, allocations: 0 / 0.5968 GB, free: 11.99 MB / 446.1 MB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003214/0.3824, allocations: 4.012 MB / 0.6007 GB, free: 7.945 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.3824, allocations: 8 kB / 0.6007 GB, free: 7.938 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.482e-05/0.3825, allocations: 0 / 0.6007 GB, free: 7.938 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.3825, allocations: 4.5 kB / 0.6007 GB, free: 7.934 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002175/0.3827, allocations: 25.42 kB / 0.6008 GB, free: 7.91 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.49e-05/0.3827, allocations: 0 / 0.6008 GB, free: 7.91 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005042/0.3833, allocations: 228.3 kB / 0.601 GB, free: 7.684 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.038e-05/0.3833, allocations: 24.83 kB / 0.601 GB, free: 7.66 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 13 (cluSiz[1],labels[1],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 (17): * Single equations (assignments): 13 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 2 * 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.0002448/0.3836, allocations: 247 kB / 0.6012 GB, free: 7.41 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.335e-05/0.3836, allocations: 74.62 kB / 0.6013 GB, free: 7.336 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002534/0.3839, allocations: 86.22 kB / 0.6014 GB, free: 7.25 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.3839, allocations: 4 kB / 0.6014 GB, free: 7.246 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.3839, allocations: 0 / 0.6014 GB, free: 7.246 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.3839, allocations: 3.984 kB / 0.6014 GB, free: 7.242 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003269/0.3842, allocations: 0.5186 MB / 0.6019 GB, free: 6.68 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.3842, allocations: 3.938 kB / 0.6019 GB, free: 6.676 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.542e-05/0.3843, allocations: 4.5 kB / 0.6019 GB, free: 6.672 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.846e-06/0.3843, allocations: 8.562 kB / 0.6019 GB, free: 6.664 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.086e-05/0.3843, allocations: 3.984 kB / 0.6019 GB, free: 6.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.3843, allocations: 0.5312 kB / 0.6019 GB, free: 6.66 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.3844, allocations: 5.562 kB / 0.6019 GB, free: 6.656 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005958/0.385, allocations: 1.003 MB / 0.6029 GB, free: 5.633 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.583e-05/0.385, allocations: 163.7 kB / 0.6031 GB, free: 5.453 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.5e-05/0.3851, allocations: 0.625 kB / 0.6031 GB, free: 5.453 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001416/0.3853, allocations: 5.625 kB / 0.6031 GB, free: 5.449 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.675e-05/0.3853, allocations: 7.984 kB / 0.6031 GB, free: 5.441 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.95e-05/0.3853, allocations: 15.98 kB / 0.6031 GB, free: 5.426 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005755/0.3859, allocations: 0.7204 MB / 0.6038 GB, free: 4.703 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3859, allocations: 0 / 0.6038 GB, free: 4.703 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001813/0.3877, allocations: 0.5896 MB / 0.6044 GB, free: 4.113 MB / 446.1 MB 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.002547/0.3903, allocations: 2.148 MB / 0.6065 GB, free: 1.965 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001738/0.3921, allocations: 2.549 MB / 0.609 GB, free: 15.4 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3921, allocations: 0.5625 kB / 0.609 GB, free: 15.4 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003243/0.3924, allocations: 343.7 kB / 0.6093 GB, free: 15.07 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004178/0.3928, allocations: 57.31 kB / 0.6093 GB, free: 15.01 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01516/0.408, allocations: 15.17 MB / 0.6242 GB, free: 15.67 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000521/0.4085, allocations: 0.9917 MB / 0.6251 GB, free: 14.65 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0002428/0.4088, allocations: 41.41 kB / 0.6252 GB, free: 14.61 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003061/0.4091, allocations: 295.3 kB / 0.6254 GB, free: 14.32 MB / 478.1 MB Notification: Performance of SimCode: time 5.91e-07/0.4091, allocations: 0 / 0.6254 GB, free: 14.32 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04633/0.4555, allocations: 23.88 MB / 0.6488 GB, free: 6.637 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.143/9.599, allocations: 8.156 kB / 0.6488 GB, free: 6.633 MB / 494.1 MB (rm -f IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.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 IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.fmu > IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)