Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.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/BuildSysPro 3.5.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-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(BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_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.0009749/0.0009749, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.0009837/0.0009838, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 223.2 MB / 239.9 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 1.028/1.028, allocations: 143.3 MB / 434.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003564/0.0003564, allocations: 8 kB / 0.516 GB, free: 11.09 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2009/0.2013, allocations: 83.4 MB / 0.5974 GB, free: 7.625 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.001822/0.2032, allocations: 1.39 MB / 0.5988 GB, free: 6.227 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.006923/0.2101, allocations: 4.871 MB / 0.6035 GB, free: 1.336 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001412/0.2103, allocations: 0 / 0.6035 GB, free: 1.336 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001182/0.2115, allocations: 342.8 kB / 0.6038 GB, free: 1 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001054/0.2116, allocations: 55.84 kB / 0.6039 GB, free: 0.9453 MB / 0.4981 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‘. Notification: Performance of NFTyping.typeClassSections: time 0.3923/0.604, allocations: 1.078 MB / 0.605 GB, free: 35.16 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0003114/0.6043, allocations: 107.5 kB / 0.6051 GB, free: 35.16 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 7.775e-05/0.6044, allocations: 11.3 kB / 0.6051 GB, free: 35.16 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000114/0.6045, allocations: 63.33 kB / 0.6051 GB, free: 35.16 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002247/0.6047, allocations: 161.2 kB / 0.6053 GB, free: 35.16 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.2e-05/0.6048, allocations: 15.91 kB / 0.6053 GB, free: 35.16 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003464/0.6083, allocations: 1.867 MB / 0.6071 GB, free: 35.16 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001722/0.6085, allocations: 256.5 kB / 0.6074 GB, free: 35.16 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001259/0.6086, allocations: 124.4 kB / 0.6075 GB, free: 35.13 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001952/0.6105, allocations: 1.454 MB / 0.6089 GB, free: 34.99 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.6106, allocations: 0 / 0.6089 GB, free: 34.99 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.514e-06/0.6106, allocations: 0 / 0.6089 GB, free: 34.99 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.758e-06/0.6106, allocations: 3.625 kB / 0.6089 GB, free: 34.99 MB / 0.4981 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.009851/0.6204, allocations: 1.321 MB / 0.6102 GB, free: 34.11 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 6.239e-05/0.6205, allocations: 9 kB / 0.6102 GB, free: 34.11 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.472e-05/0.6206, allocations: 35.38 kB / 0.6102 GB, free: 34.07 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003748/0.621, allocations: 94.69 kB / 0.6103 GB, free: 34.02 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004842/0.6215, allocations: 401.8 kB / 0.6107 GB, free: 33.74 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.562e-05/0.6215, allocations: 5.219 kB / 0.6107 GB, free: 33.74 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.952e-05/0.6215, allocations: 6.969 kB / 0.6107 GB, free: 33.74 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004047/0.6219, allocations: 393.9 kB / 0.6111 GB, free: 33.69 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.755e-06/0.622, allocations: 0.7812 kB / 0.6111 GB, free: 33.69 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.377e-05/0.622, allocations: 0.5 kB / 0.6111 GB, free: 33.69 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.581e-06/0.622, allocations: 0.625 kB / 0.6111 GB, free: 33.69 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003997/0.6224, allocations: 438.4 kB / 0.6115 GB, free: 33.69 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005805/0.623, allocations: 0.6697 MB / 0.6122 GB, free: 33.4 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004698/0.6235, allocations: 0.5663 MB / 0.6127 GB, free: 33.35 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008878/0.6244, allocations: 1.034 MB / 0.6137 GB, free: 32.23 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003676/0.6247, allocations: 406.4 kB / 0.6141 GB, free: 32.16 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.633e-06/0.6248, allocations: 0 / 0.6141 GB, free: 32.16 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.001313/0.6261, allocations: 1.292 MB / 0.6154 GB, free: 32.07 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.001e-05/0.6261, allocations: 84.44 kB / 0.6155 GB, free: 31.98 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001374/0.6275, allocations: 1.284 MB / 0.6167 GB, free: 31.75 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.908e-05/0.6276, allocations: 33.2 kB / 0.6167 GB, free: 31.71 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002065/0.6278, allocations: 286.1 kB / 0.617 GB, free: 31.57 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.922e-05/0.6278, allocations: 18.56 kB / 0.617 GB, free: 31.56 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.697e-05/0.6279, allocations: 8.391 kB / 0.617 GB, free: 31.56 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001587/0.628, allocations: 427.7 kB / 0.6175 GB, free: 31.25 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001402/0.6294, allocations: 1.367 MB / 0.6188 GB, free: 31.25 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001517/0.631, allocations: 1.507 MB / 0.6203 GB, free: 31.21 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001631/0.6326, allocations: 1.918 MB / 0.6221 GB, free: 30.71 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.608e-06/0.6326, allocations: 0 / 0.6221 GB, free: 30.71 MB / 0.4981 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004147/0.6368, allocations: 3.982 MB / 0.626 GB, free: 29.65 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.34e-05/0.6368, allocations: 9.281 kB / 0.626 GB, free: 29.65 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.943e-05/0.6368, allocations: 2.625 kB / 0.626 GB, free: 29.65 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.998e-05/0.6369, allocations: 3.125 kB / 0.626 GB, free: 29.65 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000133/0.637, allocations: 23.94 kB / 0.6261 GB, free: 29.64 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.673e-06/0.637, allocations: 0 / 0.6261 GB, free: 29.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006111/0.6376, allocations: 228.7 kB / 0.6263 GB, free: 29.46 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.702e-05/0.6377, allocations: 25.89 kB / 0.6263 GB, free: 29.46 MB / 0.4981 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 ($whenCondition1,$PRE.k,k,$PRE.t1,t1,$PRE.t2,t2,$PRE.gFun1,gFun1,$PRE.gFun2,gFun2,labels[1],cluSiz[1]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003317/0.638, allocations: 248.2 kB / 0.6265 GB, free: 29.34 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.272e-05/0.6381, allocations: 81.52 kB / 0.6266 GB, free: 29.29 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002782/0.6384, allocations: 81.69 kB / 0.6267 GB, free: 29.23 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.6384, allocations: 2.625 kB / 0.6267 GB, free: 29.23 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.832e-06/0.6384, allocations: 2.516 kB / 0.6267 GB, free: 29.23 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.6384, allocations: 0 / 0.6267 GB, free: 29.23 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004918/0.6389, allocations: 0.512 MB / 0.6272 GB, free: 29.04 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.449e-06/0.6389, allocations: 8.5 kB / 0.6272 GB, free: 29.04 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.772e-05/0.639, allocations: 8.969 kB / 0.6272 GB, free: 29.04 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.988e-06/0.639, allocations: 2.656 kB / 0.6272 GB, free: 29.04 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.637e-05/0.6391, allocations: 15.06 kB / 0.6272 GB, free: 29.03 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.414e-06/0.6391, allocations: 3.125 kB / 0.6272 GB, free: 29.03 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.6391, allocations: 0 / 0.6272 GB, free: 29.03 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009321/0.64, allocations: 1.013 MB / 0.6282 GB, free: 28.89 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001094/0.6401, allocations: 166.9 kB / 0.6284 GB, free: 28.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.927e-05/0.6402, allocations: 3.375 kB / 0.6284 GB, free: 28.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001426/0.6403, allocations: 4.875 kB / 0.6284 GB, free: 28.73 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.863e-05/0.6404, allocations: 8.781 kB / 0.6284 GB, free: 28.73 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.899e-05/0.6404, allocations: 11.39 kB / 0.6284 GB, free: 28.73 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0007565/0.6412, allocations: 0.716 MB / 0.6291 GB, free: 28.62 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.51e-07/0.6412, allocations: 0 / 0.6291 GB, free: 28.62 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.002209/0.6434, allocations: 0.576 MB / 0.6297 GB, free: 28.55 MB / 0.4981 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003815/0.6472, allocations: 2.212 MB / 0.6318 GB, free: 27.72 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.003168/0.6504, allocations: 2.555 MB / 0.6343 GB, free: 27.39 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.6504, allocations: 0 / 0.6343 GB, free: 27.39 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004367/0.6509, allocations: 341.1 kB / 0.6347 GB, free: 27.38 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003921/0.6513, allocations: 52.44 kB / 0.6347 GB, free: 27.36 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004173/0.6555, allocations: 2.812 MB / 0.6375 GB, free: 26.11 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005154/0.656, allocations: 1.007 MB / 0.6384 GB, free: 25.41 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002052/0.6562, allocations: 39.03 kB / 0.6385 GB, free: 25.4 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003111/0.6565, allocations: 288.5 kB / 0.6387 GB, free: 25.16 MB / 0.4981 GB Notification: Performance of SimCode: time 1.322e-06/0.6566, allocations: 3.938 kB / 0.6388 GB, free: 25.16 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06231/0.7189, allocations: 21.99 MB / 0.6602 GB, free: 21.95 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001874/0.7191, allocations: 317 kB / 0.6605 GB, free: 21.59 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.873/3.592, allocations: 0 / 0.6605 GB, free: 21.59 MB / 0.4981 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation_fmu --startTime=0 --stopTime=1.8e+12 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1) Environment - environmentSimulation: