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.001213/0.001213, allocations: 105.6 kB / 16.4 MB, free: 6.492 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.001194/0.001194, allocations: 195.8 kB / 17.34 MB, free: 5.762 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.246/1.246, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6657/0.6657, allocations: 115.3 MB / 406.5 MB, free: 6.188 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00117/0.00117, allocations: 66.52 kB / 0.5578 GB, free: 32.34 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.1221, allocations: 76.18 MB / 0.6321 GB, free: 4.5 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002513/0.1246, allocations: 1.738 MB / 0.6338 GB, free: 2.75 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.006733/0.1314, allocations: 5.386 MB / 0.6391 GB, free: 13.34 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.482e-05/0.1315, allocations: 0 / 0.6391 GB, free: 13.34 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001059/0.1326, allocations: 374.4 kB / 0.6395 GB, free: 12.97 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000111/0.1327, allocations: 59.66 kB / 0.6395 GB, free: 12.91 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/IBPSA 4.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.003308/0.136, allocations: 1.511 MB / 0.641 GB, free: 11.4 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002406/0.1363, allocations: 159.4 kB / 0.6411 GB, free: 11.24 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.148e-05/0.1363, allocations: 13.55 kB / 0.6412 GB, free: 11.23 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.089e-05/0.1364, allocations: 63.77 kB / 0.6412 GB, free: 11.17 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002067/0.1366, allocations: 167.4 kB / 0.6414 GB, free: 11 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.049e-05/0.1367, allocations: 16 kB / 0.6414 GB, free: 10.99 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002946/0.1396, allocations: 2.204 MB / 0.6435 GB, free: 8.781 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000194/0.1398, allocations: 275.8 kB / 0.6438 GB, free: 8.508 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002195/0.1401, allocations: 310.1 kB / 0.6441 GB, free: 8.203 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002435/0.1425, allocations: 2.186 MB / 0.6462 GB, free: 6.012 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.1425, allocations: 3.938 kB / 0.6462 GB, free: 6.008 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1425, allocations: 0 / 0.6462 GB, free: 6.008 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.734e-06/0.1426, allocations: 0 / 0.6462 GB, free: 6.008 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.009872/0.1524, allocations: 1.366 MB / 0.6476 GB, free: 4.59 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/0.1525, allocations: 11.97 kB / 0.6476 GB, free: 4.578 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003802/0.1529, allocations: 95.59 kB / 0.6477 GB, free: 4.484 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004843/0.1534, allocations: 406.3 kB / 0.6481 GB, free: 4.039 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.133e-06/0.1534, allocations: 384 / 0.6481 GB, free: 4.039 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.094e-05/0.1534, allocations: 12.36 kB / 0.6481 GB, free: 4.027 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004052/0.1538, allocations: 391.5 kB / 0.6485 GB, free: 3.633 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.123e-06/0.1539, allocations: 4 kB / 0.6485 GB, free: 3.629 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.181e-05/0.1539, allocations: 4 kB / 0.6485 GB, free: 3.625 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.1539, allocations: 0 / 0.6485 GB, free: 3.625 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004339/0.1543, allocations: 439.7 kB / 0.6489 GB, free: 3.195 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005934/0.1549, allocations: 0.6653 MB / 0.6495 GB, free: 2.48 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004831/0.1554, allocations: 0.5711 MB / 0.6501 GB, free: 1.891 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002866/0.1557, allocations: 333.7 kB / 0.6504 GB, free: 1.559 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000919/0.1566, allocations: 1.025 MB / 0.6514 GB, free: 320 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003757/0.157, allocations: 408.8 kB / 0.6518 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.402e-06/0.157, allocations: 0 / 0.6518 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.001212/0.1583, allocations: 1.3 MB / 0.6531 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.045e-05/0.1583, allocations: 85.22 kB / 0.6531 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001155/0.1595, allocations: 1.289 MB / 0.6544 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.799e-05/0.1595, allocations: 29.7 kB / 0.6544 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001928/0.1597, allocations: 289.3 kB / 0.6547 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.044e-05/0.1598, allocations: 19.75 kB / 0.6547 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003077/0.1601, allocations: 351.6 kB / 0.6551 GB, free: 12.49 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001062/0.1602, allocations: 322 kB / 0.6554 GB, free: 12.17 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001159/0.1614, allocations: 1.377 MB / 0.6567 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001202/0.1626, allocations: 1.497 MB / 0.6582 GB, free: 9.285 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006636/0.1692, allocations: 3.56 MB / 0.6617 GB, free: 5.633 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.581e-06/0.1693, allocations: 0 / 0.6617 GB, free: 5.633 MB / 0.4981 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003991/0.1733, allocations: 4.014 MB / 0.6656 GB, free: 1.582 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.686e-05/0.1733, allocations: 4 kB / 0.6656 GB, free: 1.578 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.915e-05/0.1733, allocations: 7.984 kB / 0.6656 GB, free: 1.57 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.687e-05/0.1733, allocations: 0 / 0.6656 GB, free: 1.57 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001281/0.1735, allocations: 12 kB / 0.6656 GB, free: 1.559 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.04e-05/0.1735, allocations: 7.938 kB / 0.6656 GB, free: 1.551 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004662/0.174, allocations: 236.3 kB / 0.6658 GB, free: 1.316 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.471e-05/0.174, allocations: 28.02 kB / 0.6659 GB, free: 1.289 MB / 0.4981 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.0002883/0.1743, allocations: 241.7 kB / 0.6661 GB, free: 1.043 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.229e-05/0.1744, allocations: 78.62 kB / 0.6662 GB, free: 0.9648 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002647/0.1747, allocations: 91.61 kB / 0.6663 GB, free: 0.8672 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.1747, allocations: 0 / 0.6663 GB, free: 0.8672 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.1747, allocations: 4 kB / 0.6663 GB, free: 0.8633 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.1747, allocations: 4.031 kB / 0.6663 GB, free: 0.8594 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000414/0.1751, allocations: 0.514 MB / 0.6668 GB, free: 308 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.1751, allocations: 4 kB / 0.6668 GB, free: 304 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.784e-05/0.1752, allocations: 7.938 kB / 0.6668 GB, free: 296 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.1752, allocations: 0 / 0.6668 GB, free: 296 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.503e-05/0.1752, allocations: 11.98 kB / 0.6668 GB, free: 284 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.1752, allocations: 0 / 0.6668 GB, free: 284 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1752, allocations: 0 / 0.6668 GB, free: 284 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008458/0.1761, allocations: 1.006 MB / 0.6678 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001013/0.1762, allocations: 171.6 kB / 0.6679 GB, free: 15.06 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.233e-05/0.1763, allocations: 4 kB / 0.6679 GB, free: 15.06 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001442/0.1764, allocations: 4 kB / 0.6679 GB, free: 15.05 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.843e-05/0.1765, allocations: 7.984 kB / 0.6679 GB, free: 15.05 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.418e-05/0.1765, allocations: 11.98 kB / 0.668 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0007004/0.1772, allocations: 0.7261 MB / 0.6687 GB, free: 14.3 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1772, allocations: 0 / 0.6687 GB, free: 14.3 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001287/0.1785, allocations: 0.5818 MB / 0.6692 GB, free: 13.72 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.0016/0.1801, allocations: 0.682 MB / 0.6699 GB, free: 13.05 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002105/0.1822, allocations: 2.56 MB / 0.6724 GB, free: 10.48 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.1823, allocations: 0 / 0.6724 GB, free: 10.48 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002922/0.1826, allocations: 339.7 kB / 0.6727 GB, free: 10.14 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003785/0.1829, allocations: 56.7 kB / 0.6728 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001954/0.1849, allocations: 1.873 MB / 0.6746 GB, free: 8.18 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004786/0.1854, allocations: 0.9879 MB / 0.6756 GB, free: 7.164 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001319/0.1855, allocations: 37.42 kB / 0.6756 GB, free: 7.129 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.56e-05/0.1856, allocations: 31.42 kB / 0.6756 GB, free: 7.098 MB / 0.5137 GB Notification: Performance of SimCode: time 1.743e-06/0.1856, allocations: 0 / 0.6756 GB, free: 7.098 MB / 0.5137 GB Notification: Performance of Templates: time 0.02043/0.2061, allocations: 14.17 MB / 0.6895 GB, free: 8.98 MB / 0.5294 GB 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)