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.001262/0.001262, allocations: 111.4 kB / 16.37 MB, free: 6.344 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.001227/0.001227, allocations: 192.6 kB / 17.3 MB, free: 5.898 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.324/1.324, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002264/0.002264, allocations: 284.8 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9153/0.9153, allocations: 169.3 MB / 0.4989 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003288/0.003288, allocations: 92.28 kB / 0.6821 GB, free: 6.957 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4865/0.4898, allocations: 86.99 MB / 0.7671 GB, free: 3.941 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002767/0.4926, allocations: 1.753 MB / 0.7688 GB, free: 2.184 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.007178/0.4998, allocations: 5.387 MB / 0.774 GB, free: 12.77 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001174/0.5, allocations: 0 / 0.774 GB, free: 12.77 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001158/0.5012, allocations: 371.1 kB / 0.7744 GB, free: 12.41 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0001115/0.5013, allocations: 59.67 kB / 0.7744 GB, free: 12.36 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.003555/0.5049, allocations: 1.499 MB / 0.7759 GB, free: 10.85 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0002311/0.5051, allocations: 151.4 kB / 0.7761 GB, free: 10.7 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 4.816e-05/0.5052, allocations: 21.53 kB / 0.7761 GB, free: 10.68 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 7.526e-05/0.5053, allocations: 59.78 kB / 0.7761 GB, free: 10.62 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002185/0.5055, allocations: 167.4 kB / 0.7763 GB, free: 10.46 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 3.797e-05/0.5055, allocations: 16 kB / 0.7763 GB, free: 10.45 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002913/0.5085, allocations: 2.204 MB / 0.7785 GB, free: 8.238 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002175/0.5087, allocations: 283.8 kB / 0.7787 GB, free: 7.961 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0002544/0.5089, allocations: 302.1 kB / 0.779 GB, free: 7.664 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.002469/0.5114, allocations: 2.186 MB / 0.7812 GB, free: 5.473 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.828e-06/0.5114, allocations: 0 / 0.7812 GB, free: 5.473 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.653e-06/0.5114, allocations: 0 / 0.7812 GB, free: 5.473 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.095e-06/0.5115, allocations: 0 / 0.7812 GB, free: 5.473 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.5218, allocations: 1.374 MB / 0.7825 GB, free: 4.047 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.495e-05/0.5219, allocations: 8.031 kB / 0.7825 GB, free: 4.039 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004164/0.5223, allocations: 95.59 kB / 0.7826 GB, free: 3.945 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005715/0.5229, allocations: 414.1 kB / 0.783 GB, free: 3.492 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.057e-06/0.5229, allocations: 4.375 kB / 0.783 GB, free: 3.488 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.384e-05/0.5229, allocations: 4.375 kB / 0.783 GB, free: 3.484 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004186/0.5234, allocations: 395.4 kB / 0.7834 GB, free: 3.086 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.5234, allocations: 0 / 0.7834 GB, free: 3.086 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.604e-05/0.5234, allocations: 12 kB / 0.7834 GB, free: 3.074 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.638e-06/0.5234, allocations: 0 / 0.7834 GB, free: 3.074 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004263/0.5238, allocations: 439.7 kB / 0.7838 GB, free: 2.645 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006329/0.5245, allocations: 0.6655 MB / 0.7845 GB, free: 1.93 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004992/0.525, allocations: 0.5673 MB / 0.785 GB, free: 1.344 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003173/0.5253, allocations: 337.5 kB / 0.7853 GB, free: 1.008 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001028/0.5264, allocations: 1.021 MB / 0.7863 GB, free: 15.77 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003953/0.5268, allocations: 412.8 kB / 0.7867 GB, free: 15.34 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=8): time 1.362e-06/0.5268, allocations: 0 / 0.7867 GB, free: 15.34 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8): time 0.001329/0.5281, allocations: 1.293 MB / 0.788 GB, free: 14.04 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.552e-05/0.5282, allocations: 81.23 kB / 0.7881 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001196/0.5294, allocations: 1.293 MB / 0.7893 GB, free: 12.64 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 5.154e-05/0.5294, allocations: 37.69 kB / 0.7894 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002052/0.5297, allocations: 285.4 kB / 0.7896 GB, free: 12.31 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.535e-05/0.5297, allocations: 19.75 kB / 0.7897 GB, free: 12.29 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003143/0.53, allocations: 347.6 kB / 0.79 GB, free: 11.95 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001196/0.5301, allocations: 325.9 kB / 0.7903 GB, free: 11.62 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001234/0.5314, allocations: 1.373 MB / 0.7916 GB, free: 10.25 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001293/0.5327, allocations: 1.505 MB / 0.7931 GB, free: 8.73 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006821/0.5395, allocations: 3.553 MB / 0.7966 GB, free: 5.086 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.5395, allocations: 0 / 0.7966 GB, free: 5.086 MB / 0.5606 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004188/0.5437, allocations: 4.018 MB / 0.8005 GB, free: 1.031 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/0.5438, allocations: 4 kB / 0.8005 GB, free: 1.027 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.005e-05/0.5438, allocations: 4 kB / 0.8005 GB, free: 1.023 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.144e-05/0.5438, allocations: 0 / 0.8005 GB, free: 1.023 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001434/0.544, allocations: 19.98 kB / 0.8005 GB, free: 1.004 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.544, allocations: 4 kB / 0.8005 GB, free: 1 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004832/0.5445, allocations: 228.3 kB / 0.8007 GB, free: 0.7734 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.666e-05/0.5445, allocations: 27.92 kB / 0.8008 GB, free: 0.7461 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.0003114/0.5449, allocations: 245.7 kB / 0.801 GB, free: 0.4961 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.64e-05/0.5449, allocations: 78.62 kB / 0.8011 GB, free: 428 kB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002736/0.5452, allocations: 79.81 kB / 0.8012 GB, free: 336 kB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.5452, allocations: 3.938 kB / 0.8012 GB, free: 332 kB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.5452, allocations: 4 kB / 0.8012 GB, free: 328 kB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.5452, allocations: 0 / 0.8012 GB, free: 328 kB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004504/0.5457, allocations: 0.5179 MB / 0.8017 GB, free: 15.76 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.5457, allocations: 4 kB / 0.8017 GB, free: 15.75 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.021e-05/0.5458, allocations: 11.92 kB / 0.8017 GB, free: 15.74 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.5458, allocations: 3.984 kB / 0.8017 GB, free: 15.74 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.24e-05/0.5458, allocations: 7.938 kB / 0.8017 GB, free: 15.73 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.5458, allocations: 0 / 0.8017 GB, free: 15.73 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.5458, allocations: 3.984 kB / 0.8017 GB, free: 15.73 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008943/0.5467, allocations: 1.01 MB / 0.8027 GB, free: 14.7 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001074/0.5468, allocations: 163.7 kB / 0.8028 GB, free: 14.52 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.43e-05/0.5469, allocations: 7.984 kB / 0.8029 GB, free: 14.51 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001458/0.5471, allocations: 4 kB / 0.8029 GB, free: 14.5 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.291e-05/0.5471, allocations: 15.92 kB / 0.8029 GB, free: 14.49 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.922e-05/0.5472, allocations: 7.984 kB / 0.8029 GB, free: 14.48 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0007334/0.5479, allocations: 0.73 MB / 0.8036 GB, free: 13.75 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5479, allocations: 0 / 0.8036 GB, free: 13.75 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001458/0.5494, allocations: 0.5779 MB / 0.8042 GB, free: 13.17 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.001585/0.551, allocations: 0.6899 MB / 0.8048 GB, free: 12.49 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002184/0.5532, allocations: 2.552 MB / 0.8073 GB, free: 9.922 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.5532, allocations: 0 / 0.8073 GB, free: 9.922 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003131/0.5535, allocations: 343.7 kB / 0.8076 GB, free: 9.586 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003753/0.5539, allocations: 56.66 kB / 0.8077 GB, free: 9.527 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002122/0.556, allocations: 1.904 MB / 0.8096 GB, free: 7.582 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004933/0.5565, allocations: 0.9879 MB / 0.8105 GB, free: 6.566 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001025/0.5566, allocations: 31.34 kB / 0.8106 GB, free: 6.535 MB / 0.5762 GB Notification: Performance of SimCode: time 3.21e-07/0.5566, allocations: 0 / 0.8106 GB, free: 6.535 MB / 0.5762 GB Notification: Performance of Templates: time 0.02034/0.577, allocations: 14.48 MB / 0.8247 GB, free: 8.07 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)