Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.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(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="IBPSA_latest_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.001053/0.001053, allocations: 93.03 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001085/0.001085, allocations: 176.4 kB / 16.91 MB, free: 6.68 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.228/1.228, allocations: 223.3 MB / 241 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6528/0.6528, allocations: 115.5 MB / 407.6 MB, free: 2.691 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002924/0.0002925, allocations: 8 kB / 496 MB, free: 6.219 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1206, allocations: 77.53 MB / 0.5601 GB, free: 8.906 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.001742/0.1224, allocations: 1.449 MB / 0.5615 GB, free: 7.441 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.007347/0.1298, allocations: 5.537 MB / 0.5669 GB, free: 1.879 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001095/0.1299, allocations: 4 kB / 0.5669 GB, free: 1.875 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001161/0.1311, allocations: 362.6 kB / 0.5673 GB, free: 1.52 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001538/0.1312, allocations: 51.73 kB / 0.5673 GB, free: 1.469 MB / 430.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.003221/0.1345, allocations: 1.188 MB / 0.5685 GB, free: 288 kB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002439/0.1347, allocations: 203.3 kB / 0.5687 GB, free: 84 kB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.017e-05/0.1348, allocations: 13.55 kB / 0.5687 GB, free: 72 kB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.269e-05/0.1349, allocations: 55.77 kB / 0.5687 GB, free: 16 kB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002406/0.1351, allocations: 188.7 kB / 0.5689 GB, free: 15.83 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 3.653e-05/0.1352, allocations: 12 kB / 0.5689 GB, free: 15.82 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003325/0.1385, allocations: 2.18 MB / 0.571 GB, free: 13.64 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002412/0.1388, allocations: 279.8 kB / 0.5713 GB, free: 13.36 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003105/0.1391, allocations: 335.9 kB / 0.5716 GB, free: 13.02 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003684/0.1428, allocations: 2.225 MB / 0.5738 GB, free: 10.79 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.1428, allocations: 0 / 0.5738 GB, free: 10.79 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1428, allocations: 0 / 0.5738 GB, free: 10.79 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.768e-05/0.1428, allocations: 0 / 0.5738 GB, free: 10.79 MB / 446.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.01041/0.1533, allocations: 1.3 MB / 0.5751 GB, free: 9.441 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.649e-05/0.1533, allocations: 12.03 kB / 0.5751 GB, free: 9.43 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.462e-05/0.1534, allocations: 34.73 kB / 0.5751 GB, free: 9.387 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004102/0.1538, allocations: 99.59 kB / 0.5752 GB, free: 9.289 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005473/0.1543, allocations: 410.1 kB / 0.5756 GB, free: 8.84 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.365e-05/0.1544, allocations: 4.375 kB / 0.5756 GB, free: 8.836 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.825e-05/0.1544, allocations: 8.375 kB / 0.5756 GB, free: 8.828 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004597/0.1549, allocations: 399.2 kB / 0.576 GB, free: 8.426 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-06/0.1549, allocations: 0 / 0.576 GB, free: 8.426 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.308e-05/0.1549, allocations: 0 / 0.576 GB, free: 8.426 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.1549, allocations: 0 / 0.576 GB, free: 8.426 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004289/0.1554, allocations: 431.8 kB / 0.5764 GB, free: 8.004 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006926/0.1561, allocations: 0.6654 MB / 0.5771 GB, free: 7.289 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005419/0.1566, allocations: 0.5633 MB / 0.5776 GB, free: 6.707 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003378/0.157, allocations: 337.7 kB / 0.5779 GB, free: 6.371 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009934/0.158, allocations: 1.036 MB / 0.5789 GB, free: 5.113 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000452/0.1585, allocations: 412.7 kB / 0.5793 GB, free: 4.691 MB / 446.1 MB Notification: Performance of pre-optimization done (n=8): time 1.924e-06/0.1585, allocations: 0 / 0.5793 GB, free: 4.691 MB / 446.1 MB Notification: Performance of matching and sorting (n=8): time 0.001353/0.1598, allocations: 1.304 MB / 0.5806 GB, free: 3.379 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.709e-05/0.1599, allocations: 85.09 kB / 0.5807 GB, free: 3.277 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001337/0.1612, allocations: 1.29 MB / 0.582 GB, free: 1.977 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.751e-05/0.1613, allocations: 29.7 kB / 0.582 GB, free: 1.941 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002321/0.1615, allocations: 285.4 kB / 0.5823 GB, free: 1.656 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.071e-05/0.1616, allocations: 19.7 kB / 0.5823 GB, free: 1.637 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002479/0.1618, allocations: 295.8 kB / 0.5826 GB, free: 1.344 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.162, allocations: 318 kB / 0.5829 GB, free: 1.027 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2012/0.3632, allocations: 1.366 MB / 0.5842 GB, free: 29.58 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001414/0.3646, allocations: 1.505 MB / 0.5857 GB, free: 29.54 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006583/0.3712, allocations: 3.565 MB / 0.5891 GB, free: 28.4 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.3712, allocations: 1.438 kB / 0.5891 GB, free: 28.4 MB / 446.1 MB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003719/0.375, allocations: 4.009 MB / 0.5931 GB, free: 26.46 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.375, allocations: 7.406 kB / 0.5931 GB, free: 26.46 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.565e-05/0.375, allocations: 2.219 kB / 0.5931 GB, free: 26.46 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.697e-05/0.375, allocations: 4.812 kB / 0.5931 GB, free: 26.46 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001169/0.3752, allocations: 20.17 kB / 0.5931 GB, free: 26.45 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.985e-06/0.3752, allocations: 4.156 kB / 0.5931 GB, free: 26.45 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004331/0.3756, allocations: 227.1 kB / 0.5933 GB, free: 26.29 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.613e-05/0.3757, allocations: 24.44 kB / 0.5933 GB, free: 26.29 MB / 446.1 MB 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.0002895/0.376, allocations: 249.2 kB / 0.5936 GB, free: 26.17 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.907e-05/0.376, allocations: 74.84 kB / 0.5936 GB, free: 26.12 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002511/0.3763, allocations: 82.98 kB / 0.5937 GB, free: 26.06 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.748e-06/0.3763, allocations: 1.594 kB / 0.5937 GB, free: 26.06 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.3763, allocations: 0.5312 kB / 0.5937 GB, free: 26.06 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.3763, allocations: 1.984 kB / 0.5937 GB, free: 26.06 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004711/0.3768, allocations: 0.5184 MB / 0.5942 GB, free: 25.78 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.3768, allocations: 4.984 kB / 0.5942 GB, free: 25.78 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.628e-05/0.3769, allocations: 7.656 kB / 0.5942 GB, free: 25.78 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.3769, allocations: 1.344 kB / 0.5942 GB, free: 25.78 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.501e-05/0.3769, allocations: 5.188 kB / 0.5942 GB, free: 25.78 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.3769, allocations: 0 / 0.5942 GB, free: 25.78 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.3769, allocations: 4.578 kB / 0.5943 GB, free: 25.78 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001083/0.378, allocations: 1.009 MB / 0.5952 GB, free: 25.63 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.21e-05/0.3781, allocations: 162.2 kB / 0.5954 GB, free: 25.48 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.198e-05/0.3782, allocations: 5.406 kB / 0.5954 GB, free: 25.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001449/0.3783, allocations: 4.875 kB / 0.5954 GB, free: 25.48 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.68e-05/0.3784, allocations: 11.14 kB / 0.5954 GB, free: 25.47 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.442e-05/0.3784, allocations: 12.72 kB / 0.5954 GB, free: 25.47 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008803/0.3793, allocations: 0.7269 MB / 0.5961 GB, free: 25.23 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3793, allocations: 0 / 0.5961 GB, free: 25.23 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001539/0.3808, allocations: 0.5881 MB / 0.5967 GB, free: 25.2 MB / 446.1 MB 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.002835/0.3837, allocations: 2.154 MB / 0.5988 GB, free: 24.47 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002173/0.3859, allocations: 2.555 MB / 0.6013 GB, free: 23.45 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3859, allocations: 0 / 0.6013 GB, free: 23.45 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000335/0.3862, allocations: 343.6 kB / 0.6016 GB, free: 23.43 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004069/0.3866, allocations: 58.31 kB / 0.6017 GB, free: 23.4 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0131/0.3997, allocations: 15.3 MB / 0.6166 GB, free: 14.87 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003551/0.4001, allocations: 0.9879 MB / 0.6176 GB, free: 13.98 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0001772/0.4003, allocations: 37.59 kB / 0.6176 GB, free: 13.95 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002465/0.4006, allocations: 291 kB / 0.6179 GB, free: 13.7 MB / 446.1 MB Notification: Performance of SimCode: time 5.21e-07/0.4006, allocations: 0 / 0.6179 GB, free: 13.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03446/0.435, allocations: 23.25 MB / 0.6406 GB, free: 7.504 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002937/0.4354, allocations: 341.4 kB / 0.6409 GB, free: 7.121 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.403/2.838, allocations: 2.75 kB / 0.6409 GB, free: 7.121 MB / 462.1 MB (rm -f IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation_fmu --startTime=0 --stopTime=1.8e+12 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.fmu > IBPSA_latest_IBPSA.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)