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.004865/0.004865, allocations: 99.81 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.001258/0.001258, allocations: 195.2 kB / 16.67 MB, free: 5.973 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.333/1.333, allocations: 222.9 MB / 240.4 MB, free: 15.13 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.256/2.256, allocations: 390.3 MB / 0.6648 GB, free: 0.6055 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001276, allocations: 67.91 kB / 0.9505 GB, free: 8.098 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8467/0.848, 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_SmallScaleValidation): time 0.002652/0.8507, allocations: 1.741 MB / 1.089 GB, free: 4.059 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.005441/0.8561, allocations: 4.204 MB / 1.093 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001166/0.8563, allocations: 5.375 kB / 1.093 GB, free: 1.16 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001289/0.8576, allocations: 372.2 kB / 1.094 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001419/0.8577, allocations: 57.02 kB / 1.094 GB, free: 0.9648 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.003172/0.8609, allocations: 1 MB / 1.095 GB, free: 0.5859 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002851/0.8612, allocations: 145.2 kB / 1.095 GB, free: 0.5352 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.224e-05/0.8613, allocations: 10.09 kB / 1.095 GB, free: 0.5312 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.972e-05/0.8614, allocations: 56.22 kB / 1.095 GB, free: 0.5078 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002541/0.8616, allocations: 164.1 kB / 1.095 GB, free: 468 kB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.247e-05/0.8617, allocations: 14.69 kB / 1.095 GB, free: 468 kB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00276/0.8645, allocations: 1.39 MB / 1.096 GB, free: 36 kB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0003076/0.8648, allocations: 275.2 kB / 1.097 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0003051/0.8651, allocations: 300.6 kB / 1.097 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.002956/0.8681, allocations: 1.563 MB / 1.099 GB, free: 15.26 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.8681, allocations: 1.062 kB / 1.099 GB, free: 15.26 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.893e-06/0.8681, allocations: 0 / 1.099 GB, free: 15.26 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.521e-05/0.8681, allocations: 0 / 1.099 GB, free: 15.26 MB / 0.8731 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.01104/0.8792, allocations: 1.315 MB / 1.1 GB, free: 14.31 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.911e-05/0.8792, allocations: 9.25 kB / 1.1 GB, free: 14.31 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.872e-05/0.8793, allocations: 32.91 kB / 1.1 GB, free: 14.27 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004656/0.8798, allocations: 97.53 kB / 1.1 GB, free: 14.21 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006377/0.8804, allocations: 418 kB / 1.1 GB, free: 13.88 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.245e-05/0.8804, allocations: 7.469 kB / 1.1 GB, free: 13.88 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.917e-05/0.8805, allocations: 5.391 kB / 1.1 GB, free: 13.88 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005312/0.881, allocations: 392.9 kB / 1.101 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.785e-06/0.881, allocations: 1 kB / 1.101 GB, free: 13.82 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.547e-05/0.8811, allocations: 4.656 kB / 1.101 GB, free: 13.81 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.8811, allocations: 1.344 kB / 1.101 GB, free: 13.81 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006843/0.8818, allocations: 436.8 kB / 1.101 GB, free: 13.8 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007933/0.8826, allocations: 0.6645 MB / 1.102 GB, free: 13.41 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006499/0.8832, allocations: 0.5617 MB / 1.102 GB, free: 13.35 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003439/0.8836, allocations: 343.3 kB / 1.103 GB, free: 13.32 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001005/0.8846, allocations: 1.021 MB / 1.104 GB, free: 12.19 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004543/0.8851, allocations: 412.6 kB / 1.104 GB, free: 12.11 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=8): time 1.513e-06/0.8851, allocations: 4 kB / 1.104 GB, free: 12.1 MB / 0.8731 GB Notification: Performance of matching and sorting (n=8): time 0.001642/0.8867, allocations: 1.297 MB / 1.105 GB, free: 11.98 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.599e-05/0.8868, allocations: 84.7 kB / 1.105 GB, free: 11.89 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001738/0.8885, allocations: 1.287 MB / 1.107 GB, free: 11.38 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 8.636e-05/0.8886, allocations: 31.86 kB / 1.107 GB, free: 11.34 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002833/0.8889, allocations: 289.8 kB / 1.107 GB, free: 11.12 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 5.158e-05/0.889, allocations: 21.69 kB / 1.107 GB, free: 11.1 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004948/0.8895, allocations: 348.4 kB / 1.107 GB, free: 11 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001306/0.8896, allocations: 321.9 kB / 1.108 GB, free: 10.69 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001458/0.8911, allocations: 1.361 MB / 1.109 GB, free: 10.24 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001862/0.893, allocations: 1.49 MB / 1.11 GB, free: 9.719 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007946/0.9009, allocations: 3.545 MB / 1.114 GB, free: 7.879 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.74e-06/0.901, allocations: 0 / 1.114 GB, free: 7.879 MB / 0.8731 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.005125/0.9061, allocations: 3.975 MB / 1.118 GB, free: 5.914 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.693e-05/0.9062, allocations: 5 kB / 1.118 GB, free: 5.914 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.067e-05/0.9062, allocations: 5.891 kB / 1.118 GB, free: 5.91 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.858e-05/0.9062, allocations: 5.172 kB / 1.118 GB, free: 5.906 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001625/0.9064, allocations: 23.89 kB / 1.118 GB, free: 5.898 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.708e-06/0.9064, allocations: 5.516 kB / 1.118 GB, free: 5.895 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007726/0.9072, allocations: 236.5 kB / 1.118 GB, free: 5.703 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.474e-05/0.9073, allocations: 21.91 kB / 1.118 GB, free: 5.703 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.0004589/0.9077, allocations: 247.3 kB / 1.118 GB, free: 5.578 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001284/0.9079, allocations: 80.39 kB / 1.118 GB, free: 5.516 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003368/0.9082, allocations: 89.31 kB / 1.118 GB, free: 5.441 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.9082, allocations: 1.094 kB / 1.118 GB, free: 5.441 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.9082, allocations: 1.125 kB / 1.118 GB, free: 5.441 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.9082, allocations: 1.875 kB / 1.118 GB, free: 5.441 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005915/0.9088, allocations: 0.5109 MB / 1.119 GB, free: 5.16 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/0.9089, allocations: 3.938 kB / 1.119 GB, free: 5.156 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.6e-05/0.9089, allocations: 8.828 kB / 1.119 GB, free: 5.156 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.9089, allocations: 5.469 kB / 1.119 GB, free: 5.152 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.359e-05/0.909, allocations: 2.312 kB / 1.119 GB, free: 5.152 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.909, allocations: 1.719 kB / 1.119 GB, free: 5.152 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.909, allocations: 1.094 kB / 1.119 GB, free: 5.152 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001013/0.91, allocations: 1.005 MB / 1.12 GB, free: 5 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001426/0.9102, allocations: 173.2 kB / 1.12 GB, free: 4.836 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.779e-05/0.9102, allocations: 3.062 kB / 1.12 GB, free: 4.836 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001643/0.9104, allocations: 5.703 kB / 1.12 GB, free: 4.836 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.042e-05/0.9105, allocations: 13.16 kB / 1.12 GB, free: 4.828 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.78e-05/0.9105, allocations: 12.19 kB / 1.12 GB, free: 4.828 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.001163/0.9117, allocations: 0.7193 MB / 1.121 GB, free: 4.586 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9117, allocations: 0 / 1.121 GB, free: 4.586 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.001773/0.9135, allocations: 407.8 kB / 1.121 GB, free: 4.516 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.003054/0.9165, allocations: 1.951 MB / 1.123 GB, free: 3.707 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.002954/0.9195, allocations: 2.494 MB / 1.126 GB, free: 2.715 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.9196, allocations: 0 / 1.126 GB, free: 2.715 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0004079/0.92, allocations: 341.8 kB / 1.126 GB, free: 2.703 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007548/0.9207, allocations: 59.25 kB / 1.126 GB, free: 2.672 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02029/0.9411, allocations: 15.03 MB / 1.141 GB, free: 11.77 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006273/0.9417, allocations: 0.9862 MB / 1.142 GB, free: 11.07 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0002293/0.942, allocations: 45.97 kB / 1.142 GB, free: 11.06 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000357/0.9423, allocations: 283.8 kB / 1.142 GB, free: 10.82 MB / 0.8887 GB Notification: Performance of SimCode: time 6.21e-07/0.9423, allocations: 0 / 1.142 GB, free: 10.82 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05103/0.9934, allocations: 19.87 MB / 1.161 GB, free: 2.062 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.41/11.41, allocations: 5.062 kB / 1.161 GB, free: 2.059 MB / 0.8887 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)