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_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/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_SmallScaleValidation,fileNamePrefix="Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="Buildings_9_Buildings_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.001143/0.001143, allocations: 108 kB / 15.61 MB, free: 152 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.001659/0.001659, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.388/1.388, allocations: 222.9 MB / 240.2 MB, free: 4.43 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.479/2.479, allocations: 390.2 MB / 0.6647 GB, free: 480 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001591/0.001591, allocations: 63.91 kB / 0.8127 GB, free: 14.34 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6571/0.6587, allocations: 140.4 MB / 0.9498 GB, free: 9.352 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002719/0.6615, allocations: 1.729 MB / 0.9514 GB, free: 7.992 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.005031/0.6665, allocations: 4.224 MB / 0.9556 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.178e-05/0.6667, allocations: 4.844 kB / 0.9556 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.00124/0.6679, allocations: 374.1 kB / 0.9559 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001026/0.668, allocations: 60.5 kB / 0.956 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.002177/0.6702, allocations: 0.9835 MB / 0.9569 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0003944/0.6706, allocations: 149 kB / 0.9571 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.554e-05/0.6707, allocations: 8.719 kB / 0.9571 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 7.269e-05/0.6707, allocations: 50.89 kB / 0.9571 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000195/0.6709, allocations: 163.7 kB / 0.9573 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.462e-05/0.671, allocations: 13.75 kB / 0.9573 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001719/0.6727, allocations: 1.369 MB / 0.9587 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001935/0.6729, allocations: 279.2 kB / 0.9589 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0002217/0.6732, allocations: 306.4 kB / 0.9592 GB, free: 2.449 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.001838/0.675, allocations: 1.536 MB / 0.9607 GB, free: 1.531 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.675, allocations: 0 / 0.9607 GB, free: 1.531 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.192e-06/0.675, allocations: 1.094 kB / 0.9607 GB, free: 1.531 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.087e-06/0.675, allocations: 0 / 0.9607 GB, free: 1.531 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.01012/0.6852, allocations: 1.282 MB / 0.962 GB, free: 0.5156 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.6852, allocations: 8.719 kB / 0.962 GB, free: 0.5156 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.221e-05/0.6852, allocations: 40.22 kB / 0.962 GB, free: 480 kB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003664/0.6856, allocations: 99.08 kB / 0.9621 GB, free: 408 kB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003823/0.686, allocations: 398.3 kB / 0.9625 GB, free: 56 kB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.156e-05/0.686, allocations: 6.547 kB / 0.9625 GB, free: 52 kB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.738e-05/0.6861, allocations: 4.875 kB / 0.9625 GB, free: 52 kB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004498/0.6866, allocations: 391.6 kB / 0.9629 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.533e-06/0.6866, allocations: 3.938 kB / 0.9629 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.225e-05/0.6866, allocations: 0.8125 kB / 0.9629 GB, free: 15.93 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.6866, allocations: 4.875 kB / 0.9629 GB, free: 15.92 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006171/0.6872, allocations: 438.8 kB / 0.9633 GB, free: 15.85 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006691/0.6879, allocations: 0.6577 MB / 0.9639 GB, free: 15.34 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005844/0.6885, allocations: 0.5659 MB / 0.9645 GB, free: 15.2 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00034/0.6889, allocations: 341.8 kB / 0.9648 GB, free: 15.12 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001073/0.6899, allocations: 1.028 MB / 0.9658 GB, free: 13.95 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006452/0.6906, allocations: 418.7 kB / 0.9662 GB, free: 13.8 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=8): time 1.653e-06/0.6906, allocations: 0 / 0.9662 GB, free: 13.8 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8): time 0.001438/0.6921, allocations: 1.294 MB / 0.9675 GB, free: 13.51 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.618e-05/0.6921, allocations: 79.86 kB / 0.9676 GB, free: 13.41 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001627/0.6938, allocations: 1.29 MB / 0.9688 GB, free: 12.67 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.42e-05/0.6938, allocations: 26.64 kB / 0.9688 GB, free: 12.64 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002556/0.6941, allocations: 285.3 kB / 0.9691 GB, free: 12.39 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 5.069e-05/0.6941, allocations: 30.31 kB / 0.9691 GB, free: 12.36 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003669/0.6945, allocations: 349.1 kB / 0.9695 GB, free: 12.2 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001244/0.6946, allocations: 321.8 kB / 0.9698 GB, free: 11.88 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001307/0.696, allocations: 1.358 MB / 0.9711 GB, free: 11.31 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001557/0.6975, allocations: 1.503 MB / 0.9726 GB, free: 10.1 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007534/0.7051, allocations: 3.534 MB / 0.976 GB, free: 6.469 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.7051, allocations: 0 / 0.976 GB, free: 6.469 MB / 0.7325 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.004543/0.7096, allocations: 3.973 MB / 0.9799 GB, free: 2.457 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.897e-05/0.7097, allocations: 9.719 kB / 0.9799 GB, free: 2.449 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.345e-05/0.7097, allocations: 0 / 0.9799 GB, free: 2.449 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.7097, allocations: 3.984 kB / 0.9799 GB, free: 2.445 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000133/0.7098, allocations: 12 kB / 0.9799 GB, free: 2.434 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.054e-05/0.7099, allocations: 7.938 kB / 0.9799 GB, free: 2.426 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008038/0.7107, allocations: 228.3 kB / 0.9802 GB, free: 2.199 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.402e-05/0.7108, allocations: 27.98 kB / 0.9802 GB, free: 2.172 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.0003148/0.7111, allocations: 245.6 kB / 0.9804 GB, free: 1.922 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.941e-05/0.7112, allocations: 78.62 kB / 0.9805 GB, free: 1.844 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000323/0.7115, allocations: 79.66 kB / 0.9806 GB, free: 1.754 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.7115, allocations: 4 kB / 0.9806 GB, free: 1.75 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.7116, allocations: 0 / 0.9806 GB, free: 1.75 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/0.7116, allocations: 0 / 0.9806 GB, free: 1.75 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005069/0.7121, allocations: 0.5139 MB / 0.9811 GB, free: 1.191 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.7121, allocations: 7.938 kB / 0.9811 GB, free: 1.184 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.54e-05/0.7122, allocations: 7.984 kB / 0.9811 GB, free: 1.176 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.7122, allocations: 0 / 0.9811 GB, free: 1.176 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.52e-05/0.7122, allocations: 4 kB / 0.9811 GB, free: 1.172 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.7122, allocations: 3.938 kB / 0.9811 GB, free: 1.168 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.7122, allocations: 0 / 0.9811 GB, free: 1.168 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000928/0.7131, allocations: 1.01 MB / 0.9821 GB, free: 140 kB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002158/0.7134, allocations: 159.9 kB / 0.9822 GB, free: 15.96 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.31e-05/0.7135, allocations: 3.938 kB / 0.9822 GB, free: 15.95 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001607/0.7136, allocations: 7.984 kB / 0.9823 GB, free: 15.95 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.336e-05/0.7137, allocations: 8 kB / 0.9823 GB, free: 15.94 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.56e-05/0.7137, allocations: 11.97 kB / 0.9823 GB, free: 15.93 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0009461/0.7147, allocations: 0.7179 MB / 0.983 GB, free: 15.2 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.9e-07/0.7147, allocations: 0 / 0.983 GB, free: 15.2 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.001186/0.7159, allocations: 411.8 kB / 0.9834 GB, free: 14.8 MB / 0.7481 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.002884/0.7188, allocations: 1.924 MB / 0.9852 GB, free: 12.84 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.002451/0.7212, allocations: 2.503 MB / 0.9877 GB, free: 10.33 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.7212, allocations: 0 / 0.9877 GB, free: 10.33 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.000331/0.7216, allocations: 343.9 kB / 0.988 GB, free: 9.996 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004009/0.722, allocations: 48.72 kB / 0.9881 GB, free: 9.949 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01615/0.7381, allocations: 14.91 MB / 1.003 GB, free: 10.87 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005523/0.7387, allocations: 0.9879 MB / 1.004 GB, free: 9.859 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0001944/0.7389, allocations: 37.42 kB / 1.004 GB, free: 9.824 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003362/0.7393, allocations: 283.3 kB / 1.004 GB, free: 9.547 MB / 0.7637 GB Notification: Performance of SimCode: time 5.61e-07/0.7393, allocations: 0 / 1.004 GB, free: 9.547 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04572/0.785, allocations: 19.71 MB / 1.023 GB, free: 6.047 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.609/9.394, allocations: 2.625 kB / 1.023 GB, free: 6.047 MB / 0.7794 GB (rm -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.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 Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.fmu > Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)