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.004731/0.004731, allocations: 100.1 kB / 15.73 MB, free: 6.004 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.001101/0.001101, allocations: 191.5 kB / 16.67 MB, free: 5.926 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.291/1.291, allocations: 222.9 MB / 240.4 MB, free: 15.11 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.34/2.34, allocations: 390.3 MB / 0.6648 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001408/0.001408, allocations: 63.91 kB / 0.9505 GB, free: 8.09 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8499/0.8513, allocations: 140.4 MB / 1.088 GB, free: 5.25 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002369/0.8537, allocations: 1.404 MB / 1.089 GB, free: 4.27 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.004192/0.8579, allocations: 3.026 MB / 1.092 GB, free: 2.23 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.722e-05/0.858, allocations: 4.656 kB / 1.092 GB, free: 2.227 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0001009/0.8581, allocations: 7.297 kB / 1.092 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003966/0.8585, allocations: 37.44 kB / 1.092 GB, free: 2.199 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.003057/0.8617, allocations: 0.9895 MB / 1.093 GB, free: 1.832 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001502/0.8618, allocations: 83.09 kB / 1.093 GB, free: 1.805 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.155e-05/0.8619, allocations: 11.92 kB / 1.093 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 6.757e-05/0.8619, allocations: 38.66 kB / 1.093 GB, free: 1.785 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002301/0.8622, allocations: 141.5 kB / 1.093 GB, free: 1.75 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.801e-05/0.8622, allocations: 12.84 kB / 1.093 GB, free: 1.75 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002508/0.8647, allocations: 1.392 MB / 1.095 GB, free: 1.324 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0002717/0.865, allocations: 262.6 kB / 1.095 GB, free: 1.258 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002519/0.8653, allocations: 274.5 kB / 1.095 GB, free: 1.082 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.002507/0.8678, allocations: 1.476 MB / 1.096 GB, free: 0.6133 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.718e-06/0.8678, allocations: 1.125 kB / 1.096 GB, free: 0.6133 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.014e-06/0.8678, allocations: 4.5 kB / 1.096 GB, free: 0.6094 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.109e-05/0.8678, allocations: 0 / 1.096 GB, free: 0.6094 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.01051/0.8784, allocations: 1.206 MB / 1.098 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.8784, allocations: 9.875 kB / 1.098 GB, free: 15.75 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.355e-05/0.8785, allocations: 41.66 kB / 1.098 GB, free: 15.7 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003973/0.8789, allocations: 85.81 kB / 1.098 GB, free: 15.65 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000458/0.8793, allocations: 360.7 kB / 1.098 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.642e-05/0.8794, allocations: 11.84 kB / 1.098 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.687e-05/0.8794, allocations: 5.25 kB / 1.098 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000649/0.8801, allocations: 396.5 kB / 1.099 GB, free: 15.28 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.8801, allocations: 0.5625 kB / 1.099 GB, free: 15.28 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.348e-05/0.8801, allocations: 1.281 kB / 1.099 GB, free: 15.28 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.531e-06/0.8801, allocations: 1.625 kB / 1.099 GB, free: 15.28 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005573/0.8807, allocations: 432.7 kB / 1.099 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007884/0.8815, allocations: 0.6278 MB / 1.1 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007841/0.8823, allocations: 0.5672 MB / 1.1 GB, free: 14.83 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003457/0.8826, allocations: 334.3 kB / 1.1 GB, free: 14.81 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001284/0.8839, allocations: 1.03 MB / 1.101 GB, free: 13.67 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004272/0.8844, allocations: 407.4 kB / 1.102 GB, free: 13.59 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=8): time 1.613e-06/0.8844, allocations: 0 / 1.102 GB, free: 13.59 MB / 0.8731 GB Notification: Performance of matching and sorting (n=8): time 0.001579/0.886, allocations: 1.294 MB / 1.103 GB, free: 13.47 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.313e-05/0.8861, allocations: 80.36 kB / 1.103 GB, free: 13.38 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001373/0.8875, allocations: 1.206 MB / 1.104 GB, free: 12.89 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 4.601e-05/0.8875, allocations: 31.58 kB / 1.104 GB, free: 12.86 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002175/0.8877, allocations: 258.8 kB / 1.105 GB, free: 12.66 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 4.018e-05/0.8878, allocations: 22.25 kB / 1.105 GB, free: 12.64 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003866/0.8882, allocations: 351.4 kB / 1.105 GB, free: 12.54 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001134/0.8883, allocations: 314.1 kB / 1.105 GB, free: 12.23 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001761/0.8901, allocations: 1.361 MB / 1.107 GB, free: 11.78 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001506/0.8916, allocations: 1.49 MB / 1.108 GB, free: 11.26 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007797/0.8994, allocations: 3.54 MB / 1.112 GB, free: 9.422 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.549e-06/0.8994, allocations: 5.719 kB / 1.112 GB, free: 9.418 MB / 0.8731 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.004678/0.9041, allocations: 3.963 MB / 1.115 GB, free: 7.461 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.071e-05/0.9041, allocations: 5.562 kB / 1.115 GB, free: 7.461 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.558e-05/0.9041, allocations: 4.938 kB / 1.115 GB, free: 7.457 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.802e-05/0.9042, allocations: 1.859 kB / 1.115 GB, free: 7.457 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002366/0.9044, allocations: 19.59 kB / 1.115 GB, free: 7.453 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.9044, allocations: 1.125 kB / 1.115 GB, free: 7.453 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006262/0.9051, allocations: 231.2 kB / 1.116 GB, free: 7.266 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.313e-05/0.9051, allocations: 23.47 kB / 1.116 GB, free: 7.266 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.0003687/0.9055, allocations: 238.5 kB / 1.116 GB, free: 7.145 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.798e-05/0.9056, allocations: 73.97 kB / 1.116 GB, free: 7.086 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000275/0.9059, allocations: 70.73 kB / 1.116 GB, free: 7.027 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.9059, allocations: 1.75 kB / 1.116 GB, free: 7.027 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.9059, allocations: 4.906 kB / 1.116 GB, free: 7.023 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.9059, allocations: 2.141 kB / 1.116 GB, free: 7.023 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006687/0.9066, allocations: 499.7 kB / 1.117 GB, free: 6.746 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.9066, allocations: 9.281 kB / 1.117 GB, free: 6.738 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.327e-05/0.9067, allocations: 8.594 kB / 1.117 GB, free: 6.738 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.9067, allocations: 0 / 1.117 GB, free: 6.738 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.822e-05/0.9067, allocations: 3.656 kB / 1.117 GB, free: 6.738 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.921e-06/0.9067, allocations: 5.828 kB / 1.117 GB, free: 6.734 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.9067, allocations: 0 / 1.117 GB, free: 6.734 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001305/0.908, allocations: 1.002 MB / 1.118 GB, free: 6.582 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001216/0.9082, allocations: 154.6 kB / 1.118 GB, free: 6.434 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.196e-05/0.9082, allocations: 1.906 kB / 1.118 GB, free: 6.434 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000137/0.9084, allocations: 5.281 kB / 1.118 GB, free: 6.434 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.102e-05/0.9084, allocations: 13.95 kB / 1.118 GB, free: 6.426 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.838e-05/0.9085, allocations: 16.58 kB / 1.118 GB, free: 6.422 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.000899/0.9094, allocations: 0.6626 MB / 1.118 GB, free: 6.199 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.783e-06/0.9094, allocations: 0 / 1.118 GB, free: 6.199 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.002133/0.9115, allocations: 405.8 kB / 1.119 GB, free: 6.125 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.003205/0.9147, allocations: 1.914 MB / 1.121 GB, free: 5.348 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.002983/0.9177, allocations: 2.502 MB / 1.123 GB, free: 4.352 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.9178, allocations: 0 / 1.123 GB, free: 4.352 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0003806/0.9182, allocations: 341.4 kB / 1.123 GB, free: 4.34 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004504/0.9186, allocations: 36.19 kB / 1.123 GB, free: 4.312 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02086/0.9395, allocations: 15.02 MB / 1.138 GB, free: 13.57 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006577/0.9402, allocations: 0.9626 MB / 1.139 GB, free: 12.88 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0001942/0.9404, allocations: 33.27 kB / 1.139 GB, free: 12.87 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004836/0.9409, allocations: 263.3 kB / 1.139 GB, free: 12.65 MB / 0.8887 GB Notification: Performance of SimCode: time 9.72e-07/0.9409, allocations: 0 / 1.139 GB, free: 12.65 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05469/0.9956, allocations: 19.6 MB / 1.158 GB, free: 4.949 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.977/10.97, allocations: 8.344 kB / 1.158 GB, free: 4.941 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)