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.001102/0.001102, allocations: 116.2 kB / 16.42 MB, free: 6.492 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.0011/0.0011, allocations: 183.9 kB / 17.35 MB, free: 5.762 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.3/1.3, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.003178/0.003178, allocations: 297.3 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9904/0.9904, allocations: 169.3 MB / 0.499 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001788/0.001788, allocations: 99.84 kB / 0.6822 GB, free: 6.891 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3715/0.3733, allocations: 86.99 MB / 0.7671 GB, free: 3.871 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002705/0.376, allocations: 1.746 MB / 0.7688 GB, free: 2.117 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.007158/0.3832, allocations: 5.378 MB / 0.7741 GB, free: 12.71 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.446e-05/0.3833, allocations: 7.938 kB / 0.7741 GB, free: 12.71 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001106/0.3844, allocations: 376.6 kB / 0.7745 GB, free: 12.34 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0001082/0.3845, allocations: 63.59 kB / 0.7745 GB, free: 12.28 MB / 0.545 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/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.003281/0.3878, allocations: 1.485 MB / 0.776 GB, free: 10.79 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0002248/0.388, allocations: 165.1 kB / 0.7761 GB, free: 10.63 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 4.245e-05/0.3881, allocations: 9.562 kB / 0.7761 GB, free: 10.62 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 7.639e-05/0.3882, allocations: 67.7 kB / 0.7762 GB, free: 10.55 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002112/0.3884, allocations: 163.5 kB / 0.7764 GB, free: 10.39 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 4.61e-05/0.3884, allocations: 19.94 kB / 0.7764 GB, free: 10.38 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002872/0.3913, allocations: 2.207 MB / 0.7785 GB, free: 8.164 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002143/0.3915, allocations: 279.8 kB / 0.7788 GB, free: 7.891 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0002494/0.3918, allocations: 306.1 kB / 0.7791 GB, free: 7.59 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.002369/0.3942, allocations: 2.182 MB / 0.7812 GB, free: 5.402 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.3942, allocations: 0 / 0.7812 GB, free: 5.402 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.382e-06/0.3942, allocations: 0 / 0.7812 GB, free: 5.402 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.253e-06/0.3942, allocations: 0 / 0.7812 GB, free: 5.402 MB / 0.545 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.01033/0.4045, allocations: 1.378 MB / 0.7826 GB, free: 3.973 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/0.4046, allocations: 8.031 kB / 0.7826 GB, free: 3.965 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003828/0.405, allocations: 95.59 kB / 0.7827 GB, free: 3.871 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005397/0.4055, allocations: 402.2 kB / 0.7831 GB, free: 3.43 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.428e-05/0.4056, allocations: 8.375 kB / 0.7831 GB, free: 3.422 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.959e-05/0.4056, allocations: 12.3 kB / 0.7831 GB, free: 3.41 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004233/0.406, allocations: 395.5 kB / 0.7834 GB, free: 3.012 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.244e-06/0.4061, allocations: 0 / 0.7834 GB, free: 3.012 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.471e-05/0.4061, allocations: 3.984 kB / 0.7835 GB, free: 3.008 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.4061, allocations: 4 kB / 0.7835 GB, free: 3.004 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004205/0.4065, allocations: 435.7 kB / 0.7839 GB, free: 2.578 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005979/0.4071, allocations: 0.6654 MB / 0.7845 GB, free: 1.863 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005059/0.4076, allocations: 0.5712 MB / 0.7851 GB, free: 1.273 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002978/0.4079, allocations: 337.5 kB / 0.7854 GB, free: 0.9375 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009609/0.4089, allocations: 1.021 MB / 0.7864 GB, free: 15.7 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003973/0.4093, allocations: 412.8 kB / 0.7868 GB, free: 15.27 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=8): time 1.443e-06/0.4093, allocations: 0 / 0.7868 GB, free: 15.27 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8): time 0.001293/0.4106, allocations: 1.297 MB / 0.7881 GB, free: 13.97 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.877e-05/0.4107, allocations: 85.09 kB / 0.7881 GB, free: 13.87 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001174/0.4119, allocations: 1.289 MB / 0.7894 GB, free: 12.56 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.269e-05/0.4119, allocations: 37.69 kB / 0.7894 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002024/0.4121, allocations: 281.4 kB / 0.7897 GB, free: 12.24 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.119e-05/0.4122, allocations: 19.75 kB / 0.7897 GB, free: 12.22 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003088/0.4125, allocations: 351.6 kB / 0.7901 GB, free: 11.87 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001062/0.4126, allocations: 322 kB / 0.7904 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001208/0.4138, allocations: 1.377 MB / 0.7917 GB, free: 10.17 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001295/0.4151, allocations: 1.501 MB / 0.7932 GB, free: 8.66 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007071/0.4222, allocations: 3.556 MB / 0.7966 GB, free: 5.012 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.4222, allocations: 3.984 kB / 0.7967 GB, free: 5.008 MB / 0.5606 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.00414/0.4263, allocations: 4.01 MB / 0.8006 GB, free: 0.9609 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/0.4264, allocations: 7.938 kB / 0.8006 GB, free: 0.9531 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.939e-05/0.4264, allocations: 11.98 kB / 0.8006 GB, free: 0.9414 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.519e-05/0.4264, allocations: 0 / 0.8006 GB, free: 0.9414 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001245/0.4266, allocations: 12 kB / 0.8006 GB, free: 0.9297 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.4266, allocations: 3.938 kB / 0.8006 GB, free: 0.9258 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004774/0.4271, allocations: 232.3 kB / 0.8008 GB, free: 0.6953 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.923e-05/0.4271, allocations: 27.98 kB / 0.8008 GB, free: 0.668 MB / 0.5606 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.0002886/0.4274, allocations: 245.6 kB / 0.8011 GB, free: 428 kB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.074e-05/0.4275, allocations: 74.62 kB / 0.8012 GB, free: 352 kB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002621/0.4278, allocations: 83.81 kB / 0.8012 GB, free: 256 kB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.248e-06/0.4278, allocations: 0 / 0.8012 GB, free: 256 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.4278, allocations: 4.031 kB / 0.8012 GB, free: 252 kB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001188/0.4279, allocations: 163.7 kB / 0.8014 GB, free: 68 kB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.082e-05/0.428, allocations: 4 kB / 0.8014 GB, free: 64 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001535/0.4281, allocations: 4 kB / 0.8014 GB, free: 60 kB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.585e-05/0.4282, allocations: 7.984 kB / 0.8014 GB, free: 52 kB / 0.5606 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009422/0.4291, allocations: 1.07 MB / 0.8025 GB, free: 14.97 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0009515/0.4301, allocations: 1.221 MB / 0.8036 GB, free: 13.73 MB / 0.5762 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003093/0.4304, allocations: 335.9 kB / 0.804 GB, free: 13.41 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0007714/0.4312, allocations: 0.7261 MB / 0.8047 GB, free: 12.68 MB / 0.5762 GB Notification: Performance of Backend: time 4.91e-07/0.4312, allocations: 4 kB / 0.8047 GB, free: 12.67 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00425/0.4355, allocations: 2.891 MB / 0.8075 GB, free: 9.777 MB / 0.5762 GB Notification: Performance of SimCode: time 0.001987/0.4375, allocations: 1.858 MB / 0.8093 GB, free: 7.859 MB / 0.5762 GB Notification: Performance of Templates: time 0.02199/0.4595, allocations: 14.57 MB / 0.8235 GB, free: 9.363 MB / 0.5919 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)