Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001261/0.001261, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001076/0.001076, allocations: 196.8 kB / 16.53 MB, free: 6.664 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.359/1.359, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.79/2.79, allocations: 472.6 MB / 0.7451 GB, free: 4.684 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 67.5 kB / 0.9121 GB, free: 33.35 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2792/0.2804, allocations: 159.9 MB / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002584/0.283, allocations: 1.433 MB / 1.07 GB, free: 8.934 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.006139/0.2892, allocations: 4.193 MB / 1.074 GB, free: 4.727 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.266e-05/0.2893, allocations: 0 / 1.074 GB, free: 4.727 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001149/0.2895, allocations: 19.86 kB / 1.074 GB, free: 4.707 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002276/0.2897, allocations: 31.78 kB / 1.074 GB, free: 4.676 MB / 0.8262 GB [/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/Buildings 12.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.003841/0.2935, allocations: 1.504 MB / 1.075 GB, free: 3.172 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001426/0.2937, allocations: 99.61 kB / 1.075 GB, free: 3.074 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.904e-05/0.2938, allocations: 7.984 kB / 1.075 GB, free: 3.066 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.23e-05/0.2938, allocations: 47.83 kB / 1.075 GB, free: 3.02 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002362/0.2941, allocations: 147.6 kB / 1.076 GB, free: 2.875 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.489e-05/0.2941, allocations: 12 kB / 1.076 GB, free: 2.863 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003387/0.2975, allocations: 2.161 MB / 1.078 GB, free: 0.6992 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002582/0.2978, allocations: 267.8 kB / 1.078 GB, free: 448 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002877/0.2981, allocations: 274.3 kB / 1.078 GB, free: 172 kB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.003926/0.3021, allocations: 2.104 MB / 1.08 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3021, allocations: 0 / 1.08 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.024e-06/0.3021, allocations: 4 kB / 1.08 GB, free: 14.05 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.655e-05/0.3021, allocations: 4 kB / 1.08 GB, free: 14.05 MB / 0.8419 GB 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.01075/0.3129, allocations: 1.296 MB / 1.081 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/0.3129, allocations: 12.03 kB / 1.081 GB, free: 12.69 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004216/0.3134, allocations: 87.59 kB / 1.082 GB, free: 12.6 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004255/0.3138, allocations: 361 kB / 1.082 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.986e-06/0.3138, allocations: 384 / 1.082 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.234e-05/0.3139, allocations: 12.36 kB / 1.082 GB, free: 12.19 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004253/0.3143, allocations: 391.4 kB / 1.082 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.3143, allocations: 0 / 1.082 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.693e-05/0.3144, allocations: 8 kB / 1.082 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.3144, allocations: 0 / 1.082 GB, free: 11.79 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004208/0.3148, allocations: 439.7 kB / 1.083 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006237/0.3154, allocations: 0.6405 MB / 1.083 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000499/0.3159, allocations: 0.5594 MB / 1.084 GB, free: 10.09 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003116/0.3163, allocations: 337.7 kB / 1.084 GB, free: 9.75 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001089/0.3174, allocations: 1.036 MB / 1.085 GB, free: 8.492 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003859/0.3178, allocations: 404.8 kB / 1.086 GB, free: 8.078 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=8): time 2.064e-06/0.3178, allocations: 4 kB / 1.086 GB, free: 8.074 MB / 0.8419 GB Notification: Performance of matching and sorting (n=8): time 0.001285/0.3191, allocations: 1.289 MB / 1.087 GB, free: 6.777 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.595e-05/0.3191, allocations: 81.11 kB / 1.087 GB, free: 6.68 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001139/0.3203, allocations: 1.214 MB / 1.088 GB, free: 5.449 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.708e-05/0.3203, allocations: 25.7 kB / 1.088 GB, free: 5.418 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001834/0.3205, allocations: 265.4 kB / 1.088 GB, free: 5.152 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.799e-05/0.3205, allocations: 19.86 kB / 1.088 GB, free: 5.133 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003138/0.3209, allocations: 359.6 kB / 1.089 GB, free: 4.777 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 9.752e-05/0.321, allocations: 306 kB / 1.089 GB, free: 4.473 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001197/0.3222, allocations: 1.377 MB / 1.09 GB, free: 3.094 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001296/0.3235, allocations: 1.503 MB / 1.092 GB, free: 1.582 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007499/0.331, allocations: 3.564 MB / 1.095 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.331, allocations: 0 / 1.095 GB, free: 13.92 MB / 0.8575 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004484/0.3355, allocations: 4.003 MB / 1.099 GB, free: 9.883 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.384e-05/0.3356, allocations: 11.94 kB / 1.099 GB, free: 9.871 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.035e-05/0.3356, allocations: 3.984 kB / 1.099 GB, free: 9.867 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.177e-05/0.3356, allocations: 0 / 1.099 GB, free: 9.867 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001402/0.3358, allocations: 16.03 kB / 1.099 GB, free: 9.852 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.874e-06/0.3358, allocations: 4 kB / 1.099 GB, free: 9.848 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004987/0.3363, allocations: 232.3 kB / 1.1 GB, free: 9.617 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.97e-05/0.3364, allocations: 23.98 kB / 1.1 GB, free: 9.594 MB / 0.8575 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.0003236/0.3367, allocations: 241.6 kB / 1.1 GB, free: 9.348 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.356e-05/0.3368, allocations: 66.72 kB / 1.1 GB, free: 9.281 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003075/0.3371, allocations: 79.06 kB / 1.1 GB, free: 9.195 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/0.3371, allocations: 0 / 1.1 GB, free: 9.195 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.3371, allocations: 0 / 1.1 GB, free: 9.195 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.3371, allocations: 0 / 1.1 GB, free: 9.195 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004148/0.3375, allocations: 0.4968 MB / 1.1 GB, free: 8.656 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.3375, allocations: 0 / 1.1 GB, free: 8.656 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.421e-05/0.3376, allocations: 11.92 kB / 1.1 GB, free: 8.645 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.3376, allocations: 4 kB / 1.1 GB, free: 8.641 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.209e-05/0.3377, allocations: 0 / 1.1 GB, free: 8.641 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.3377, allocations: 7.969 kB / 1.1 GB, free: 8.633 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.3377, allocations: 4 kB / 1.1 GB, free: 8.629 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008617/0.3385, allocations: 0.9939 MB / 1.101 GB, free: 7.613 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001072/0.3387, allocations: 155.8 kB / 1.102 GB, free: 7.441 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.135e-05/0.3387, allocations: 0 / 1.102 GB, free: 7.441 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001382/0.3389, allocations: 15.98 kB / 1.102 GB, free: 7.426 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.664e-05/0.3389, allocations: 4 kB / 1.102 GB, free: 7.422 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.657e-05/0.339, allocations: 11.97 kB / 1.102 GB, free: 7.41 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0007347/0.3397, allocations: 0.6728 MB / 1.102 GB, free: 6.73 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3397, allocations: 0 / 1.102 GB, free: 6.73 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.001567/0.3413, allocations: 0.5817 MB / 1.103 GB, free: 6.148 MB / 0.8575 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.002087/0.3434, allocations: 0.6892 MB / 1.103 GB, free: 5.469 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.002223/0.3456, allocations: 2.556 MB / 1.106 GB, free: 2.898 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.3456, allocations: 0 / 1.106 GB, free: 2.898 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0003167/0.3459, allocations: 335.8 kB / 1.106 GB, free: 2.57 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003128/0.3463, allocations: 41.94 kB / 1.106 GB, free: 2.531 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001971/0.3482, allocations: 1.769 MB / 1.108 GB, free: 0.7305 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004971/0.3488, allocations: 0.9679 MB / 1.109 GB, free: 15.74 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.000167/0.3489, allocations: 32.56 kB / 1.109 GB, free: 15.71 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.802e-05/0.349, allocations: 31.41 kB / 1.109 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of SimCode: time 3.61e-07/0.349, allocations: 0 / 1.109 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of Templates: time 0.02303/0.3721, allocations: 13.56 MB / 1.122 GB, free: 2.156 MB / 0.8731 GB make -j1 -f Buildings_1.6_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.makefile (rm -f Buildings_1.6_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/Buildings_1.6_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & ./Buildings_1.6_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)