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.0008062/0.0008064, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.004899/0.004899, allocations: 169.6 kB / 16.27 MB, free: 6.652 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.297/1.297, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001906/0.001906, allocations: 274.4 kB / 291.7 MB, free: 1.875 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9198/0.9198, allocations: 169.5 MB / 0.5004 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004169/0.0004169, allocations: 19.62 kB / 0.5988 GB, free: 28.01 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1467/0.1472, allocations: 88.54 MB / 0.6853 GB, free: 14.91 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.001429/0.1486, allocations: 1.135 MB / 0.6864 GB, free: 13.76 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.006282/0.1549, allocations: 4.396 MB / 0.6907 GB, free: 9.352 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.595e-05/0.155, allocations: 0.7812 kB / 0.6907 GB, free: 9.352 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 9.726e-05/0.1551, allocations: 11.88 kB / 0.6907 GB, free: 9.34 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001965/0.1553, allocations: 29.55 kB / 0.6907 GB, free: 9.312 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.002539/0.1578, allocations: 1.181 MB / 0.6919 GB, free: 8.141 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001286/0.158, allocations: 127.6 kB / 0.692 GB, free: 8.016 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.151e-05/0.158, allocations: 4.625 kB / 0.692 GB, free: 8.012 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.963e-05/0.1581, allocations: 39.89 kB / 0.692 GB, free: 7.973 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002222/0.1583, allocations: 166.8 kB / 0.6922 GB, free: 7.812 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.676e-05/0.1584, allocations: 16 kB / 0.6922 GB, free: 7.797 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00261/0.161, allocations: 2.176 MB / 0.6943 GB, free: 5.617 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000194/0.1612, allocations: 271.8 kB / 0.6946 GB, free: 5.352 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002156/0.1614, allocations: 304 kB / 0.6949 GB, free: 5.047 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002183/0.1636, allocations: 2.147 MB / 0.697 GB, free: 2.891 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.1636, allocations: 4 kB / 0.697 GB, free: 2.887 MB / 494.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1636, allocations: 3.938 kB / 0.697 GB, free: 2.883 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.54e-06/0.1636, allocations: 0 / 0.697 GB, free: 2.883 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.01012/0.1738, allocations: 1.253 MB / 0.6982 GB, free: 1.578 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.138e-05/0.1738, allocations: 8.031 kB / 0.6982 GB, free: 1.57 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.581e-05/0.1739, allocations: 34.75 kB / 0.6983 GB, free: 1.527 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003283/0.1742, allocations: 87.69 kB / 0.6983 GB, free: 1.441 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003559/0.1746, allocations: 365 kB / 0.6987 GB, free: 1.035 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.716e-06/0.1746, allocations: 384 / 0.6987 GB, free: 1.035 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.293e-05/0.1746, allocations: 12.38 kB / 0.6987 GB, free: 1.023 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004072/0.175, allocations: 387.3 kB / 0.6991 GB, free: 0.6328 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.1751, allocations: 3.938 kB / 0.6991 GB, free: 0.6289 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.318e-05/0.1751, allocations: 7.984 kB / 0.6991 GB, free: 0.6211 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.391e-06/0.1751, allocations: 0 / 0.6991 GB, free: 0.6211 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003929/0.1755, allocations: 435.8 kB / 0.6995 GB, free: 200 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000556/0.1761, allocations: 0.6366 MB / 0.7001 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004855/0.1765, allocations: 0.5633 MB / 0.7007 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002815/0.1768, allocations: 337.7 kB / 0.701 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009097/0.1778, allocations: 1.036 MB / 0.702 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000369/0.1781, allocations: 412.7 kB / 0.7024 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.163e-06/0.1781, allocations: 0 / 0.7024 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.001182/0.1793, allocations: 1.285 MB / 0.7037 GB, free: 11.62 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.886e-05/0.1794, allocations: 89.11 kB / 0.7037 GB, free: 11.51 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001059/0.1805, allocations: 1.218 MB / 0.7049 GB, free: 10.28 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.65e-05/0.1805, allocations: 29.7 kB / 0.705 GB, free: 10.24 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001684/0.1807, allocations: 265.4 kB / 0.7052 GB, free: 9.977 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.645e-05/0.1807, allocations: 27.64 kB / 0.7052 GB, free: 9.949 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002215/0.1809, allocations: 287.7 kB / 0.7055 GB, free: 9.664 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.332e-05/0.181, allocations: 314 kB / 0.7058 GB, free: 9.352 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001121/0.1822, allocations: 1.365 MB / 0.7071 GB, free: 7.984 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001222/0.1834, allocations: 1.505 MB / 0.7086 GB, free: 6.469 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006618/0.19, allocations: 3.56 MB / 0.7121 GB, free: 2.816 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.19, allocations: 4 kB / 0.7121 GB, free: 2.812 MB / 0.4981 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003855/0.1939, allocations: 3.999 MB / 0.716 GB, free: 14.78 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.451e-05/0.1939, allocations: 8 kB / 0.716 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.218e-05/0.194, allocations: 0 / 0.716 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.194, allocations: 4 kB / 0.716 GB, free: 14.77 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001135/0.1941, allocations: 19.92 kB / 0.716 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.1941, allocations: 0 / 0.716 GB, free: 14.75 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000444/0.1946, allocations: 236.3 kB / 0.7163 GB, free: 14.51 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.18e-05/0.1946, allocations: 19.98 kB / 0.7163 GB, free: 14.49 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.0002641/0.1949, allocations: 242.4 kB / 0.7165 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.739e-05/0.1949, allocations: 66.72 kB / 0.7166 GB, free: 14.18 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002482/0.1952, allocations: 79 kB / 0.7166 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.1952, allocations: 0 / 0.7166 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.1952, allocations: 4 kB / 0.7166 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.1952, allocations: 0 / 0.7166 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003861/0.1956, allocations: 0.493 MB / 0.7171 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.1956, allocations: 3.938 kB / 0.7171 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.369e-05/0.1957, allocations: 11.98 kB / 0.7171 GB, free: 13.54 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.953e-06/0.1957, allocations: 0 / 0.7171 GB, free: 13.54 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.384e-05/0.1957, allocations: 8 kB / 0.7171 GB, free: 13.53 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.1957, allocations: 0 / 0.7171 GB, free: 13.53 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/0.1957, allocations: 0 / 0.7171 GB, free: 13.53 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008358/0.1966, allocations: 1.009 MB / 0.7181 GB, free: 12.5 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 9.144e-05/0.1967, allocations: 151.8 kB / 0.7183 GB, free: 12.33 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.009e-05/0.1967, allocations: 0 / 0.7183 GB, free: 12.33 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001275/0.1969, allocations: 7.984 kB / 0.7183 GB, free: 12.32 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.141e-05/0.1969, allocations: 8 kB / 0.7183 GB, free: 12.31 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.857e-05/0.1969, allocations: 15.97 kB / 0.7183 GB, free: 12.3 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0006557/0.1976, allocations: 0.6728 MB / 0.719 GB, free: 11.62 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1976, allocations: 0 / 0.719 GB, free: 11.62 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001304/0.1989, allocations: 0.5818 MB / 0.7195 GB, free: 11.04 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.002598/0.2015, allocations: 2.146 MB / 0.7216 GB, free: 8.875 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.002096/0.2036, allocations: 2.548 MB / 0.7241 GB, free: 6.312 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.2036, allocations: 4 kB / 0.7241 GB, free: 6.309 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0003063/0.2039, allocations: 339.8 kB / 0.7244 GB, free: 5.977 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003056/0.2043, allocations: 28.61 kB / 0.7245 GB, free: 5.949 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01393/0.2182, allocations: 15.27 MB / 0.7394 GB, free: 6.504 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004843/0.2187, allocations: 0.9643 MB / 0.7403 GB, free: 5.516 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0001611/0.2189, allocations: 36.5 kB / 0.7404 GB, free: 5.48 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002844/0.2192, allocations: 267.3 kB / 0.7406 GB, free: 5.219 MB / 0.5294 GB Notification: Performance of SimCode: time 6.12e-07/0.2192, allocations: 0 / 0.7406 GB, free: 5.219 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03558/0.2548, allocations: 23.08 MB / 0.7632 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002746/0.2551, allocations: 346.4 kB / 0.7635 GB, free: 14.02 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.405/2.66, allocations: 4 kB / 0.7635 GB, free: 14.01 MB / 0.5606 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)