Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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: translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001171/0.001171, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001126/0.001126, allocations: 194.1 kB / 16.25 MB, free: 6.621 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.298/1.298, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002086/0.002086, allocations: 290.5 kB / 290.4 MB, free: 2.125 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9295/0.9295, allocations: 169.2 MB / 0.4978 GB, free: 14.1 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001638/0.001638, allocations: 100.1 kB / 0.5947 GB, free: 28.27 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1395/0.1411, allocations: 86.99 MB / 0.6797 GB, free: 1.039 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002846/0.144, allocations: 1.791 MB / 0.6814 GB, free: 15.24 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.006893/0.1509, allocations: 5.395 MB / 0.6867 GB, free: 9.836 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001149/0.1511, allocations: 0 / 0.6867 GB, free: 9.836 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001153/0.1522, allocations: 358.6 kB / 0.687 GB, free: 9.484 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001208/0.1524, allocations: 51.72 kB / 0.6871 GB, free: 9.434 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function ‘Modelica.Math.Random.Utilities.initializeImpureRandom‘ contains a call to impure function ‘Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Utilities/Clustering/KMeans.mo:96:7-96:35:writable] Warning: inertia was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.003492/0.1559, allocations: 1.337 MB / 0.6884 GB, free: 8.098 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002453/0.1561, allocations: 167.3 kB / 0.6886 GB, free: 7.934 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.506e-05/0.1562, allocations: 9.562 kB / 0.6886 GB, free: 7.926 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.586e-05/0.1563, allocations: 63.7 kB / 0.6886 GB, free: 7.863 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002236/0.1565, allocations: 176.8 kB / 0.6888 GB, free: 7.691 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.645e-05/0.1565, allocations: 16 kB / 0.6888 GB, free: 7.676 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002891/0.1594, allocations: 2.196 MB / 0.691 GB, free: 5.477 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002003/0.1597, allocations: 279.8 kB / 0.6912 GB, free: 5.203 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000231/0.1599, allocations: 306.1 kB / 0.6915 GB, free: 4.902 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002583/0.1625, allocations: 2.186 MB / 0.6937 GB, free: 2.707 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.1625, allocations: 0 / 0.6937 GB, free: 2.707 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1625, allocations: 0 / 0.6937 GB, free: 2.707 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.171e-05/0.1625, allocations: 0 / 0.6937 GB, free: 2.707 MB / 494.1 MB 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.009245/0.1718, allocations: 1.374 MB / 0.695 GB, free: 1.281 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.581e-05/0.1718, allocations: 12.03 kB / 0.695 GB, free: 1.27 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003797/0.1722, allocations: 95.58 kB / 0.6951 GB, free: 1.176 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004231/0.1727, allocations: 406.2 kB / 0.6955 GB, free: 0.7305 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.679e-06/0.1727, allocations: 8.359 kB / 0.6955 GB, free: 0.7227 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.27e-05/0.1727, allocations: 8.375 kB / 0.6955 GB, free: 0.7148 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004017/0.1731, allocations: 399.4 kB / 0.6959 GB, free: 320 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.765e-06/0.1731, allocations: 0 / 0.6959 GB, free: 320 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.163e-05/0.1732, allocations: 0 / 0.6959 GB, free: 320 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.1732, allocations: 0 / 0.6959 GB, free: 320 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004037/0.1736, allocations: 435.7 kB / 0.6963 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005758/0.1742, allocations: 0.6692 MB / 0.6969 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004775/0.1747, allocations: 0.5633 MB / 0.6975 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002856/0.175, allocations: 337.7 kB / 0.6978 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009623/0.1759, allocations: 1.028 MB / 0.6988 GB, free: 13 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003806/0.1763, allocations: 412.8 kB / 0.6992 GB, free: 12.58 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.373e-06/0.1763, allocations: 0 / 0.6992 GB, free: 12.58 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.001234/0.1776, allocations: 1.3 MB / 0.7005 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.705e-05/0.1776, allocations: 81.11 kB / 0.7006 GB, free: 11.17 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001126/0.1788, allocations: 1.286 MB / 0.7018 GB, free: 9.875 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.041e-05/0.1788, allocations: 29.7 kB / 0.7018 GB, free: 9.84 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001941/0.179, allocations: 285.3 kB / 0.7021 GB, free: 9.555 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.472e-05/0.1791, allocations: 27.72 kB / 0.7021 GB, free: 9.527 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003059/0.1794, allocations: 351.6 kB / 0.7025 GB, free: 9.18 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.956e-05/0.1795, allocations: 326 kB / 0.7028 GB, free: 8.855 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001132/0.1806, allocations: 1.369 MB / 0.7041 GB, free: 7.484 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001217/0.1818, allocations: 1.501 MB / 0.7056 GB, free: 5.973 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006919/0.1888, allocations: 3.56 MB / 0.7091 GB, free: 2.32 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.19e-06/0.1888, allocations: 4 kB / 0.7091 GB, free: 2.316 MB / 0.4981 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004066/0.1929, allocations: 4.01 MB / 0.713 GB, free: 14.27 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 2.257e-05/0.1929, allocations: 11.94 kB / 0.713 GB, free: 14.26 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.534e-05/0.1929, allocations: 3.938 kB / 0.713 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.664e-05/0.193, allocations: 0 / 0.713 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001282/0.1931, allocations: 23.98 kB / 0.713 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.122e-06/0.1931, allocations: 0 / 0.713 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004641/0.1936, allocations: 228.3 kB / 0.7133 GB, free: 14 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.464e-05/0.1936, allocations: 23.98 kB / 0.7133 GB, free: 13.98 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 13 (cluSiz[1],labels[1],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 (17): * Single equations (assignments): 13 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 2 * 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.0003092/0.194, allocations: 258.2 kB / 0.7135 GB, free: 13.72 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.213e-05/0.194, allocations: 74.62 kB / 0.7136 GB, free: 13.64 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002866/0.1943, allocations: 79.81 kB / 0.7137 GB, free: 13.56 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.1943, allocations: 8.031 kB / 0.7137 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.1944, allocations: 0 / 0.7137 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.1944, allocations: 0 / 0.7137 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004162/0.1948, allocations: 0.5141 MB / 0.7142 GB, free: 12.99 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.1948, allocations: 0 / 0.7142 GB, free: 12.99 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.03e-05/0.1949, allocations: 15.92 kB / 0.7142 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.1949, allocations: 0 / 0.7142 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.296e-05/0.1949, allocations: 4 kB / 0.7142 GB, free: 12.97 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.1949, allocations: 0 / 0.7142 GB, free: 12.97 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.1949, allocations: 0 / 0.7142 GB, free: 12.97 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008484/0.1958, allocations: 1.013 MB / 0.7152 GB, free: 11.94 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001097/0.1959, allocations: 159.7 kB / 0.7153 GB, free: 11.76 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.573e-05/0.196, allocations: 0 / 0.7153 GB, free: 11.76 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001509/0.1961, allocations: 7.984 kB / 0.7153 GB, free: 11.75 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.547e-05/0.1962, allocations: 4 kB / 0.7153 GB, free: 11.75 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.698e-05/0.1962, allocations: 23.97 kB / 0.7154 GB, free: 11.73 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.000722/0.1969, allocations: 0.7144 MB / 0.7161 GB, free: 11.01 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.3e-07/0.1969, allocations: 0 / 0.7161 GB, free: 11.01 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001355/0.1983, allocations: 0.5857 MB / 0.7166 GB, free: 10.42 MB / 0.5137 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.001741/0.2001, allocations: 0.6994 MB / 0.7173 GB, free: 9.734 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002162/0.2022, allocations: 2.548 MB / 0.7198 GB, free: 7.172 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.2022, allocations: 0 / 0.7198 GB, free: 7.172 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0003182/0.2026, allocations: 343.8 kB / 0.7201 GB, free: 6.836 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004178/0.203, allocations: 65.77 kB / 0.7202 GB, free: 6.773 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002216/0.2052, allocations: 2.068 MB / 0.7222 GB, free: 4.672 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005004/0.2057, allocations: 0.984 MB / 0.7232 GB, free: 3.664 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001946/0.2059, allocations: 45.34 kB / 0.7232 GB, free: 3.621 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001142/0.2061, allocations: 35.41 kB / 0.7233 GB, free: 3.586 MB / 0.5137 GB Notification: Performance of SimCode: time 5.71e-07/0.2061, allocations: 0 / 0.7233 GB, free: 3.586 MB / 0.5137 GB Notification: Performance of Templates: time 0.02141/0.2275, allocations: 14.16 MB / 0.7371 GB, free: 5.488 MB / 0.5294 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & ./BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)