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.005646/0.005646, allocations: 102.4 kB / 15.73 MB, free: 6.039 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.001319/0.001319, allocations: 189.1 kB / 16.67 MB, free: 5.973 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.326/1.326, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002142/0.002142, allocations: 279 kB / 290.8 MB, free: 1.91 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.948/0.948, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001685/0.001685, allocations: 91.84 kB / 0.6815 GB, free: 15.41 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1441/0.1458, allocations: 86.98 MB / 0.7665 GB, free: 8.352 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002709/0.1485, allocations: 1.752 MB / 0.7682 GB, free: 6.59 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.007218/0.1557, allocations: 5.394 MB / 0.7734 GB, free: 1.168 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001078/0.1559, allocations: 3.938 kB / 0.7734 GB, free: 1.164 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001081/0.157, allocations: 380.5 kB / 0.7738 GB, free: 0.793 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.000119/0.1571, allocations: 55.72 kB / 0.7739 GB, free: 0.7383 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.2908/0.4479, allocations: 1.489 MB / 0.7753 GB, free: 9.016 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0002853/0.4482, allocations: 156 kB / 0.7755 GB, free: 9.016 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.776e-05/0.4483, allocations: 11.28 kB / 0.7755 GB, free: 9.016 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 7.963e-05/0.4483, allocations: 64.8 kB / 0.7755 GB, free: 9.016 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002129/0.4486, allocations: 167.9 kB / 0.7757 GB, free: 9.012 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 3.887e-05/0.4486, allocations: 17.62 kB / 0.7757 GB, free: 9.012 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003297/0.4519, allocations: 2.201 MB / 0.7779 GB, free: 9.012 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002134/0.4521, allocations: 282.1 kB / 0.7781 GB, free: 8.977 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002312/0.4524, allocations: 305.8 kB / 0.7784 GB, free: 8.82 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.002474/0.4549, allocations: 2.183 MB / 0.7805 GB, free: 8.57 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.4549, allocations: 4.469 kB / 0.7806 GB, free: 8.57 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.303e-06/0.4549, allocations: 0 / 0.7806 GB, free: 8.57 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.959e-06/0.4549, allocations: 0.5938 kB / 0.7806 GB, free: 8.57 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.01033/0.4652, allocations: 1.364 MB / 0.7819 GB, free: 7.676 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.4653, allocations: 8.906 kB / 0.7819 GB, free: 7.676 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003933/0.4657, allocations: 94.61 kB / 0.782 GB, free: 7.621 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004683/0.4662, allocations: 415.3 kB / 0.7824 GB, free: 7.332 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.149e-05/0.4662, allocations: 4.469 kB / 0.7824 GB, free: 7.332 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.163e-05/0.4662, allocations: 11.05 kB / 0.7824 GB, free: 7.332 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004274/0.4667, allocations: 385.7 kB / 0.7828 GB, free: 7.285 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.916e-06/0.4667, allocations: 5.812 kB / 0.7828 GB, free: 7.281 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.284e-05/0.4667, allocations: 0.6562 kB / 0.7828 GB, free: 7.281 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.4667, allocations: 1.219 kB / 0.7828 GB, free: 7.281 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003884/0.4671, allocations: 440.8 kB / 0.7832 GB, free: 7.281 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005508/0.4677, allocations: 0.6621 MB / 0.7838 GB, free: 6.996 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004247/0.4681, allocations: 0.5632 MB / 0.7844 GB, free: 6.949 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002506/0.4684, allocations: 335.9 kB / 0.7847 GB, free: 6.934 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006939/0.4691, allocations: 1.027 MB / 0.7857 GB, free: 5.809 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003425/0.4694, allocations: 411.5 kB / 0.7861 GB, free: 5.742 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=8): time 1.593e-06/0.4694, allocations: 0 / 0.7861 GB, free: 5.742 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8): time 0.001197/0.4706, allocations: 1.296 MB / 0.7874 GB, free: 5.656 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.008e-05/0.4707, allocations: 83.75 kB / 0.7874 GB, free: 5.562 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001159/0.4718, allocations: 1.297 MB / 0.7887 GB, free: 5.203 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.918e-05/0.4719, allocations: 30.16 kB / 0.7887 GB, free: 5.168 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001659/0.4721, allocations: 285.7 kB / 0.789 GB, free: 4.973 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.052e-05/0.4721, allocations: 25.2 kB / 0.789 GB, free: 4.957 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003013/0.4724, allocations: 351.4 kB / 0.7894 GB, free: 4.859 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.328e-05/0.4724, allocations: 317.9 kB / 0.7897 GB, free: 4.551 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001147/0.4736, allocations: 1.369 MB / 0.791 GB, free: 4.098 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001343/0.4749, allocations: 1.508 MB / 0.7925 GB, free: 3.57 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007026/0.482, allocations: 3.564 MB / 0.796 GB, free: 1.723 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.257e-06/0.482, allocations: 0 / 0.796 GB, free: 1.723 MB / 0.5606 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003993/0.486, allocations: 4.008 MB / 0.7999 GB, free: 15.75 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.486, allocations: 9.312 kB / 0.7999 GB, free: 15.74 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.718e-05/0.4861, allocations: 3.078 kB / 0.7999 GB, free: 15.74 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.4861, allocations: 6.922 kB / 0.7999 GB, free: 15.74 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001296/0.4862, allocations: 14.5 kB / 0.7999 GB, free: 15.74 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.784e-06/0.4862, allocations: 3.484 kB / 0.7999 GB, free: 15.74 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006014/0.4868, allocations: 228.4 kB / 0.8001 GB, free: 15.55 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.268e-05/0.4869, allocations: 30.08 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.0003491/0.4873, allocations: 248 kB / 0.8004 GB, free: 15.43 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.589e-05/0.4873, allocations: 75.59 kB / 0.8005 GB, free: 15.37 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002884/0.4876, allocations: 81.16 kB / 0.8006 GB, free: 15.31 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.4876, allocations: 3.031 kB / 0.8006 GB, free: 15.31 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.4876, allocations: 0 / 0.8006 GB, free: 15.31 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.4877, allocations: 1.031 kB / 0.8006 GB, free: 15.31 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005014/0.4882, allocations: 0.5113 MB / 0.8011 GB, free: 15.03 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.4882, allocations: 2.406 kB / 0.8011 GB, free: 15.03 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.086e-05/0.4882, allocations: 12.09 kB / 0.8011 GB, free: 15.03 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/0.4883, allocations: 8.5 kB / 0.8011 GB, free: 15.03 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.446e-05/0.4883, allocations: 11.2 kB / 0.8011 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.4883, allocations: 1.812 kB / 0.8011 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.4883, allocations: 2.578 kB / 0.8011 GB, free: 15.02 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008797/0.4892, allocations: 1.006 MB / 0.8021 GB, free: 14.87 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001185/0.4893, allocations: 164.3 kB / 0.8022 GB, free: 14.71 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.995e-05/0.4894, allocations: 6.641 kB / 0.8022 GB, free: 14.71 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001585/0.4896, allocations: 8.625 kB / 0.8022 GB, free: 14.71 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.092e-05/0.4896, allocations: 6.562 kB / 0.8023 GB, free: 14.71 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.245e-05/0.4896, allocations: 12.27 kB / 0.8023 GB, free: 14.71 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0008245/0.4905, allocations: 0.7234 MB / 0.803 GB, free: 14.46 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.91e-07/0.4905, allocations: 0 / 0.803 GB, free: 14.46 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001754/0.4922, allocations: 0.5837 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.001771/0.494, allocations: 0.6959 MB / 0.8042 GB, free: 14.16 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002475/0.4965, allocations: 2.56 MB / 0.8067 GB, free: 13.14 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.4965, allocations: 0 / 0.8067 GB, free: 13.14 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.00033/0.4968, allocations: 334.6 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.0004455/0.4973, allocations: 61.17 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.002268/0.4996, allocations: 1.869 MB / 0.8089 GB, free: 12.48 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005491/0.5001, allocations: 0.9861 MB / 0.8099 GB, free: 11.78 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001674/0.5003, allocations: 39.73 kB / 0.8099 GB, free: 11.77 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001102/0.5004, allocations: 35.94 kB / 0.81 GB, free: 11.75 MB / 0.5762 GB Notification: Performance of SimCode: time 5.31e-07/0.5004, allocations: 0 / 0.81 GB, free: 11.75 MB / 0.5762 GB Notification: Performance of Templates: time 0.02425/0.5247, allocations: 14.2 MB / 0.8238 GB, free: 6.238 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)