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.006628/0.006628, allocations: 101.9 kB / 15.73 MB, free: 6.031 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.00131/0.00131, allocations: 197.2 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.314/1.314, allocations: 222.9 MB / 240.4 MB, free: 4.168 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002037/0.002037, allocations: 275.1 kB / 290.8 MB, free: 1.777 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9584/0.9584, allocations: 169.2 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002787/0.002787, allocations: 99.97 kB / 0.681 GB, free: 15.92 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1745/0.1774, allocations: 86.97 MB / 0.766 GB, free: 8.875 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.00233/0.1797, allocations: 1.422 MB / 0.7674 GB, free: 7.441 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.005958/0.1857, allocations: 4.211 MB / 0.7715 GB, free: 3.207 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.369e-05/0.1858, allocations: 0 / 0.7715 GB, free: 3.207 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001052/0.1859, allocations: 15.86 kB / 0.7715 GB, free: 3.191 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.00021/0.1861, allocations: 31.78 kB / 0.7715 GB, free: 3.16 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.003604/0.1898, allocations: 1.503 MB / 0.773 GB, free: 1.656 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001384/0.1899, allocations: 91.73 kB / 0.7731 GB, free: 1.566 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.583e-05/0.19, allocations: 11.92 kB / 0.7731 GB, free: 1.555 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 7.599e-05/0.19, allocations: 39.91 kB / 0.7731 GB, free: 1.516 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002153/0.1903, allocations: 151.6 kB / 0.7733 GB, free: 1.367 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 3.925e-05/0.1903, allocations: 16 kB / 0.7733 GB, free: 1.352 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3197/0.51, allocations: 2.203 MB / 0.7754 GB, free: 8.836 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002832/0.5103, allocations: 262.9 kB / 0.7757 GB, free: 8.836 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002519/0.5106, allocations: 280.5 kB / 0.7759 GB, free: 8.695 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.00358/0.5142, allocations: 2.113 MB / 0.778 GB, free: 8.504 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.5142, allocations: 1.375 kB / 0.778 GB, free: 8.504 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.453e-06/0.5142, allocations: 3.938 kB / 0.778 GB, free: 8.5 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.605e-05/0.5142, allocations: 0 / 0.778 GB, free: 8.5 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.008192/0.5224, allocations: 1.295 MB / 0.7793 GB, free: 7.645 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.5e-05/0.5225, allocations: 9.938 kB / 0.7793 GB, free: 7.645 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.962e-05/0.5225, allocations: 31.66 kB / 0.7793 GB, free: 7.605 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003786/0.5229, allocations: 94.95 kB / 0.7794 GB, free: 7.555 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003255/0.5233, allocations: 367.9 kB / 0.7798 GB, free: 7.277 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.229e-05/0.5233, allocations: 6.688 kB / 0.7798 GB, free: 7.277 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.059e-05/0.5233, allocations: 5.031 kB / 0.7798 GB, free: 7.277 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000415/0.5237, allocations: 392 kB / 0.7801 GB, free: 7.227 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.5238, allocations: 0 / 0.7801 GB, free: 7.227 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.355e-05/0.5238, allocations: 10.92 kB / 0.7802 GB, free: 7.227 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.194e-06/0.5238, allocations: 1.469 kB / 0.7802 GB, free: 7.227 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004329/0.5242, allocations: 436.5 kB / 0.7806 GB, free: 7.227 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005424/0.5248, allocations: 0.6294 MB / 0.7812 GB, free: 6.941 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005352/0.5253, allocations: 0.5612 MB / 0.7817 GB, free: 6.895 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003051/0.5256, allocations: 336.3 kB / 0.7821 GB, free: 6.879 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007632/0.5264, allocations: 1.029 MB / 0.7831 GB, free: 5.754 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003637/0.5268, allocations: 406.5 kB / 0.7834 GB, free: 5.688 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=8): time 1.533e-06/0.5268, allocations: 0 / 0.7834 GB, free: 5.688 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8): time 0.00121/0.528, allocations: 1.297 MB / 0.7847 GB, free: 5.605 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3e-05/0.5281, allocations: 80.5 kB / 0.7848 GB, free: 5.512 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001171/0.5292, allocations: 1.212 MB / 0.786 GB, free: 5.273 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.818e-05/0.5293, allocations: 32.14 kB / 0.786 GB, free: 5.242 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.000166/0.5295, allocations: 259.6 kB / 0.7863 GB, free: 5.109 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.122e-05/0.5295, allocations: 21.66 kB / 0.7863 GB, free: 5.102 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003182/0.5298, allocations: 357.9 kB / 0.7866 GB, free: 5.082 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.038e-05/0.5299, allocations: 313.4 kB / 0.7869 GB, free: 4.777 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001066/0.5309, allocations: 1.374 MB / 0.7883 GB, free: 4.773 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001201/0.5321, allocations: 1.503 MB / 0.7897 GB, free: 4.262 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007504/0.5397, allocations: 3.555 MB / 0.7932 GB, free: 2.422 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.683e-06/0.5397, allocations: 0.5312 kB / 0.7932 GB, free: 2.422 MB / 0.5606 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004423/0.5441, allocations: 4.011 MB / 0.7971 GB, free: 452 kB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/0.5442, allocations: 4.719 kB / 0.7971 GB, free: 452 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.25e-05/0.5442, allocations: 3.516 kB / 0.7971 GB, free: 452 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.189e-05/0.5442, allocations: 4.531 kB / 0.7971 GB, free: 452 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000137/0.5444, allocations: 16.36 kB / 0.7971 GB, free: 452 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.765e-06/0.5444, allocations: 1.406 kB / 0.7971 GB, free: 452 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005347/0.5449, allocations: 231.5 kB / 0.7974 GB, free: 260 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.952e-05/0.545, allocations: 29.34 kB / 0.7974 GB, free: 256 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.0003295/0.5453, allocations: 240 kB / 0.7976 GB, free: 136 kB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.235e-05/0.5454, allocations: 71.55 kB / 0.7977 GB, free: 80 kB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000255/0.5457, allocations: 80.48 kB / 0.7978 GB, free: 20 kB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.5457, allocations: 1.125 kB / 0.7978 GB, free: 20 kB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.5457, allocations: 1.094 kB / 0.7978 GB, free: 20 kB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.5457, allocations: 0 / 0.7978 GB, free: 20 kB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005016/0.5462, allocations: 498.5 kB / 0.7982 GB, free: 15.75 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.5462, allocations: 1.438 kB / 0.7982 GB, free: 15.75 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.457e-05/0.5463, allocations: 12.27 kB / 0.7983 GB, free: 15.75 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.5463, allocations: 0.5156 kB / 0.7983 GB, free: 15.75 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.367e-05/0.5463, allocations: 3.547 kB / 0.7983 GB, free: 15.75 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.5463, allocations: 1.859 kB / 0.7983 GB, free: 15.75 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.5463, allocations: 5.625 kB / 0.7983 GB, free: 15.74 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009654/0.5473, allocations: 0.9966 MB / 0.7992 GB, free: 15.6 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001618/0.5475, allocations: 159.7 kB / 0.7994 GB, free: 15.45 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.359e-05/0.5475, allocations: 6.172 kB / 0.7994 GB, free: 15.45 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001407/0.5477, allocations: 8.844 kB / 0.7994 GB, free: 15.44 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.869e-05/0.5477, allocations: 6.188 kB / 0.7994 GB, free: 15.44 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.727e-05/0.5478, allocations: 14.67 kB / 0.7994 GB, free: 15.44 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0007802/0.5486, allocations: 0.6718 MB / 0.8001 GB, free: 15.21 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5486, allocations: 0 / 0.8001 GB, free: 15.21 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002271/0.5508, allocations: 0.5776 MB / 0.8006 GB, free: 15.11 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.003369/0.5542, allocations: 2.146 MB / 0.8027 GB, free: 14.32 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002482/0.5567, allocations: 2.548 MB / 0.8052 GB, free: 13.3 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.5567, allocations: 0 / 0.8052 GB, free: 13.3 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003675/0.5571, allocations: 344.8 kB / 0.8056 GB, free: 13.29 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003506/0.5575, allocations: 39.11 kB / 0.8056 GB, free: 13.26 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01655/0.574, allocations: 15.24 MB / 0.8205 GB, free: 6.43 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005259/0.5746, allocations: 0.9684 MB / 0.8214 GB, free: 5.727 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001554/0.5748, allocations: 35.23 kB / 0.8215 GB, free: 5.719 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003021/0.5751, allocations: 262.3 kB / 0.8217 GB, free: 5.5 MB / 0.5762 GB Notification: Performance of SimCode: time 6.91e-07/0.5751, allocations: 0 / 0.8217 GB, free: 5.5 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04654/0.6216, allocations: 24.06 MB / 0.8452 GB, free: 0.8398 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.722/10.34, allocations: 7.891 kB / 0.8452 GB, free: 0.8359 MB / 0.5919 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)