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.005895/0.005895, allocations: 99.73 kB / 15.73 MB, free: 6.043 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.001313/0.001313, allocations: 194.5 kB / 16.68 MB, free: 5.961 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.354/1.354, 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.176/2.176, allocations: 390.3 MB / 0.6648 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001438/0.001438, allocations: 63.91 kB / 0.9505 GB, free: 8.102 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7627/0.7642, allocations: 140.4 MB / 1.088 GB, free: 5.258 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002944/0.7672, allocations: 1.74 MB / 1.089 GB, free: 4.051 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.005694/0.7729, allocations: 4.215 MB / 1.093 GB, free: 1.152 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001267/0.773, allocations: 5.125 kB / 1.093 GB, free: 1.148 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001152/0.7742, allocations: 363 kB / 1.094 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001172/0.7743, allocations: 61.03 kB / 1.094 GB, free: 0.9531 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.002621/0.777, allocations: 0.9898 MB / 1.095 GB, free: 0.5859 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002511/0.7772, allocations: 149.3 kB / 1.095 GB, free: 0.5312 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.863e-05/0.7773, allocations: 13.67 kB / 1.095 GB, free: 0.5234 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 8.078e-05/0.7774, allocations: 56.36 kB / 1.095 GB, free: 0.5 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002539/0.7776, allocations: 159.4 kB / 1.095 GB, free: 464 kB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.376e-05/0.7777, allocations: 14.22 kB / 1.095 GB, free: 464 kB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002426/0.7801, allocations: 1.379 MB / 1.096 GB, free: 44 kB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0003085/0.7804, allocations: 283.8 kB / 1.097 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.0003204/0.7808, allocations: 299.1 kB / 1.097 GB, free: 15.77 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.002437/0.7832, allocations: 1.551 MB / 1.099 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.7832, allocations: 0 / 1.099 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.293e-06/0.7832, allocations: 13 kB / 1.099 GB, free: 15.26 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.486e-05/0.7833, 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.01041/0.7937, allocations: 1.274 MB / 1.1 GB, free: 14.36 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.865e-05/0.7937, allocations: 10.28 kB / 1.1 GB, free: 14.36 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.276e-05/0.7938, allocations: 37.23 kB / 1.1 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004103/0.7942, allocations: 96.7 kB / 1.1 GB, free: 14.26 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006666/0.7949, allocations: 409.1 kB / 1.1 GB, free: 13.93 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.681e-05/0.7949, allocations: 7.219 kB / 1.1 GB, free: 13.93 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.95e-05/0.795, allocations: 10.23 kB / 1.1 GB, free: 13.93 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000534/0.7955, allocations: 388.6 kB / 1.101 GB, free: 13.87 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.367e-06/0.7955, allocations: 5.125 kB / 1.101 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.328e-05/0.7955, allocations: 0.6562 kB / 1.101 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.469e-06/0.7955, allocations: 1.469 kB / 1.101 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007076/0.7963, allocations: 436.4 kB / 1.101 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007932/0.7971, allocations: 0.6592 MB / 1.102 GB, free: 13.46 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000657/0.7977, allocations: 0.5669 MB / 1.102 GB, free: 13.4 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003537/0.7981, allocations: 338.7 kB / 1.103 GB, free: 13.38 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001031/0.7991, allocations: 1.025 MB / 1.104 GB, free: 12.24 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000456/0.7996, allocations: 409.2 kB / 1.104 GB, free: 12.16 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=8): time 1.814e-06/0.7996, allocations: 0 / 1.104 GB, free: 12.16 MB / 0.8731 GB Notification: Performance of matching and sorting (n=8): time 0.001635/0.8013, allocations: 1.292 MB / 1.105 GB, free: 12.05 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.24e-05/0.8013, allocations: 84.62 kB / 1.105 GB, free: 11.95 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00155/0.8029, allocations: 1.283 MB / 1.107 GB, free: 11.44 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 4.632e-05/0.8029, allocations: 31.52 kB / 1.107 GB, free: 11.41 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002673/0.8032, allocations: 285.2 kB / 1.107 GB, free: 11.19 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 4.371e-05/0.8033, allocations: 22.33 kB / 1.107 GB, free: 11.17 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005474/0.8038, allocations: 351.3 kB / 1.107 GB, free: 11.07 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001238/0.8039, allocations: 318.3 kB / 1.108 GB, free: 10.76 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001424/0.8054, allocations: 1.357 MB / 1.109 GB, free: 10.31 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001642/0.807, allocations: 1.498 MB / 1.11 GB, free: 9.785 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007465/0.8145, allocations: 3.537 MB / 1.114 GB, free: 7.953 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.8145, allocations: 3.938 kB / 1.114 GB, free: 7.949 MB / 0.8731 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.00496/0.8195, allocations: 3.966 MB / 1.118 GB, free: 5.992 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.313e-05/0.8195, allocations: 10.2 kB / 1.118 GB, free: 5.988 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.755e-05/0.8196, allocations: 1.125 kB / 1.118 GB, free: 5.988 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.111e-05/0.8196, allocations: 2.672 kB / 1.118 GB, free: 5.988 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001434/0.8197, allocations: 18.84 kB / 1.118 GB, free: 5.984 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.306e-06/0.8198, allocations: 5.062 kB / 1.118 GB, free: 5.98 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007241/0.8205, allocations: 231.4 kB / 1.118 GB, free: 5.793 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.843e-05/0.8206, allocations: 26.11 kB / 1.118 GB, free: 5.789 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.0004154/0.821, allocations: 247.1 kB / 1.118 GB, free: 5.664 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.325e-05/0.8211, allocations: 76.62 kB / 1.118 GB, free: 5.605 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002872/0.8213, allocations: 84.08 kB / 1.118 GB, free: 5.535 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.8214, allocations: 2.047 kB / 1.118 GB, free: 5.535 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.8214, allocations: 1.062 kB / 1.118 GB, free: 5.535 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.8214, allocations: 1.766 kB / 1.118 GB, free: 5.535 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006616/0.822, allocations: 0.5138 MB / 1.119 GB, free: 5.25 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.8221, allocations: 5.094 kB / 1.119 GB, free: 5.246 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.974e-05/0.8221, allocations: 12.34 kB / 1.119 GB, free: 5.242 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.8221, allocations: 1.062 kB / 1.119 GB, free: 5.242 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.802e-05/0.8222, allocations: 7.531 kB / 1.119 GB, free: 5.238 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.8222, allocations: 1.891 kB / 1.119 GB, free: 5.238 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.8222, allocations: 0 / 1.119 GB, free: 5.238 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00114/0.8233, allocations: 1.013 MB / 1.12 GB, free: 5.078 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001564/0.8235, allocations: 160.9 kB / 1.12 GB, free: 4.926 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.788e-05/0.8236, allocations: 2.781 kB / 1.12 GB, free: 4.926 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001491/0.8237, allocations: 4.734 kB / 1.12 GB, free: 4.926 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.1e-05/0.8238, allocations: 9.797 kB / 1.12 GB, free: 4.922 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.636e-05/0.8238, allocations: 13.09 kB / 1.12 GB, free: 4.922 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.001218/0.8251, allocations: 0.7151 MB / 1.121 GB, free: 4.684 MB / 0.8731 GB Notification: Performance of sort global known variables: time 2.6e-07/0.8251, allocations: 0 / 1.121 GB, free: 4.684 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.002648/0.8277, allocations: 410.8 kB / 1.121 GB, free: 4.609 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.005236/0.833, allocations: 1.934 MB / 1.123 GB, free: 3.816 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.004025/0.837, allocations: 2.491 MB / 1.125 GB, free: 2.828 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.837, allocations: 4.062 kB / 1.125 GB, free: 2.824 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0004561/0.8375, allocations: 342.4 kB / 1.126 GB, free: 2.812 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006945/0.8382, allocations: 53.08 kB / 1.126 GB, free: 2.781 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01916/0.8574, allocations: 15 MB / 1.141 GB, free: 11.92 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007241/0.8581, allocations: 0.9863 MB / 1.141 GB, free: 11.22 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0001902/0.8583, allocations: 42.56 kB / 1.142 GB, free: 11.21 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003943/0.8588, allocations: 287.6 kB / 1.142 GB, free: 10.97 MB / 0.8887 GB Notification: Performance of SimCode: time 8.91e-07/0.8588, allocations: 0 / 1.142 GB, free: 10.97 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05201/0.9108, allocations: 19.86 MB / 1.161 GB, free: 2.227 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.732/10.64, allocations: 14.67 kB / 1.161 GB, free: 2.211 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)