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.0009461/0.0009461, allocations: 92.2 kB / 20.19 MB, free: 4.352 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.000938/0.000938, allocations: 173 kB / 23.5 MB, free: 1.047 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.9656/0.9656, allocations: 177.1 MB / 203.8 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.00174/0.00174, allocations: 229.5 kB / 260.5 MB, free: 12.89 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.7309/0.7309, allocations: 138.4 MB / 455.4 MB, free: 1.555 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.593e-06/1.593e-06, allocations: 0 / 0.5551 GB, free: 0.8008 MB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.02e-05/2.179e-05, allocations: 2.312 kB / 0.5551 GB, free: 0.7969 MB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002291/0.002313, allocations: 1.796 MB / 0.5569 GB, free: 14.98 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.005478/0.007791, allocations: 5.202 MB / 0.562 GB, free: 9.758 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.658e-05/0.007888, allocations: 0 / 0.562 GB, free: 9.758 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009288/0.008816, allocations: 342.3 kB / 0.5623 GB, free: 9.422 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 8.695e-05/0.008903, allocations: 63.59 kB / 0.5623 GB, free: 9.359 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.002818/0.01172, allocations: 1.585 MB / 0.5639 GB, free: 7.77 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002127/0.01193, allocations: 175.2 kB / 0.5641 GB, free: 7.598 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.066e-05/0.01198, allocations: 9.797 kB / 0.5641 GB, free: 7.59 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.316e-05/0.01206, allocations: 75.8 kB / 0.5641 GB, free: 7.516 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001603/0.01222, allocations: 155.6 kB / 0.5643 GB, free: 7.363 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 2.996e-05/0.01225, allocations: 16 kB / 0.5643 GB, free: 7.348 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002759/0.01501, allocations: 2.382 MB / 0.5666 GB, free: 4.961 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000208/0.01522, allocations: 287.9 kB / 0.5669 GB, free: 4.68 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001674/0.01538, allocations: 168 kB / 0.5671 GB, free: 4.516 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00343/0.01881, allocations: 2.49 MB / 0.5695 GB, free: 2.016 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.01882, allocations: 0 / 0.5695 GB, free: 2.016 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.01882, allocations: 4 kB / 0.5695 GB, free: 2.012 MB / 490.7 MB Notification: Performance of Transformations before backend: time 1.191e-05/0.01883, allocations: 3.984 kB / 0.5695 GB, free: 2.008 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.004895/0.02373, allocations: 1.463 MB / 0.5709 GB, free: 0.5039 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.02377, allocations: 12.75 kB / 0.5709 GB, free: 0.4922 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002881/0.02405, allocations: 108.1 kB / 0.571 GB, free: 396 kB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003475/0.0244, allocations: 350.5 kB / 0.5714 GB, free: 8 kB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.208e-05/0.02441, allocations: 8.375 kB / 0.5714 GB, free: 0 / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.812e-05/0.02445, allocations: 8.453 kB / 0.5714 GB, free: 15.99 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003066/0.02476, allocations: 370.1 kB / 0.5718 GB, free: 15.61 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.204e-06/0.02476, allocations: 4.172 kB / 0.5718 GB, free: 15.61 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.243e-05/0.02478, allocations: 4.359 kB / 0.5718 GB, free: 15.6 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.954e-06/0.02479, allocations: 7.938 kB / 0.5718 GB, free: 15.59 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002267/0.02501, allocations: 383.7 kB / 0.5721 GB, free: 15.22 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004665/0.02548, allocations: 0.6719 MB / 0.5728 GB, free: 14.52 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003272/0.02581, allocations: 0.5251 MB / 0.5733 GB, free: 13.96 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001762/0.02598, allocations: 303.4 kB / 0.5736 GB, free: 13.66 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003707/0.02635, allocations: 131.9 kB / 0.5737 GB, free: 13.53 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002557/0.02661, allocations: 380.2 kB / 0.5741 GB, free: 13.14 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=8): time 1.553e-06/0.02661, allocations: 0 / 0.5741 GB, free: 13.14 MB / 0.4948 GB Notification: Performance of matching and sorting (n=8): time 0.0008347/0.02744, allocations: 1.172 MB / 0.5752 GB, free: 11.96 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.707e-05/0.02749, allocations: 96.97 kB / 0.5753 GB, free: 11.84 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007901/0.02828, allocations: 1.275 MB / 0.5766 GB, free: 10.56 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.549e-05/0.02831, allocations: 29.7 kB / 0.5766 GB, free: 10.52 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001865/0.02849, allocations: 376.6 kB / 0.577 GB, free: 10.15 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 2.986e-05/0.02852, allocations: 15.91 kB / 0.577 GB, free: 10.13 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002583/0.02878, allocations: 402.7 kB / 0.5774 GB, free: 9.734 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001108/0.02889, allocations: 0.4965 MB / 0.5778 GB, free: 9.23 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000575/0.02947, allocations: 0.6781 MB / 0.5785 GB, free: 8.547 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005116/0.02998, allocations: 0.8438 MB / 0.5793 GB, free: 7.691 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001756/0.03174, allocations: 2.621 MB / 0.5819 GB, free: 4.98 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.03174, allocations: 0 / 0.5819 GB, free: 4.98 MB / 0.4948 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003033/0.03477, allocations: 4.242 MB / 0.586 GB, free: 0.7031 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/0.03479, allocations: 8.031 kB / 0.586 GB, free: 0.6953 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.271e-05/0.0348, allocations: 4 kB / 0.586 GB, free: 0.6914 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.03481, allocations: 4 kB / 0.586 GB, free: 0.6875 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001067/0.03492, allocations: 27.86 kB / 0.5861 GB, free: 0.6602 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.03493, allocations: 0 / 0.5861 GB, free: 0.6602 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002652/0.03519, allocations: 241.4 kB / 0.5863 GB, free: 432 kB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.452e-05/0.03523, allocations: 27.97 kB / 0.5863 GB, free: 404 kB / 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.0001313/0.03536, allocations: 160.6 kB / 0.5865 GB, free: 232 kB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.003e-05/0.03541, allocations: 83.28 kB / 0.5866 GB, free: 148 kB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005989/0.03601, allocations: 0.8548 MB / 0.5874 GB, free: 15.28 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.03601, allocations: 0 / 0.5874 GB, free: 15.28 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.03601, allocations: 7.875 kB / 0.5874 GB, free: 15.27 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.03602, allocations: 4 kB / 0.5874 GB, free: 15.27 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003396/0.03636, allocations: 0.5289 MB / 0.5879 GB, free: 14.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.03636, allocations: 0 / 0.5879 GB, free: 14.71 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.315e-05/0.0364, allocations: 4 kB / 0.5879 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.03641, allocations: 4 kB / 0.5879 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.179e-05/0.03642, allocations: 3.984 kB / 0.5879 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.506e-06/0.03642, allocations: 12.36 kB / 0.5879 GB, free: 14.68 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.03643, allocations: 4 kB / 0.5879 GB, free: 14.68 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005523/0.03698, allocations: 0.939 MB / 0.5889 GB, free: 13.71 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 5.946e-05/0.03704, allocations: 87.25 kB / 0.5889 GB, free: 13.63 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.041e-05/0.03708, allocations: 0 / 0.5889 GB, free: 13.63 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.444e-05/0.03715, allocations: 8 kB / 0.589 GB, free: 13.62 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.522e-05/0.03719, allocations: 11.92 kB / 0.589 GB, free: 13.61 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.502e-05/0.03721, allocations: 15.97 kB / 0.589 GB, free: 13.59 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.000421/0.03763, allocations: 0.5973 MB / 0.5896 GB, free: 12.99 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.1e-08/0.03763, allocations: 0 / 0.5896 GB, free: 12.99 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.001097/0.03873, allocations: 0.6001 MB / 0.5901 GB, free: 12.39 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.0014/0.04013, allocations: 0.7921 MB / 0.5909 GB, free: 11.62 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001121/0.04125, allocations: 1.414 MB / 0.5923 GB, free: 10.18 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.04125, allocations: 0 / 0.5923 GB, free: 10.18 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0001917/0.04144, allocations: 307.5 kB / 0.5926 GB, free: 9.879 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000288/0.04173, allocations: 71.91 kB / 0.5927 GB, free: 9.809 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001354/0.04309, allocations: 1.672 MB / 0.5943 GB, free: 8.094 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001171/0.0432, allocations: 195.6 kB / 0.5945 GB, free: 7.883 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 9.051e-05/0.04329, allocations: 33.69 kB / 0.5945 GB, free: 7.848 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.671e-05/0.04337, allocations: 32.47 kB / 0.5945 GB, free: 7.816 MB / 0.5105 GB Notification: Performance of SimCode: time 9.42e-07/0.04337, allocations: 0 / 0.5945 GB, free: 7.816 MB / 0.5105 GB Notification: Performance of Templates: time 0.1772/0.2206, allocations: 14.96 MB / 0.6092 GB, free: 100.6 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.268115256913006]