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.001192/0.001192, allocations: 86.72 kB / 15.06 MB, free: 1.09 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.001432/0.001432, allocations: 168.7 kB / 15.95 MB, free: 204 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.45/1.45, allocations: 223.3 MB / 240 MB, free: 5.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 0.9549/0.9549, allocations: 143.4 MB / 434.4 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003118/0.0003118, allocations: 12 kB / 0.5161 GB, free: 11.11 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1561/0.1565, allocations: 83.41 MB / 0.5976 GB, free: 7.629 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.001756/0.1583, allocations: 1.431 MB / 0.599 GB, free: 6.184 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.006225/0.1645, allocations: 4.978 MB / 0.6039 GB, free: 1.188 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.419e-05/0.1646, allocations: 3.938 kB / 0.6039 GB, free: 1.184 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0008471/0.1654, allocations: 306.8 kB / 0.6041 GB, free: 0.8828 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001076/0.1656, allocations: 67.72 kB / 0.6042 GB, free: 0.8164 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.2956/0.4612, allocations: 1.118 MB / 0.6053 GB, free: 35.44 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0003179/0.4615, allocations: 172.2 kB / 0.6055 GB, free: 35.44 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.531e-05/0.4616, allocations: 8.562 kB / 0.6055 GB, free: 35.44 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.335e-05/0.4617, allocations: 64.62 kB / 0.6055 GB, free: 35.44 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002098/0.4619, allocations: 187 kB / 0.6057 GB, free: 35.44 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.787e-05/0.462, allocations: 14.97 kB / 0.6057 GB, free: 35.44 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003047/0.465, allocations: 1.95 MB / 0.6076 GB, free: 35.44 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001824/0.4652, allocations: 272.5 kB / 0.6079 GB, free: 35.44 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 9.709e-05/0.4653, allocations: 123.9 kB / 0.608 GB, free: 35.41 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001286/0.4666, allocations: 1.461 MB / 0.6094 GB, free: 35.28 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.4666, allocations: 0 / 0.6094 GB, free: 35.28 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.114e-06/0.4666, allocations: 3.5 kB / 0.6094 GB, free: 35.28 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.218e-05/0.4666, allocations: 0 / 0.6094 GB, free: 35.28 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.006659/0.4733, allocations: 1.309 MB / 0.6107 GB, free: 34.4 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.587e-05/0.4734, allocations: 8.75 kB / 0.6107 GB, free: 34.4 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.985e-05/0.4734, allocations: 31.25 kB / 0.6108 GB, free: 34.36 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003135/0.4737, allocations: 100.1 kB / 0.6109 GB, free: 34.31 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003668/0.4741, allocations: 403.5 kB / 0.6112 GB, free: 34.03 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.258e-05/0.4741, allocations: 9.094 kB / 0.6113 GB, free: 34.03 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.575e-05/0.4742, allocations: 4.859 kB / 0.6113 GB, free: 34.03 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003371/0.4745, allocations: 392 kB / 0.6116 GB, free: 33.98 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.4745, allocations: 0 / 0.6116 GB, free: 33.98 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.23e-05/0.4745, allocations: 3.734 kB / 0.6116 GB, free: 33.98 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.4745, allocations: 2.781 kB / 0.6116 GB, free: 33.98 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003342/0.4749, allocations: 435.8 kB / 0.6121 GB, free: 33.98 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004473/0.4753, allocations: 0.6691 MB / 0.6127 GB, free: 33.69 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000394/0.4757, allocations: 0.5672 MB / 0.6133 GB, free: 33.64 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002527/0.476, allocations: 335.9 kB / 0.6136 GB, free: 33.63 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000699/0.4767, allocations: 1.04 MB / 0.6146 GB, free: 32.5 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003178/0.477, allocations: 405.7 kB / 0.615 GB, free: 32.44 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.343e-06/0.4771, allocations: 0 / 0.615 GB, free: 32.44 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.0011/0.4782, allocations: 1.295 MB / 0.6162 GB, free: 32.35 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.01e-05/0.4782, allocations: 83.89 kB / 0.6163 GB, free: 32.25 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009902/0.4792, allocations: 1.28 MB / 0.6176 GB, free: 32.02 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.002e-05/0.4792, allocations: 35.03 kB / 0.6176 GB, free: 31.99 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001644/0.4794, allocations: 285.5 kB / 0.6179 GB, free: 31.85 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.718e-05/0.4795, allocations: 20.28 kB / 0.6179 GB, free: 31.84 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.383e-05/0.4795, allocations: 2.75 kB / 0.6179 GB, free: 31.84 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001022/0.4796, allocations: 431.3 kB / 0.6183 GB, free: 31.52 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001089/0.4807, allocations: 1.369 MB / 0.6197 GB, free: 31.52 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001172/0.4819, allocations: 1.509 MB / 0.6211 GB, free: 31.48 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001273/0.4832, allocations: 1.909 MB / 0.623 GB, free: 30.99 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.4832, allocations: 2.781 kB / 0.623 GB, free: 30.99 MB / 0.4981 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003324/0.4865, allocations: 3.988 MB / 0.6269 GB, free: 29.93 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.4865, allocations: 6.688 kB / 0.6269 GB, free: 29.92 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.585e-05/0.4865, allocations: 4.312 kB / 0.6269 GB, free: 29.92 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.743e-05/0.4866, allocations: 4.391 kB / 0.6269 GB, free: 29.92 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001086/0.4867, allocations: 18 kB / 0.6269 GB, free: 29.92 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.4867, allocations: 2.969 kB / 0.6269 GB, free: 29.92 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003814/0.4871, allocations: 232.6 kB / 0.6271 GB, free: 29.74 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.375e-05/0.4871, allocations: 27.31 kB / 0.6272 GB, free: 29.74 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.0002361/0.4874, allocations: 249.3 kB / 0.6274 GB, free: 29.62 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.436e-05/0.4874, allocations: 78.59 kB / 0.6275 GB, free: 29.56 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000235/0.4877, allocations: 81.56 kB / 0.6276 GB, free: 29.5 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.4877, allocations: 4.984 kB / 0.6276 GB, free: 29.5 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.4877, allocations: 0 / 0.6276 GB, free: 29.5 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.4877, allocations: 0 / 0.6276 GB, free: 29.5 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000343/0.488, allocations: 0.5173 MB / 0.6281 GB, free: 29.31 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.4881, allocations: 0 / 0.6281 GB, free: 29.31 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.013e-05/0.4881, allocations: 9.281 kB / 0.6281 GB, free: 29.31 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.387e-06/0.4881, allocations: 1.75 kB / 0.6281 GB, free: 29.31 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.322e-05/0.4882, allocations: 6 kB / 0.6281 GB, free: 29.31 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.4882, allocations: 2.625 kB / 0.6281 GB, free: 29.31 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.4882, allocations: 0 / 0.6281 GB, free: 29.31 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007485/0.4889, allocations: 1.011 MB / 0.6291 GB, free: 29.18 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.393e-05/0.489, allocations: 165.9 kB / 0.6292 GB, free: 29.02 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.264e-05/0.4891, allocations: 4.5 kB / 0.6292 GB, free: 29.02 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001328/0.4892, allocations: 5.875 kB / 0.6292 GB, free: 29.02 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.439e-05/0.4893, allocations: 6.625 kB / 0.6292 GB, free: 29.02 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.799e-05/0.4893, allocations: 15.11 kB / 0.6293 GB, free: 29.02 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0007253/0.49, allocations: 0.716 MB / 0.63 GB, free: 28.91 MB / 0.4981 GB Notification: Performance of sort global known variables: time 6.41e-07/0.49, allocations: 4 kB / 0.63 GB, free: 28.91 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001541/0.4916, allocations: 0.5766 MB / 0.6305 GB, free: 28.84 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.002902/0.4945, allocations: 2.134 MB / 0.6326 GB, free: 28.1 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002373/0.4969, allocations: 2.548 MB / 0.6351 GB, free: 27.34 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.4969, allocations: 0 / 0.6351 GB, free: 27.34 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003686/0.4973, allocations: 344.5 kB / 0.6354 GB, free: 27.33 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003589/0.4976, allocations: 57.89 kB / 0.6355 GB, free: 27.3 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01024/0.5079, allocations: 9.653 MB / 0.6449 GB, free: 23.27 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003801/0.5083, allocations: 0.989 MB / 0.6459 GB, free: 22.57 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001902/0.5085, allocations: 41.7 kB / 0.6459 GB, free: 22.56 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002697/0.5088, allocations: 292.5 kB / 0.6462 GB, free: 22.32 MB / 0.4981 GB Notification: Performance of SimCode: time 6.01e-07/0.5088, allocations: 0 / 0.6462 GB, free: 22.32 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04785/0.5566, allocations: 23.12 MB / 0.6688 GB, free: 16.49 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001502/0.5568, allocations: 334 kB / 0.6691 GB, free: 16.13 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.665/3.222, allocations: 0 / 0.6691 GB, free: 16.13 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: