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.001332/0.001332, allocations: 92.22 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.001564/0.001564, allocations: 173 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.8846/0.8846, allocations: 177.1 MB / 203.4 MB, free: 5.629 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.001766/0.001766, 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.6905/0.6905, allocations: 138.4 MB / 455.2 MB, free: 1.535 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.242e-06/1.242e-06, allocations: 0 / 0.5552 GB, free: 432 kB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.542e-05/1.666e-05, allocations: 2.312 kB / 0.5552 GB, free: 428 kB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.001927/0.001943, allocations: 1.821 MB / 0.557 GB, free: 14.59 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.005504/0.007447, allocations: 5.219 MB / 0.5621 GB, free: 9.34 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.085e-05/0.007538, allocations: 0 / 0.5621 GB, free: 9.34 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009186/0.008456, allocations: 334.3 kB / 0.5624 GB, free: 9.012 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 8.028e-05/0.008537, allocations: 63.61 kB / 0.5625 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.002693/0.01123, allocations: 1.597 MB / 0.564 GB, free: 7.348 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002037/0.01143, allocations: 171.2 kB / 0.5642 GB, free: 7.18 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.796e-05/0.01147, allocations: 9.797 kB / 0.5642 GB, free: 7.172 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.277e-05/0.01155, allocations: 83.78 kB / 0.5643 GB, free: 7.09 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001617/0.01172, allocations: 155.6 kB / 0.5644 GB, free: 6.938 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 3.052e-05/0.01175, allocations: 20 kB / 0.5644 GB, free: 6.918 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002711/0.01446, allocations: 2.437 MB / 0.5668 GB, free: 4.492 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001587/0.01462, allocations: 279.9 kB / 0.5671 GB, free: 4.219 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001305/0.01475, allocations: 167.9 kB / 0.5672 GB, free: 4.055 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002374/0.01712, allocations: 2.494 MB / 0.5697 GB, free: 1.551 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.01712, allocations: 0 / 0.5697 GB, free: 1.551 MB / 490.7 MB Notification: Performance of FrontEnd: time 7.52e-07/0.01712, allocations: 0 / 0.5697 GB, free: 1.551 MB / 490.7 MB Notification: Performance of Transformations before backend: time 7.464e-06/0.01713, allocations: 0 / 0.5697 GB, free: 1.551 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.004186/0.02132, allocations: 1.471 MB / 0.5711 GB, free: 40 kB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.501e-05/0.02135, allocations: 12.69 kB / 0.5711 GB, free: 28 kB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002449/0.0216, allocations: 105 kB / 0.5712 GB, free: 15.92 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005386/0.02214, allocations: 354.5 kB / 0.5716 GB, free: 15.54 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.039e-05/0.02215, allocations: 4.359 kB / 0.5716 GB, free: 15.54 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.361e-05/0.02217, allocations: 4.375 kB / 0.5716 GB, free: 15.54 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002861/0.02246, allocations: 374.1 kB / 0.5719 GB, free: 15.15 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.863e-06/0.02246, allocations: 192 / 0.5719 GB, free: 15.15 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.037e-05/0.02247, allocations: 3.562 kB / 0.5719 GB, free: 15.15 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.241e-06/0.02248, allocations: 0 / 0.5719 GB, free: 15.15 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000217/0.0227, allocations: 391.7 kB / 0.5723 GB, free: 14.77 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004209/0.02312, allocations: 0.6719 MB / 0.573 GB, free: 14.06 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003048/0.02342, allocations: 0.5251 MB / 0.5735 GB, free: 13.51 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001682/0.02359, allocations: 303.2 kB / 0.5738 GB, free: 13.2 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003291/0.02392, allocations: 136 kB / 0.5739 GB, free: 13.07 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002253/0.02415, allocations: 372.2 kB / 0.5743 GB, free: 12.68 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=8): time 9.12e-07/0.02415, allocations: 4 kB / 0.5743 GB, free: 12.68 MB / 0.4948 GB Notification: Performance of matching and sorting (n=8): time 0.0007811/0.02493, allocations: 1.184 MB / 0.5754 GB, free: 11.49 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.433e-05/0.02496, allocations: 85.05 kB / 0.5755 GB, free: 11.39 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007397/0.0257, allocations: 1.272 MB / 0.5767 GB, free: 10.11 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 2.696e-05/0.02573, allocations: 29.7 kB / 0.5768 GB, free: 10.07 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001714/0.0259, allocations: 372.6 kB / 0.5771 GB, free: 9.699 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 2.701e-05/0.02593, allocations: 23.84 kB / 0.5771 GB, free: 9.676 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002441/0.02617, allocations: 406.5 kB / 0.5775 GB, free: 9.273 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000102/0.02627, allocations: 0.4926 MB / 0.578 GB, free: 8.773 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006529/0.02693, allocations: 0.6821 MB / 0.5787 GB, free: 8.086 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004838/0.02741, allocations: 0.8438 MB / 0.5795 GB, free: 7.23 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001605/0.02901, allocations: 2.617 MB / 0.5821 GB, free: 4.523 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.02902, allocations: 3.938 kB / 0.5821 GB, free: 4.52 MB / 0.4948 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.002805/0.03182, allocations: 4.242 MB / 0.5862 GB, free: 248 kB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.03184, allocations: 11.92 kB / 0.5862 GB, free: 236 kB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.23e-05/0.03185, allocations: 4 kB / 0.5862 GB, free: 232 kB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.329e-05/0.03187, allocations: 32 / 0.5862 GB, free: 232 kB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.832e-05/0.03196, allocations: 31.92 kB / 0.5862 GB, free: 200 kB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.03197, allocations: 0 / 0.5862 GB, free: 200 kB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002528/0.03222, allocations: 237.5 kB / 0.5865 GB, free: 15.96 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.668e-05/0.03226, allocations: 27.98 kB / 0.5865 GB, free: 15.93 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.000114/0.03237, allocations: 160.6 kB / 0.5867 GB, free: 15.76 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.23e-05/0.03242, allocations: 83.28 kB / 0.5867 GB, free: 15.68 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000554/0.03297, allocations: 0.8546 MB / 0.5876 GB, free: 14.82 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.407e-06/0.03297, allocations: 11.97 kB / 0.5876 GB, free: 14.8 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.858e-06/0.03298, allocations: 0 / 0.5876 GB, free: 14.8 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.586e-06/0.03298, allocations: 0 / 0.5876 GB, free: 14.8 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003141/0.03329, allocations: 0.5212 MB / 0.5881 GB, free: 14.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.0333, allocations: 4 kB / 0.5881 GB, free: 14.25 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.549e-05/0.03333, allocations: 4 kB / 0.5881 GB, free: 14.25 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.03334, allocations: 0 / 0.5881 GB, free: 14.25 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.223e-05/0.03335, allocations: 11.94 kB / 0.5881 GB, free: 14.23 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.03335, allocations: 7.922 kB / 0.5881 GB, free: 14.23 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.03335, allocations: 0 / 0.5881 GB, free: 14.23 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005145/0.03387, allocations: 0.9351 MB / 0.589 GB, free: 13.27 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 5.426e-05/0.03392, allocations: 91.28 kB / 0.5891 GB, free: 13.18 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.774e-05/0.03396, allocations: 7.938 kB / 0.5891 GB, free: 13.17 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.519e-05/0.03402, allocations: 0 / 0.5891 GB, free: 13.17 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.971e-05/0.03405, allocations: 7.984 kB / 0.5891 GB, free: 13.16 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.172e-05/0.03408, allocations: 11.98 kB / 0.5891 GB, free: 13.15 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0003779/0.03445, allocations: 0.6051 MB / 0.5897 GB, free: 12.54 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.8e-07/0.03445, allocations: 0 / 0.5897 GB, free: 12.54 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0008837/0.03534, allocations: 0.6 MB / 0.5903 GB, free: 11.94 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.001253/0.03659, allocations: 0.7953 MB / 0.5911 GB, free: 11.16 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0009122/0.0375, allocations: 1.414 MB / 0.5925 GB, free: 9.727 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.0375, allocations: 0 / 0.5925 GB, free: 9.727 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0004162/0.03792, allocations: 307.5 kB / 0.5928 GB, free: 9.422 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002576/0.03818, allocations: 64.8 kB / 0.5928 GB, free: 9.355 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001198/0.03938, allocations: 1.687 MB / 0.5945 GB, free: 7.629 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.844e-05/0.03947, allocations: 195.6 kB / 0.5947 GB, free: 7.418 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 8.504e-05/0.03956, allocations: 37.45 kB / 0.5947 GB, free: 7.379 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.29e-05/0.03963, allocations: 24.48 kB / 0.5947 GB, free: 7.355 MB / 0.5105 GB Notification: Performance of SimCode: time 7.41e-07/0.03963, allocations: 0 / 0.5947 GB, free: 7.355 MB / 0.5105 GB Notification: Performance of Templates: time 0.1663/0.2059, allocations: 16.84 MB / 0.6112 GB, free: 91.52 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.152361426036805]