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.001348/0.001348, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001563/0.001563, allocations: 193.6 kB / 16.53 MB, free: 6.391 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.324/1.324, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.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.308/2.308, allocations: 390.3 MB / 0.6647 GB, free: 256 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 59.91 kB / 0.8127 GB, free: 14.12 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5878/0.5891, allocations: 140.4 MB / 0.9498 GB, free: 9.219 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002024/0.5912, allocations: 1.408 MB / 0.9511 GB, free: 8.102 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00352/0.5947, allocations: 3.025 MB / 0.9541 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.121e-05/0.5947, allocations: 1.062 kB / 0.9541 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 9.525e-05/0.5949, allocations: 8.828 kB / 0.9541 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001901/0.5951, allocations: 35 kB / 0.9541 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.002072/0.5971, allocations: 0.9966 MB / 0.9551 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000107/0.5973, allocations: 84.67 kB / 0.9552 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.691e-05/0.5973, allocations: 3.562 kB / 0.9552 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.693e-05/0.5974, allocations: 44.2 kB / 0.9552 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001895/0.5976, allocations: 144 kB / 0.9554 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.203e-05/0.5976, allocations: 14.09 kB / 0.9554 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001636/0.5993, allocations: 1.379 MB / 0.9567 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001751/0.5994, allocations: 263.5 kB / 0.957 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001942/0.5996, allocations: 277.6 kB / 0.9572 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.001473/0.6011, allocations: 1.475 MB / 0.9587 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.6011, allocations: 0 / 0.9587 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.613e-06/0.6011, allocations: 1.125 kB / 0.9587 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.374e-05/0.6012, allocations: 0 / 0.9587 GB, free: 2.969 MB / 0.7169 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.01019/0.6114, allocations: 1.197 MB / 0.9599 GB, free: 2.02 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.6114, allocations: 13.16 kB / 0.9599 GB, free: 2.016 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.705e-05/0.6114, allocations: 36.08 kB / 0.9599 GB, free: 1.973 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003464/0.6118, allocations: 84.31 kB / 0.96 GB, free: 1.914 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003087/0.6121, allocations: 361.8 kB / 0.9603 GB, free: 1.59 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.123e-05/0.6121, allocations: 2.594 kB / 0.9603 GB, free: 1.59 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.987e-05/0.6122, allocations: 4.906 kB / 0.9603 GB, free: 1.59 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003786/0.6126, allocations: 407.6 kB / 0.9607 GB, free: 1.453 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.304e-06/0.6126, allocations: 0 / 0.9607 GB, free: 1.453 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.307e-05/0.6126, allocations: 1.094 kB / 0.9607 GB, free: 1.453 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.6126, allocations: 1.375 kB / 0.9607 GB, free: 1.453 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004279/0.613, allocations: 434.1 kB / 0.9611 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004855/0.6135, allocations: 0.6312 MB / 0.9618 GB, free: 0.8906 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005414/0.6141, allocations: 0.5612 MB / 0.9623 GB, free: 0.7539 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000334/0.6144, allocations: 333.8 kB / 0.9626 GB, free: 0.6875 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009721/0.6154, allocations: 1.035 MB / 0.9636 GB, free: 15.51 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004274/0.6158, allocations: 411.5 kB / 0.964 GB, free: 15.36 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=8): time 1.503e-06/0.6159, allocations: 3.938 kB / 0.964 GB, free: 15.36 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8): time 0.001451/0.6173, allocations: 1.295 MB / 0.9653 GB, free: 15.06 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.011e-05/0.6174, allocations: 79.33 kB / 0.9654 GB, free: 14.97 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001222/0.6186, allocations: 1.202 MB / 0.9665 GB, free: 14.27 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.938e-05/0.6187, allocations: 31.75 kB / 0.9666 GB, free: 14.23 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001835/0.6188, allocations: 255.6 kB / 0.9668 GB, free: 14.01 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.534e-05/0.6189, allocations: 24.3 kB / 0.9668 GB, free: 13.99 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003196/0.6192, allocations: 348.6 kB / 0.9672 GB, free: 13.82 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.824e-05/0.6193, allocations: 315.2 kB / 0.9675 GB, free: 13.51 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001246/0.6206, allocations: 1.358 MB / 0.9688 GB, free: 12.94 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001326/0.6219, allocations: 1.493 MB / 0.9703 GB, free: 12.27 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007115/0.629, allocations: 3.548 MB / 0.9737 GB, free: 8.641 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/0.629, allocations: 4 kB / 0.9737 GB, free: 8.637 MB / 0.7325 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.004192/0.6332, allocations: 3.969 MB / 0.9776 GB, free: 4.633 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.789e-05/0.6333, allocations: 8 kB / 0.9776 GB, free: 4.625 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.312e-05/0.6333, allocations: 0 / 0.9776 GB, free: 4.625 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/0.6333, allocations: 3.938 kB / 0.9776 GB, free: 4.621 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001307/0.6335, allocations: 15.98 kB / 0.9776 GB, free: 4.605 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.247e-06/0.6335, allocations: 8.094 kB / 0.9776 GB, free: 4.598 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00061/0.6341, allocations: 228.3 kB / 0.9779 GB, free: 4.367 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.708e-05/0.6342, allocations: 27.98 kB / 0.9779 GB, free: 4.34 MB / 0.7325 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.000305/0.6345, allocations: 237.6 kB / 0.9781 GB, free: 4.098 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.913e-05/0.6345, allocations: 66.72 kB / 0.9782 GB, free: 4.031 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000285/0.6348, allocations: 78.89 kB / 0.9782 GB, free: 3.941 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.6348, allocations: 0 / 0.9782 GB, free: 3.941 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.6348, allocations: 4 kB / 0.9782 GB, free: 3.938 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.6349, allocations: 0 / 0.9782 GB, free: 3.938 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004504/0.6353, allocations: 492.8 kB / 0.9787 GB, free: 3.41 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.656e-06/0.6353, allocations: 3.938 kB / 0.9787 GB, free: 3.406 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.281e-05/0.6354, allocations: 7.984 kB / 0.9787 GB, free: 3.398 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.751e-06/0.6354, allocations: 4 kB / 0.9787 GB, free: 3.395 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.157e-05/0.6354, allocations: 0 / 0.9787 GB, free: 3.395 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.6354, allocations: 0 / 0.9787 GB, free: 3.395 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.6354, allocations: 7.938 kB / 0.9787 GB, free: 3.387 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008917/0.6363, allocations: 0.9975 MB / 0.9797 GB, free: 2.367 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000109/0.6365, allocations: 159.8 kB / 0.9799 GB, free: 2.191 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.152e-05/0.6365, allocations: 4 kB / 0.9799 GB, free: 2.188 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001468/0.6367, allocations: 7.984 kB / 0.9799 GB, free: 2.18 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.447e-05/0.6367, allocations: 8 kB / 0.9799 GB, free: 2.172 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.57e-05/0.6368, allocations: 11.97 kB / 0.9799 GB, free: 2.16 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0007034/0.6375, allocations: 0.6687 MB / 0.9806 GB, free: 1.484 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6375, allocations: 0 / 0.9806 GB, free: 1.484 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.00111/0.6386, allocations: 395.8 kB / 0.9809 GB, free: 1.098 MB / 0.7325 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.00224/0.6408, allocations: 1.916 MB / 0.9828 GB, free: 15.15 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.002186/0.643, allocations: 2.503 MB / 0.9852 GB, free: 12.64 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/0.6431, allocations: 0 / 0.9852 GB, free: 12.64 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0003223/0.6434, allocations: 343.7 kB / 0.9856 GB, free: 12.3 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003111/0.6437, allocations: 40.42 kB / 0.9856 GB, free: 12.26 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01478/0.6585, allocations: 14.93 MB / 1 GB, free: 13.15 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000549/0.6591, allocations: 0.9641 MB / 1.001 GB, free: 12.16 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0001901/0.6593, allocations: 40.48 kB / 1.001 GB, free: 12.12 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003107/0.6596, allocations: 263.3 kB / 1.001 GB, free: 11.87 MB / 0.7637 GB Notification: Performance of SimCode: time 7.81e-07/0.6596, allocations: 0 / 1.001 GB, free: 11.87 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03965/0.6993, allocations: 19.46 MB / 1.02 GB, free: 8.598 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.659/9.359, allocations: 6.562 kB / 1.02 GB, free: 8.594 MB / 0.7794 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)