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.004364/0.004364, allocations: 103.5 kB / 15.73 MB, free: 6.035 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.001136/0.001136, allocations: 198.8 kB / 16.67 MB, free: 5.969 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.317/1.317, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002057/0.002057, allocations: 274.6 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9467/0.9467, allocations: 169.3 MB / 0.4983 GB, free: 13.77 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001702/0.001702, allocations: 107.8 kB / 0.6815 GB, free: 15.36 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1452/0.1469, allocations: 86.97 MB / 0.7665 GB, free: 8.312 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002209/0.1491, allocations: 1.419 MB / 0.7678 GB, free: 6.883 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.005839/0.155, allocations: 4.208 MB / 0.772 GB, free: 2.652 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.494e-05/0.1551, allocations: 0 / 0.772 GB, free: 2.652 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001014/0.1552, allocations: 11.86 kB / 0.772 GB, free: 2.641 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0002094/0.1554, allocations: 31.84 kB / 0.772 GB, free: 2.609 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.003511/0.1589, allocations: 1.507 MB / 0.7735 GB, free: 1.102 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001288/0.1591, allocations: 91.69 kB / 0.7736 GB, free: 1.012 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.922e-05/0.1591, allocations: 4 kB / 0.7736 GB, free: 1.008 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 6.74e-05/0.1592, allocations: 51.81 kB / 0.7736 GB, free: 0.957 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000209/0.1594, allocations: 143.6 kB / 0.7737 GB, free: 0.8164 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 4.051e-05/0.1594, allocations: 12 kB / 0.7738 GB, free: 0.8047 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.2951/0.4546, allocations: 2.201 MB / 0.7759 GB, free: 9.117 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002441/0.4549, allocations: 275.7 kB / 0.7762 GB, free: 9.117 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002095/0.4551, allocations: 278 kB / 0.7764 GB, free: 8.973 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.003244/0.4584, allocations: 2.107 MB / 0.7785 GB, free: 8.777 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.4584, allocations: 3.75 kB / 0.7785 GB, free: 8.777 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.633e-06/0.4584, allocations: 4.844 kB / 0.7785 GB, free: 8.773 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.567e-05/0.4584, allocations: 0.6875 kB / 0.7785 GB, free: 8.773 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.01049/0.4689, allocations: 1.292 MB / 0.7798 GB, free: 7.922 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.469, allocations: 10.03 kB / 0.7798 GB, free: 7.922 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003874/0.4694, allocations: 92.86 kB / 0.7799 GB, free: 7.867 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003283/0.4697, allocations: 368.6 kB / 0.7802 GB, free: 7.59 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.255e-05/0.4697, allocations: 4.906 kB / 0.7802 GB, free: 7.59 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.9e-05/0.4698, allocations: 5.812 kB / 0.7802 GB, free: 7.59 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000405/0.4702, allocations: 394.8 kB / 0.7806 GB, free: 7.543 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.4702, allocations: 8.031 kB / 0.7806 GB, free: 7.539 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.394e-05/0.4702, allocations: 4.938 kB / 0.7806 GB, free: 7.539 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.579e-06/0.4702, allocations: 1.125 kB / 0.7806 GB, free: 7.539 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004352/0.4707, allocations: 429.7 kB / 0.781 GB, free: 7.539 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005217/0.4712, allocations: 0.6322 MB / 0.7816 GB, free: 7.254 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005452/0.4717, allocations: 0.5652 MB / 0.7822 GB, free: 7.207 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002918/0.472, allocations: 336 kB / 0.7825 GB, free: 7.191 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000782/0.4728, allocations: 1.024 MB / 0.7835 GB, free: 6.066 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003461/0.4732, allocations: 409.6 kB / 0.7839 GB, free: 6 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=8): time 1.522e-06/0.4732, allocations: 0 / 0.7839 GB, free: 6 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8): time 0.001153/0.4744, allocations: 1.294 MB / 0.7852 GB, free: 5.918 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.089e-05/0.4744, allocations: 80.91 kB / 0.7852 GB, free: 5.824 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001107/0.4755, allocations: 1.218 MB / 0.7864 GB, free: 5.586 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.93e-05/0.4756, allocations: 30.98 kB / 0.7865 GB, free: 5.555 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001459/0.4757, allocations: 260.6 kB / 0.7867 GB, free: 5.422 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.977e-05/0.4758, allocations: 19.84 kB / 0.7867 GB, free: 5.414 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002936/0.4761, allocations: 354.1 kB / 0.7871 GB, free: 5.398 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.773e-05/0.4761, allocations: 313.3 kB / 0.7874 GB, free: 5.094 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001066/0.4772, allocations: 1.372 MB / 0.7887 GB, free: 4.906 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001183/0.4784, allocations: 1.507 MB / 0.7902 GB, free: 4.379 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007279/0.4857, allocations: 3.559 MB / 0.7937 GB, free: 2.539 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.4857, allocations: 1.406 kB / 0.7937 GB, free: 2.539 MB / 0.5606 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.00413/0.4898, allocations: 3.999 MB / 0.7976 GB, free: 0.5703 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/0.4899, allocations: 13.72 kB / 0.7976 GB, free: 0.5625 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.854e-05/0.4899, allocations: 3.062 kB / 0.7976 GB, free: 0.5625 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.966e-05/0.4899, allocations: 2.328 kB / 0.7976 GB, free: 0.5625 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001263/0.49, allocations: 15.33 kB / 0.7976 GB, free: 0.5625 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.682e-06/0.49, allocations: 1.219 kB / 0.7976 GB, free: 0.5625 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004986/0.4906, allocations: 240.3 kB / 0.7978 GB, free: 380 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.41e-05/0.4906, allocations: 24.44 kB / 0.7978 GB, free: 380 kB / 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.0003389/0.491, allocations: 241.5 kB / 0.7981 GB, free: 260 kB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.729e-05/0.491, allocations: 68.53 kB / 0.7981 GB, free: 204 kB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002639/0.4913, allocations: 77.36 kB / 0.7982 GB, free: 148 kB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.4913, allocations: 2.469 kB / 0.7982 GB, free: 148 kB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.461e-06/0.4913, allocations: 0 / 0.7982 GB, free: 148 kB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.4913, allocations: 1.312 kB / 0.7982 GB, free: 148 kB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000593/0.4919, allocations: 0.4978 MB / 0.7987 GB, free: 15.91 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.4919, allocations: 0.8438 kB / 0.7987 GB, free: 15.91 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.98e-05/0.492, allocations: 11.97 kB / 0.7987 GB, free: 15.91 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.492, allocations: 4.844 kB / 0.7987 GB, free: 15.9 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.372e-05/0.492, allocations: 3.578 kB / 0.7987 GB, free: 15.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.464e-06/0.492, allocations: 1.25 kB / 0.7987 GB, free: 15.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.4921, allocations: 4.188 kB / 0.7987 GB, free: 15.9 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009495/0.493, allocations: 0.999 MB / 0.7997 GB, free: 15.76 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001189/0.4931, allocations: 164.3 kB / 0.7999 GB, free: 15.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.173e-05/0.4932, allocations: 2.875 kB / 0.7999 GB, free: 15.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001362/0.4933, allocations: 5.047 kB / 0.7999 GB, free: 15.6 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.354e-05/0.4934, allocations: 6.5 kB / 0.7999 GB, free: 15.6 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.511e-05/0.4934, allocations: 12.47 kB / 0.7999 GB, free: 15.6 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0007941/0.4942, allocations: 0.6709 MB / 0.8005 GB, free: 15.38 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4942, allocations: 4 kB / 0.8005 GB, free: 15.37 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001928/0.4962, allocations: 0.5786 MB / 0.8011 GB, free: 15.27 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.001853/0.498, allocations: 0.6972 MB / 0.8018 GB, free: 15.07 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00278/0.5008, allocations: 2.546 MB / 0.8043 GB, free: 14.05 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.5008, allocations: 1.062 kB / 0.8043 GB, free: 14.05 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003805/0.5012, allocations: 346.3 kB / 0.8046 GB, free: 14.04 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004132/0.5017, allocations: 35.98 kB / 0.8046 GB, free: 14 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00232/0.504, allocations: 1.749 MB / 0.8064 GB, free: 13.44 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006056/0.5046, allocations: 0.9636 MB / 0.8073 GB, free: 12.74 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001464/0.5048, allocations: 34.83 kB / 0.8073 GB, free: 12.73 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001056/0.5049, allocations: 24.78 kB / 0.8074 GB, free: 12.73 MB / 0.5762 GB Notification: Performance of SimCode: time 5.21e-07/0.5049, allocations: 1.344 kB / 0.8074 GB, free: 12.73 MB / 0.5762 GB Notification: Performance of Templates: time 0.02234/0.5272, allocations: 13.57 MB / 0.8206 GB, free: 8.352 MB / 0.5762 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)