Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.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_1borehole_5meters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters") translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001049/0.001049, allocations: 110.5 kB / 16.41 MB, free: 6.52 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.001087/0.001087, allocations: 186.7 kB / 17.35 MB, free: 5.734 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.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002126/0.002126, allocations: 288.1 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.9144/0.9144, allocations: 169.2 MB / 0.499 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00314/0.00314, allocations: 95.86 kB / 0.6822 GB, free: 6.914 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4009/0.404, allocations: 86.98 MB / 0.7671 GB, free: 3.953 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002407/0.4065, allocations: 1.414 MB / 0.7685 GB, free: 2.535 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.006015/0.4125, allocations: 4.205 MB / 0.7726 GB, free: 14.31 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.31e-05/0.4126, allocations: 0 / 0.7726 GB, free: 14.31 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001026/0.4127, allocations: 11.86 kB / 0.7726 GB, free: 14.3 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0002099/0.4129, allocations: 31.84 kB / 0.7727 GB, free: 14.27 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.00366/0.4166, allocations: 1.515 MB / 0.7741 GB, free: 12.75 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001328/0.4168, allocations: 91.73 kB / 0.7742 GB, free: 12.66 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 3.819e-05/0.4168, allocations: 7.984 kB / 0.7742 GB, free: 12.65 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 8.27e-05/0.4169, allocations: 47.78 kB / 0.7743 GB, free: 12.61 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002091/0.4171, allocations: 147.6 kB / 0.7744 GB, free: 12.46 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 4.584e-05/0.4172, allocations: 12 kB / 0.7744 GB, free: 12.45 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003153/0.4203, allocations: 2.208 MB / 0.7766 GB, free: 10.24 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002026/0.4205, allocations: 263.9 kB / 0.7768 GB, free: 9.98 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0002402/0.4208, allocations: 278.3 kB / 0.7771 GB, free: 9.707 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.00291/0.4237, allocations: 2.111 MB / 0.7792 GB, free: 7.594 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.4237, allocations: 0 / 0.7792 GB, free: 7.594 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.593e-06/0.4237, allocations: 4 kB / 0.7792 GB, free: 7.59 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.337e-05/0.4237, allocations: 0 / 0.7792 GB, free: 7.59 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.01062/0.4344, allocations: 1.312 MB / 0.7804 GB, free: 6.227 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.4344, allocations: 8.031 kB / 0.7805 GB, free: 6.219 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003954/0.4348, allocations: 87.69 kB / 0.7805 GB, free: 6.133 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004099/0.4352, allocations: 357 kB / 0.7809 GB, free: 5.734 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.236e-05/0.4353, allocations: 4.375 kB / 0.7809 GB, free: 5.73 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.834e-05/0.4353, allocations: 8.375 kB / 0.7809 GB, free: 5.723 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004274/0.4357, allocations: 395.4 kB / 0.7813 GB, free: 5.324 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.4358, allocations: 0 / 0.7813 GB, free: 5.324 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.44e-05/0.4358, allocations: 7.938 kB / 0.7813 GB, free: 5.316 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.171e-06/0.4358, allocations: 4 kB / 0.7813 GB, free: 5.312 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004279/0.4362, allocations: 435.7 kB / 0.7817 GB, free: 4.887 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005611/0.4368, allocations: 0.6327 MB / 0.7823 GB, free: 4.203 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004976/0.4373, allocations: 0.5633 MB / 0.7829 GB, free: 3.621 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003273/0.4377, allocations: 337.7 kB / 0.7832 GB, free: 3.285 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001001/0.4387, allocations: 1.028 MB / 0.7842 GB, free: 2.035 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003983/0.4391, allocations: 408.8 kB / 0.7846 GB, free: 1.617 MB / 0.545 GB Notification: Performance of pre-optimization done (n=8): time 1.803e-06/0.4391, allocations: 4 kB / 0.7846 GB, free: 1.613 MB / 0.545 GB Notification: Performance of matching and sorting (n=8): time 0.001307/0.4404, allocations: 1.289 MB / 0.7858 GB, free: 324 kB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.097e-05/0.4405, allocations: 85.09 kB / 0.7859 GB, free: 220 kB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001144/0.4416, allocations: 1.214 MB / 0.7871 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.443e-05/0.4417, allocations: 29.69 kB / 0.7871 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001963/0.4419, allocations: 257.5 kB / 0.7874 GB, free: 14.69 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.159e-05/0.4419, allocations: 27.73 kB / 0.7874 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003395/0.4423, allocations: 359.5 kB / 0.7878 GB, free: 14.31 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.000114/0.4424, allocations: 310 kB / 0.788 GB, free: 14 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001205/0.4436, allocations: 1.369 MB / 0.7894 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00131/0.4449, allocations: 1.505 MB / 0.7909 GB, free: 11.11 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00723/0.4522, allocations: 3.568 MB / 0.7943 GB, free: 7.449 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-06/0.4522, allocations: 0 / 0.7943 GB, free: 7.449 MB / 0.5606 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004317/0.4565, allocations: 3.999 MB / 0.7982 GB, free: 3.414 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/0.4566, allocations: 7.938 kB / 0.7983 GB, free: 3.406 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.795e-05/0.4566, allocations: 4 kB / 0.7983 GB, free: 3.402 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/0.4566, allocations: 4.031 kB / 0.7983 GB, free: 3.398 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001325/0.4567, allocations: 19.92 kB / 0.7983 GB, free: 3.379 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/0.4568, allocations: 0 / 0.7983 GB, free: 3.379 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004803/0.4573, allocations: 240.2 kB / 0.7985 GB, free: 3.141 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.195e-05/0.4573, allocations: 27.97 kB / 0.7985 GB, free: 3.113 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.0003047/0.4576, allocations: 233.7 kB / 0.7988 GB, free: 2.875 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.38e-05/0.4577, allocations: 70.72 kB / 0.7988 GB, free: 2.805 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002713/0.458, allocations: 75.02 kB / 0.7989 GB, free: 2.719 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.614e-06/0.458, allocations: 7.984 kB / 0.7989 GB, free: 2.711 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.458, allocations: 0 / 0.7989 GB, free: 2.711 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001158/0.4581, allocations: 147.9 kB / 0.799 GB, free: 2.547 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.664e-05/0.4582, allocations: 4 kB / 0.799 GB, free: 2.543 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000145/0.4583, allocations: 3.984 kB / 0.7991 GB, free: 2.539 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.633e-05/0.4584, allocations: 8 kB / 0.7991 GB, free: 2.531 MB / 0.5606 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009423/0.4593, allocations: 1.066 MB / 0.8001 GB, free: 1.457 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0009631/0.4603, allocations: 1.216 MB / 0.8013 GB, free: 228 kB / 0.5606 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003209/0.4607, allocations: 339.8 kB / 0.8016 GB, free: 15.89 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0007267/0.4614, allocations: 0.6728 MB / 0.8023 GB, free: 15.21 MB / 0.5762 GB Notification: Performance of Backend: time 3.9e-07/0.4614, allocations: 0 / 0.8023 GB, free: 15.21 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.004562/0.466, allocations: 2.894 MB / 0.8051 GB, free: 12.32 MB / 0.5762 GB Notification: Performance of SimCode: time 0.001879/0.4679, allocations: 1.745 MB / 0.8068 GB, free: 10.52 MB / 0.5762 GB Notification: Performance of Templates: time 0.02287/0.4907, allocations: 13.92 MB / 0.8204 GB, free: 12.64 MB / 0.5919 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & ./BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)