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.006801/0.006801, allocations: 101.9 kB / 15.73 MB, free: 6.438 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.001597/0.001597, allocations: 194.3 kB / 16.67 MB, free: 6.355 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.31/1.31, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002096/0.002096, allocations: 286.5 kB / 290.8 MB, free: 1.895 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9396/0.9396, allocations: 169.2 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001713/0.001713, allocations: 95.84 kB / 0.6815 GB, free: 15.45 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1388/0.1405, allocations: 86.97 MB / 0.7664 GB, free: 8.402 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002559/0.1431, allocations: 1.748 MB / 0.7682 GB, free: 6.645 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.007111/0.1502, allocations: 5.398 MB / 0.7734 GB, free: 1.219 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.861e-05/0.1503, allocations: 0 / 0.7734 GB, free: 1.219 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.00112/0.1515, allocations: 374.4 kB / 0.7738 GB, free: 0.8516 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0001259/0.1516, allocations: 63.66 kB / 0.7738 GB, free: 0.7891 MB / 0.5606 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.3082/0.4598, allocations: 1.481 MB / 0.7753 GB, free: 9 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0002882/0.4601, allocations: 165.2 kB / 0.7755 GB, free: 9 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 5.023e-05/0.4602, allocations: 12.83 kB / 0.7755 GB, free: 9 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 7.572e-05/0.4603, allocations: 61.64 kB / 0.7755 GB, free: 9 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002276/0.4605, allocations: 168.1 kB / 0.7757 GB, free: 8.996 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 4.593e-05/0.4605, allocations: 14.5 kB / 0.7757 GB, free: 8.996 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00352/0.4641, allocations: 2.207 MB / 0.7779 GB, free: 8.996 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.000222/0.4643, allocations: 282.2 kB / 0.7781 GB, free: 8.957 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002458/0.4646, allocations: 303.5 kB / 0.7784 GB, free: 8.805 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.00297/0.4675, allocations: 2.187 MB / 0.7805 GB, free: 8.551 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.4676, allocations: 1.094 kB / 0.7805 GB, free: 8.551 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.864e-06/0.4676, allocations: 1.172 kB / 0.7805 GB, free: 8.551 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.441e-05/0.4676, allocations: 0 / 0.7805 GB, free: 8.551 MB / 0.5606 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.01043/0.478, allocations: 1.36 MB / 0.7819 GB, free: 7.656 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.4781, allocations: 9.562 kB / 0.7819 GB, free: 7.656 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003756/0.4784, allocations: 97.97 kB / 0.782 GB, free: 7.602 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004751/0.4789, allocations: 413.7 kB / 0.7824 GB, free: 7.312 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.132e-05/0.479, allocations: 6.078 kB / 0.7824 GB, free: 7.312 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.236e-05/0.479, allocations: 9.5 kB / 0.7824 GB, free: 7.312 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004328/0.4794, allocations: 388.3 kB / 0.7828 GB, free: 7.266 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.4795, allocations: 9.625 kB / 0.7828 GB, free: 7.262 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.521e-05/0.4795, allocations: 1.344 kB / 0.7828 GB, free: 7.262 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.4795, allocations: 1.547 kB / 0.7828 GB, free: 7.262 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004163/0.4799, allocations: 439 kB / 0.7832 GB, free: 7.262 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005259/0.4805, allocations: 0.6628 MB / 0.7838 GB, free: 6.973 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004329/0.4809, allocations: 0.5621 MB / 0.7844 GB, free: 6.926 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002703/0.4812, allocations: 337.7 kB / 0.7847 GB, free: 6.91 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007211/0.4819, allocations: 1.035 MB / 0.7857 GB, free: 5.785 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003437/0.4823, allocations: 404.2 kB / 0.7861 GB, free: 5.719 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=8): time 1.503e-06/0.4823, allocations: 0 / 0.7861 GB, free: 5.719 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8): time 0.001199/0.4835, allocations: 1.294 MB / 0.7874 GB, free: 5.633 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.729e-05/0.4835, allocations: 83.67 kB / 0.7874 GB, free: 5.539 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001151/0.4847, allocations: 1.293 MB / 0.7887 GB, free: 5.195 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.867e-05/0.4847, allocations: 35.2 kB / 0.7887 GB, free: 5.16 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001791/0.4849, allocations: 283.8 kB / 0.789 GB, free: 4.969 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.987e-05/0.4849, allocations: 17.2 kB / 0.789 GB, free: 4.957 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003134/0.4853, allocations: 354.8 kB / 0.7894 GB, free: 4.855 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.55e-05/0.4853, allocations: 320.5 kB / 0.7897 GB, free: 4.547 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00113/0.4864, allocations: 1.369 MB / 0.791 GB, free: 4.094 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001327/0.4878, allocations: 1.51 MB / 0.7925 GB, free: 3.562 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007068/0.4949, allocations: 3.558 MB / 0.796 GB, free: 1.719 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.4949, allocations: 0 / 0.796 GB, free: 1.719 MB / 0.5606 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004067/0.499, allocations: 4.013 MB / 0.7999 GB, free: 15.74 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.133e-05/0.499, allocations: 10.5 kB / 0.7999 GB, free: 15.73 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.833e-05/0.499, allocations: 3.938 kB / 0.7999 GB, free: 15.73 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.568e-05/0.499, allocations: 1.125 kB / 0.7999 GB, free: 15.73 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001302/0.4992, allocations: 17.97 kB / 0.7999 GB, free: 15.73 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.4992, allocations: 1.672 kB / 0.7999 GB, free: 15.73 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000592/0.4998, allocations: 228.3 kB / 0.8001 GB, free: 15.55 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.348e-05/0.4998, allocations: 30.53 kB / 0.8002 GB, free: 15.55 MB / 0.5762 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.0003649/0.5002, allocations: 246.8 kB / 0.8004 GB, free: 15.42 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.732e-05/0.5003, allocations: 77.08 kB / 0.8005 GB, free: 15.36 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002725/0.5006, allocations: 83.53 kB / 0.8005 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.5006, allocations: 3.266 kB / 0.8006 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.5006, allocations: 1.156 kB / 0.8006 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.5006, allocations: 0.6562 kB / 0.8006 GB, free: 15.3 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005336/0.5011, allocations: 0.5132 MB / 0.8011 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.5012, allocations: 5.969 kB / 0.8011 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.248e-05/0.5012, allocations: 10.88 kB / 0.8011 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.089e-06/0.5012, allocations: 3.938 kB / 0.8011 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.351e-05/0.5013, allocations: 4.531 kB / 0.8011 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.025e-06/0.5013, allocations: 0.5156 kB / 0.8011 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.5013, allocations: 5.281 kB / 0.8011 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008839/0.5022, allocations: 1.012 MB / 0.8021 GB, free: 14.86 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001168/0.5023, allocations: 162.5 kB / 0.8022 GB, free: 14.71 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.028e-05/0.5024, allocations: 2.203 kB / 0.8022 GB, free: 14.71 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001557/0.5025, allocations: 8.766 kB / 0.8022 GB, free: 14.7 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.623e-05/0.5026, allocations: 5.641 kB / 0.8022 GB, free: 14.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.427e-05/0.5026, allocations: 11.92 kB / 0.8023 GB, free: 14.7 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000831/0.5035, allocations: 0.7271 MB / 0.803 GB, free: 14.46 MB / 0.5762 GB Notification: Performance of sort global known variables: time 3e-07/0.5035, allocations: 0 / 0.803 GB, free: 14.46 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001779/0.5052, allocations: 0.5813 MB / 0.8035 GB, free: 14.36 MB / 0.5762 GB 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.001765/0.507, allocations: 0.6876 MB / 0.8042 GB, free: 14.16 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002449/0.5095, allocations: 2.548 MB / 0.8067 GB, free: 13.14 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.5095, allocations: 4.062 kB / 0.8067 GB, free: 13.14 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003281/0.5098, allocations: 338 kB / 0.807 GB, free: 13.13 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004605/0.5103, allocations: 60.64 kB / 0.8071 GB, free: 13.09 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002305/0.5126, allocations: 1.871 MB / 0.8089 GB, free: 12.48 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006048/0.5132, allocations: 0.9893 MB / 0.8099 GB, free: 11.77 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001964/0.5134, allocations: 46.2 kB / 0.8099 GB, free: 11.76 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000113/0.5136, allocations: 30.34 kB / 0.8099 GB, free: 11.75 MB / 0.5762 GB Notification: Performance of SimCode: time 2.846e-06/0.5136, allocations: 0 / 0.8099 GB, free: 11.75 MB / 0.5762 GB Notification: Performance of Templates: time 0.02312/0.5367, allocations: 14.2 MB / 0.8238 GB, free: 6.266 MB / 0.5762 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)