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: "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007377/0.007377, allocations: 100.6 kB / 15.73 MB, free: 5.98 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.001921/0.001921, allocations: 201.6 kB / 16.68 MB, free: 5.906 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.284/1.284, allocations: 222.9 MB / 240.4 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002166/0.002166, allocations: 294.6 kB / 290.8 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.9089/0.9089, allocations: 169.3 MB / 0.4983 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002062/0.002062, allocations: 99.86 kB / 0.681 GB, free: 7.402 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4214/0.4235, allocations: 86.97 MB / 0.766 GB, free: 3.852 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002526/0.4261, allocations: 1.427 MB / 0.7674 GB, free: 2.418 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.006229/0.4323, allocations: 4.193 MB / 0.7715 GB, free: 14.2 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.849e-05/0.4324, allocations: 0 / 0.7715 GB, free: 14.2 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001334/0.4326, allocations: 19.86 kB / 0.7715 GB, free: 14.18 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0002617/0.4329, allocations: 31.84 kB / 0.7715 GB, free: 14.15 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.00394/0.4368, allocations: 1.505 MB / 0.773 GB, free: 12.64 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001544/0.437, allocations: 91.75 kB / 0.7731 GB, free: 12.55 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 4.833e-05/0.4371, allocations: 7.984 kB / 0.7731 GB, free: 12.55 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 8.53e-05/0.4371, allocations: 47.78 kB / 0.7731 GB, free: 12.5 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002348/0.4374, allocations: 143.6 kB / 0.7733 GB, free: 12.36 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 4.287e-05/0.4374, allocations: 20 kB / 0.7733 GB, free: 12.34 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003823/0.4413, allocations: 2.196 MB / 0.7754 GB, free: 10.14 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002208/0.4415, allocations: 275.8 kB / 0.7757 GB, free: 9.871 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.000242/0.4418, allocations: 278.3 kB / 0.7759 GB, free: 9.598 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.003535/0.4453, allocations: 2.112 MB / 0.778 GB, free: 7.48 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.4453, allocations: 4 kB / 0.778 GB, free: 7.477 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.024e-06/0.4453, allocations: 0 / 0.778 GB, free: 7.477 MB / 0.545 GB Notification: Performance of Transformations before backend: time 2.371e-05/0.4454, allocations: 0 / 0.778 GB, free: 7.477 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.01082/0.4562, allocations: 1.304 MB / 0.7793 GB, free: 6.121 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.4563, allocations: 8.031 kB / 0.7793 GB, free: 6.113 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.516e-05/0.4563, allocations: 34.73 kB / 0.7793 GB, free: 6.07 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003888/0.4567, allocations: 91.61 kB / 0.7794 GB, free: 5.98 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004411/0.4571, allocations: 369 kB / 0.7798 GB, free: 5.57 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.635e-05/0.4572, allocations: 8.375 kB / 0.7798 GB, free: 5.562 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.846e-05/0.4572, allocations: 8.312 kB / 0.7798 GB, free: 5.555 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004299/0.4577, allocations: 395.2 kB / 0.7802 GB, free: 5.156 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.4577, allocations: 0 / 0.7802 GB, free: 5.156 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.248e-05/0.4577, allocations: 0 / 0.7802 GB, free: 5.156 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.089e-06/0.4577, allocations: 0 / 0.7802 GB, free: 5.156 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004187/0.4581, allocations: 439.7 kB / 0.7806 GB, free: 4.727 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005439/0.4587, allocations: 0.6327 MB / 0.7812 GB, free: 4.043 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004779/0.4592, allocations: 0.5633 MB / 0.7817 GB, free: 3.461 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000291/0.4595, allocations: 337.7 kB / 0.7821 GB, free: 3.125 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009852/0.4605, allocations: 1.025 MB / 0.7831 GB, free: 1.879 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003972/0.4609, allocations: 416.8 kB / 0.7835 GB, free: 1.453 MB / 0.545 GB Notification: Performance of pre-optimization done (n=8): time 1.714e-06/0.4609, allocations: 0 / 0.7835 GB, free: 1.453 MB / 0.545 GB Notification: Performance of matching and sorting (n=8): time 0.001258/0.4621, allocations: 1.289 MB / 0.7847 GB, free: 160 kB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.042e-05/0.4622, allocations: 81.09 kB / 0.7848 GB, free: 60 kB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001089/0.4633, allocations: 1.206 MB / 0.786 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.371e-05/0.4634, allocations: 41.81 kB / 0.786 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001741/0.4635, allocations: 257.4 kB / 0.7863 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.857e-05/0.4636, allocations: 31.62 kB / 0.7863 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003176/0.4639, allocations: 347.6 kB / 0.7866 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.271e-05/0.464, allocations: 318 kB / 0.7869 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001179/0.4652, allocations: 1.369 MB / 0.7883 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001237/0.4664, allocations: 1.509 MB / 0.7897 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006803/0.4733, allocations: 3.556 MB / 0.7932 GB, free: 7.297 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.4733, allocations: 0 / 0.7932 GB, free: 7.297 MB / 0.5606 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004153/0.4775, allocations: 3.999 MB / 0.7971 GB, free: 3.262 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.151e-05/0.4775, allocations: 8.031 kB / 0.7971 GB, free: 3.254 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.881e-05/0.4775, allocations: 4 kB / 0.7971 GB, free: 3.25 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.617e-05/0.4775, allocations: 0 / 0.7971 GB, free: 3.25 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001331/0.4777, allocations: 23.92 kB / 0.7972 GB, free: 3.227 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.745e-06/0.4777, allocations: 3.938 kB / 0.7972 GB, free: 3.223 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004567/0.4782, allocations: 228.3 kB / 0.7974 GB, free: 2.996 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.403e-05/0.4782, allocations: 27.97 kB / 0.7974 GB, free: 2.969 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.0002775/0.4785, allocations: 233.7 kB / 0.7976 GB, free: 2.73 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.905e-05/0.4786, allocations: 82.72 kB / 0.7977 GB, free: 2.648 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002755/0.4789, allocations: 71.02 kB / 0.7978 GB, free: 2.566 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/0.4789, allocations: 7.984 kB / 0.7978 GB, free: 2.559 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.4789, allocations: 0 / 0.7978 GB, free: 2.559 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.4789, allocations: 0 / 0.7978 GB, free: 2.559 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003961/0.4793, allocations: 0.4891 MB / 0.7983 GB, free: 2.023 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.783e-06/0.4793, allocations: 7.938 kB / 0.7983 GB, free: 2.016 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.938e-05/0.4794, allocations: 8.031 kB / 0.7983 GB, free: 2.008 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.4794, allocations: 0 / 0.7983 GB, free: 2.008 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.636e-05/0.4794, allocations: 7.984 kB / 0.7983 GB, free: 2 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.4794, allocations: 0 / 0.7983 GB, free: 2 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.4794, allocations: 0 / 0.7983 GB, free: 2 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008566/0.4803, allocations: 1.001 MB / 0.7993 GB, free: 0.9766 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001173/0.4804, allocations: 159.8 kB / 0.7994 GB, free: 0.8008 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.228e-05/0.4805, allocations: 8 kB / 0.7994 GB, free: 0.793 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001316/0.4806, allocations: 0 / 0.7994 GB, free: 0.793 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.26e-05/0.4807, allocations: 7.984 kB / 0.7994 GB, free: 0.7852 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.746e-05/0.4807, allocations: 11.98 kB / 0.7994 GB, free: 0.7734 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0006976/0.4814, allocations: 0.6728 MB / 0.8001 GB, free: 96 kB / 0.5606 GB Notification: Performance of sort global known variables: time 1.7e-07/0.4814, allocations: 0 / 0.8001 GB, free: 96 kB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001513/0.483, allocations: 0.574 MB / 0.8007 GB, free: 15.52 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.003266/0.4862, allocations: 2.147 MB / 0.8027 GB, free: 13.36 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002378/0.4886, allocations: 2.544 MB / 0.8052 GB, free: 10.8 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.4886, allocations: 3.938 kB / 0.8052 GB, free: 10.8 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003223/0.489, allocations: 343.8 kB / 0.8056 GB, free: 10.46 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003061/0.4893, allocations: 36.61 kB / 0.8056 GB, free: 10.42 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01449/0.5038, allocations: 15.24 MB / 0.8205 GB, free: 11 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005058/0.5043, allocations: 0.964 MB / 0.8214 GB, free: 10.01 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001391/0.5045, allocations: 36.55 kB / 0.8215 GB, free: 9.977 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002995/0.5048, allocations: 263.3 kB / 0.8217 GB, free: 9.719 MB / 0.5919 GB Notification: Performance of SimCode: time 9.42e-07/0.5048, allocations: 0 / 0.8217 GB, free: 9.719 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0479/0.5527, allocations: 24.05 MB / 0.8452 GB, free: 1.895 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.929/10.48, allocations: 12.19 kB / 0.8452 GB, free: 1.887 MB / 0.6075 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters_fmu --startTime=0 --stopTime=4.12e+08 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.fmu > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)