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.001422/0.001422, allocations: 106.4 kB / 16.41 MB, free: 6.504 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.001236/0.001236, allocations: 189.7 kB / 17.34 MB, free: 5.742 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.308/1.308, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002202/0.002202, allocations: 292.8 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9419/0.9419, allocations: 169.3 MB / 0.499 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002031/0.002031, allocations: 95.86 kB / 0.6822 GB, free: 6.891 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.468/0.47, allocations: 86.97 MB / 0.7671 GB, free: 3.918 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002495/0.4726, allocations: 1.427 MB / 0.7685 GB, free: 2.484 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0065/0.4791, allocations: 4.201 MB / 0.7726 GB, free: 14.27 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.662e-05/0.4792, allocations: 0 / 0.7726 GB, free: 14.27 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001374/0.4793, allocations: 15.86 kB / 0.7726 GB, free: 14.25 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0002759/0.4797, allocations: 31.83 kB / 0.7727 GB, free: 14.22 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.004423/0.4841, allocations: 1.499 MB / 0.7741 GB, free: 12.71 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001845/0.4843, allocations: 95.73 kB / 0.7742 GB, free: 12.62 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 6.199e-05/0.4844, allocations: 7.984 kB / 0.7742 GB, free: 12.61 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 9.867e-05/0.4845, allocations: 51.77 kB / 0.7743 GB, free: 12.56 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002447/0.4847, allocations: 147.6 kB / 0.7744 GB, free: 12.42 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 5.024e-05/0.4848, allocations: 12 kB / 0.7744 GB, free: 12.41 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003855/0.4887, allocations: 2.2 MB / 0.7766 GB, free: 10.2 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.000255/0.4889, allocations: 267.8 kB / 0.7768 GB, free: 9.941 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0002987/0.4892, allocations: 278.3 kB / 0.7771 GB, free: 9.668 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.004225/0.4935, allocations: 2.115 MB / 0.7792 GB, free: 7.551 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.4935, allocations: 3.938 kB / 0.7792 GB, free: 7.547 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.104e-06/0.4935, allocations: 0 / 0.7792 GB, free: 7.547 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.838e-05/0.4935, 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.01041/0.5039, allocations: 1.304 MB / 0.7804 GB, free: 6.191 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.504, allocations: 8.031 kB / 0.7804 GB, free: 6.184 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004445/0.5045, allocations: 87.69 kB / 0.7805 GB, free: 6.098 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004701/0.505, allocations: 361 kB / 0.7809 GB, free: 5.695 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.274e-05/0.505, allocations: 4.375 kB / 0.7809 GB, free: 5.691 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.638e-05/0.505, allocations: 16.34 kB / 0.7809 GB, free: 5.676 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004466/0.5055, allocations: 391.4 kB / 0.7813 GB, free: 5.281 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.5055, allocations: 4 kB / 0.7813 GB, free: 5.277 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.741e-05/0.5055, allocations: 3.938 kB / 0.7813 GB, free: 5.273 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.5056, allocations: 3.938 kB / 0.7813 GB, free: 5.27 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004581/0.506, allocations: 435.7 kB / 0.7817 GB, free: 4.844 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006975/0.5067, allocations: 0.6327 MB / 0.7823 GB, free: 4.16 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005394/0.5073, allocations: 0.5673 MB / 0.7829 GB, free: 3.574 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003222/0.5076, allocations: 333.6 kB / 0.7832 GB, free: 3.242 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001154/0.5088, allocations: 1.025 MB / 0.7842 GB, free: 1.996 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004215/0.5092, allocations: 404.8 kB / 0.7846 GB, free: 1.582 MB / 0.545 GB Notification: Performance of pre-optimization done (n=8): time 1.774e-06/0.5092, allocations: 3.938 kB / 0.7846 GB, free: 1.578 MB / 0.545 GB Notification: Performance of matching and sorting (n=8): time 0.001343/0.5106, allocations: 1.289 MB / 0.7858 GB, free: 288 kB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.89e-05/0.5106, allocations: 85.17 kB / 0.7859 GB, free: 184 kB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001205/0.5119, allocations: 1.218 MB / 0.7871 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.55e-05/0.5119, allocations: 29.7 kB / 0.7871 GB, free: 14.91 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001955/0.5121, allocations: 261.4 kB / 0.7874 GB, free: 14.65 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.981e-05/0.5122, allocations: 23.73 kB / 0.7874 GB, free: 14.62 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000345/0.5125, allocations: 355.5 kB / 0.7877 GB, free: 14.27 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001176/0.5127, allocations: 318 kB / 0.788 GB, free: 13.96 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001198/0.5139, allocations: 1.369 MB / 0.7894 GB, free: 12.58 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001287/0.5152, allocations: 1.505 MB / 0.7908 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006981/0.5222, allocations: 3.557 MB / 0.7943 GB, free: 7.418 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.043e-06/0.5222, allocations: 0 / 0.7943 GB, free: 7.418 MB / 0.5606 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004538/0.5267, allocations: 4.006 MB / 0.7982 GB, free: 3.375 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.818e-05/0.5268, allocations: 6.344 kB / 0.7982 GB, free: 3.371 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.269e-05/0.5268, allocations: 4 kB / 0.7982 GB, free: 3.367 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.25e-05/0.5269, allocations: 4 kB / 0.7982 GB, free: 3.363 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001499/0.527, allocations: 19.92 kB / 0.7983 GB, free: 3.344 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.072e-05/0.527, allocations: 0 / 0.7983 GB, free: 3.344 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005327/0.5276, allocations: 240.2 kB / 0.7985 GB, free: 3.105 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.657e-05/0.5277, allocations: 28.02 kB / 0.7985 GB, free: 3.078 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.0003478/0.528, allocations: 233.7 kB / 0.7987 GB, free: 2.84 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.917e-05/0.5281, allocations: 70.72 kB / 0.7988 GB, free: 2.77 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003098/0.5284, allocations: 75 kB / 0.7989 GB, free: 2.684 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.574e-06/0.5285, allocations: 4 kB / 0.7989 GB, free: 2.68 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.201e-06/0.5285, allocations: 0 / 0.7989 GB, free: 2.68 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.5285, allocations: 4.031 kB / 0.7989 GB, free: 2.676 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004613/0.5289, allocations: 492.9 kB / 0.7994 GB, free: 2.148 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.529, allocations: 4 kB / 0.7994 GB, free: 2.145 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.769e-05/0.529, allocations: 11.92 kB / 0.7994 GB, free: 2.133 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.529, allocations: 0 / 0.7994 GB, free: 2.133 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.393e-05/0.5291, allocations: 11.94 kB / 0.7994 GB, free: 2.121 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.5291, allocations: 0 / 0.7994 GB, free: 2.121 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.5291, allocations: 0 / 0.7994 GB, free: 2.121 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001095/0.5302, allocations: 1.005 MB / 0.8004 GB, free: 1.094 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001665/0.5304, allocations: 159.7 kB / 0.8005 GB, free: 0.918 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.474e-05/0.5305, allocations: 4 kB / 0.8005 GB, free: 0.9141 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001429/0.5306, allocations: 3.984 kB / 0.8005 GB, free: 0.9102 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.601e-05/0.5307, allocations: 8 kB / 0.8005 GB, free: 0.9023 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.266e-05/0.5307, allocations: 15.97 kB / 0.8006 GB, free: 0.8867 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0008259/0.5315, allocations: 0.6728 MB / 0.8012 GB, free: 212 kB / 0.5606 GB Notification: Performance of sort global known variables: time 1.9e-07/0.5316, allocations: 0 / 0.8012 GB, free: 212 kB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001766/0.5333, allocations: 0.5701 MB / 0.8018 GB, free: 15.64 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.002625/0.536, allocations: 0.7006 MB / 0.8024 GB, free: 14.95 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002606/0.5386, allocations: 2.548 MB / 0.8049 GB, free: 12.38 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.5386, allocations: 0 / 0.8049 GB, free: 12.38 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.000366/0.539, allocations: 339.8 kB / 0.8053 GB, free: 12.05 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004051/0.5394, allocations: 48.28 kB / 0.8053 GB, free: 12 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002337/0.5417, allocations: 1.789 MB / 0.8071 GB, free: 10.17 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000605/0.5424, allocations: 0.964 MB / 0.808 GB, free: 9.18 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001254/0.5425, allocations: 31.41 kB / 0.808 GB, free: 9.148 MB / 0.5762 GB Notification: Performance of SimCode: time 8.71e-07/0.5425, allocations: 0 / 0.808 GB, free: 9.148 MB / 0.5762 GB Notification: Performance of Templates: time 0.0236/0.5661, allocations: 13.83 MB / 0.8215 GB, free: 11.32 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)