Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.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_1borehole_5meters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters") translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001237/0.001237, allocations: 107.9 kB / 16.41 MB, free: 6.414 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.001245/0.001245, allocations: 191.5 kB / 17.34 MB, free: 5.691 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.425/1.425, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00346/0.00346, allocations: 292.4 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.003/1.003, allocations: 169.2 MB / 0.499 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002796/0.002796, allocations: 103.8 kB / 0.6822 GB, free: 6.91 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4419/0.4447, allocations: 86.98 MB / 0.7671 GB, free: 3.945 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.00259/0.4473, allocations: 1.417 MB / 0.7685 GB, free: 2.52 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.006681/0.454, allocations: 4.221 MB / 0.7726 GB, free: 14.28 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.116e-05/0.4541, allocations: 0 / 0.7726 GB, free: 14.28 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001242/0.4542, allocations: 11.86 kB / 0.7726 GB, free: 14.27 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0002294/0.4544, allocations: 31.84 kB / 0.7727 GB, free: 14.23 MB / 0.545 GB [/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.003986/0.4584, allocations: 1.507 MB / 0.7741 GB, free: 12.73 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.000171/0.4586, allocations: 99.73 kB / 0.7742 GB, free: 12.63 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 4.555e-05/0.4586, allocations: 0 / 0.7742 GB, free: 12.63 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 7.779e-05/0.4587, allocations: 47.78 kB / 0.7743 GB, free: 12.58 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000246/0.4589, allocations: 151.6 kB / 0.7744 GB, free: 12.43 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 3.575e-05/0.459, allocations: 12 kB / 0.7744 GB, free: 12.42 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003302/0.4623, allocations: 2.204 MB / 0.7766 GB, free: 10.21 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002459/0.4625, allocations: 271.7 kB / 0.7769 GB, free: 9.949 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0002547/0.4628, allocations: 278.3 kB / 0.7771 GB, free: 9.676 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.003125/0.4659, allocations: 2.128 MB / 0.7792 GB, free: 7.547 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.778e-06/0.4659, allocations: 0 / 0.7792 GB, free: 7.547 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.422e-06/0.4659, allocations: 0 / 0.7792 GB, free: 7.547 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.075e-06/0.4659, allocations: 0 / 0.7792 GB, free: 7.547 MB / 0.545 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.01102/0.4769, allocations: 1.34 MB / 0.7805 GB, free: 6.152 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.477, allocations: 12.02 kB / 0.7805 GB, free: 6.141 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004261/0.4774, allocations: 96.25 kB / 0.7806 GB, free: 6.047 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000458/0.4779, allocations: 365 kB / 0.781 GB, free: 5.641 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.63e-05/0.4779, allocations: 8.375 kB / 0.781 GB, free: 5.633 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.757e-05/0.4779, allocations: 4.375 kB / 0.781 GB, free: 5.629 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004855/0.4784, allocations: 395.4 kB / 0.7813 GB, free: 5.23 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.4784, allocations: 4 kB / 0.7814 GB, free: 5.227 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.346e-05/0.4784, allocations: 0 / 0.7814 GB, free: 5.227 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.239e-06/0.4784, allocations: 0 / 0.7814 GB, free: 5.227 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004746/0.4789, allocations: 435.7 kB / 0.7818 GB, free: 4.801 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000647/0.4796, allocations: 0.641 MB / 0.7824 GB, free: 4.109 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006228/0.4802, allocations: 0.5673 MB / 0.7829 GB, free: 3.523 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003418/0.4805, allocations: 333.6 kB / 0.7833 GB, free: 3.191 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001149/0.4817, allocations: 1.021 MB / 0.7843 GB, free: 1.949 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004561/0.4821, allocations: 416.8 kB / 0.7847 GB, free: 1.523 MB / 0.545 GB Notification: Performance of pre-optimization done (n=8): time 1.483e-06/0.4821, allocations: 3.938 kB / 0.7847 GB, free: 1.52 MB / 0.545 GB Notification: Performance of matching and sorting (n=8): time 0.001493/0.4836, allocations: 1.293 MB / 0.7859 GB, free: 224 kB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.952e-05/0.4837, allocations: 89.22 kB / 0.786 GB, free: 116 kB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001648/0.4853, allocations: 1.219 MB / 0.7872 GB, free: 14.88 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 5.238e-05/0.4854, allocations: 29.61 kB / 0.7872 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.00023/0.4856, allocations: 269.9 kB / 0.7875 GB, free: 14.57 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.409e-05/0.4857, allocations: 27.78 kB / 0.7875 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003727/0.486, allocations: 351.6 kB / 0.7879 GB, free: 14.2 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001406/0.4862, allocations: 310 kB / 0.7881 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001406/0.4876, allocations: 1.373 MB / 0.7895 GB, free: 12.51 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001508/0.4891, allocations: 1.509 MB / 0.791 GB, free: 10.99 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007531/0.4966, allocations: 3.564 MB / 0.7944 GB, free: 7.336 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.652e-06/0.4966, allocations: 0 / 0.7944 GB, free: 7.336 MB / 0.5606 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004701/0.5013, allocations: 4.007 MB / 0.7984 GB, free: 3.293 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/0.5014, allocations: 4 kB / 0.7984 GB, free: 3.289 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.065e-05/0.5014, allocations: 4 kB / 0.7984 GB, free: 3.285 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.818e-05/0.5014, allocations: 3.938 kB / 0.7984 GB, free: 3.281 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001407/0.5015, allocations: 15.98 kB / 0.7984 GB, free: 3.266 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.5015, allocations: 0 / 0.7984 GB, free: 3.266 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005244/0.5021, allocations: 241.4 kB / 0.7986 GB, free: 3.027 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.43e-05/0.5021, allocations: 28.02 kB / 0.7986 GB, free: 3 MB / 0.5606 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.0003411/0.5025, allocations: 237.7 kB / 0.7989 GB, free: 2.758 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.282e-05/0.5025, allocations: 79.22 kB / 0.7989 GB, free: 2.68 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002781/0.5028, allocations: 67.08 kB / 0.799 GB, free: 2.602 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.5028, allocations: 4 kB / 0.799 GB, free: 2.598 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.5028, allocations: 0 / 0.799 GB, free: 2.598 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.421e-06/0.5028, allocations: 8.016 kB / 0.799 GB, free: 2.59 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004826/0.5033, allocations: 0.4969 MB / 0.7995 GB, free: 2.047 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.5033, allocations: 0 / 0.7995 GB, free: 2.047 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.514e-05/0.5034, allocations: 7.938 kB / 0.7995 GB, free: 2.039 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.5034, allocations: 0 / 0.7995 GB, free: 2.039 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.688e-05/0.5034, allocations: 7.984 kB / 0.7995 GB, free: 2.031 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.5034, allocations: 4 kB / 0.7995 GB, free: 2.027 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.5034, allocations: 0 / 0.7995 GB, free: 2.027 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001078/0.5045, allocations: 1.006 MB / 0.8005 GB, free: 1 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001309/0.5046, allocations: 160.4 kB / 0.8007 GB, free: 0.8242 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.743e-05/0.5047, allocations: 4 kB / 0.8007 GB, free: 0.8203 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001331/0.5048, allocations: 0 / 0.8007 GB, free: 0.8203 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.918e-05/0.5048, allocations: 7.984 kB / 0.8007 GB, free: 0.8125 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.974e-05/0.5049, allocations: 15.98 kB / 0.8007 GB, free: 0.7969 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0007751/0.5057, allocations: 0.6767 MB / 0.8013 GB, free: 116 kB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/0.5057, allocations: 3.938 kB / 0.8013 GB, free: 112 kB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001588/0.5073, allocations: 0.5883 MB / 0.8019 GB, free: 15.52 MB / 0.5762 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.00187/0.5091, allocations: 0.6992 MB / 0.8026 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002236/0.5114, allocations: 1.994 MB / 0.8046 GB, free: 12.83 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.5114, allocations: 3.938 kB / 0.8046 GB, free: 12.82 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003668/0.5117, allocations: 335.8 kB / 0.8049 GB, free: 12.5 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003205/0.512, allocations: 36.7 kB / 0.8049 GB, free: 12.46 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002291/0.5143, allocations: 1.774 MB / 0.8066 GB, free: 10.64 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006239/0.515, allocations: 0.9679 MB / 0.8076 GB, free: 9.648 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001301/0.5151, allocations: 36.48 kB / 0.8076 GB, free: 9.613 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001028/0.5152, allocations: 23.42 kB / 0.8076 GB, free: 9.59 MB / 0.5762 GB Notification: Performance of SimCode: time 6.31e-07/0.5152, allocations: 4 kB / 0.8076 GB, free: 9.586 MB / 0.5762 GB Notification: Performance of Templates: time 0.02442/0.5396, allocations: 13.59 MB / 0.8209 GB, free: 12.04 MB / 0.5919 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & ./BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)