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: "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation",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.0007702/0.0007699, allocations: 91.14 kB / 15.36 MB, free: 0.7383 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.004908/0.004909, allocations: 172.9 kB / 16.26 MB, free: 6.613 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.313/1.313, allocations: 223.2 MB / 240.3 MB, free: 5.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001723/0.001723, allocations: 259.2 kB / 291.7 MB, free: 1.898 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9038/0.9038, allocations: 169.5 MB / 0.5004 GB, free: 14.11 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000403/0.000403, allocations: 13.81 kB / 0.5988 GB, free: 28.07 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1411/0.1415, allocations: 88.54 MB / 0.6853 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.001728/0.1433, allocations: 1.453 MB / 0.6867 GB, free: 13.49 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.007076/0.1504, allocations: 5.551 MB / 0.6921 GB, free: 7.926 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.188e-05/0.1505, allocations: 0 / 0.6921 GB, free: 7.926 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001/0.1515, allocations: 362.6 kB / 0.6925 GB, free: 7.57 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001168/0.1516, allocations: 47.75 kB / 0.6925 GB, free: 7.523 MB / 494.1 MB [/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‘. Notification: Performance of NFTyping.typeClassSections: time 0.002745/0.1544, allocations: 1.177 MB / 0.6937 GB, free: 6.348 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002224/0.1546, allocations: 207.3 kB / 0.6939 GB, free: 6.145 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.217e-05/0.1547, allocations: 9.562 kB / 0.6939 GB, free: 6.137 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.485e-05/0.1548, allocations: 55.72 kB / 0.6939 GB, free: 6.082 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002126/0.155, allocations: 180.8 kB / 0.6941 GB, free: 5.906 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.761e-05/0.155, allocations: 16 kB / 0.6941 GB, free: 5.891 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002804/0.1578, allocations: 2.176 MB / 0.6962 GB, free: 3.711 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001932/0.158, allocations: 283.8 kB / 0.6965 GB, free: 3.434 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002364/0.1583, allocations: 331.8 kB / 0.6968 GB, free: 3.102 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002625/0.1609, allocations: 2.229 MB / 0.699 GB, free: 0.8633 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.1609, allocations: 0 / 0.699 GB, free: 0.8633 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1609, allocations: 0 / 0.699 GB, free: 0.8633 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.1609, allocations: 0 / 0.699 GB, free: 0.8633 MB / 494.1 MB 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.01027/0.1712, allocations: 1.308 MB / 0.7003 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.51e-05/0.1713, allocations: 8.031 kB / 0.7003 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.505e-05/0.1713, allocations: 38.75 kB / 0.7003 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003302/0.1716, allocations: 91.59 kB / 0.7004 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004232/0.1721, allocations: 414.1 kB / 0.7008 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.293e-05/0.1721, allocations: 8.375 kB / 0.7008 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.225e-05/0.1721, allocations: 8.359 kB / 0.7008 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000388/0.1725, allocations: 399.2 kB / 0.7012 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.533e-06/0.1726, allocations: 0 / 0.7012 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.17e-05/0.1726, allocations: 3.938 kB / 0.7012 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.221e-06/0.1726, allocations: 4 kB / 0.7012 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003966/0.173, allocations: 435.7 kB / 0.7016 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000559/0.1736, allocations: 0.6615 MB / 0.7023 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004708/0.174, allocations: 0.5632 MB / 0.7028 GB, free: 12.76 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002831/0.1743, allocations: 333.7 kB / 0.7031 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009491/0.1753, allocations: 1.048 MB / 0.7042 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003524/0.1757, allocations: 404.8 kB / 0.7045 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.172e-06/0.1757, allocations: 0 / 0.7045 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.001193/0.1769, allocations: 1.293 MB / 0.7058 GB, free: 9.445 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.885e-05/0.1769, allocations: 85.09 kB / 0.7059 GB, free: 9.344 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001114/0.178, allocations: 1.289 MB / 0.7071 GB, free: 8.043 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.819e-05/0.1781, allocations: 37.83 kB / 0.7072 GB, free: 8 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001809/0.1783, allocations: 285.4 kB / 0.7074 GB, free: 7.715 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.127e-05/0.1783, allocations: 19.75 kB / 0.7075 GB, free: 7.695 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002129/0.1785, allocations: 291.7 kB / 0.7077 GB, free: 7.406 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 8.756e-05/0.1786, allocations: 318 kB / 0.708 GB, free: 7.09 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001106/0.1797, allocations: 1.373 MB / 0.7094 GB, free: 5.715 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001193/0.1809, allocations: 1.501 MB / 0.7109 GB, free: 4.203 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006839/0.1878, allocations: 3.56 MB / 0.7143 GB, free: 0.5508 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.1878, allocations: 0 / 0.7143 GB, free: 0.5508 MB / 0.4981 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003793/0.1916, allocations: 4.018 MB / 0.7183 GB, free: 12.5 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.1916, allocations: 7.938 kB / 0.7183 GB, free: 12.49 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.648e-05/0.1917, allocations: 8.031 kB / 0.7183 GB, free: 12.48 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.1917, allocations: 3.984 kB / 0.7183 GB, free: 12.48 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001147/0.1918, allocations: 12 kB / 0.7183 GB, free: 12.46 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.989e-06/0.1918, allocations: 0 / 0.7183 GB, free: 12.46 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004815/0.1923, allocations: 232.3 kB / 0.7185 GB, free: 12.23 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.68e-05/0.1923, allocations: 27.98 kB / 0.7185 GB, free: 12.21 MB / 0.5137 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.0002806/0.1926, allocations: 246.3 kB / 0.7188 GB, free: 11.96 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.586e-05/0.1927, allocations: 82.62 kB / 0.7188 GB, free: 11.88 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002588/0.193, allocations: 75.81 kB / 0.7189 GB, free: 11.79 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.193, allocations: 0 / 0.7189 GB, free: 11.79 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.193, allocations: 0 / 0.7189 GB, free: 11.79 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.193, allocations: 4 kB / 0.7189 GB, free: 11.79 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004087/0.1934, allocations: 0.5102 MB / 0.7194 GB, free: 11.23 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.1934, allocations: 7.938 kB / 0.7194 GB, free: 11.23 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.938e-05/0.1935, allocations: 12.02 kB / 0.7194 GB, free: 11.21 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.1935, allocations: 0 / 0.7194 GB, free: 11.21 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.406e-05/0.1935, allocations: 8 kB / 0.7195 GB, free: 11.21 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.1935, allocations: 3.984 kB / 0.7195 GB, free: 11.2 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.1936, allocations: 7.938 kB / 0.7195 GB, free: 11.2 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008228/0.1944, allocations: 1.009 MB / 0.7204 GB, free: 10.16 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001138/0.1945, allocations: 163.7 kB / 0.7206 GB, free: 9.984 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.371e-05/0.1946, allocations: 7.984 kB / 0.7206 GB, free: 9.977 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001584/0.1947, allocations: 8 kB / 0.7206 GB, free: 9.969 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.379e-05/0.1948, allocations: 7.984 kB / 0.7206 GB, free: 9.961 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.085e-05/0.1948, allocations: 7.984 kB / 0.7206 GB, free: 9.953 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0007281/0.1956, allocations: 0.7261 MB / 0.7213 GB, free: 9.223 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1956, allocations: 0 / 0.7213 GB, free: 9.223 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001331/0.1969, allocations: 0.5896 MB / 0.7219 GB, free: 8.633 MB / 0.5137 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.002897/0.1998, allocations: 2.157 MB / 0.724 GB, free: 6.461 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002024/0.2018, allocations: 2.548 MB / 0.7265 GB, free: 3.898 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.2018, allocations: 0 / 0.7265 GB, free: 3.898 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002927/0.2021, allocations: 339.8 kB / 0.7268 GB, free: 3.566 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003944/0.2025, allocations: 52.7 kB / 0.7269 GB, free: 3.516 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01381/0.2164, allocations: 15.31 MB / 0.7418 GB, free: 4.027 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004711/0.2169, allocations: 0.9881 MB / 0.7428 GB, free: 3.016 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0001726/0.217, allocations: 45.42 kB / 0.7429 GB, free: 2.973 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002955/0.2173, allocations: 287.3 kB / 0.7431 GB, free: 2.691 MB / 0.5294 GB Notification: Performance of SimCode: time 5.01e-07/0.2173, allocations: 0 / 0.7431 GB, free: 2.691 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03955/0.2569, allocations: 23.28 MB / 0.7659 GB, free: 11.69 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003015/0.2572, allocations: 352.5 kB / 0.7662 GB, free: 11.3 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.357/2.614, allocations: 3.562 kB / 0.7662 GB, free: 11.3 MB / 0.5606 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation_fmu --startTime=0 --stopTime=1.8e+12 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.fmu > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)