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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,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=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00105/0.00105, allocations: 110.9 kB / 16.37 MB, free: 6.469 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009677/0.0009678, allocations: 189.9 kB / 17.3 MB, free: 5.828 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.261/1.261, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002023/0.002023, allocations: 277.4 kB / 291.4 MB, free: 14.5 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9065/0.9065, allocations: 169.3 MB / 0.4989 GB, free: 4.465 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001691/0.001691, allocations: 102.5 kB / 0.5967 GB, free: 14.41 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.143/0.1447, allocations: 86.98 MB / 0.6817 GB, free: 7.418 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002735/0.1475, allocations: 1.747 MB / 0.6834 GB, free: 5.656 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.006765/0.1542, allocations: 5.383 MB / 0.6886 GB, free: 252 kB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.172e-05/0.1543, allocations: 0 / 0.6886 GB, free: 252 kB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2412/0.3955, allocations: 366 kB / 0.689 GB, free: 12.74 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001802/0.3957, allocations: 57.06 kB / 0.689 GB, free: 12.74 MB / 494.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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 2.0.0-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.004129/0.3999, allocations: 1.5 MB / 0.6905 GB, free: 12.73 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000314/0.4002, allocations: 160.7 kB / 0.6906 GB, free: 12.73 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.203e-05/0.4003, allocations: 12.12 kB / 0.6906 GB, free: 12.73 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001075/0.4004, allocations: 61.23 kB / 0.6907 GB, free: 12.73 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002563/0.4006, allocations: 166.3 kB / 0.6909 GB, free: 12.71 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.789e-05/0.4007, allocations: 15.62 kB / 0.6909 GB, free: 12.71 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003681/0.4044, allocations: 2.204 MB / 0.693 GB, free: 12.7 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002518/0.4047, allocations: 276 kB / 0.6933 GB, free: 12.66 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002555/0.4049, allocations: 315.1 kB / 0.6936 GB, free: 12.5 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003197/0.4081, allocations: 2.18 MB / 0.6957 GB, free: 12.23 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.4081, allocations: 0 / 0.6957 GB, free: 12.23 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.4082, allocations: 0 / 0.6957 GB, free: 12.23 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.317e-06/0.4082, allocations: 2.375 kB / 0.6957 GB, free: 12.23 MB / 494.1 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.00809/0.4163, allocations: 1.36 MB / 0.6971 GB, free: 11.34 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.457e-05/0.4163, allocations: 11.75 kB / 0.6971 GB, free: 11.34 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003665/0.4167, allocations: 100.3 kB / 0.6972 GB, free: 11.28 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004456/0.4171, allocations: 408.9 kB / 0.6976 GB, free: 10.99 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.149e-05/0.4172, allocations: 6.281 kB / 0.6976 GB, free: 10.99 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.198e-05/0.4172, allocations: 10 kB / 0.6976 GB, free: 10.99 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004177/0.4176, allocations: 385.4 kB / 0.6979 GB, free: 10.93 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.775e-06/0.4176, allocations: 4.531 kB / 0.6979 GB, free: 10.93 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.245e-05/0.4177, allocations: 1.562 kB / 0.6979 GB, free: 10.93 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-06/0.4177, allocations: 1.25 kB / 0.6979 GB, free: 10.93 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000454/0.4181, allocations: 437.7 kB / 0.6984 GB, free: 10.93 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000563/0.4187, allocations: 0.6681 MB / 0.699 GB, free: 10.53 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005251/0.4192, allocations: 0.5633 MB / 0.6996 GB, free: 10.48 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003164/0.4196, allocations: 335.1 kB / 0.6999 GB, free: 10.46 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000705/0.4203, allocations: 1.028 MB / 0.7009 GB, free: 9.328 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004012/0.4207, allocations: 409.9 kB / 0.7013 GB, free: 9.25 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.773e-06/0.4207, allocations: 0 / 0.7013 GB, free: 9.25 MB / 494.1 MB Notification: Performance of matching and sorting (n=8): time 0.001431/0.4221, allocations: 1.298 MB / 0.7025 GB, free: 9.141 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.237e-05/0.4222, allocations: 81.77 kB / 0.7026 GB, free: 9.047 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001332/0.4235, allocations: 1.294 MB / 0.7039 GB, free: 8.535 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.68e-05/0.4236, allocations: 32.66 kB / 0.7039 GB, free: 8.5 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001646/0.4237, allocations: 286.8 kB / 0.7042 GB, free: 8.305 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.094e-05/0.4238, allocations: 28.52 kB / 0.7042 GB, free: 8.285 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003519/0.4241, allocations: 354.7 kB / 0.7046 GB, free: 8.188 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.403e-05/0.4242, allocations: 316.5 kB / 0.7049 GB, free: 7.879 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001191/0.4254, allocations: 1.37 MB / 0.7062 GB, free: 7.426 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001198/0.4266, allocations: 1.508 MB / 0.7077 GB, free: 6.898 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006649/0.4332, allocations: 3.557 MB / 0.7111 GB, free: 5.055 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.4332, allocations: 3.188 kB / 0.7111 GB, free: 5.055 MB / 494.1 MB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003748/0.437, allocations: 4.002 MB / 0.7151 GB, free: 3.082 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.804e-05/0.437, allocations: 14.08 kB / 0.7151 GB, free: 3.074 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.568e-05/0.4371, allocations: 2.438 kB / 0.7151 GB, free: 3.074 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.612e-05/0.4371, allocations: 1.594 kB / 0.7151 GB, free: 3.074 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001204/0.4372, allocations: 17.06 kB / 0.7151 GB, free: 3.074 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.204e-06/0.4372, allocations: 3.906 kB / 0.7151 GB, free: 3.074 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000533/0.4378, allocations: 232.3 kB / 0.7153 GB, free: 2.887 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.382e-05/0.4378, allocations: 24.22 kB / 0.7153 GB, free: 2.887 MB / 494.1 MB 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.0003004/0.4381, allocations: 255.8 kB / 0.7156 GB, free: 2.762 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.182e-05/0.4382, allocations: 84.8 kB / 0.7157 GB, free: 2.699 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002406/0.4384, allocations: 76.88 kB / 0.7157 GB, free: 2.645 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.4384, allocations: 1.156 kB / 0.7157 GB, free: 2.645 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.4384, allocations: 4.406 kB / 0.7157 GB, free: 2.645 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.4385, allocations: 1.875 kB / 0.7157 GB, free: 2.645 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004693/0.4389, allocations: 0.5209 MB / 0.7162 GB, free: 2.359 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.4389, allocations: 5.188 kB / 0.7163 GB, free: 2.359 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.656e-05/0.439, allocations: 10.89 kB / 0.7163 GB, free: 2.355 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.439, allocations: 3.938 kB / 0.7163 GB, free: 2.352 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.289e-05/0.439, allocations: 3.594 kB / 0.7163 GB, free: 2.352 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.205e-06/0.439, allocations: 6.594 kB / 0.7163 GB, free: 2.348 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.4391, allocations: 0 / 0.7163 GB, free: 2.348 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008578/0.4399, allocations: 1.004 MB / 0.7173 GB, free: 2.199 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.019e-05/0.44, allocations: 165.8 kB / 0.7174 GB, free: 2.043 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.603e-05/0.4401, allocations: 2.188 kB / 0.7174 GB, free: 2.043 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001565/0.4402, allocations: 4.844 kB / 0.7174 GB, free: 2.043 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.863e-05/0.4403, allocations: 6.703 kB / 0.7174 GB, free: 2.043 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.096e-05/0.4403, allocations: 11.31 kB / 0.7174 GB, free: 2.043 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0007674/0.4411, allocations: 0.7245 MB / 0.7181 GB, free: 1.801 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.4411, allocations: 4 kB / 0.7182 GB, free: 1.797 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002023/0.4431, allocations: 0.5842 MB / 0.7187 GB, free: 1.695 MB / 494.1 MB 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.001634/0.4448, allocations: 0.6893 MB / 0.7194 GB, free: 1.5 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001979/0.4468, allocations: 2.548 MB / 0.7219 GB, free: 488 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.4468, allocations: 0 / 0.7219 GB, free: 488 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003059/0.4471, allocations: 346.4 kB / 0.7222 GB, free: 476 kB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003637/0.4475, allocations: 55.73 kB / 0.7223 GB, free: 444 kB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001964/0.4494, allocations: 1.871 MB / 0.7241 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005057/0.4499, allocations: 0.9934 MB / 0.7251 GB, free: 15.03 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.000139/0.4501, allocations: 39.33 kB / 0.7251 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.948e-05/0.4502, allocations: 28.97 kB / 0.7251 GB, free: 15 MB / 0.4981 GB Notification: Performance of SimCode: time 2.81e-07/0.4502, allocations: 0 / 0.7251 GB, free: 15 MB / 0.4981 GB Notification: Performance of Templates: time 0.0214/0.4716, allocations: 14.2 MB / 0.739 GB, free: 2.07 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile (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=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)