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.001087/0.001087, allocations: 109.8 kB / 16.41 MB, free: 6.027 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.001092/0.001092, allocations: 188.5 kB / 17.34 MB, free: 5.633 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.338/1.338, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7613/0.7613, allocations: 115.3 MB / 406.5 MB, free: 6.148 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 63.17 kB / 0.5578 GB, free: 32.23 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1397/0.1409, allocations: 76.18 MB / 0.6321 GB, free: 4.355 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.00273/0.1437, allocations: 1.73 MB / 0.6338 GB, free: 2.613 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.00719/0.1509, allocations: 5.394 MB / 0.6391 GB, free: 13.19 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001108/0.151, allocations: 3.938 kB / 0.6391 GB, free: 13.19 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001148/0.1522, allocations: 378.3 kB / 0.6395 GB, free: 12.82 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001449/0.1524, allocations: 55.67 kB / 0.6395 GB, free: 12.76 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.003555/0.1559, allocations: 1.503 MB / 0.641 GB, free: 11.25 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002473/0.1562, allocations: 157.9 kB / 0.6411 GB, free: 11.1 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.483e-05/0.1563, allocations: 21.47 kB / 0.6412 GB, free: 11.08 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.454e-05/0.1563, allocations: 63.72 kB / 0.6412 GB, free: 11.02 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002063/0.1566, allocations: 167.4 kB / 0.6414 GB, free: 10.86 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.45e-05/0.1566, allocations: 16 kB / 0.6414 GB, free: 10.84 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003008/0.1596, allocations: 2.211 MB / 0.6436 GB, free: 8.625 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002129/0.1599, allocations: 283.7 kB / 0.6438 GB, free: 8.344 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002566/0.1601, allocations: 302.1 kB / 0.6441 GB, free: 8.047 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002786/0.1629, allocations: 2.178 MB / 0.6462 GB, free: 5.863 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.1629, allocations: 0 / 0.6462 GB, free: 5.863 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1629, allocations: 0 / 0.6462 GB, free: 5.863 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.386e-05/0.163, allocations: 0 / 0.6462 GB, free: 5.863 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.0105/0.1735, allocations: 1.374 MB / 0.6476 GB, free: 4.438 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.1735, allocations: 8.031 kB / 0.6476 GB, free: 4.43 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003927/0.1739, allocations: 95.58 kB / 0.6477 GB, free: 4.336 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005396/0.1745, allocations: 406.3 kB / 0.6481 GB, free: 3.891 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.059e-05/0.1745, allocations: 4.375 kB / 0.6481 GB, free: 3.887 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.305e-05/0.1745, allocations: 8.375 kB / 0.6481 GB, free: 3.879 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000395/0.1749, allocations: 395.4 kB / 0.6485 GB, free: 3.48 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.1749, allocations: 0 / 0.6485 GB, free: 3.48 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.152e-05/0.175, allocations: 4 kB / 0.6485 GB, free: 3.477 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.908e-06/0.175, allocations: 0 / 0.6485 GB, free: 3.477 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004121/0.1754, allocations: 431.8 kB / 0.6489 GB, free: 3.055 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005927/0.176, allocations: 0.6731 MB / 0.6495 GB, free: 2.332 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004759/0.1765, allocations: 0.5711 MB / 0.6501 GB, free: 1.742 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002842/0.1768, allocations: 337.6 kB / 0.6504 GB, free: 1.406 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008965/0.1777, allocations: 1.028 MB / 0.6514 GB, free: 160 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003876/0.1781, allocations: 404.8 kB / 0.6518 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.333e-06/0.1781, allocations: 0 / 0.6518 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.001254/0.1793, allocations: 1.3 MB / 0.6531 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.267e-05/0.1794, allocations: 77.11 kB / 0.6531 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001222/0.1806, allocations: 1.289 MB / 0.6544 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.014e-05/0.1807, allocations: 33.7 kB / 0.6544 GB, free: 13 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001921/0.1809, allocations: 289.4 kB / 0.6547 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.574e-05/0.1809, allocations: 19.75 kB / 0.6547 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003122/0.1812, allocations: 351.8 kB / 0.6551 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.562e-05/0.1813, allocations: 322 kB / 0.6554 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001174/0.1825, allocations: 1.373 MB / 0.6567 GB, free: 10.65 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00125/0.1838, allocations: 1.503 MB / 0.6582 GB, free: 9.137 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00701/0.1908, allocations: 3.56 MB / 0.6617 GB, free: 5.484 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.1908, allocations: 0 / 0.6617 GB, free: 5.484 MB / 0.4981 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004164/0.195, allocations: 4.014 MB / 0.6656 GB, free: 1.434 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.876e-05/0.195, allocations: 4 kB / 0.6656 GB, free: 1.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.572e-05/0.195, allocations: 7.938 kB / 0.6656 GB, free: 1.422 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.1951, allocations: 0 / 0.6656 GB, free: 1.422 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001292/0.1952, allocations: 24.02 kB / 0.6656 GB, free: 1.398 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.997e-06/0.1952, allocations: 4 kB / 0.6656 GB, free: 1.395 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004845/0.1957, allocations: 228.3 kB / 0.6658 GB, free: 1.168 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.044e-05/0.1958, allocations: 23.98 kB / 0.6659 GB, free: 1.145 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.0002937/0.1961, allocations: 245.6 kB / 0.6661 GB, free: 0.8945 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.136e-05/0.1961, allocations: 78.62 kB / 0.6662 GB, free: 0.8164 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002693/0.1964, allocations: 83.81 kB / 0.6662 GB, free: 0.7266 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.1964, allocations: 0 / 0.6662 GB, free: 0.7266 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.1964, allocations: 7.938 kB / 0.6663 GB, free: 0.7188 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.1965, allocations: 0 / 0.6663 GB, free: 0.7188 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004281/0.1969, allocations: 0.5179 MB / 0.6668 GB, free: 160 kB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1969, allocations: 0 / 0.6668 GB, free: 160 kB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.626e-05/0.197, allocations: 15.92 kB / 0.6668 GB, free: 144 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.197, allocations: 0 / 0.6668 GB, free: 144 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.367e-05/0.197, allocations: 4 kB / 0.6668 GB, free: 140 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.197, allocations: 7.969 kB / 0.6668 GB, free: 132 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.197, allocations: 0 / 0.6668 GB, free: 132 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008626/0.1979, allocations: 1.006 MB / 0.6678 GB, free: 15.1 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001229/0.198, allocations: 163.6 kB / 0.6679 GB, free: 14.92 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.141e-05/0.1981, allocations: 0 / 0.6679 GB, free: 14.92 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001681/0.1983, allocations: 11.98 kB / 0.6679 GB, free: 14.91 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.951e-05/0.1983, allocations: 8 kB / 0.6679 GB, free: 14.9 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.078e-05/0.1984, allocations: 11.97 kB / 0.668 GB, free: 14.89 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0007597/0.1991, allocations: 0.7261 MB / 0.6687 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1991, allocations: 0 / 0.6687 GB, free: 14.16 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0014/0.2005, allocations: 0.5779 MB / 0.6692 GB, free: 13.58 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.002015/0.2026, allocations: 0.694 MB / 0.6699 GB, free: 12.9 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002171/0.2047, allocations: 2.556 MB / 0.6724 GB, free: 10.33 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.2048, allocations: 0 / 0.6724 GB, free: 10.33 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0003089/0.2051, allocations: 339.8 kB / 0.6727 GB, free: 9.996 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003856/0.2055, allocations: 64.28 kB / 0.6728 GB, free: 9.934 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00212/0.2076, allocations: 1.869 MB / 0.6746 GB, free: 8.027 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004932/0.2081, allocations: 0.9879 MB / 0.6756 GB, free: 7.012 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001393/0.2082, allocations: 33.44 kB / 0.6756 GB, free: 6.98 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001013/0.2084, allocations: 31.41 kB / 0.6756 GB, free: 6.949 MB / 0.5137 GB Notification: Performance of SimCode: time 2.61e-07/0.2084, allocations: 4 kB / 0.6756 GB, free: 6.945 MB / 0.5137 GB Notification: Performance of Templates: time 0.02371/0.2321, allocations: 14.18 MB / 0.6895 GB, free: 8.824 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)