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.001419/0.001419, allocations: 107.1 kB / 16.41 MB, free: 6.48 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.001653/0.001653, allocations: 191.9 kB / 17.34 MB, free: 5.75 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.4/1.4, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.74/0.74, allocations: 122.9 MB / 414 MB, free: 15.85 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 67.92 kB / 0.568 GB, free: 29.07 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1448/0.1462, allocations: 77.93 MB / 0.6441 GB, free: 9.531 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002942/0.1492, allocations: 1.731 MB / 0.6458 GB, free: 7.789 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.008009/0.1572, allocations: 5.4 MB / 0.6511 GB, free: 2.363 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001261/0.1574, allocations: 0 / 0.6511 GB, free: 2.363 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001417/0.1588, allocations: 374.4 kB / 0.6515 GB, free: 1.996 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001398/0.159, allocations: 63.66 kB / 0.6515 GB, free: 1.934 MB / 494.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.004193/0.1632, allocations: 1.489 MB / 0.653 GB, free: 456 kB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002693/0.1635, allocations: 167.4 kB / 0.6531 GB, free: 288 kB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.375e-05/0.1635, allocations: 17.53 kB / 0.6531 GB, free: 272 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.144e-05/0.1636, allocations: 67.64 kB / 0.6532 GB, free: 204 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002161/0.1638, allocations: 159.5 kB / 0.6534 GB, free: 44 kB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.512e-05/0.1639, allocations: 16 kB / 0.6534 GB, free: 28 kB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003373/0.1673, allocations: 2.208 MB / 0.6555 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0003367/0.1677, allocations: 275.8 kB / 0.6558 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002667/0.1679, allocations: 310.1 kB / 0.6561 GB, free: 13.24 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.003058/0.171, allocations: 2.196 MB / 0.6582 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.563e-06/0.171, allocations: 4 kB / 0.6582 GB, free: 11.03 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.443e-06/0.1711, allocations: 0 / 0.6582 GB, free: 11.03 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.676e-06/0.1711, allocations: 0 / 0.6582 GB, free: 11.03 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.01005/0.1811, allocations: 1.414 MB / 0.6596 GB, free: 9.562 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.11e-05/0.1812, allocations: 16.62 kB / 0.6596 GB, free: 9.547 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.646e-05/0.1812, allocations: 30.75 kB / 0.6597 GB, free: 9.508 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003997/0.1816, allocations: 100.1 kB / 0.6598 GB, free: 9.41 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005714/0.1822, allocations: 410.4 kB / 0.6602 GB, free: 8.961 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.146e-05/0.1822, allocations: 8.359 kB / 0.6602 GB, free: 8.953 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.088e-05/0.1823, allocations: 4.375 kB / 0.6602 GB, free: 8.949 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00042/0.1827, allocations: 399.2 kB / 0.6605 GB, free: 8.547 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.1827, allocations: 0 / 0.6605 GB, free: 8.547 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.515e-05/0.1828, allocations: 4 kB / 0.6606 GB, free: 8.543 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.1828, allocations: 4 kB / 0.6606 GB, free: 8.539 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004069/0.1832, allocations: 435.7 kB / 0.661 GB, free: 8.113 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006932/0.1839, allocations: 0.6738 MB / 0.6616 GB, free: 7.391 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005752/0.1845, allocations: 0.5633 MB / 0.6622 GB, free: 6.809 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002959/0.1848, allocations: 333.7 kB / 0.6625 GB, free: 6.477 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009884/0.1858, allocations: 1.028 MB / 0.6635 GB, free: 5.227 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004138/0.1862, allocations: 408.8 kB / 0.6639 GB, free: 4.809 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.402e-06/0.1862, allocations: 0 / 0.6639 GB, free: 4.809 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.001488/0.1877, allocations: 1.309 MB / 0.6652 GB, free: 3.492 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.68e-05/0.1878, allocations: 81.11 kB / 0.6652 GB, free: 3.395 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001235/0.189, allocations: 1.294 MB / 0.6665 GB, free: 2.09 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.612e-05/0.1891, allocations: 29.7 kB / 0.6665 GB, free: 2.055 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002148/0.1893, allocations: 293.9 kB / 0.6668 GB, free: 1.762 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.387e-05/0.1894, allocations: 23.83 kB / 0.6668 GB, free: 1.738 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003113/0.1897, allocations: 347.8 kB / 0.6672 GB, free: 1.395 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000124/0.1898, allocations: 322 kB / 0.6675 GB, free: 1.074 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001364/0.1912, allocations: 1.369 MB / 0.6688 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001359/0.1926, allocations: 1.505 MB / 0.6703 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00714/0.1997, allocations: 3.56 MB / 0.6738 GB, free: 10.53 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-05/0.1998, allocations: 0 / 0.6738 GB, free: 10.53 MB / 0.5137 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004523/0.2044, allocations: 4.023 MB / 0.6777 GB, free: 6.477 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.584e-05/0.2044, allocations: 5.406 kB / 0.6777 GB, free: 6.473 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.123e-05/0.2044, allocations: 4 kB / 0.6777 GB, free: 6.469 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.2045, allocations: 0 / 0.6777 GB, free: 6.469 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001447/0.2046, allocations: 19.92 kB / 0.6777 GB, free: 6.449 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.368e-06/0.2046, allocations: 8.031 kB / 0.6777 GB, free: 6.441 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005007/0.2051, allocations: 237.3 kB / 0.678 GB, free: 6.207 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.054e-05/0.2052, allocations: 27.98 kB / 0.678 GB, free: 6.18 MB / 0.5137 GB 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.0003082/0.2055, allocations: 245.7 kB / 0.6782 GB, free: 5.93 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.581e-05/0.2056, allocations: 79.23 kB / 0.6783 GB, free: 5.852 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002811/0.2059, allocations: 87.75 kB / 0.6784 GB, free: 5.754 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.2059, allocations: 0 / 0.6784 GB, free: 5.754 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.2059, allocations: 0 / 0.6784 GB, free: 5.754 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.2059, allocations: 4 kB / 0.6784 GB, free: 5.75 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006268/0.2066, allocations: 0.514 MB / 0.6789 GB, free: 5.191 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.2066, allocations: 11.88 kB / 0.6789 GB, free: 5.18 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.77e-05/0.2066, allocations: 4 kB / 0.6789 GB, free: 5.176 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.2067, allocations: 3.984 kB / 0.6789 GB, free: 5.172 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.568e-05/0.2067, allocations: 11.98 kB / 0.6789 GB, free: 5.16 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.2067, allocations: 0 / 0.6789 GB, free: 5.16 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.2067, allocations: 4.031 kB / 0.6789 GB, free: 5.156 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008965/0.2076, allocations: 1.01 MB / 0.6799 GB, free: 4.125 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001187/0.2077, allocations: 168.3 kB / 0.6801 GB, free: 3.941 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.589e-05/0.2078, allocations: 8 kB / 0.6801 GB, free: 3.934 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001537/0.208, allocations: 15.98 kB / 0.6801 GB, free: 3.918 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.535e-05/0.208, allocations: 4 kB / 0.6801 GB, free: 3.914 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.383e-05/0.2081, allocations: 7.984 kB / 0.6801 GB, free: 3.906 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0007849/0.2088, allocations: 0.7261 MB / 0.6808 GB, free: 3.176 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2089, allocations: 0 / 0.6808 GB, free: 3.176 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001663/0.2105, allocations: 0.5884 MB / 0.6814 GB, free: 2.586 MB / 0.5137 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.003135/0.2137, allocations: 2.158 MB / 0.6835 GB, free: 424 kB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002391/0.2161, allocations: 2.556 MB / 0.686 GB, free: 13.84 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.2161, allocations: 0 / 0.686 GB, free: 13.84 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0003269/0.2164, allocations: 339.8 kB / 0.6863 GB, free: 13.51 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005713/0.217, allocations: 49.59 kB / 0.6864 GB, free: 13.46 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01605/0.2331, allocations: 15.29 MB / 0.7013 GB, free: 14 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000548/0.2337, allocations: 0.9879 MB / 0.7023 GB, free: 12.98 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0001617/0.2338, allocations: 37.42 kB / 0.7023 GB, free: 12.95 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003302/0.2342, allocations: 295.3 kB / 0.7026 GB, free: 12.66 MB / 0.545 GB Notification: Performance of SimCode: time 1.123e-06/0.2342, allocations: 0 / 0.7026 GB, free: 12.66 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05177/0.286, allocations: 24.06 MB / 0.7261 GB, free: 4.801 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.33/10.62, allocations: 14.3 kB / 0.7261 GB, free: 4.789 MB / 0.5606 GB (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)