Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="Buildings_9_Buildings_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.007768/0.007768, allocations: 100.8 kB / 15.73 MB, free: 6.059 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.00172/0.00172, allocations: 197.5 kB / 16.68 MB, free: 5.969 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.373/1.373, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.132/2.132, allocations: 390.3 MB / 0.6648 GB, free: 0.6406 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 63.91 kB / 0.9505 GB, free: 8.109 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8229/0.8243, allocations: 140.4 MB / 1.088 GB, free: 5.27 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002197/0.8265, allocations: 1.423 MB / 1.089 GB, free: 4.277 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.00411/0.8307, allocations: 3.028 MB / 1.092 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.968e-05/0.8307, allocations: 0.75 kB / 1.092 GB, free: 2.234 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001114/0.8309, allocations: 8.266 kB / 1.092 GB, free: 2.23 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0002591/0.8311, allocations: 36.73 kB / 1.092 GB, free: 2.207 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.00282/0.834, allocations: 0.9864 MB / 1.093 GB, free: 1.844 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002039/0.8342, allocations: 86.95 kB / 1.093 GB, free: 1.812 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.708e-05/0.8342, allocations: 3.797 kB / 1.093 GB, free: 1.812 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.216e-05/0.8343, allocations: 42.91 kB / 1.093 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002349/0.8346, allocations: 136.6 kB / 1.093 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.894e-05/0.8346, allocations: 17.41 kB / 1.093 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002493/0.8371, allocations: 1.389 MB / 1.095 GB, free: 1.34 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0003646/0.8375, allocations: 262.2 kB / 1.095 GB, free: 1.273 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.000253/0.8377, allocations: 273.9 kB / 1.095 GB, free: 1.098 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.002376/0.8401, allocations: 1.491 MB / 1.096 GB, free: 0.6172 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.8401, allocations: 3.938 kB / 1.096 GB, free: 0.6133 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.393e-06/0.8402, allocations: 0 / 1.096 GB, free: 0.6133 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.069e-05/0.8402, allocations: 1.094 kB / 1.096 GB, free: 0.6133 MB / 0.8575 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.01035/0.8505, allocations: 1.25 MB / 1.098 GB, free: 15.71 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.8506, allocations: 9.031 kB / 1.098 GB, free: 15.71 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.035e-05/0.8506, allocations: 33.05 kB / 1.098 GB, free: 15.67 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003927/0.851, allocations: 94.64 kB / 1.098 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00044/0.8515, allocations: 361.1 kB / 1.098 GB, free: 15.31 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.406e-05/0.8515, allocations: 8.656 kB / 1.098 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.549e-05/0.8515, allocations: 5.5 kB / 1.098 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005046/0.8521, allocations: 392.5 kB / 1.099 GB, free: 15.24 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.565e-06/0.8521, allocations: 0 / 1.099 GB, free: 15.24 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.367e-05/0.8521, allocations: 2.25 kB / 1.099 GB, free: 15.24 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.52e-06/0.8521, allocations: 9.219 kB / 1.099 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005468/0.8527, allocations: 432.5 kB / 1.099 GB, free: 15.23 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008205/0.8535, allocations: 0.6398 MB / 1.1 GB, free: 14.84 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007639/0.8543, allocations: 0.5622 MB / 1.1 GB, free: 14.78 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003475/0.8546, allocations: 335.9 kB / 1.1 GB, free: 14.76 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00104/0.8557, allocations: 1.025 MB / 1.101 GB, free: 13.62 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004901/0.8562, allocations: 416.6 kB / 1.102 GB, free: 13.54 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=8): time 1.753e-06/0.8562, allocations: 0 / 1.102 GB, free: 13.54 MB / 0.8731 GB Notification: Performance of matching and sorting (n=8): time 0.001471/0.8577, allocations: 1.29 MB / 1.103 GB, free: 13.42 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.742e-05/0.8577, allocations: 80.38 kB / 1.103 GB, free: 13.33 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001435/0.8592, allocations: 1.212 MB / 1.104 GB, free: 12.84 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 6.492e-05/0.8592, allocations: 28.17 kB / 1.104 GB, free: 12.8 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002119/0.8595, allocations: 270.8 kB / 1.105 GB, free: 12.59 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 3.763e-05/0.8595, allocations: 25.72 kB / 1.105 GB, free: 12.57 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000367/0.8599, allocations: 348.5 kB / 1.105 GB, free: 12.48 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 9.807e-05/0.86, allocations: 312.2 kB / 1.105 GB, free: 12.17 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001487/0.8615, allocations: 1.358 MB / 1.107 GB, free: 11.72 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001524/0.863, allocations: 1.497 MB / 1.108 GB, free: 11.19 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007472/0.8705, allocations: 3.545 MB / 1.112 GB, free: 9.352 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.8705, allocations: 0 / 1.112 GB, free: 9.352 MB / 0.8731 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.004852/0.8754, allocations: 3.972 MB / 1.115 GB, free: 7.387 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.424e-05/0.8754, allocations: 6.625 kB / 1.115 GB, free: 7.387 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.643e-05/0.8755, allocations: 1.156 kB / 1.115 GB, free: 7.387 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.8755, allocations: 1.062 kB / 1.115 GB, free: 7.387 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001354/0.8756, allocations: 15.47 kB / 1.115 GB, free: 7.387 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.905e-06/0.8756, allocations: 2.094 kB / 1.115 GB, free: 7.387 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006536/0.8763, allocations: 236.5 kB / 1.116 GB, free: 7.195 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.928e-05/0.8764, allocations: 26.25 kB / 1.116 GB, free: 7.191 MB / 0.8731 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.0003567/0.8767, allocations: 242.9 kB / 1.116 GB, free: 7.066 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.617e-05/0.8768, allocations: 76.61 kB / 1.116 GB, free: 7.004 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002857/0.8771, allocations: 72.55 kB / 1.116 GB, free: 6.945 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.8771, allocations: 1.062 kB / 1.116 GB, free: 6.945 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.8771, allocations: 1.125 kB / 1.116 GB, free: 6.945 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.185e-05/0.8771, allocations: 1.641 kB / 1.116 GB, free: 6.945 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007004/0.8779, allocations: 497.4 kB / 1.117 GB, free: 6.672 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.578e-05/0.8779, allocations: 7.969 kB / 1.117 GB, free: 6.664 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001919/0.8781, allocations: 8.547 kB / 1.117 GB, free: 6.664 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.001e-06/0.8781, allocations: 0.6094 kB / 1.117 GB, free: 6.664 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.365e-05/0.8782, allocations: 7.859 kB / 1.117 GB, free: 6.66 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.8782, allocations: 1.797 kB / 1.117 GB, free: 6.66 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.8782, allocations: 0 / 1.117 GB, free: 6.66 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001041/0.8792, allocations: 1.003 MB / 1.118 GB, free: 6.508 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001248/0.8794, allocations: 162.2 kB / 1.118 GB, free: 6.352 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.811e-05/0.8794, allocations: 6.125 kB / 1.118 GB, free: 6.348 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001454/0.8796, allocations: 4.688 kB / 1.118 GB, free: 6.348 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.377e-05/0.8796, allocations: 6.609 kB / 1.118 GB, free: 6.348 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.2e-05/0.8797, allocations: 12.38 kB / 1.118 GB, free: 6.348 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0008935/0.8806, allocations: 0.6705 MB / 1.118 GB, free: 6.117 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8806, allocations: 7.875 kB / 1.118 GB, free: 6.109 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.001782/0.8824, allocations: 402.4 kB / 1.119 GB, free: 6.039 MB / 0.8731 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.003044/0.8854, allocations: 1.928 MB / 1.121 GB, free: 5.246 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.00284/0.8883, allocations: 2.501 MB / 1.123 GB, free: 4.25 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.8883, allocations: 0 / 1.123 GB, free: 4.25 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0003614/0.8887, allocations: 337.9 kB / 1.123 GB, free: 4.242 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004257/0.8891, allocations: 40.62 kB / 1.124 GB, free: 4.211 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01853/0.9076, allocations: 15.06 MB / 1.138 GB, free: 13.44 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006211/0.9083, allocations: 0.966 MB / 1.139 GB, free: 12.74 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0002095/0.9085, allocations: 33.33 kB / 1.139 GB, free: 12.73 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003401/0.9089, allocations: 258.9 kB / 1.139 GB, free: 12.52 MB / 0.8887 GB Notification: Performance of SimCode: time 7.61e-07/0.9089, allocations: 0 / 1.139 GB, free: 12.52 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05255/0.9614, allocations: 19.6 MB / 1.159 GB, free: 4.812 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.16/11.13, allocations: 6.688 kB / 1.159 GB, free: 4.805 MB / 0.8887 GB (rm -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.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 Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.fmu > Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)