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.001267/0.001267, allocations: 104.1 kB / 17.02 MB, free: 6.141 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.001193/0.001193, allocations: 195 kB / 17.97 MB, free: 5.23 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.248/1.248, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6788/0.6788, allocations: 115.1 MB / 406.9 MB, free: 6.41 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 63.91 kB / 494.9 MB, free: 15.86 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2953/0.2965, allocations: 76.14 MB / 0.5576 GB, free: 36.64 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002661/0.2992, allocations: 1.735 MB / 0.5593 GB, free: 35.46 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.005925/0.3051, allocations: 5.383 MB / 0.5646 GB, free: 31.81 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001013/0.3053, allocations: 5.719 kB / 0.5646 GB, free: 31.8 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001025/0.3063, allocations: 368.5 kB / 0.5649 GB, free: 31.65 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001136/0.3064, allocations: 59.64 kB / 0.565 GB, free: 31.62 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.003427/0.3099, allocations: 1.491 MB / 0.5664 GB, free: 31.06 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002157/0.3101, allocations: 162.8 kB / 0.5666 GB, free: 31.01 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.039e-05/0.3102, allocations: 11.83 kB / 0.5666 GB, free: 31.01 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.001e-05/0.3102, allocations: 63.61 kB / 0.5667 GB, free: 30.98 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002007/0.3104, allocations: 168.4 kB / 0.5668 GB, free: 30.93 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.63e-05/0.3105, allocations: 15.22 kB / 0.5668 GB, free: 30.93 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002927/0.3134, allocations: 2.208 MB / 0.569 GB, free: 30.27 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002033/0.3136, allocations: 273.5 kB / 0.5693 GB, free: 30.2 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002247/0.3139, allocations: 310.1 kB / 0.5695 GB, free: 30 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002746/0.3166, allocations: 2.177 MB / 0.5717 GB, free: 29.36 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.3166, allocations: 1.781 kB / 0.5717 GB, free: 29.36 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.3166, allocations: 0 / 0.5717 GB, free: 29.36 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.789e-06/0.3167, allocations: 0.5938 kB / 0.5717 GB, free: 29.36 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.00787/0.3245, allocations: 1.373 MB / 0.573 GB, free: 28.39 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.304e-05/0.3246, allocations: 9.547 kB / 0.573 GB, free: 28.39 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003518/0.3249, allocations: 96 kB / 0.5731 GB, free: 28.34 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005046/0.3255, allocations: 409.1 kB / 0.5735 GB, free: 28.02 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.031e-05/0.3255, allocations: 8.094 kB / 0.5735 GB, free: 28.02 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.419e-05/0.3255, allocations: 4.953 kB / 0.5735 GB, free: 28.02 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003972/0.3259, allocations: 390.4 kB / 0.5739 GB, free: 27.96 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.3259, allocations: 5.375 kB / 0.5739 GB, free: 27.95 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.182e-05/0.326, allocations: 1.984 kB / 0.5739 GB, free: 27.95 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.95e-06/0.326, allocations: 1.891 kB / 0.5739 GB, free: 27.95 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000398/0.3264, allocations: 434.2 kB / 0.5743 GB, free: 27.95 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005462/0.3269, allocations: 0.6642 MB / 0.575 GB, free: 27.55 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004992/0.3274, allocations: 0.5636 MB / 0.5755 GB, free: 27.5 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002792/0.3277, allocations: 343.9 kB / 0.5758 GB, free: 27.47 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006716/0.3284, allocations: 1.027 MB / 0.5768 GB, free: 26.34 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000367/0.3288, allocations: 414.6 kB / 0.5772 GB, free: 26.25 MB / 446.1 MB Notification: Performance of pre-optimization done (n=8): time 1.363e-06/0.3288, allocations: 0 / 0.5772 GB, free: 26.25 MB / 446.1 MB Notification: Performance of matching and sorting (n=8): time 0.001308/0.3301, allocations: 1.291 MB / 0.5785 GB, free: 26.14 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.792e-05/0.3302, allocations: 85.94 kB / 0.5786 GB, free: 26.05 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001239/0.3314, allocations: 1.298 MB / 0.5798 GB, free: 25.53 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.904e-05/0.3314, allocations: 32.05 kB / 0.5799 GB, free: 25.5 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001612/0.3316, allocations: 283.7 kB / 0.5802 GB, free: 25.28 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.759e-05/0.3316, allocations: 20.97 kB / 0.5802 GB, free: 25.27 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003213/0.332, allocations: 355.6 kB / 0.5805 GB, free: 25.16 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.574e-05/0.332, allocations: 321.8 kB / 0.5808 GB, free: 24.85 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001114/0.3331, allocations: 1.374 MB / 0.5822 GB, free: 24.38 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001099/0.3343, allocations: 1.506 MB / 0.5836 GB, free: 23.71 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006444/0.3407, allocations: 3.558 MB / 0.5871 GB, free: 21.63 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.3407, allocations: 0 / 0.5871 GB, free: 21.63 MB / 446.1 MB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003095/0.3438, allocations: 4.017 MB / 0.591 GB, free: 17.71 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.3439, allocations: 6.219 kB / 0.591 GB, free: 17.71 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.619e-05/0.3439, allocations: 4.531 kB / 0.591 GB, free: 17.71 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.455e-05/0.3439, allocations: 0.5156 kB / 0.591 GB, free: 17.71 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001169/0.344, allocations: 24.7 kB / 0.5911 GB, free: 17.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.651e-06/0.3441, allocations: 1 kB / 0.5911 GB, free: 17.68 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005185/0.3446, allocations: 232.3 kB / 0.5913 GB, free: 17.45 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.602e-05/0.3446, allocations: 24.73 kB / 0.5913 GB, free: 17.43 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.0002642/0.3449, allocations: 242.7 kB / 0.5915 GB, free: 17.18 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.538e-05/0.345, allocations: 78.61 kB / 0.5916 GB, free: 17.11 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002335/0.3452, allocations: 85.42 kB / 0.5917 GB, free: 17.02 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.3452, allocations: 4.094 kB / 0.5917 GB, free: 17.02 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.3452, allocations: 3.984 kB / 0.5917 GB, free: 17.02 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.3452, allocations: 4 kB / 0.5917 GB, free: 17.01 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003479/0.3456, allocations: 0.5102 MB / 0.5922 GB, free: 16.46 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.3456, allocations: 0 / 0.5922 GB, free: 16.46 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.242e-05/0.3457, allocations: 11.94 kB / 0.5922 GB, free: 16.45 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.878e-06/0.3457, allocations: 0 / 0.5922 GB, free: 16.45 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.252e-05/0.3457, allocations: 8.672 kB / 0.5922 GB, free: 16.44 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.3457, allocations: 0 / 0.5922 GB, free: 16.44 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.3457, allocations: 4.562 kB / 0.5922 GB, free: 16.43 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005647/0.3463, allocations: 1.004 MB / 0.5932 GB, free: 15.41 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.898e-05/0.3464, allocations: 172.5 kB / 0.5934 GB, free: 15.22 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.446e-05/0.3464, allocations: 4 kB / 0.5934 GB, free: 15.22 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001427/0.3466, allocations: 4.75 kB / 0.5934 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.203e-05/0.3466, allocations: 7.422 kB / 0.5934 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.638e-05/0.3466, allocations: 15.98 kB / 0.5934 GB, free: 15.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0005451/0.3472, allocations: 0.7222 MB / 0.5941 GB, free: 14.47 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3472, allocations: 0 / 0.5941 GB, free: 14.47 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001766/0.349, allocations: 0.5818 MB / 0.5947 GB, free: 13.89 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.001544/0.3505, allocations: 0.691 MB / 0.5954 GB, free: 13.23 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001529/0.3521, allocations: 2.552 MB / 0.5978 GB, free: 10.66 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3521, allocations: 1.469 kB / 0.5978 GB, free: 10.66 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002124/0.3523, allocations: 343.8 kB / 0.5982 GB, free: 10.32 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003464/0.3527, allocations: 53.89 kB / 0.5982 GB, free: 10.27 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001589/0.3543, allocations: 1.871 MB / 0.6001 GB, free: 8.383 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000287/0.3546, allocations: 1.001 MB / 0.601 GB, free: 7.359 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001244/0.3547, allocations: 37.42 kB / 0.6011 GB, free: 7.324 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.968e-05/0.3548, allocations: 23.42 kB / 0.6011 GB, free: 7.301 MB / 446.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3548, allocations: 4 kB / 0.6011 GB, free: 7.297 MB / 446.1 MB Notification: Performance of Templates: time 0.01912/0.3739, allocations: 14.17 MB / 0.6149 GB, free: 9.191 MB / 462.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 -s cvode -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)