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_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/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_1borehole_5meters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters") translateModel(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.0009905/0.0009905, allocations: 92.86 kB / 15.7 MB, free: 472 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.0009039/0.0009039, allocations: 176.6 kB / 16.58 MB, free: 6.051 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.339/1.339, allocations: 223.3 MB / 240.6 MB, free: 5.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7662/0.7662, allocations: 115.5 MB / 407.2 MB, free: 2.797 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000311/0.000311, allocations: 8 kB / 495.3 MB, free: 6.672 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1365/0.1369, allocations: 77.53 MB / 0.5594 GB, free: 9.348 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002144/0.139, allocations: 1.131 MB / 0.5605 GB, free: 8.203 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.008424/0.1475, allocations: 3.899 MB / 0.5643 GB, free: 4.289 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.194e-05/0.1476, allocations: 3.938 kB / 0.5643 GB, free: 4.285 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00011/0.1477, allocations: 11.92 kB / 0.5643 GB, free: 4.273 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002561/0.148, allocations: 27.84 kB / 0.5643 GB, free: 4.246 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.003617/0.1516, allocations: 1.134 MB / 0.5654 GB, free: 3.113 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001279/0.1518, allocations: 103.7 kB / 0.5655 GB, free: 3.012 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.037e-05/0.1518, allocations: 3.938 kB / 0.5655 GB, free: 3.008 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.733e-05/0.1519, allocations: 51.84 kB / 0.5656 GB, free: 2.957 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002256/0.1521, allocations: 167.7 kB / 0.5657 GB, free: 2.793 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 3.445e-05/0.1522, allocations: 16 kB / 0.5658 GB, free: 2.777 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002794/0.155, allocations: 1.946 MB / 0.5677 GB, free: 0.8281 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001981/0.1552, allocations: 267.2 kB / 0.5679 GB, free: 0.5664 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001941/0.1554, allocations: 109.2 kB / 0.568 GB, free: 464 kB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001745/0.1571, allocations: 1.392 MB / 0.5694 GB, free: 15.06 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1572, allocations: 0 / 0.5694 GB, free: 15.06 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1572, allocations: 4 kB / 0.5694 GB, free: 15.05 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.204e-06/0.1572, allocations: 0 / 0.5694 GB, free: 15.05 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.007554/0.1647, allocations: 1.257 MB / 0.5706 GB, free: 13.75 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.1648, allocations: 8.031 kB / 0.5706 GB, free: 13.74 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003526/0.1651, allocations: 86.73 kB / 0.5707 GB, free: 13.65 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004088/0.1656, allocations: 359.8 kB / 0.571 GB, free: 13.25 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.509e-05/0.1656, allocations: 4 kB / 0.571 GB, free: 13.25 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.915e-05/0.1656, allocations: 8 kB / 0.571 GB, free: 13.24 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004368/0.1661, allocations: 403 kB / 0.5714 GB, free: 12.83 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.134e-06/0.1661, allocations: 0 / 0.5714 GB, free: 12.83 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.268e-05/0.1661, allocations: 0 / 0.5714 GB, free: 12.83 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.1661, allocations: 0 / 0.5714 GB, free: 12.83 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004284/0.1666, allocations: 431.8 kB / 0.5718 GB, free: 12.41 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005801/0.1671, allocations: 0.6365 MB / 0.5725 GB, free: 11.72 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000525/0.1677, allocations: 0.5673 MB / 0.573 GB, free: 11.14 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000316/0.168, allocations: 337.5 kB / 0.5733 GB, free: 10.8 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001018/0.169, allocations: 1.036 MB / 0.5744 GB, free: 9.543 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003982/0.1694, allocations: 404.8 kB / 0.5747 GB, free: 9.129 MB / 446.1 MB Notification: Performance of pre-optimization done (n=8): time 1.563e-06/0.1695, allocations: 0 / 0.5747 GB, free: 9.129 MB / 446.1 MB Notification: Performance of matching and sorting (n=8): time 0.001338/0.1708, allocations: 1.297 MB / 0.576 GB, free: 7.824 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.988e-05/0.1709, allocations: 77.11 kB / 0.5761 GB, free: 7.73 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001165/0.172, allocations: 1.21 MB / 0.5773 GB, free: 6.504 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.369e-05/0.1721, allocations: 25.7 kB / 0.5773 GB, free: 6.473 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001817/0.1723, allocations: 265.4 kB / 0.5775 GB, free: 6.207 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.381e-05/0.1723, allocations: 19.75 kB / 0.5776 GB, free: 6.188 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.399e-05/0.1723, allocations: 4.125 kB / 0.5776 GB, free: 6.184 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001943/0.1725, allocations: 419.9 kB / 0.578 GB, free: 5.766 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001288/0.1738, allocations: 1.369 MB / 0.5793 GB, free: 4.395 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001383/0.1752, allocations: 1.505 MB / 0.5808 GB, free: 2.879 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001711/0.1769, allocations: 1.91 MB / 0.5826 GB, free: 0.9531 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.177, allocations: 4 kB / 0.5826 GB, free: 0.9492 MB / 446.1 MB Notification: Performance of matching and sorting (n=319) (initialization): time 0.2352/0.4121, allocations: 3.976 MB / 0.5865 GB, free: 29.59 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.349e-05/0.4122, allocations: 8.828 kB / 0.5865 GB, free: 29.59 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.88e-05/0.4122, allocations: 2.891 kB / 0.5865 GB, free: 29.59 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.69e-05/0.4122, allocations: 1.641 kB / 0.5865 GB, free: 29.59 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000137/0.4124, allocations: 16.12 kB / 0.5865 GB, free: 29.59 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.795e-06/0.4124, allocations: 4.438 kB / 0.5866 GB, free: 29.59 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004238/0.4128, allocations: 236.1 kB / 0.5868 GB, free: 29.43 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.55e-05/0.4129, allocations: 24.38 kB / 0.5868 GB, free: 29.43 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.0003011/0.4132, allocations: 240.8 kB / 0.587 GB, free: 29.32 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.53e-05/0.4132, allocations: 66.88 kB / 0.5871 GB, free: 29.27 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002599/0.4135, allocations: 75.36 kB / 0.5872 GB, free: 29.21 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.429e-06/0.4135, allocations: 2.719 kB / 0.5872 GB, free: 29.21 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.4135, allocations: 0.625 kB / 0.5872 GB, free: 29.21 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.117e-06/0.4135, allocations: 1.984 kB / 0.5872 GB, free: 29.21 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004465/0.414, allocations: 0.5012 MB / 0.5877 GB, free: 29.02 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.103e-06/0.414, allocations: 1.469 kB / 0.5877 GB, free: 29.02 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.008e-05/0.4141, allocations: 11.23 kB / 0.5877 GB, free: 29.02 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.4141, allocations: 1.844 kB / 0.5877 GB, free: 29.02 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.252e-05/0.4141, allocations: 6.516 kB / 0.5877 GB, free: 29.02 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.4141, allocations: 1.5 kB / 0.5877 GB, free: 29.02 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.043e-06/0.4141, allocations: 1.328 kB / 0.5877 GB, free: 29.02 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009975/0.4151, allocations: 0.9967 MB / 0.5887 GB, free: 28.89 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.583e-05/0.4152, allocations: 154.8 kB / 0.5888 GB, free: 28.75 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.218e-05/0.4153, allocations: 5.188 kB / 0.5888 GB, free: 28.75 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001303/0.4154, allocations: 7.922 kB / 0.5888 GB, free: 28.75 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.52e-05/0.4155, allocations: 6.219 kB / 0.5888 GB, free: 28.75 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.543e-05/0.4155, allocations: 21.62 kB / 0.5888 GB, free: 28.75 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0007402/0.4162, allocations: 0.6618 MB / 0.5895 GB, free: 28.61 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4162, allocations: 2.281 kB / 0.5895 GB, free: 28.61 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001379/0.4176, allocations: 0.5677 MB / 0.59 GB, free: 28.59 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.001657/0.4193, allocations: 0.6856 MB / 0.5907 GB, free: 28.45 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002425/0.4217, allocations: 2.544 MB / 0.5932 GB, free: 27.43 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.185e-06/0.4217, allocations: 0 / 0.5932 GB, free: 27.43 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000418/0.4222, allocations: 339.4 kB / 0.5935 GB, free: 27.42 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002848/0.4225, allocations: 51.86 kB / 0.5936 GB, free: 27.39 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002298/0.4248, allocations: 1.835 MB / 0.5954 GB, free: 26.72 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004273/0.4252, allocations: 0.9649 MB / 0.5963 GB, free: 26.02 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001716/0.4254, allocations: 35.92 kB / 0.5963 GB, free: 26.02 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.687e-05/0.4255, allocations: 24.61 kB / 0.5964 GB, free: 26.01 MB / 446.1 MB Notification: Performance of SimCode: time 4.31e-07/0.4255, allocations: 0 / 0.5964 GB, free: 26.01 MB / 446.1 MB Notification: Performance of Templates: time 0.02044/0.4459, allocations: 13.01 MB / 0.6091 GB, free: 21.78 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.makefile (rm -f IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & ./IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)