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.001495/0.001495, allocations: 103.4 kB / 16.35 MB, free: 5.875 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.001685/0.001685, allocations: 191 kB / 17.29 MB, free: 5.516 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 / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002062/0.002062, allocations: 292.2 kB / 291.4 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9436/0.9436, allocations: 169.3 MB / 0.4989 GB, free: 4.457 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001828/0.001828, allocations: 92.83 kB / 0.5967 GB, free: 14.44 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1431/0.145, allocations: 86.98 MB / 0.6816 GB, free: 7.449 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002856/0.1478, allocations: 1.747 MB / 0.6833 GB, free: 5.688 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.007184/0.1551, allocations: 5.387 MB / 0.6886 GB, free: 280 kB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.849e-05/0.1552, allocations: 0 / 0.6886 GB, free: 280 kB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2401/0.3953, allocations: 368.4 kB / 0.689 GB, free: 12.83 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001773/0.3955, allocations: 59.58 kB / 0.689 GB, free: 12.83 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.003762/0.3992, allocations: 1.499 MB / 0.6905 GB, free: 12.82 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002831/0.3995, allocations: 162.3 kB / 0.6906 GB, free: 12.82 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.828e-05/0.3996, allocations: 10.17 kB / 0.6906 GB, free: 12.82 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.599e-05/0.3997, allocations: 61.11 kB / 0.6907 GB, free: 12.82 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002242/0.3999, allocations: 163.4 kB / 0.6909 GB, free: 12.81 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.256e-05/0.3999, allocations: 16.56 kB / 0.6909 GB, free: 12.81 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003452/0.4034, allocations: 2.21 MB / 0.693 GB, free: 12.79 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002445/0.4037, allocations: 278.8 kB / 0.6933 GB, free: 12.75 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002415/0.4039, allocations: 301.9 kB / 0.6936 GB, free: 12.6 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003159/0.4071, allocations: 2.188 MB / 0.6957 GB, free: 12.33 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.4071, allocations: 0 / 0.6957 GB, free: 12.33 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.4071, allocations: 0 / 0.6957 GB, free: 12.33 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.528e-06/0.4071, allocations: 0.9062 kB / 0.6957 GB, free: 12.33 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.008523/0.4157, allocations: 1.367 MB / 0.6971 GB, free: 11.42 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.4157, allocations: 9.062 kB / 0.6971 GB, free: 11.42 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003811/0.4161, allocations: 99.33 kB / 0.6972 GB, free: 11.36 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004913/0.4166, allocations: 403.9 kB / 0.6975 GB, free: 11.07 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.353e-05/0.4166, allocations: 11.08 kB / 0.6976 GB, free: 11.07 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.145e-05/0.4167, allocations: 10 kB / 0.6976 GB, free: 11.07 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004264/0.4171, allocations: 385.7 kB / 0.6979 GB, free: 11.02 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.4171, allocations: 8.438 kB / 0.6979 GB, free: 11.01 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.272e-05/0.4171, allocations: 2.625 kB / 0.6979 GB, free: 11.01 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.4171, allocations: 0.8438 kB / 0.6979 GB, free: 11.01 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004655/0.4176, allocations: 436.9 kB / 0.6984 GB, free: 11.01 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006157/0.4182, allocations: 0.666 MB / 0.699 GB, free: 10.61 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005191/0.4188, allocations: 0.5678 MB / 0.6996 GB, free: 10.55 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003202/0.4191, allocations: 335.9 kB / 0.6999 GB, free: 10.54 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007186/0.4198, allocations: 1.028 MB / 0.7009 GB, free: 9.406 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004092/0.4202, allocations: 410.1 kB / 0.7013 GB, free: 9.328 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.332e-06/0.4203, allocations: 1.156 kB / 0.7013 GB, free: 9.328 MB / 494.1 MB Notification: Performance of matching and sorting (n=8): time 0.001523/0.4218, allocations: 1.295 MB / 0.7025 GB, free: 9.219 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.292e-05/0.4218, allocations: 83.02 kB / 0.7026 GB, free: 9.125 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00148/0.4233, allocations: 1.288 MB / 0.7039 GB, free: 8.617 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.645e-05/0.4234, allocations: 28.19 kB / 0.7039 GB, free: 8.586 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001757/0.4236, allocations: 291.3 kB / 0.7042 GB, free: 8.387 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.093e-05/0.4236, allocations: 24.94 kB / 0.7042 GB, free: 8.367 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003534/0.424, allocations: 353.7 kB / 0.7045 GB, free: 8.27 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.649e-05/0.424, allocations: 322.3 kB / 0.7049 GB, free: 7.961 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00122/0.4252, allocations: 1.376 MB / 0.7062 GB, free: 7.508 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001246/0.4265, allocations: 1.504 MB / 0.7077 GB, free: 6.98 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006895/0.4334, allocations: 3.56 MB / 0.7111 GB, free: 5.137 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.489e-06/0.4334, allocations: 0 / 0.7111 GB, free: 5.137 MB / 494.1 MB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003996/0.4374, allocations: 4.005 MB / 0.7151 GB, free: 3.164 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.099e-05/0.4375, allocations: 9.812 kB / 0.7151 GB, free: 3.16 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.773e-05/0.4375, allocations: 6.656 kB / 0.7151 GB, free: 3.156 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.788e-05/0.4375, allocations: 2.172 kB / 0.7151 GB, free: 3.156 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001289/0.4376, allocations: 15.66 kB / 0.7151 GB, free: 3.156 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.934e-06/0.4377, allocations: 4.812 kB / 0.7151 GB, free: 3.156 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006075/0.4383, allocations: 232.4 kB / 0.7153 GB, free: 2.969 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.986e-05/0.4383, allocations: 22.92 kB / 0.7153 GB, free: 2.969 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.0003458/0.4387, allocations: 244.4 kB / 0.7156 GB, free: 2.848 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.704e-05/0.4388, allocations: 83.95 kB / 0.7156 GB, free: 2.781 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002586/0.439, allocations: 80.02 kB / 0.7157 GB, free: 2.727 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.439, allocations: 6.094 kB / 0.7157 GB, free: 2.723 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.439, allocations: 0.6562 kB / 0.7157 GB, free: 2.723 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.4391, allocations: 1.062 kB / 0.7157 GB, free: 2.723 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000487/0.4395, allocations: 0.5201 MB / 0.7162 GB, free: 2.438 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.4396, allocations: 0 / 0.7162 GB, free: 2.438 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.185e-05/0.4396, allocations: 11.75 kB / 0.7162 GB, free: 2.434 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.4396, allocations: 5.062 kB / 0.7163 GB, free: 2.43 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.42e-05/0.4397, allocations: 6.875 kB / 0.7163 GB, free: 2.43 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.4397, allocations: 1.156 kB / 0.7163 GB, free: 2.43 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.4397, allocations: 1.719 kB / 0.7163 GB, free: 2.43 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008703/0.4406, allocations: 1.009 MB / 0.7172 GB, free: 2.281 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.291e-05/0.4407, allocations: 163.8 kB / 0.7174 GB, free: 2.125 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.723e-05/0.4407, allocations: 2.812 kB / 0.7174 GB, free: 2.125 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001551/0.4409, allocations: 5.016 kB / 0.7174 GB, free: 2.125 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.064e-05/0.4409, allocations: 5.969 kB / 0.7174 GB, free: 2.125 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.546e-05/0.441, allocations: 12.73 kB / 0.7174 GB, free: 2.125 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0008275/0.4418, allocations: 0.7237 MB / 0.7181 GB, free: 1.883 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4418, allocations: 0 / 0.7181 GB, free: 1.883 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002075/0.4439, allocations: 0.5878 MB / 0.7187 GB, free: 1.777 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.001749/0.4456, allocations: 0.6855 MB / 0.7194 GB, free: 1.582 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002151/0.4478, allocations: 2.551 MB / 0.7219 GB, free: 0.5586 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.4478, allocations: 1.406 kB / 0.7219 GB, free: 0.5586 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003177/0.4481, allocations: 342.5 kB / 0.7222 GB, free: 0.5469 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004235/0.4486, allocations: 57.62 kB / 0.7223 GB, free: 0.5117 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002027/0.4506, allocations: 1.874 MB / 0.7241 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005199/0.4511, allocations: 0.9911 MB / 0.7251 GB, free: 15.13 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001489/0.4513, allocations: 53.5 kB / 0.7251 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001032/0.4514, allocations: 24.45 kB / 0.7251 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of SimCode: time 3.91e-07/0.4514, allocations: 1.344 kB / 0.7251 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of Templates: time 0.02226/0.4737, allocations: 14.18 MB / 0.739 GB, free: 2.16 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 gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)