Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") translateModel(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.0009507/0.0009507, allocations: 96.34 kB / 15.68 MB, free: 488 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.001066/0.001066, allocations: 175.4 kB / 16.57 MB, free: 6.801 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.331/1.331, allocations: 223.2 MB / 240.5 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6543/0.6543, allocations: 113.8 MB / 405.4 MB, free: 4.523 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003219/0.000322, allocations: 11.98 kB / 493.1 MB, free: 8.527 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1643/0.1647, allocations: 77.15 MB / 0.5569 GB, free: 11.58 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.001852/0.1666, allocations: 1.379 MB / 0.5582 GB, free: 10.19 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.006916/0.1735, allocations: 4.858 MB / 0.563 GB, free: 5.312 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001069/0.1736, allocations: 0 / 0.563 GB, free: 5.312 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00114/0.1748, allocations: 350.8 kB / 0.5633 GB, free: 4.969 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001113/0.1749, allocations: 51.91 kB / 0.5634 GB, free: 4.918 MB / 430.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‘. Notification: Performance of NFTyping.typeClassSections: time 0.003148/0.1781, allocations: 1.073 MB / 0.5644 GB, free: 3.848 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002064/0.1783, allocations: 115.8 kB / 0.5645 GB, free: 3.734 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.091e-05/0.1784, allocations: 9.547 kB / 0.5645 GB, free: 3.727 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.796e-05/0.1784, allocations: 59.77 kB / 0.5646 GB, free: 3.668 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002182/0.1787, allocations: 163.6 kB / 0.5647 GB, free: 3.508 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 4.113e-05/0.1787, allocations: 16 kB / 0.5648 GB, free: 3.492 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002793/0.1815, allocations: 1.864 MB / 0.5666 GB, free: 1.625 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002004/0.1817, allocations: 263.2 kB / 0.5668 GB, free: 1.367 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001284/0.1819, allocations: 121.1 kB / 0.5669 GB, free: 1.242 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001867/0.1837, allocations: 1.45 MB / 0.5684 GB, free: 15.79 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.1838, allocations: 0 / 0.5684 GB, free: 15.79 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.1838, allocations: 0 / 0.5684 GB, free: 15.79 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.928e-06/0.1838, allocations: 0 / 0.5684 GB, free: 15.79 MB / 446.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.01053/0.1943, allocations: 1.323 MB / 0.5696 GB, free: 14.41 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.1944, allocations: 12.02 kB / 0.5697 GB, free: 14.4 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003974/0.1948, allocations: 90.66 kB / 0.5697 GB, free: 14.31 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005123/0.1953, allocations: 397 kB / 0.5701 GB, free: 13.88 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.898e-05/0.1953, allocations: 8 kB / 0.5701 GB, free: 13.87 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.759e-05/0.1954, allocations: 8 kB / 0.5701 GB, free: 13.86 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004575/0.1958, allocations: 395.1 kB / 0.5705 GB, free: 13.46 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.687e-06/0.1959, allocations: 0 / 0.5705 GB, free: 13.46 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.361e-05/0.1959, allocations: 0 / 0.5705 GB, free: 13.46 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.1959, allocations: 0 / 0.5705 GB, free: 13.46 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004274/0.1963, allocations: 435.7 kB / 0.5709 GB, free: 13.04 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000642/0.197, allocations: 0.6732 MB / 0.5716 GB, free: 12.31 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005259/0.1975, allocations: 0.5632 MB / 0.5721 GB, free: 11.73 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001042/0.1986, allocations: 1.036 MB / 0.5732 GB, free: 10.47 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004203/0.199, allocations: 408.8 kB / 0.5735 GB, free: 10.05 MB / 446.1 MB Notification: Performance of pre-optimization done (n=8): time 1.283e-06/0.199, allocations: 0 / 0.5735 GB, free: 10.05 MB / 446.1 MB Notification: Performance of matching and sorting (n=8): time 0.001321/0.2003, allocations: 1.296 MB / 0.5748 GB, free: 8.75 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.058e-05/0.2004, allocations: 85.11 kB / 0.5749 GB, free: 8.648 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001259/0.2017, allocations: 1.278 MB / 0.5761 GB, free: 7.359 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.072e-05/0.2017, allocations: 29.7 kB / 0.5762 GB, free: 7.324 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002202/0.2019, allocations: 289.4 kB / 0.5764 GB, free: 7.035 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.603e-05/0.202, allocations: 27.64 kB / 0.5765 GB, free: 7.008 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.227e-05/0.202, allocations: 128 / 0.5765 GB, free: 7.008 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000196/0.2022, allocations: 427.9 kB / 0.5769 GB, free: 6.582 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00127/0.2035, allocations: 1.373 MB / 0.5782 GB, free: 5.207 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001361/0.2049, allocations: 1.505 MB / 0.5797 GB, free: 3.691 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001617/0.2065, allocations: 1.91 MB / 0.5816 GB, free: 1.766 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.2065, allocations: 4 kB / 0.5816 GB, free: 1.762 MB / 446.1 MB Notification: Performance of matching and sorting (n=319) (initialization): time 0.2434/0.4499, allocations: 3.981 MB / 0.5854 GB, free: 31.61 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.222e-05/0.45, allocations: 5.25 kB / 0.5854 GB, free: 31.61 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.959e-05/0.45, allocations: 6.859 kB / 0.5855 GB, free: 31.61 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.45, allocations: 1.781 kB / 0.5855 GB, free: 31.61 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001338/0.4502, allocations: 15.3 kB / 0.5855 GB, free: 31.61 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.065e-06/0.4502, allocations: 2.906 kB / 0.5855 GB, free: 31.61 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004748/0.4507, allocations: 229.8 kB / 0.5857 GB, free: 31.45 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.535e-05/0.4507, allocations: 26.69 kB / 0.5857 GB, free: 31.45 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition1,$PRE.k,k,$PRE.t1,t1,$PRE.t2,t2,$PRE.gFun1,gFun1,$PRE.gFun2,gFun2,labels[1],cluSiz[1]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003262/0.4511, allocations: 251.4 kB / 0.586 GB, free: 31.34 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.048e-05/0.4511, allocations: 77.86 kB / 0.586 GB, free: 31.28 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002789/0.4514, allocations: 83.77 kB / 0.5861 GB, free: 31.23 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.92e-06/0.4514, allocations: 1.562 kB / 0.5861 GB, free: 31.23 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.4514, allocations: 0.7812 kB / 0.5861 GB, free: 31.23 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.4514, allocations: 4.359 kB / 0.5861 GB, free: 31.23 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005218/0.452, allocations: 0.5164 MB / 0.5866 GB, free: 31.04 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.452, allocations: 0 / 0.5866 GB, free: 31.04 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.139e-05/0.4521, allocations: 12.11 kB / 0.5866 GB, free: 31.04 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.4521, allocations: 0 / 0.5866 GB, free: 31.04 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.303e-05/0.4521, allocations: 5.156 kB / 0.5866 GB, free: 31.04 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.013e-06/0.4521, allocations: 1.406 kB / 0.5866 GB, free: 31.04 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.4521, allocations: 0.5938 kB / 0.5866 GB, free: 31.04 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001136/0.4532, allocations: 1.024 MB / 0.5876 GB, free: 30.89 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.628e-05/0.4533, allocations: 162.6 kB / 0.5878 GB, free: 30.74 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.198e-05/0.4534, allocations: 5.094 kB / 0.5878 GB, free: 30.74 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001552/0.4536, allocations: 7.344 kB / 0.5878 GB, free: 30.74 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.756e-05/0.4536, allocations: 5.578 kB / 0.5878 GB, free: 30.74 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.873e-05/0.4537, allocations: 14.86 kB / 0.5878 GB, free: 30.74 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001099/0.4548, allocations: 0.7119 MB / 0.5885 GB, free: 30.63 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.613e-06/0.4548, allocations: 2.312 kB / 0.5885 GB, free: 30.63 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002017/0.4568, allocations: 0.5831 MB / 0.5891 GB, free: 30.62 MB / 446.1 MB 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001967/0.4588, allocations: 0.6864 MB / 0.5898 GB, free: 30.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002547/0.4614, allocations: 2.553 MB / 0.5923 GB, free: 29.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.4614, allocations: 0 / 0.5923 GB, free: 29.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004093/0.4618, allocations: 341 kB / 0.5926 GB, free: 29.59 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003274/0.4621, allocations: 51.53 kB / 0.5926 GB, free: 29.56 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002801/0.4649, allocations: 1.982 MB / 0.5946 GB, free: 28.84 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005694/0.4655, allocations: 1.009 MB / 0.5956 GB, free: 28.13 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.000196/0.4657, allocations: 41.81 kB / 0.5956 GB, free: 28.12 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001126/0.4658, allocations: 27.75 kB / 0.5956 GB, free: 28.12 MB / 446.1 MB Notification: Performance of SimCode: time 1.092e-06/0.4658, allocations: 0 / 0.5956 GB, free: 28.12 MB / 446.1 MB Notification: Performance of Templates: time 0.02547/0.4913, allocations: 13.59 MB / 0.6089 GB, free: 23.61 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile (rm -f IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & ./IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)