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.001549/0.001554, allocations: 99.92 kB / 16.4 MB, free: 6.457 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.001802/0.001802, allocations: 196 kB / 17.34 MB, free: 5.715 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.34/1.34, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7387/0.7387, allocations: 122.9 MB / 414.1 MB, free: 15.71 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001209/0.001209, allocations: 67.67 kB / 0.5685 GB, free: 28.51 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1318/0.133, allocations: 77.93 MB / 0.6446 GB, free: 8.961 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002971/0.136, allocations: 1.743 MB / 0.6463 GB, free: 7.211 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.008248/0.1443, allocations: 5.394 MB / 0.6516 GB, free: 1.789 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001944/0.1445, allocations: 3.938 kB / 0.6516 GB, free: 1.785 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001404/0.146, allocations: 374.4 kB / 0.652 GB, free: 1.418 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001408/0.1461, allocations: 63.59 kB / 0.652 GB, free: 1.355 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.004414/0.1506, allocations: 1.49 MB / 0.6535 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0002908/0.1509, allocations: 156.4 kB / 0.6536 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.989e-05/0.1509, allocations: 13.55 kB / 0.6536 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.593e-05/0.151, allocations: 67.64 kB / 0.6537 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000244/0.1513, allocations: 167.5 kB / 0.6539 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.51e-05/0.1513, allocations: 16 kB / 0.6539 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003463/0.1548, allocations: 2.207 MB / 0.656 GB, free: 13.24 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002189/0.155, allocations: 279.8 kB / 0.6563 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0002852/0.1553, allocations: 306.1 kB / 0.6566 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.002956/0.1583, allocations: 2.192 MB / 0.6587 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.1583, allocations: 0 / 0.6587 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.653e-06/0.1583, allocations: 0 / 0.6587 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.244e-05/0.1583, allocations: 4 kB / 0.6587 GB, free: 10.46 MB / 0.4981 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.0101/0.1684, allocations: 1.414 MB / 0.6601 GB, free: 8.992 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.1685, allocations: 12.62 kB / 0.6601 GB, free: 8.98 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003832/0.1689, allocations: 104.2 kB / 0.6602 GB, free: 8.879 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005148/0.1694, allocations: 402.4 kB / 0.6606 GB, free: 8.438 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.432e-05/0.1694, allocations: 16.3 kB / 0.6606 GB, free: 8.422 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.059e-05/0.1695, allocations: 8.375 kB / 0.6606 GB, free: 8.414 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000403/0.1699, allocations: 387.5 kB / 0.661 GB, free: 8.023 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.673e-06/0.1699, allocations: 0 / 0.661 GB, free: 8.023 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.581e-05/0.1699, allocations: 7.984 kB / 0.661 GB, free: 8.016 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.638e-06/0.1699, allocations: 3.938 kB / 0.661 GB, free: 8.012 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004066/0.1704, allocations: 431.8 kB / 0.6614 GB, free: 7.59 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005565/0.1709, allocations: 0.6698 MB / 0.6621 GB, free: 6.871 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000502/0.1714, allocations: 0.5594 MB / 0.6626 GB, free: 6.293 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002916/0.1717, allocations: 337.7 kB / 0.663 GB, free: 5.957 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008945/0.1726, allocations: 1.028 MB / 0.664 GB, free: 4.707 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003794/0.173, allocations: 408.8 kB / 0.6644 GB, free: 4.289 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.283e-06/0.173, allocations: 4 kB / 0.6644 GB, free: 4.285 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.001254/0.1743, allocations: 1.309 MB / 0.6656 GB, free: 2.969 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.32e-05/0.1744, allocations: 77.11 kB / 0.6657 GB, free: 2.875 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001184/0.1755, allocations: 1.294 MB / 0.667 GB, free: 1.57 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.284e-05/0.1756, allocations: 29.7 kB / 0.667 GB, free: 1.535 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001979/0.1758, allocations: 298 kB / 0.6673 GB, free: 1.238 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.277e-05/0.1758, allocations: 23.83 kB / 0.6673 GB, free: 1.215 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003072/0.1761, allocations: 351.6 kB / 0.6676 GB, free: 0.8672 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.509e-05/0.1762, allocations: 318 kB / 0.6679 GB, free: 0.5508 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001184/0.1774, allocations: 1.373 MB / 0.6693 GB, free: 15.18 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00123/0.1787, allocations: 1.505 MB / 0.6708 GB, free: 13.66 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006926/0.1856, allocations: 3.564 MB / 0.6742 GB, free: 10 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.1856, allocations: 0 / 0.6742 GB, free: 10 MB / 0.5137 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004037/0.1897, allocations: 4.019 MB / 0.6782 GB, free: 5.949 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.1897, allocations: 4 kB / 0.6782 GB, free: 5.945 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.742e-05/0.1897, allocations: 4.078 kB / 0.6782 GB, free: 5.941 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.1898, allocations: 4.031 kB / 0.6782 GB, free: 5.938 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000127/0.1899, allocations: 15.98 kB / 0.6782 GB, free: 5.922 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.1899, allocations: 3.984 kB / 0.6782 GB, free: 5.918 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000478/0.1904, allocations: 245.3 kB / 0.6784 GB, free: 5.676 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.881e-05/0.1905, allocations: 23.98 kB / 0.6784 GB, free: 5.652 MB / 0.5137 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.0002906/0.1908, allocations: 249.6 kB / 0.6787 GB, free: 5.398 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.377e-05/0.1908, allocations: 79.23 kB / 0.6788 GB, free: 5.32 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002636/0.1911, allocations: 83.81 kB / 0.6788 GB, free: 5.227 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.1911, allocations: 0 / 0.6788 GB, free: 5.227 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.473e-06/0.1911, allocations: 4 kB / 0.6788 GB, free: 5.223 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.1911, allocations: 4 kB / 0.6788 GB, free: 5.219 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004254/0.1916, allocations: 0.5179 MB / 0.6794 GB, free: 4.656 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.1916, allocations: 0 / 0.6794 GB, free: 4.656 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.258e-05/0.1917, allocations: 19.92 kB / 0.6794 GB, free: 4.637 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.1917, allocations: 7.969 kB / 0.6794 GB, free: 4.629 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.393e-05/0.1917, allocations: 4 kB / 0.6794 GB, free: 4.625 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.1917, allocations: 0 / 0.6794 GB, free: 4.625 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.1917, allocations: 0 / 0.6794 GB, free: 4.625 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008467/0.1926, allocations: 1.002 MB / 0.6804 GB, free: 3.602 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001107/0.1927, allocations: 172.3 kB / 0.6805 GB, free: 3.414 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.456e-05/0.1927, allocations: 8 kB / 0.6805 GB, free: 3.406 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001465/0.1929, allocations: 7.984 kB / 0.6805 GB, free: 3.398 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.095e-05/0.1929, allocations: 0 / 0.6805 GB, free: 3.398 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.978e-05/0.193, allocations: 15.97 kB / 0.6806 GB, free: 3.383 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0007377/0.1937, allocations: 0.7261 MB / 0.6813 GB, free: 2.652 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.61e-07/0.1937, allocations: 0 / 0.6813 GB, free: 2.652 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001299/0.195, allocations: 0.5923 MB / 0.6818 GB, free: 2.059 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.001632/0.1967, allocations: 0.6989 MB / 0.6825 GB, free: 1.371 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002151/0.1988, allocations: 2.548 MB / 0.685 GB, free: 14.81 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1988, allocations: 4 kB / 0.685 GB, free: 14.8 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0003224/0.1992, allocations: 339.8 kB / 0.6853 GB, free: 14.47 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003653/0.1996, allocations: 62.64 kB / 0.6854 GB, free: 14.41 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002029/0.2016, allocations: 1.889 MB / 0.6873 GB, free: 12.49 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000492/0.2021, allocations: 0.9878 MB / 0.6882 GB, free: 11.48 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0001534/0.2023, allocations: 49.34 kB / 0.6883 GB, free: 11.43 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001056/0.2024, allocations: 35.41 kB / 0.6883 GB, free: 11.39 MB / 0.5294 GB Notification: Performance of SimCode: time 6.01e-07/0.2024, allocations: 0 / 0.6883 GB, free: 11.39 MB / 0.5294 GB Notification: Performance of Templates: time 0.0222/0.2246, allocations: 14.18 MB / 0.7021 GB, free: 13.27 MB / 0.545 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)