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.004523/0.004523, allocations: 111.1 kB / 15.71 MB, free: 6.48 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.001075/0.001075, allocations: 192.5 kB / 16.64 MB, free: 6.395 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.304/1.304, allocations: 222.9 MB / 240.3 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002077/0.002077, allocations: 282.4 kB / 290.8 MB, free: 1.945 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9548/0.9548, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00176/0.00176, allocations: 95.84 kB / 0.6815 GB, free: 15.46 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1467/0.1485, allocations: 86.97 MB / 0.7664 GB, free: 8.402 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.00214/0.1507, allocations: 1.416 MB / 0.7678 GB, free: 6.977 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.005946/0.1566, allocations: 4.204 MB / 0.7719 GB, free: 2.75 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.476e-05/0.1567, allocations: 0 / 0.7719 GB, free: 2.75 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.000111/0.1568, allocations: 15.86 kB / 0.7719 GB, free: 2.734 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0002227/0.1571, allocations: 35.83 kB / 0.7719 GB, free: 2.699 MB / 0.5606 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.003408/0.1605, allocations: 1.507 MB / 0.7734 GB, free: 1.191 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001292/0.1607, allocations: 99.66 kB / 0.7735 GB, free: 1.094 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.782e-05/0.1607, allocations: 4 kB / 0.7735 GB, free: 1.09 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 6.512e-05/0.1608, allocations: 43.84 kB / 0.7735 GB, free: 1.047 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002139/0.161, allocations: 151.6 kB / 0.7737 GB, free: 0.8984 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 3.53e-05/0.1611, allocations: 16 kB / 0.7737 GB, free: 0.8828 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.2987/0.4597, allocations: 2.198 MB / 0.7759 GB, free: 9.137 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002455/0.46, allocations: 268.5 kB / 0.7761 GB, free: 9.133 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002273/0.4602, allocations: 277.4 kB / 0.7764 GB, free: 8.992 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.003446/0.4637, allocations: 2.118 MB / 0.7784 GB, free: 8.793 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.4637, allocations: 0 / 0.7784 GB, free: 8.793 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.543e-06/0.4637, allocations: 1.094 kB / 0.7784 GB, free: 8.793 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.111e-05/0.4637, allocations: 0 / 0.7784 GB, free: 8.793 MB / 0.5606 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.01036/0.4741, allocations: 1.293 MB / 0.7797 GB, free: 7.938 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.602e-05/0.4741, allocations: 9.375 kB / 0.7797 GB, free: 7.938 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003846/0.4745, allocations: 93.56 kB / 0.7798 GB, free: 7.883 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003268/0.4749, allocations: 366.3 kB / 0.7802 GB, free: 7.609 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.103e-05/0.4749, allocations: 3.094 kB / 0.7802 GB, free: 7.609 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.616e-05/0.4749, allocations: 13.06 kB / 0.7802 GB, free: 7.609 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004146/0.4754, allocations: 391.8 kB / 0.7805 GB, free: 7.562 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.4754, allocations: 3.938 kB / 0.7805 GB, free: 7.559 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.284e-05/0.4754, allocations: 0.8125 kB / 0.7806 GB, free: 7.559 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.4754, allocations: 1 kB / 0.7806 GB, free: 7.559 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004348/0.4759, allocations: 437.2 kB / 0.781 GB, free: 7.559 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005257/0.4764, allocations: 0.631 MB / 0.7816 GB, free: 7.273 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005229/0.4769, allocations: 0.5652 MB / 0.7821 GB, free: 7.227 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002877/0.4772, allocations: 336.6 kB / 0.7825 GB, free: 7.211 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007604/0.478, allocations: 1.026 MB / 0.7835 GB, free: 6.086 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003605/0.4784, allocations: 406 kB / 0.7838 GB, free: 6.02 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=8): time 1.724e-06/0.4784, allocations: 0 / 0.7838 GB, free: 6.02 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8): time 0.001217/0.4796, allocations: 1.291 MB / 0.7851 GB, free: 5.938 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.188e-05/0.4796, allocations: 85.25 kB / 0.7852 GB, free: 5.84 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00118/0.4808, allocations: 1.217 MB / 0.7864 GB, free: 5.602 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 5.042e-05/0.4809, allocations: 31.88 kB / 0.7864 GB, free: 5.57 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001644/0.4811, allocations: 261.3 kB / 0.7867 GB, free: 5.438 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.48e-05/0.4811, allocations: 18.55 kB / 0.7867 GB, free: 5.43 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003177/0.4814, allocations: 354.5 kB / 0.787 GB, free: 5.414 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.153e-05/0.4815, allocations: 313.6 kB / 0.7873 GB, free: 5.109 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001093/0.4826, allocations: 1.367 MB / 0.7886 GB, free: 4.953 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00126/0.4838, allocations: 1.508 MB / 0.7901 GB, free: 4.426 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007453/0.4913, allocations: 3.56 MB / 0.7936 GB, free: 2.582 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.671e-06/0.4913, allocations: 0.8125 kB / 0.7936 GB, free: 2.582 MB / 0.5606 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003963/0.4953, allocations: 4.005 MB / 0.7975 GB, free: 0.6133 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.15e-05/0.4953, allocations: 11.02 kB / 0.7975 GB, free: 0.6094 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.854e-05/0.4954, allocations: 2.781 kB / 0.7975 GB, free: 0.6094 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.008e-05/0.4954, allocations: 1.469 kB / 0.7975 GB, free: 0.6094 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001276/0.4955, allocations: 17.53 kB / 0.7975 GB, free: 0.6094 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.306e-06/0.4955, allocations: 3.484 kB / 0.7975 GB, free: 0.6094 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005209/0.4961, allocations: 238.1 kB / 0.7978 GB, free: 428 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.54e-05/0.4961, allocations: 24.56 kB / 0.7978 GB, free: 428 kB / 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.0003062/0.4964, allocations: 239.1 kB / 0.798 GB, free: 308 kB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.11e-05/0.4965, allocations: 70.28 kB / 0.7981 GB, free: 252 kB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002586/0.4968, allocations: 76.39 kB / 0.7982 GB, free: 192 kB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.4968, allocations: 1.406 kB / 0.7982 GB, free: 192 kB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.4968, allocations: 0.9688 kB / 0.7982 GB, free: 192 kB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.4968, allocations: 3.859 kB / 0.7982 GB, free: 192 kB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004681/0.4973, allocations: 493.2 kB / 0.7986 GB, free: 15.92 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-06/0.4973, allocations: 4.031 kB / 0.7986 GB, free: 15.92 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.392e-05/0.4974, allocations: 11.66 kB / 0.7987 GB, free: 15.92 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.023e-06/0.4974, allocations: 5.156 kB / 0.7987 GB, free: 15.91 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.371e-05/0.4974, allocations: 7.672 kB / 0.7987 GB, free: 15.91 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.4974, allocations: 1.75 kB / 0.7987 GB, free: 15.91 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.4974, allocations: 4.031 kB / 0.7987 GB, free: 15.91 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001008/0.4984, allocations: 0.998 MB / 0.7996 GB, free: 15.76 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001287/0.4986, allocations: 161.9 kB / 0.7998 GB, free: 15.61 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.201e-05/0.4986, allocations: 1.766 kB / 0.7998 GB, free: 15.61 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001485/0.4988, allocations: 8.547 kB / 0.7998 GB, free: 15.61 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.943e-05/0.4988, allocations: 10.33 kB / 0.7998 GB, free: 15.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.705e-05/0.4989, allocations: 13.02 kB / 0.7998 GB, free: 15.6 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0008021/0.4997, allocations: 0.6699 MB / 0.8005 GB, free: 15.38 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4997, allocations: 0 / 0.8005 GB, free: 15.38 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002036/0.5017, allocations: 0.575 MB / 0.801 GB, free: 15.28 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.001868/0.5036, allocations: 0.6975 MB / 0.8017 GB, free: 15.08 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002569/0.5062, allocations: 2.545 MB / 0.8042 GB, free: 14.06 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.5062, allocations: 1.688 kB / 0.8042 GB, free: 14.06 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003577/0.5066, allocations: 340.2 kB / 0.8045 GB, free: 14.05 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000368/0.507, allocations: 40.48 kB / 0.8046 GB, free: 14.02 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002193/0.5092, allocations: 1.745 MB / 0.8063 GB, free: 13.46 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005708/0.5097, allocations: 0.9675 MB / 0.8072 GB, free: 12.76 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001574/0.5099, allocations: 36.38 kB / 0.8073 GB, free: 12.75 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001066/0.51, allocations: 29.55 kB / 0.8073 GB, free: 12.74 MB / 0.5762 GB Notification: Performance of SimCode: time 5.91e-07/0.51, allocations: 0 / 0.8073 GB, free: 12.74 MB / 0.5762 GB Notification: Performance of Templates: time 0.02288/0.5329, allocations: 13.57 MB / 0.8205 GB, free: 8.414 MB / 0.5762 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)