Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") translateModel(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.001097/0.001098, allocations: 98.98 kB / 16.27 MB, free: 5.965 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.001123/0.001123, allocations: 189.9 kB / 17.2 MB, free: 5.594 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.316/1.316, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7485/0.7485, allocations: 122.9 MB / 413.9 MB, free: 15.89 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 67.91 kB / 0.4911 GB, free: 7.387 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.334/0.3353, allocations: 77.92 MB / 0.5672 GB, free: 32.75 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002947/0.3383, allocations: 1.743 MB / 0.5689 GB, free: 31.55 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.006537/0.3448, allocations: 5.383 MB / 0.5742 GB, free: 27.9 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001307/0.345, allocations: 5.188 kB / 0.5742 GB, free: 27.89 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001186/0.3463, allocations: 368.1 kB / 0.5746 GB, free: 27.73 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001209/0.3464, allocations: 58.53 kB / 0.5746 GB, free: 27.7 MB / 446.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/IBPSA 4.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.004037/0.3504, allocations: 1.498 MB / 0.5761 GB, free: 27.14 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002523/0.3507, allocations: 159.1 kB / 0.5762 GB, free: 27.09 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.912e-05/0.3508, allocations: 13.28 kB / 0.5762 GB, free: 27.08 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.395e-05/0.3508, allocations: 60.2 kB / 0.5763 GB, free: 27.06 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002241/0.3511, allocations: 166.9 kB / 0.5765 GB, free: 27.01 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 4.704e-05/0.3511, allocations: 15.28 kB / 0.5765 GB, free: 27.01 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00338/0.3545, allocations: 2.158 MB / 0.5786 GB, free: 26.26 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002075/0.3547, allocations: 277.5 kB / 0.5788 GB, free: 26.12 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002249/0.355, allocations: 315.5 kB / 0.5791 GB, free: 25.9 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002772/0.3577, allocations: 2.167 MB / 0.5813 GB, free: 24.63 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.3578, allocations: 1.156 kB / 0.5813 GB, free: 24.63 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3578, allocations: 0.7812 kB / 0.5813 GB, free: 24.63 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.532e-05/0.3578, allocations: 0 / 0.5813 GB, free: 24.63 MB / 446.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.01051/0.3683, allocations: 1.366 MB / 0.5826 GB, free: 23.56 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.3684, allocations: 10.41 kB / 0.5826 GB, free: 23.56 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003887/0.3688, allocations: 100.4 kB / 0.5827 GB, free: 23.5 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003863/0.3692, allocations: 406.2 kB / 0.5831 GB, free: 23.14 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.143e-05/0.3692, allocations: 7.047 kB / 0.5831 GB, free: 23.14 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.106e-05/0.3692, allocations: 13.39 kB / 0.5831 GB, free: 23.13 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004054/0.3696, allocations: 393.1 kB / 0.5835 GB, free: 23.01 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.276e-06/0.3697, allocations: 0 / 0.5835 GB, free: 23.01 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.427e-05/0.3697, allocations: 5.641 kB / 0.5835 GB, free: 23.01 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.3697, allocations: 0 / 0.5835 GB, free: 23.01 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004394/0.3701, allocations: 435.6 kB / 0.5839 GB, free: 22.94 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005527/0.3707, allocations: 0.6629 MB / 0.5845 GB, free: 22.43 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005348/0.3712, allocations: 0.5653 MB / 0.5851 GB, free: 22.29 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002988/0.3716, allocations: 339.5 kB / 0.5854 GB, free: 22.22 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007596/0.3723, allocations: 1.029 MB / 0.5864 GB, free: 21.05 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003996/0.3727, allocations: 414.7 kB / 0.5868 GB, free: 20.91 MB / 446.1 MB Notification: Performance of pre-optimization done (n=8): time 1.162e-06/0.3727, allocations: 0 / 0.5868 GB, free: 20.91 MB / 446.1 MB Notification: Performance of matching and sorting (n=8): time 0.001396/0.3741, allocations: 1.3 MB / 0.5881 GB, free: 20.61 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.568e-05/0.3742, allocations: 80.52 kB / 0.5882 GB, free: 20.52 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001093/0.3753, allocations: 1.298 MB / 0.5894 GB, free: 19.58 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.776e-05/0.3753, allocations: 29.7 kB / 0.5895 GB, free: 19.55 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001465/0.3755, allocations: 286.1 kB / 0.5897 GB, free: 19.26 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.924e-05/0.3755, allocations: 17.52 kB / 0.5898 GB, free: 19.25 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000235/0.3758, allocations: 355.6 kB / 0.5901 GB, free: 18.89 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.39e-05/0.3758, allocations: 318 kB / 0.5904 GB, free: 18.58 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008409/0.3767, allocations: 1.371 MB / 0.5917 GB, free: 17.21 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008765/0.3776, allocations: 1.509 MB / 0.5932 GB, free: 15.69 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006104/0.3837, allocations: 3.563 MB / 0.5967 GB, free: 12.04 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.3837, allocations: 0 / 0.5967 GB, free: 12.04 MB / 446.1 MB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003242/0.3869, allocations: 4.01 MB / 0.6006 GB, free: 7.988 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/0.387, allocations: 5.25 kB / 0.6006 GB, free: 7.984 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.6e-05/0.387, allocations: 7.938 kB / 0.6006 GB, free: 7.977 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/0.387, allocations: 0 / 0.6006 GB, free: 7.977 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001228/0.3872, allocations: 16.61 kB / 0.6006 GB, free: 7.961 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/0.3872, allocations: 0.5938 kB / 0.6006 GB, free: 7.961 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004646/0.3876, allocations: 232.8 kB / 0.6009 GB, free: 7.73 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.403e-05/0.3877, allocations: 26.08 kB / 0.6009 GB, free: 7.707 MB / 446.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.0002732/0.388, allocations: 249.6 kB / 0.6011 GB, free: 7.453 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.836e-05/0.388, allocations: 74.62 kB / 0.6012 GB, free: 7.379 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002724/0.3883, allocations: 81.56 kB / 0.6013 GB, free: 7.297 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-06/0.3883, allocations: 0 / 0.6013 GB, free: 7.297 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-06/0.3883, allocations: 0 / 0.6013 GB, free: 7.297 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.247e-06/0.3883, allocations: 4.844 kB / 0.6013 GB, free: 7.293 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003282/0.3887, allocations: 0.518 MB / 0.6018 GB, free: 6.73 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.3887, allocations: 1.875 kB / 0.6018 GB, free: 6.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.873e-05/0.3888, allocations: 11.94 kB / 0.6018 GB, free: 6.719 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.3888, allocations: 0 / 0.6018 GB, free: 6.719 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.23e-05/0.3888, allocations: 3.984 kB / 0.6018 GB, free: 6.715 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.3888, allocations: 7.938 kB / 0.6018 GB, free: 6.707 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.3888, allocations: 1.938 kB / 0.6018 GB, free: 6.707 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006152/0.3894, allocations: 1.007 MB / 0.6028 GB, free: 5.68 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.759e-05/0.3895, allocations: 164.2 kB / 0.6029 GB, free: 5.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.832e-05/0.3896, allocations: 8 kB / 0.603 GB, free: 5.492 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001477/0.3897, allocations: 5.297 kB / 0.603 GB, free: 5.488 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.533e-05/0.3898, allocations: 4 kB / 0.603 GB, free: 5.484 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.093e-05/0.3898, allocations: 16.64 kB / 0.603 GB, free: 5.469 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005936/0.3904, allocations: 0.7269 MB / 0.6037 GB, free: 4.738 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3904, allocations: 0 / 0.6037 GB, free: 4.738 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001493/0.3919, allocations: 0.5831 MB / 0.6043 GB, free: 4.156 MB / 446.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.001588/0.3935, allocations: 0.6931 MB / 0.6049 GB, free: 3.484 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001688/0.3952, allocations: 2.548 MB / 0.6074 GB, free: 0.9219 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.3952, allocations: 0 / 0.6074 GB, free: 0.9219 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002504/0.3955, allocations: 345.3 kB / 0.6078 GB, free: 0.5859 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004163/0.3959, allocations: 62.86 kB / 0.6078 GB, free: 0.5312 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002151/0.3981, allocations: 1.884 MB / 0.6097 GB, free: 14.61 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005375/0.3986, allocations: 0.9839 MB / 0.6106 GB, free: 13.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0002091/0.3988, allocations: 41.42 kB / 0.6107 GB, free: 13.56 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.891e-05/0.399, allocations: 23.42 kB / 0.6107 GB, free: 13.54 MB / 462.1 MB Notification: Performance of SimCode: time 4.01e-07/0.399, allocations: 0 / 0.6107 GB, free: 13.54 MB / 462.1 MB Notification: Performance of Templates: time 0.02223/0.4212, allocations: 14.18 MB / 0.6245 GB, free: 15.41 MB / 478.1 MB make -j1 -f IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile (rm -f IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & ./IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)