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.001465/0.001465, allocations: 81.17 kB / 19.87 MB, free: 4.621 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.001662/0.001662, allocations: 169 kB / 23.27 MB, free: 1.223 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.9335/0.9335, allocations: 177.2 MB / 203.7 MB, free: 5.512 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.00251/0.00251, allocations: 246 kB / 260.5 MB, free: 12.67 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.7042/0.7042, allocations: 138.4 MB / 455.5 MB, free: 30.06 MB / 410.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.182e-06/1.182e-06, allocations: 0 / 0.5557 GB, free: 15.8 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.926e-05/2.044e-05, allocations: 2.312 kB / 0.5557 GB, free: 15.79 MB / 490.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002069/0.00209, allocations: 1.797 MB / 0.5574 GB, free: 13.98 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.005123/0.007213, allocations: 5.11 MB / 0.5624 GB, free: 8.844 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.855e-05/0.007301, allocations: 7.938 kB / 0.5624 GB, free: 8.836 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008467/0.008148, allocations: 334.4 kB / 0.5627 GB, free: 8.508 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 8.555e-05/0.008234, allocations: 71.59 kB / 0.5628 GB, free: 8.438 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.002565/0.0108, allocations: 1.593 MB / 0.5644 GB, free: 6.84 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001755/0.01097, allocations: 171.3 kB / 0.5645 GB, free: 6.672 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.238e-05/0.01101, allocations: 5.812 kB / 0.5645 GB, free: 6.668 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.779e-05/0.01109, allocations: 75.8 kB / 0.5646 GB, free: 6.594 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.823e-05/0.01118, allocations: 65.11 kB / 0.5647 GB, free: 6.531 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 1.586e-05/0.0112, allocations: 8 kB / 0.5647 GB, free: 6.523 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002444/0.01364, allocations: 2.392 MB / 0.567 GB, free: 4.137 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001461/0.01379, allocations: 259.3 kB / 0.5673 GB, free: 3.883 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 9.81e-05/0.01389, allocations: 135.3 kB / 0.5674 GB, free: 3.75 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001973/0.01586, allocations: 2.375 MB / 0.5697 GB, free: 1.371 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.01586, allocations: 0 / 0.5697 GB, free: 1.371 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.01586, allocations: 0 / 0.5697 GB, free: 1.371 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.618e-06/0.01587, allocations: 0 / 0.5697 GB, free: 1.371 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.001167/0.01703, allocations: 1.455 MB / 0.5711 GB, free: 15.87 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.297e-05/0.01707, allocations: 13.94 kB / 0.5711 GB, free: 15.86 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002263/0.01729, allocations: 100.2 kB / 0.5712 GB, free: 15.76 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000278/0.01757, allocations: 346.6 kB / 0.5716 GB, free: 15.39 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.668e-06/0.01758, allocations: 384 / 0.5716 GB, free: 15.39 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.286e-05/0.0176, allocations: 12.38 kB / 0.5716 GB, free: 15.38 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001987/0.0178, allocations: 230.1 kB / 0.5718 GB, free: 15.13 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.122e-06/0.01781, allocations: 4.188 kB / 0.5718 GB, free: 15.13 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.354e-06/0.01782, allocations: 384 / 0.5718 GB, free: 15.13 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.99e-06/0.01782, allocations: 3.938 kB / 0.5718 GB, free: 15.12 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001261/0.01795, allocations: 203.8 kB / 0.572 GB, free: 14.93 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003437/0.01829, allocations: 0.5058 MB / 0.5725 GB, free: 14.39 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003586/0.01865, allocations: 297.9 kB / 0.5728 GB, free: 14.07 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.46e-05/0.01874, allocations: 167.3 kB / 0.5729 GB, free: 13.9 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002893/0.01903, allocations: 134 kB / 0.5731 GB, free: 13.78 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001782/0.01921, allocations: 240.2 kB / 0.5733 GB, free: 13.52 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=8): time 9.72e-07/0.01921, allocations: 0 / 0.5733 GB, free: 13.52 MB / 0.4948 GB Notification: Performance of matching and sorting (n=8): time 0.000546/0.01976, allocations: 0.7584 MB / 0.574 GB, free: 12.75 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.549e-05/0.01979, allocations: 85.05 kB / 0.5741 GB, free: 12.65 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006886/0.02048, allocations: 1.282 MB / 0.5754 GB, free: 11.36 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.389e-05/0.02051, allocations: 33.69 kB / 0.5754 GB, free: 11.32 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001704/0.02068, allocations: 388.6 kB / 0.5758 GB, free: 10.93 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 2.621e-05/0.0207, allocations: 19.84 kB / 0.5758 GB, free: 10.91 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002425/0.02095, allocations: 422.2 kB / 0.5762 GB, free: 10.5 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001144/0.02106, allocations: 0.4965 MB / 0.5767 GB, free: 9.992 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002913/0.02135, allocations: 494.4 kB / 0.5772 GB, free: 9.508 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003745/0.02173, allocations: 0.6562 MB / 0.5778 GB, free: 8.84 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001478/0.0232, allocations: 2.258 MB / 0.58 GB, free: 6.492 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.02321, allocations: 4 kB / 0.58 GB, free: 6.488 MB / 0.4948 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.002406/0.02561, allocations: 3.852 MB / 0.5838 GB, free: 2.602 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.02563, allocations: 4 kB / 0.5838 GB, free: 2.598 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.523e-05/0.02564, allocations: 4 kB / 0.5838 GB, free: 2.594 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.789e-06/0.02565, allocations: 0 / 0.5838 GB, free: 2.594 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.884e-05/0.02575, allocations: 23.92 kB / 0.5838 GB, free: 2.57 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.276e-06/0.02576, allocations: 7.938 kB / 0.5838 GB, free: 2.562 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002627/0.02602, allocations: 253.2 kB / 0.584 GB, free: 2.312 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.089e-05/0.02605, allocations: 23.98 kB / 0.5841 GB, free: 2.289 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 (labels[1],cluSiz[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.0001347/0.02618, allocations: 164.6 kB / 0.5842 GB, free: 2.117 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.691e-05/0.02623, allocations: 83.23 kB / 0.5843 GB, free: 2.035 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004208/0.02665, allocations: 0.5777 MB / 0.5849 GB, free: 1.438 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.02665, allocations: 0 / 0.5849 GB, free: 1.438 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.02666, allocations: 3.984 kB / 0.5849 GB, free: 1.434 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.02666, allocations: 3.938 kB / 0.5849 GB, free: 1.43 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000249/0.02691, allocations: 383.5 kB / 0.5852 GB, free: 1.031 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.327e-06/0.02691, allocations: 4 kB / 0.5852 GB, free: 1.027 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.148e-05/0.02695, allocations: 7.938 kB / 0.5853 GB, free: 1.02 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.02696, allocations: 4.031 kB / 0.5853 GB, free: 1.016 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.256e-06/0.02697, allocations: 7.984 kB / 0.5853 GB, free: 1.008 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.02697, allocations: 0 / 0.5853 GB, free: 1.008 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.02697, allocations: 0 / 0.5853 GB, free: 1.008 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003847/0.02735, allocations: 0.6618 MB / 0.5859 GB, free: 328 kB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 5.57e-05/0.02741, allocations: 91.28 kB / 0.586 GB, free: 236 kB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.973e-05/0.02744, allocations: 0 / 0.586 GB, free: 236 kB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.078e-05/0.02751, allocations: 4 kB / 0.586 GB, free: 232 kB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.355e-05/0.02753, allocations: 7.984 kB / 0.586 GB, free: 224 kB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.553e-05/0.02756, allocations: 11.92 kB / 0.586 GB, free: 212 kB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.0003062/0.02786, allocations: 0.5775 MB / 0.5866 GB, free: 15.62 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.4e-07/0.02786, allocations: 0 / 0.5866 GB, free: 15.62 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.001424/0.02929, allocations: 0.5845 MB / 0.5872 GB, free: 15.04 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.001194/0.03048, allocations: 0.8032 MB / 0.5879 GB, free: 14.26 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0006909/0.03117, allocations: 1.09 MB / 0.589 GB, free: 13.15 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.03118, allocations: 0 / 0.589 GB, free: 13.15 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0001024/0.03128, allocations: 171.6 kB / 0.5892 GB, free: 12.98 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002484/0.03153, allocations: 65.41 kB / 0.5892 GB, free: 12.91 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001126/0.03265, allocations: 1.543 MB / 0.5907 GB, free: 11.33 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001011/0.03275, allocations: 199.6 kB / 0.5909 GB, free: 11.12 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 7.916e-05/0.03283, allocations: 33.47 kB / 0.591 GB, free: 11.09 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001374/0.03297, allocations: 118.1 kB / 0.5911 GB, free: 10.97 MB / 0.5105 GB Notification: Performance of SimCode: time 9.51e-07/0.03297, allocations: 0 / 0.5911 GB, free: 10.97 MB / 0.5105 GB Notification: Performance of Templates: time 0.01875/0.05172, allocations: 16.43 MB / 0.6071 GB, free: 10.72 MB / 0.5261 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.212988683022559]