Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.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.0008988/0.0008988, allocations: 93.06 kB / 19.65 MB, free: 276 kB / 13.93 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.0008962/0.0008962, allocations: 165 kB / 23.02 MB, free: 1.547 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.9249/0.9249, allocations: 177.1 MB / 203.4 MB, free: 5.633 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.002758/0.002758, allocations: 240.5 kB / 260.2 MB, free: 12.82 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.686/0.686, allocations: 138.4 MB / 455.2 MB, free: 1.523 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_SmallScaleValidation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.312e-06/1.312e-06, allocations: 0 / 0.5552 GB, free: 436 kB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.56e-05/1.691e-05, allocations: 2.312 kB / 0.5552 GB, free: 432 kB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.00196/0.001977, allocations: 1.808 MB / 0.557 GB, free: 14.6 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.005304/0.007281, allocations: 5.227 MB / 0.5621 GB, free: 9.344 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.79e-05/0.007339, allocations: 0 / 0.5621 GB, free: 9.344 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009396/0.008279, allocations: 338.3 kB / 0.5624 GB, free: 9.012 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 8.949e-05/0.008368, allocations: 63.61 kB / 0.5624 GB, free: 8.949 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.002707/0.01107, allocations: 1.593 MB / 0.564 GB, free: 7.352 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002027/0.01128, allocations: 171.2 kB / 0.5642 GB, free: 7.184 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.787e-05/0.01132, allocations: 13.78 kB / 0.5642 GB, free: 7.172 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.931e-05/0.0114, allocations: 71.81 kB / 0.5643 GB, free: 7.102 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001943/0.0116, allocations: 159.6 kB / 0.5644 GB, free: 6.945 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 3.744e-05/0.01164, allocations: 12 kB / 0.5644 GB, free: 6.934 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002721/0.01436, allocations: 2.39 MB / 0.5667 GB, free: 4.539 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001946/0.01455, allocations: 283.9 kB / 0.567 GB, free: 4.262 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001598/0.01471, allocations: 167.9 kB / 0.5672 GB, free: 4.098 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002658/0.01737, allocations: 2.494 MB / 0.5696 GB, free: 1.594 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.793e-06/0.01737, allocations: 0 / 0.5696 GB, free: 1.594 MB / 490.7 MB Notification: Performance of FrontEnd: time 7.31e-07/0.01737, allocations: 0 / 0.5696 GB, free: 1.594 MB / 490.7 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.01738, allocations: 0 / 0.5696 GB, free: 1.594 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.005675/0.02305, allocations: 1.478 MB / 0.5711 GB, free: 76 kB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.476e-05/0.02309, allocations: 8.75 kB / 0.5711 GB, free: 68 kB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000294/0.02338, allocations: 95.62 kB / 0.5712 GB, free: 15.97 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003863/0.02377, allocations: 354.5 kB / 0.5715 GB, free: 15.59 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.138e-05/0.02378, allocations: 4.375 kB / 0.5715 GB, free: 15.59 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.475e-05/0.02381, allocations: 8.375 kB / 0.5715 GB, free: 15.58 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000345/0.02416, allocations: 378.1 kB / 0.5719 GB, free: 15.19 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.02417, allocations: 192 / 0.5719 GB, free: 15.19 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.082e-05/0.02418, allocations: 0.9375 kB / 0.5719 GB, free: 15.19 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.02419, allocations: 0 / 0.5719 GB, free: 15.19 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002895/0.02448, allocations: 395.6 kB / 0.5722 GB, free: 14.8 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005429/0.02502, allocations: 0.6603 MB / 0.5729 GB, free: 14.11 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003912/0.02541, allocations: 0.5212 MB / 0.5734 GB, free: 13.56 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002248/0.02564, allocations: 315.3 kB / 0.5737 GB, free: 13.25 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004043/0.02604, allocations: 135.9 kB / 0.5738 GB, free: 13.11 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002932/0.02633, allocations: 380.2 kB / 0.5742 GB, free: 12.72 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=8): time 9.82e-07/0.02634, allocations: 0 / 0.5742 GB, free: 12.72 MB / 0.4948 GB Notification: Performance of matching and sorting (n=8): time 0.001028/0.02736, allocations: 1.172 MB / 0.5753 GB, free: 11.54 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.846e-05/0.0274, allocations: 81.05 kB / 0.5754 GB, free: 11.44 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001254/0.02866, allocations: 1.283 MB / 0.5767 GB, free: 10.15 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.885e-05/0.02868, allocations: 29.83 kB / 0.5767 GB, free: 10.11 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002222/0.02891, allocations: 376.6 kB / 0.5771 GB, free: 9.738 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 2.945e-05/0.02894, allocations: 19.89 kB / 0.5771 GB, free: 9.719 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003275/0.02926, allocations: 410.5 kB / 0.5775 GB, free: 9.312 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001274/0.02939, allocations: 0.4926 MB / 0.5779 GB, free: 8.812 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005549/0.02995, allocations: 0.6742 MB / 0.5786 GB, free: 8.133 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006672/0.03061, allocations: 0.8477 MB / 0.5794 GB, free: 7.273 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002163/0.03278, allocations: 2.617 MB / 0.582 GB, free: 4.566 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.03278, allocations: 0 / 0.582 GB, free: 4.566 MB / 0.4948 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003763/0.03654, allocations: 4.254 MB / 0.5861 GB, free: 284 kB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.03656, allocations: 4 kB / 0.5861 GB, free: 280 kB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.371e-05/0.03657, allocations: 4 kB / 0.5862 GB, free: 276 kB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.03659, allocations: 0 / 0.5862 GB, free: 276 kB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001143/0.0367, allocations: 23.92 kB / 0.5862 GB, free: 252 kB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.115e-06/0.03671, allocations: 4 kB / 0.5862 GB, free: 248 kB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003211/0.03703, allocations: 241.3 kB / 0.5864 GB, free: 4 kB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.409e-05/0.03709, allocations: 23.98 kB / 0.5864 GB, free: 15.98 MB / 0.5105 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.0001403/0.03723, allocations: 168.6 kB / 0.5866 GB, free: 15.8 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.126e-05/0.03729, allocations: 83.25 kB / 0.5867 GB, free: 15.72 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007187/0.03801, allocations: 0.8548 MB / 0.5875 GB, free: 14.86 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.03801, allocations: 0 / 0.5875 GB, free: 14.86 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.03801, allocations: 4 kB / 0.5875 GB, free: 14.85 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.531e-06/0.03802, allocations: 7.922 kB / 0.5875 GB, free: 14.84 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004211/0.03844, allocations: 0.5212 MB / 0.588 GB, free: 14.29 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.03844, allocations: 0 / 0.588 GB, free: 14.29 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.261e-05/0.03848, allocations: 8 kB / 0.588 GB, free: 14.29 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.03848, allocations: 4.031 kB / 0.588 GB, free: 14.28 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.19e-05/0.0385, allocations: 3.984 kB / 0.588 GB, free: 14.28 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.386e-06/0.0385, allocations: 4 kB / 0.588 GB, free: 14.27 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.0385, allocations: 3.938 kB / 0.588 GB, free: 14.27 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006968/0.0392, allocations: 0.9351 MB / 0.589 GB, free: 13.31 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 8.21e-05/0.03928, allocations: 87.25 kB / 0.589 GB, free: 13.22 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.016e-05/0.03933, allocations: 4 kB / 0.589 GB, free: 13.22 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001035/0.03943, allocations: 3.984 kB / 0.5891 GB, free: 13.21 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.452e-05/0.03947, allocations: 8 kB / 0.5891 GB, free: 13.21 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.711e-05/0.0395, allocations: 19.97 kB / 0.5891 GB, free: 13.19 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.000537/0.04003, allocations: 0.6011 MB / 0.5897 GB, free: 12.58 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1e-07/0.04003, allocations: 0 / 0.5897 GB, free: 12.58 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00133/0.04136, allocations: 0.5962 MB / 0.5902 GB, free: 11.98 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.001508/0.04287, allocations: 0.805 MB / 0.591 GB, free: 11.2 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001232/0.0441, allocations: 1.409 MB / 0.5924 GB, free: 9.77 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.04411, allocations: 4.062 kB / 0.5924 GB, free: 9.766 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0002364/0.04434, allocations: 311.5 kB / 0.5927 GB, free: 9.457 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000338/0.04468, allocations: 56.7 kB / 0.5928 GB, free: 9.398 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001562/0.04624, allocations: 1.676 MB / 0.5944 GB, free: 7.68 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001422/0.04638, allocations: 199.6 kB / 0.5946 GB, free: 7.465 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0001063/0.04649, allocations: 33.47 kB / 0.5946 GB, free: 7.43 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.095e-05/0.04658, allocations: 28.47 kB / 0.5947 GB, free: 7.402 MB / 0.5105 GB Notification: Performance of SimCode: time 4.61e-07/0.04658, allocations: 3.938 kB / 0.5947 GB, free: 7.398 MB / 0.5105 GB Notification: Performance of Templates: time 0.1686/0.2152, allocations: 14.97 MB / 0.6093 GB, free: 92.01 MB / 0.5105 GB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile [Timeout 660] (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & ./BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=240 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.402881236281246]