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.001216/0.001216, allocations: 105.1 kB / 15.98 MB, free: 6.355 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.000993/0.000993, allocations: 195.9 kB / 16.91 MB, free: 6.188 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.238/1.238, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002012/0.002012, allocations: 286.3 kB / 291 MB, free: 14.71 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8946/0.8946, allocations: 169.2 MB / 0.4985 GB, free: 4.754 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001603/0.001603, allocations: 94.52 kB / 0.5954 GB, free: 15.47 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1639/0.1655, allocations: 86.97 MB / 0.6803 GB, free: 8.516 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002721/0.1683, allocations: 1.802 MB / 0.6821 GB, free: 6.695 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.006698/0.175, allocations: 5.395 MB / 0.6873 GB, free: 1.277 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.797e-05/0.1751, allocations: 0 / 0.6873 GB, free: 1.277 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001103/0.1762, allocations: 354.6 kB / 0.6877 GB, free: 0.9297 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001066/0.1763, allocations: 55.72 kB / 0.6877 GB, free: 0.875 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.2944/0.4707, allocations: 1.324 MB / 0.689 GB, free: 12.3 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003571/0.4711, allocations: 162 kB / 0.6892 GB, free: 12.3 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.228e-05/0.4711, allocations: 10.69 kB / 0.6892 GB, free: 12.3 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.434e-05/0.4712, allocations: 58.23 kB / 0.6893 GB, free: 12.3 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002858/0.4715, allocations: 184.1 kB / 0.6894 GB, free: 12.3 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.005e-05/0.4716, allocations: 16.66 kB / 0.6894 GB, free: 12.3 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004017/0.4756, allocations: 2.197 MB / 0.6916 GB, free: 12.3 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003187/0.4759, allocations: 284.3 kB / 0.6919 GB, free: 12.26 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002627/0.4762, allocations: 305.5 kB / 0.6922 GB, free: 12.11 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00285/0.4791, allocations: 1.517 MB / 0.6936 GB, free: 11.97 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.4791, allocations: 0.5156 kB / 0.6936 GB, free: 11.97 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.4791, allocations: 0 / 0.6936 GB, free: 11.97 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.056e-05/0.4791, allocations: 1.562 kB / 0.6936 GB, free: 11.97 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.009283/0.4884, allocations: 1.363 MB / 0.695 GB, free: 11.08 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.123e-05/0.4885, allocations: 13.97 kB / 0.695 GB, free: 11.07 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004806/0.4889, allocations: 95.39 kB / 0.6951 GB, free: 11.02 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004617/0.4894, allocations: 410.3 kB / 0.6955 GB, free: 10.73 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.526e-05/0.4894, allocations: 9.219 kB / 0.6955 GB, free: 10.73 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.354e-05/0.4895, allocations: 6.656 kB / 0.6955 GB, free: 10.73 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005226/0.49, allocations: 390.3 kB / 0.6958 GB, free: 10.68 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/0.49, allocations: 3.938 kB / 0.6959 GB, free: 10.68 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.491e-05/0.4901, allocations: 2.594 kB / 0.6959 GB, free: 10.68 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/0.4901, allocations: 1.094 kB / 0.6959 GB, free: 10.68 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005807/0.4907, allocations: 437.3 kB / 0.6963 GB, free: 10.68 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007663/0.4914, allocations: 0.6637 MB / 0.6969 GB, free: 10.39 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006499/0.4921, allocations: 0.5677 MB / 0.6975 GB, free: 10.35 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003615/0.4925, allocations: 332.2 kB / 0.6978 GB, free: 10.33 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008796/0.4934, allocations: 1.03 MB / 0.6988 GB, free: 9.203 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004651/0.4938, allocations: 409.1 kB / 0.6992 GB, free: 9.133 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 1.923e-06/0.4938, allocations: 0 / 0.6992 GB, free: 9.133 MB / 494.1 MB Notification: Performance of matching and sorting (n=8): time 0.001716/0.4956, allocations: 1.304 MB / 0.7005 GB, free: 9.039 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.278e-05/0.4956, allocations: 83.91 kB / 0.7005 GB, free: 8.945 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001585/0.4972, allocations: 1.29 MB / 0.7018 GB, free: 8.711 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.545e-05/0.4973, allocations: 29.09 kB / 0.7018 GB, free: 8.68 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002009/0.4975, allocations: 282.4 kB / 0.7021 GB, free: 8.547 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.689e-05/0.4975, allocations: 25.97 kB / 0.7021 GB, free: 8.531 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000417/0.4979, allocations: 354.2 kB / 0.7025 GB, free: 8.477 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 6.382e-05/0.498, allocations: 317.6 kB / 0.7028 GB, free: 8.168 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001459/0.4995, allocations: 1.376 MB / 0.7041 GB, free: 7.711 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001515/0.501, allocations: 1.503 MB / 0.7056 GB, free: 7.188 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006921/0.5079, allocations: 3.559 MB / 0.7091 GB, free: 5.344 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.228e-06/0.5079, allocations: 5.156 kB / 0.7091 GB, free: 5.34 MB / 494.1 MB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004267/0.5122, allocations: 4.012 MB / 0.713 GB, free: 3.363 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/0.5123, allocations: 10.7 kB / 0.713 GB, free: 3.359 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.215e-05/0.5123, allocations: 3.609 kB / 0.713 GB, free: 3.359 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.135e-05/0.5123, allocations: 1.156 kB / 0.713 GB, free: 3.359 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001345/0.5124, allocations: 16.42 kB / 0.713 GB, free: 3.359 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.127e-06/0.5125, allocations: 1.094 kB / 0.713 GB, free: 3.359 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006277/0.5131, allocations: 235.8 kB / 0.7132 GB, free: 3.168 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.023e-05/0.5132, allocations: 27.77 kB / 0.7133 GB, free: 3.168 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.0003927/0.5136, allocations: 248 kB / 0.7135 GB, free: 3.047 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.201e-05/0.5136, allocations: 75 kB / 0.7136 GB, free: 2.988 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002817/0.5139, allocations: 78.75 kB / 0.7136 GB, free: 2.93 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.5139, allocations: 1.547 kB / 0.7136 GB, free: 2.93 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.5139, allocations: 5.156 kB / 0.7136 GB, free: 2.926 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.514, allocations: 1.891 kB / 0.7136 GB, free: 2.926 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005665/0.5145, allocations: 0.5192 MB / 0.7142 GB, free: 2.641 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.5145, allocations: 0.6094 kB / 0.7142 GB, free: 2.641 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.724e-05/0.5146, allocations: 8.016 kB / 0.7142 GB, free: 2.641 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.5146, allocations: 5.906 kB / 0.7142 GB, free: 2.637 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.653e-05/0.5146, allocations: 3.938 kB / 0.7142 GB, free: 2.637 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.5146, allocations: 1.547 kB / 0.7142 GB, free: 2.637 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.5147, allocations: 1.562 kB / 0.7142 GB, free: 2.637 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001048/0.5157, allocations: 1.004 MB / 0.7152 GB, free: 2.488 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.331e-05/0.5158, allocations: 160.3 kB / 0.7153 GB, free: 2.336 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.001e-05/0.5159, allocations: 6.703 kB / 0.7153 GB, free: 2.332 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001456/0.516, allocations: 7.906 kB / 0.7153 GB, free: 2.328 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.807e-05/0.5161, allocations: 11.42 kB / 0.7153 GB, free: 2.324 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.589e-05/0.5161, allocations: 13.3 kB / 0.7153 GB, free: 2.324 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0008591/0.517, allocations: 0.7268 MB / 0.7161 GB, free: 2.078 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.222e-06/0.517, allocations: 0 / 0.7161 GB, free: 2.078 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002505/0.5195, allocations: 0.5878 MB / 0.7166 GB, free: 1.977 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.001895/0.5214, allocations: 0.6852 MB / 0.7173 GB, free: 1.781 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002466/0.5239, allocations: 2.554 MB / 0.7198 GB, free: 0.7539 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.5239, allocations: 0 / 0.7198 GB, free: 0.7539 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000376/0.5243, allocations: 343.9 kB / 0.7201 GB, free: 0.7461 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004286/0.5247, allocations: 56.89 kB / 0.7202 GB, free: 0.7148 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002482/0.5272, allocations: 2.115 MB / 0.7222 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005687/0.5278, allocations: 0.9875 MB / 0.7232 GB, free: 15.17 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001179/0.5279, allocations: 28.45 kB / 0.7232 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of SimCode: time 5.21e-07/0.5279, allocations: 0 / 0.7232 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of Templates: time 0.02139/0.5493, allocations: 14.49 MB / 0.7374 GB, free: 3.254 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)