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_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/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_1borehole_5meters,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="IBPSA_latest_IBPSA_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.001373/0.001373, allocations: 107 kB / 16.27 MB, free: 6.316 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.001369/0.001369, allocations: 187 kB / 17.19 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.289/1.289, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7407/0.7407, allocations: 122.9 MB / 413.9 MB, free: 15.8 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001285, allocations: 63.91 kB / 0.4912 GB, free: 7.309 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3165/0.3178, allocations: 77.92 MB / 0.5673 GB, free: 32.71 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002815/0.3206, allocations: 1.418 MB / 0.5687 GB, free: 31.73 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.006565/0.3272, allocations: 4.191 MB / 0.5728 GB, free: 28.94 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.533e-05/0.3273, allocations: 0 / 0.5728 GB, free: 28.94 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001371/0.3275, allocations: 13.28 kB / 0.5728 GB, free: 28.93 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002842/0.3278, allocations: 34.5 kB / 0.5728 GB, free: 28.91 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.005097/0.3329, allocations: 1.511 MB / 0.5743 GB, free: 28.35 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.000172/0.3331, allocations: 85.88 kB / 0.5744 GB, free: 28.32 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.977e-05/0.3331, allocations: 9.781 kB / 0.5744 GB, free: 28.32 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.326e-05/0.3332, allocations: 45.09 kB / 0.5745 GB, free: 28.3 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002628/0.3335, allocations: 148.9 kB / 0.5746 GB, free: 28.27 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.595e-05/0.3335, allocations: 13.44 kB / 0.5746 GB, free: 28.27 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003545/0.3371, allocations: 2.157 MB / 0.5767 GB, free: 27.62 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002471/0.3373, allocations: 272.4 kB / 0.577 GB, free: 27.54 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002793/0.3376, allocations: 285.5 kB / 0.5772 GB, free: 27.36 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002993/0.3406, allocations: 2.098 MB / 0.5793 GB, free: 26.22 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.3407, allocations: 1.062 kB / 0.5793 GB, free: 26.22 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3407, allocations: 0 / 0.5793 GB, free: 26.22 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.494e-05/0.3407, allocations: 0 / 0.5793 GB, free: 26.22 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.009686/0.3504, allocations: 1.3 MB / 0.5806 GB, free: 25.2 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/0.3504, allocations: 10.91 kB / 0.5806 GB, free: 25.2 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.68e-05/0.3505, allocations: 41.66 kB / 0.5806 GB, free: 25.15 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003528/0.3508, allocations: 89.02 kB / 0.5807 GB, free: 25.09 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002944/0.3511, allocations: 356.3 kB / 0.581 GB, free: 24.77 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.033e-05/0.3511, allocations: 7.375 kB / 0.581 GB, free: 24.77 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.934e-05/0.3512, allocations: 5.688 kB / 0.5811 GB, free: 24.77 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003611/0.3516, allocations: 392 kB / 0.5814 GB, free: 24.64 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/0.3516, allocations: 0 / 0.5814 GB, free: 24.64 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.106e-05/0.3516, allocations: 2.188 kB / 0.5814 GB, free: 24.64 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.149e-06/0.3516, allocations: 1.188 kB / 0.5814 GB, free: 24.64 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003926/0.352, allocations: 451.8 kB / 0.5819 GB, free: 24.56 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004283/0.3524, allocations: 0.6297 MB / 0.5825 GB, free: 24.07 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004337/0.3529, allocations: 0.5672 MB / 0.583 GB, free: 23.93 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003224/0.3532, allocations: 335.7 kB / 0.5834 GB, free: 23.86 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007465/0.354, allocations: 1.023 MB / 0.5844 GB, free: 22.7 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003369/0.3543, allocations: 413.8 kB / 0.5847 GB, free: 22.55 MB / 446.1 MB Notification: Performance of pre-optimization done (n=8): time 1.293e-06/0.3543, allocations: 0 / 0.5847 GB, free: 22.55 MB / 446.1 MB Notification: Performance of matching and sorting (n=8): time 0.001176/0.3555, allocations: 1.291 MB / 0.586 GB, free: 22.27 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.806e-05/0.3555, allocations: 83.16 kB / 0.5861 GB, free: 22.17 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009941/0.3566, allocations: 1.21 MB / 0.5873 GB, free: 21.46 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.133e-05/0.3566, allocations: 39.22 kB / 0.5873 GB, free: 21.43 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001209/0.3567, allocations: 256.6 kB / 0.5876 GB, free: 21.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.843e-05/0.3568, allocations: 28.08 kB / 0.5876 GB, free: 21.18 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002653/0.357, allocations: 353.3 kB / 0.5879 GB, free: 21.01 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.592e-05/0.3571, allocations: 308.1 kB / 0.5882 GB, free: 20.7 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008685/0.3579, allocations: 1.37 MB / 0.5895 GB, free: 19.54 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008527/0.3588, allocations: 1.507 MB / 0.591 GB, free: 18.02 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006011/0.3648, allocations: 3.555 MB / 0.5945 GB, free: 14.38 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.766e-06/0.3648, allocations: 0 / 0.5945 GB, free: 14.38 MB / 446.1 MB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003044/0.3679, allocations: 4.013 MB / 0.5984 GB, free: 10.33 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.3679, allocations: 4 kB / 0.5984 GB, free: 10.33 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.599e-05/0.3679, allocations: 4 kB / 0.5984 GB, free: 10.32 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/0.368, allocations: 3.984 kB / 0.5984 GB, free: 10.32 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001189/0.3681, allocations: 19.92 kB / 0.5984 GB, free: 10.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.3681, allocations: 4 kB / 0.5984 GB, free: 10.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004722/0.3686, allocations: 229.7 kB / 0.5987 GB, free: 10.07 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.56e-05/0.3686, allocations: 31.97 kB / 0.5987 GB, free: 10.04 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.0002335/0.3689, allocations: 238.2 kB / 0.5989 GB, free: 9.797 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.029e-05/0.3689, allocations: 67.38 kB / 0.599 GB, free: 9.73 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002438/0.3692, allocations: 76.8 kB / 0.5991 GB, free: 9.648 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.3692, allocations: 3.984 kB / 0.5991 GB, free: 9.645 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.3692, allocations: 1.531 kB / 0.5991 GB, free: 9.645 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.3692, allocations: 0 / 0.5991 GB, free: 9.645 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002842/0.3695, allocations: 0.4891 MB / 0.5995 GB, free: 9.109 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.3695, allocations: 7.938 kB / 0.5995 GB, free: 9.102 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.496e-05/0.3696, allocations: 5.031 kB / 0.5996 GB, free: 9.098 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.3696, allocations: 4 kB / 0.5996 GB, free: 9.094 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.112e-05/0.3696, allocations: 3.984 kB / 0.5996 GB, free: 9.09 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.3696, allocations: 1.594 kB / 0.5996 GB, free: 9.09 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.3696, allocations: 4.312 kB / 0.5996 GB, free: 9.086 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006004/0.3702, allocations: 1.003 MB / 0.6005 GB, free: 8.062 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.387e-05/0.3703, allocations: 165 kB / 0.6007 GB, free: 7.883 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.69e-05/0.3703, allocations: 3.938 kB / 0.6007 GB, free: 7.879 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001268/0.3705, allocations: 4 kB / 0.6007 GB, free: 7.875 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.236e-05/0.3705, allocations: 8.578 kB / 0.6007 GB, free: 7.867 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.704e-05/0.3706, allocations: 9.297 kB / 0.6007 GB, free: 7.859 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0004941/0.3711, allocations: 0.6728 MB / 0.6014 GB, free: 7.18 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3711, allocations: 0.6562 kB / 0.6014 GB, free: 7.18 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001477/0.3725, allocations: 0.574 MB / 0.6019 GB, free: 6.605 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.00245/0.375, allocations: 2.132 MB / 0.604 GB, free: 4.473 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001594/0.3766, allocations: 2.56 MB / 0.6065 GB, free: 1.898 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3766, allocations: 1.188 kB / 0.6065 GB, free: 1.898 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002258/0.3769, allocations: 340.7 kB / 0.6069 GB, free: 1.566 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003215/0.3772, allocations: 29.48 kB / 0.6069 GB, free: 1.539 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0144/0.3916, allocations: 15.15 MB / 0.6217 GB, free: 2.219 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005053/0.3921, allocations: 0.964 MB / 0.6226 GB, free: 1.227 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0001812/0.3923, allocations: 36.56 kB / 0.6227 GB, free: 1.191 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002803/0.3926, allocations: 269 kB / 0.6229 GB, free: 0.9336 MB / 462.1 MB Notification: Performance of SimCode: time 5.62e-07/0.3926, allocations: 0 / 0.6229 GB, free: 0.9336 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06677/0.4594, allocations: 23.65 MB / 0.646 GB, free: 9.457 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.859/10.32, allocations: 7.344 kB / 0.646 GB, free: 9.453 MB / 494.1 MB (rm -f IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.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 IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.fmu > IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)