Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001123/0.001123, allocations: 92.2 kB / 20.19 MB, free: 4.359 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00159/0.00159, allocations: 173 kB / 23.49 MB, free: 1.059 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9288/0.9288, allocations: 177.1 MB / 203.8 MB, free: 5.652 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.005789/0.005789, allocations: 229.6 kB / 260.5 MB, free: 12.91 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 0.7457/0.7457, allocations: 138.4 MB / 455.4 MB, free: 1.457 MB / 362.7 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters") translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.854e-06/1.854e-06, allocations: 0 / 0.5551 GB, free: 0.7148 MB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.712e-05/2.898e-05, allocations: 2.312 kB / 0.5551 GB, free: 0.7109 MB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002746/0.002775, allocations: 1.469 MB / 0.5566 GB, free: 15.23 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.007136/0.009911, allocations: 4.02 MB / 0.5605 GB, free: 11.19 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.138e-05/0.01, allocations: 3.938 kB / 0.5605 GB, free: 11.18 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001346/0.01014, allocations: 15.92 kB / 0.5605 GB, free: 11.17 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002992/0.01044, allocations: 31.72 kB / 0.5605 GB, free: 11.14 MB / 490.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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/BuildingSystems 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.004581/0.01502, allocations: 1.597 MB / 0.5621 GB, free: 9.535 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001901/0.01521, allocations: 95.66 kB / 0.5622 GB, free: 9.441 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.301e-05/0.01526, allocations: 4 kB / 0.5622 GB, free: 9.438 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001236/0.01538, allocations: 63.88 kB / 0.5622 GB, free: 9.375 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002508/0.01563, allocations: 139.7 kB / 0.5624 GB, free: 9.238 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 4.371e-05/0.01568, allocations: 12 kB / 0.5624 GB, free: 9.227 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003772/0.01945, allocations: 2.382 MB / 0.5647 GB, free: 6.84 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001791/0.01963, allocations: 279.9 kB / 0.565 GB, free: 6.566 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001226/0.01975, allocations: 144 kB / 0.5651 GB, free: 6.426 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002511/0.02226, allocations: 2.463 MB / 0.5675 GB, free: 3.957 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.636e-06/0.02227, allocations: 0 / 0.5675 GB, free: 3.957 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.02227, allocations: 0 / 0.5675 GB, free: 3.957 MB / 490.7 MB Notification: Performance of Transformations before backend: time 8.356e-06/0.02228, allocations: 4 kB / 0.5675 GB, free: 3.953 MB / 490.7 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.004693/0.02697, allocations: 1.396 MB / 0.5689 GB, free: 2.516 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.02701, allocations: 8.75 kB / 0.5689 GB, free: 2.508 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002915/0.0273, allocations: 96.25 kB / 0.569 GB, free: 2.414 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002922/0.02759, allocations: 309.2 kB / 0.5693 GB, free: 2.074 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.329e-05/0.02761, allocations: 4.375 kB / 0.5693 GB, free: 2.07 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.556e-05/0.02763, allocations: 8.375 kB / 0.5693 GB, free: 2.062 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003052/0.02794, allocations: 374 kB / 0.5697 GB, free: 1.68 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.425e-06/0.02795, allocations: 192 / 0.5697 GB, free: 1.68 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.213e-05/0.02796, allocations: 4.375 kB / 0.5697 GB, free: 1.676 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.02797, allocations: 3.938 kB / 0.5697 GB, free: 1.672 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002401/0.02821, allocations: 387.7 kB / 0.57 GB, free: 1.293 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004397/0.02865, allocations: 0.6391 MB / 0.5707 GB, free: 0.6172 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004556/0.0291, allocations: 0.5251 MB / 0.5712 GB, free: 68 kB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001872/0.02929, allocations: 299.2 kB / 0.5715 GB, free: 15.77 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003725/0.02966, allocations: 132 kB / 0.5716 GB, free: 15.64 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002452/0.02991, allocations: 380.2 kB / 0.5719 GB, free: 15.24 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=8): time 1.493e-06/0.02991, allocations: 3.938 kB / 0.572 GB, free: 15.24 MB / 0.4948 GB Notification: Performance of matching and sorting (n=8): time 0.000842/0.03075, allocations: 1.172 MB / 0.5731 GB, free: 14.06 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.995e-05/0.03079, allocations: 81.05 kB / 0.5732 GB, free: 13.96 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007426/0.03153, allocations: 1.195 MB / 0.5743 GB, free: 12.75 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.64e-05/0.03156, allocations: 25.7 kB / 0.5744 GB, free: 12.72 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001622/0.03172, allocations: 348.6 kB / 0.5747 GB, free: 12.37 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 2.851e-05/0.03175, allocations: 19.86 kB / 0.5747 GB, free: 12.35 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002632/0.03201, allocations: 402.5 kB / 0.5751 GB, free: 11.95 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001023/0.03212, allocations: 492.4 kB / 0.5756 GB, free: 11.46 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004512/0.03257, allocations: 0.6781 MB / 0.5762 GB, free: 10.79 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005261/0.03309, allocations: 0.8478 MB / 0.5771 GB, free: 9.926 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001908/0.035, allocations: 2.625 MB / 0.5796 GB, free: 7.207 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.035, allocations: 0 / 0.5796 GB, free: 7.207 MB / 0.4948 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.002873/0.03788, allocations: 4.23 MB / 0.5838 GB, free: 2.941 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/0.03789, allocations: 4 kB / 0.5838 GB, free: 2.938 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.629e-05/0.03791, allocations: 4 kB / 0.5838 GB, free: 2.934 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.03793, allocations: 0 / 0.5838 GB, free: 2.934 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001168/0.03804, allocations: 27.92 kB / 0.5838 GB, free: 2.906 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.03805, allocations: 8.031 kB / 0.5838 GB, free: 2.898 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002691/0.03832, allocations: 237.3 kB / 0.584 GB, free: 2.664 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.473e-05/0.03835, allocations: 23.98 kB / 0.584 GB, free: 2.641 MB / 0.4948 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.0001339/0.03849, allocations: 172.4 kB / 0.5842 GB, free: 2.465 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.53e-05/0.03853, allocations: 75.34 kB / 0.5843 GB, free: 2.391 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007273/0.03926, allocations: 0.854 MB / 0.5851 GB, free: 1.52 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.566e-06/0.03926, allocations: 0 / 0.5851 GB, free: 1.52 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.03927, allocations: 3.938 kB / 0.5851 GB, free: 1.516 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.03927, allocations: 4.031 kB / 0.5851 GB, free: 1.512 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003106/0.03958, allocations: 496.1 kB / 0.5856 GB, free: 0.9961 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.03958, allocations: 0 / 0.5856 GB, free: 0.9961 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.349e-05/0.03963, allocations: 11.92 kB / 0.5856 GB, free: 0.9844 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.03963, allocations: 4 kB / 0.5856 GB, free: 0.9805 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.034e-05/0.03964, allocations: 4 kB / 0.5856 GB, free: 0.9766 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.03964, allocations: 400 / 0.5856 GB, free: 0.9766 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.03965, allocations: 0 / 0.5856 GB, free: 0.9766 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000551/0.0402, allocations: 0.9421 MB / 0.5865 GB, free: 8 kB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 6.132e-05/0.04026, allocations: 75.39 kB / 0.5866 GB, free: 15.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.813e-05/0.0403, allocations: 11.94 kB / 0.5866 GB, free: 15.92 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.884e-05/0.04037, allocations: 0 / 0.5866 GB, free: 15.92 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.477e-05/0.0404, allocations: 15.92 kB / 0.5866 GB, free: 15.91 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.524e-05/0.04043, allocations: 11.98 kB / 0.5866 GB, free: 15.89 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0003716/0.0408, allocations: 0.5596 MB / 0.5872 GB, free: 15.33 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6e-08/0.0408, allocations: 0 / 0.5872 GB, free: 15.33 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.001117/0.04191, allocations: 0.5845 MB / 0.5878 GB, free: 14.74 MB / 0.5105 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.001373/0.04329, allocations: 0.7882 MB / 0.5885 GB, free: 13.97 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.000969/0.04426, allocations: 1.414 MB / 0.5899 GB, free: 12.54 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.04426, allocations: 0 / 0.5899 GB, free: 12.54 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0001867/0.04444, allocations: 307.4 kB / 0.5902 GB, free: 12.23 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002312/0.04468, allocations: 40.59 kB / 0.5902 GB, free: 12.19 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001244/0.04592, allocations: 1.591 MB / 0.5918 GB, free: 10.55 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001075/0.04603, allocations: 187.1 kB / 0.592 GB, free: 10.35 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 8.657e-05/0.04611, allocations: 28.47 kB / 0.592 GB, free: 10.32 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.842e-05/0.04619, allocations: 32.47 kB / 0.592 GB, free: 10.29 MB / 0.5105 GB Notification: Performance of SimCode: time 9.92e-07/0.04619, allocations: 0 / 0.592 GB, free: 10.29 MB / 0.5105 GB Notification: Performance of Templates: time 0.1733/0.2195, allocations: 14.27 MB / 0.606 GB, free: 101.2 MB / 0.5105 GB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.makefile [Timeout 660] (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & ./BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters -abortSlowSimulation -alarm=240 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.307443170109764]