Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001497/0.001497, allocations: 109.4 kB / 15.69 MB, free: 128 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.001656/0.001656, allocations: 188.5 kB / 16.62 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.366/1.366, allocations: 205.1 MB / 222.5 MB, free: 4.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.701/1.701, allocations: 292.3 MB / 0.5489 GB, free: 12.75 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001395/0.001395, allocations: 73.72 kB / 0.6723 GB, free: 25.95 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1939/0.1953, allocations: 114.5 MB / 0.7842 GB, free: 12.68 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.0029/0.1983, allocations: 1.739 MB / 0.7859 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.005599/0.2039, allocations: 4.258 MB / 0.79 GB, free: 6.652 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.084e-05/0.204, allocations: 0 / 0.79 GB, free: 6.652 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001086/0.2051, allocations: 370.4 kB / 0.7904 GB, free: 6.289 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001069/0.2052, allocations: 55.67 kB / 0.7904 GB, free: 6.234 MB / 0.6075 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Fluid/Geothermal/Borefields/BaseClasses/HeatTransfer/ThermalResponseFactors/gFunction.mo:2:1-295:14:writable] Warning: Pure function 'Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.gFunction' contains a call to impure function 'Modelica.Math.Matrices.solve'. Notification: Performance of NFTyping.typeClassSections: time 0.002139/0.2074, allocations: 0.9971 MB / 0.7914 GB, free: 5.234 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002103/0.2076, allocations: 151.4 kB / 0.7915 GB, free: 5.086 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 4.369e-05/0.2077, allocations: 9.547 kB / 0.7915 GB, free: 5.074 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 7.229e-05/0.2077, allocations: 51.78 kB / 0.7916 GB, free: 5.023 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002018/0.2079, allocations: 163.5 kB / 0.7918 GB, free: 4.863 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.576e-05/0.208, allocations: 16 kB / 0.7918 GB, free: 4.848 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001877/0.2099, allocations: 1.381 MB / 0.7931 GB, free: 3.465 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0002173/0.2101, allocations: 279.8 kB / 0.7934 GB, free: 3.191 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.000227/0.2103, allocations: 298.2 kB / 0.7937 GB, free: 2.898 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.001603/0.2119, allocations: 1.547 MB / 0.7952 GB, free: 1.344 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.212, allocations: 0 / 0.7952 GB, free: 1.344 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.352e-06/0.212, allocations: 0 / 0.7952 GB, free: 1.344 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 7.233e-06/0.212, allocations: 0 / 0.7952 GB, free: 1.344 MB / 0.6075 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.009903/0.2219, allocations: 1.285 MB / 0.7964 GB, free: 8 kB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.299e-05/0.222, allocations: 16.02 kB / 0.7964 GB, free: 15.99 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003458/0.2223, allocations: 91.59 kB / 0.7965 GB, free: 15.9 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005234/0.2228, allocations: 406 kB / 0.7969 GB, free: 15.46 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.314e-05/0.2229, allocations: 8.375 kB / 0.7969 GB, free: 15.45 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.395e-05/0.2229, allocations: 4.375 kB / 0.7969 GB, free: 15.45 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004151/0.2233, allocations: 391.5 kB / 0.7973 GB, free: 15.05 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.2233, allocations: 0 / 0.7973 GB, free: 15.05 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.36e-05/0.2234, allocations: 7.922 kB / 0.7973 GB, free: 15.04 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.2234, allocations: 3.984 kB / 0.7973 GB, free: 15.04 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004169/0.2238, allocations: 435.7 kB / 0.7977 GB, free: 14.61 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005796/0.2244, allocations: 0.6575 MB / 0.7984 GB, free: 13.91 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005135/0.2249, allocations: 0.5672 MB / 0.7989 GB, free: 13.32 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003086/0.2252, allocations: 337.7 kB / 0.7993 GB, free: 12.98 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009933/0.2262, allocations: 1.025 MB / 0.8003 GB, free: 11.74 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004111/0.2267, allocations: 412.8 kB / 0.8006 GB, free: 11.32 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=8): time 1.332e-06/0.2267, allocations: 0 / 0.8006 GB, free: 11.32 MB / 0.6231 GB Notification: Performance of matching and sorting (n=8): time 0.001258/0.2279, allocations: 1.293 MB / 0.8019 GB, free: 10.02 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.403e-05/0.228, allocations: 85.09 kB / 0.802 GB, free: 9.914 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001126/0.2291, allocations: 1.281 MB / 0.8032 GB, free: 8.621 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 3.856e-05/0.2292, allocations: 37.64 kB / 0.8033 GB, free: 8.578 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001838/0.2294, allocations: 277.4 kB / 0.8035 GB, free: 8.301 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 3.569e-05/0.2294, allocations: 27.72 kB / 0.8036 GB, free: 8.273 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003207/0.2297, allocations: 351.7 kB / 0.8039 GB, free: 7.926 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001095/0.2298, allocations: 318 kB / 0.8042 GB, free: 7.609 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001172/0.231, allocations: 1.369 MB / 0.8055 GB, free: 6.238 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001255/0.2323, allocations: 1.486 MB / 0.807 GB, free: 4.742 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006988/0.2393, allocations: 3.541 MB / 0.8105 GB, free: 1.109 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.011e-06/0.2393, allocations: 8 kB / 0.8105 GB, free: 1.102 MB / 0.6231 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.004131/0.2434, allocations: 3.969 MB / 0.8143 GB, free: 13.09 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.774e-05/0.2435, allocations: 7.984 kB / 0.8143 GB, free: 13.09 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.438e-05/0.2435, allocations: 4 kB / 0.8143 GB, free: 13.08 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.2435, allocations: 0 / 0.8143 GB, free: 13.08 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001272/0.2437, allocations: 16.03 kB / 0.8144 GB, free: 13.07 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.265e-06/0.2437, allocations: 3.984 kB / 0.8144 GB, free: 13.06 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004661/0.2441, allocations: 228.4 kB / 0.8146 GB, free: 12.84 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.889e-05/0.2442, allocations: 19.98 kB / 0.8146 GB, free: 12.82 MB / 0.6387 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.0002876/0.2445, allocations: 252.5 kB / 0.8148 GB, free: 12.56 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.841e-05/0.2446, allocations: 74.62 kB / 0.8149 GB, free: 12.49 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002682/0.2448, allocations: 83.72 kB / 0.815 GB, free: 12.4 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.2449, allocations: 0 / 0.815 GB, free: 12.4 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.994e-06/0.2449, allocations: 7.938 kB / 0.815 GB, free: 12.39 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.2449, allocations: 0 / 0.815 GB, free: 12.39 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004536/0.2453, allocations: 0.5176 MB / 0.8155 GB, free: 11.83 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.2453, allocations: 3.938 kB / 0.8155 GB, free: 11.83 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.806e-05/0.2454, allocations: 15.92 kB / 0.8155 GB, free: 11.81 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.2454, allocations: 0 / 0.8155 GB, free: 11.81 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.376e-05/0.2454, allocations: 4 kB / 0.8155 GB, free: 11.81 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.2455, allocations: 4.344 kB / 0.8155 GB, free: 11.8 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.2455, allocations: 0 / 0.8155 GB, free: 11.8 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008906/0.2464, allocations: 1.002 MB / 0.8165 GB, free: 10.78 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001059/0.2465, allocations: 159.7 kB / 0.8167 GB, free: 10.61 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.683e-05/0.2465, allocations: 11.98 kB / 0.8167 GB, free: 10.59 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001489/0.2467, allocations: 8 kB / 0.8167 GB, free: 10.59 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.235e-05/0.2467, allocations: 7.922 kB / 0.8167 GB, free: 10.58 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.293e-05/0.2468, allocations: 11.98 kB / 0.8167 GB, free: 10.57 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.000735/0.2475, allocations: 0.7179 MB / 0.8174 GB, free: 9.844 MB / 0.6387 GB Notification: Performance of sort global known variables: time 2.4e-07/0.2475, allocations: 0 / 0.8174 GB, free: 9.844 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.0009989/0.2485, allocations: 399.9 kB / 0.8178 GB, free: 9.453 MB / 0.6387 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.001052/0.2496, allocations: 489.2 kB / 0.8183 GB, free: 8.965 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.002136/0.2518, allocations: 2.499 MB / 0.8207 GB, free: 6.457 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.2518, allocations: 4.062 kB / 0.8207 GB, free: 6.453 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0003086/0.2521, allocations: 335.8 kB / 0.821 GB, free: 6.125 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003712/0.2525, allocations: 63.73 kB / 0.8211 GB, free: 6.066 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002038/0.2545, allocations: 1.861 MB / 0.8229 GB, free: 4.172 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005038/0.255, allocations: 0.9918 MB / 0.8239 GB, free: 3.152 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0001327/0.2552, allocations: 33.44 kB / 0.8239 GB, free: 3.117 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.7e-05/0.2553, allocations: 31.41 kB / 0.8239 GB, free: 3.086 MB / 0.6387 GB Notification: Performance of SimCode: time 2.5e-07/0.2553, allocations: 0 / 0.8239 GB, free: 3.086 MB / 0.6387 GB Notification: Performance of Templates: time 0.01659/0.2719, allocations: 10.16 MB / 0.8338 GB, free: 8.98 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile (rm -f Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & ./Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)