Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.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/Buildings 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="Buildings_10_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="Buildings_10_Buildings_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.001198/0.001198, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001223/0.001223, allocations: 194.9 kB / 16.14 MB, free: 6.648 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.222/1.222, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.39/2.39, allocations: 437 MB / 0.71 GB, free: 5.312 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001358/0.001358, allocations: 67.91 kB / 0.8687 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5882/0.5896, allocations: 151.6 MB / 1.017 GB, free: 2.773 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002391/0.592, allocations: 1.483 MB / 1.018 GB, free: 1.277 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.005953/0.598, allocations: 4.497 MB / 1.023 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.704e-05/0.598, allocations: 7.938 kB / 1.023 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 9.528e-05/0.5982, allocations: 7.922 kB / 1.023 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001876/0.5984, allocations: 31.84 kB / 1.023 GB, free: 12.71 MB / 0.7794 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.002749/0.6011, allocations: 1.173 MB / 1.024 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001323/0.6013, allocations: 119.6 kB / 1.024 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.014e-05/0.6013, allocations: 7.984 kB / 1.024 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 6.71e-05/0.6014, allocations: 47.83 kB / 1.024 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002004/0.6016, allocations: 164.9 kB / 1.024 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.439e-05/0.6016, allocations: 12 kB / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002814/0.6045, allocations: 2.184 MB / 1.026 GB, free: 9.012 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001844/0.6047, allocations: 263.9 kB / 1.027 GB, free: 8.754 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.00022/0.6049, allocations: 282.3 kB / 1.027 GB, free: 8.477 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.002697/0.6076, allocations: 2.157 MB / 1.029 GB, free: 6.312 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.6076, allocations: 0 / 1.029 GB, free: 6.312 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.092e-06/0.6076, allocations: 0 / 1.029 GB, free: 6.312 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.222e-05/0.6076, allocations: 4 kB / 1.029 GB, free: 6.309 MB / 0.7794 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.007666/0.6153, allocations: 1.3 MB / 1.03 GB, free: 4.957 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.6154, allocations: 15.98 kB / 1.03 GB, free: 4.941 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.229e-05/0.6154, allocations: 34.75 kB / 1.03 GB, free: 4.898 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003867/0.6158, allocations: 83.69 kB / 1.03 GB, free: 4.816 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003582/0.6162, allocations: 372.9 kB / 1.031 GB, free: 4.402 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.166e-06/0.6162, allocations: 4.375 kB / 1.031 GB, free: 4.398 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.803e-05/0.6162, allocations: 8.375 kB / 1.031 GB, free: 4.391 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003899/0.6166, allocations: 403.2 kB / 1.031 GB, free: 3.984 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.322e-06/0.6166, allocations: 0 / 1.031 GB, free: 3.984 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.357e-05/0.6166, allocations: 3.984 kB / 1.031 GB, free: 3.98 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.6167, allocations: 0 / 1.031 GB, free: 3.98 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003918/0.617, allocations: 431.8 kB / 1.031 GB, free: 3.559 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005254/0.6176, allocations: 0.6404 MB / 1.032 GB, free: 2.867 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004573/0.618, allocations: 0.5633 MB / 1.033 GB, free: 2.285 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002789/0.6183, allocations: 333.7 kB / 1.033 GB, free: 1.953 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009453/0.6193, allocations: 1.028 MB / 1.034 GB, free: 0.7031 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003681/0.6197, allocations: 412.8 kB / 1.034 GB, free: 288 kB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 1.323e-06/0.6197, allocations: 0 / 1.034 GB, free: 288 kB / 0.7794 GB Notification: Performance of matching and sorting (n=8): time 0.001212/0.6209, allocations: 1.297 MB / 1.036 GB, free: 14.98 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.211e-05/0.621, allocations: 84.98 kB / 1.036 GB, free: 14.88 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001019/0.622, allocations: 1.21 MB / 1.037 GB, free: 13.65 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.708e-05/0.622, allocations: 33.7 kB / 1.037 GB, free: 13.61 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001684/0.6222, allocations: 265.3 kB / 1.037 GB, free: 13.34 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.024e-05/0.6222, allocations: 11.81 kB / 1.037 GB, free: 13.33 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002955/0.6225, allocations: 351.6 kB / 1.038 GB, free: 12.98 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 9.235e-05/0.6226, allocations: 322 kB / 1.038 GB, free: 12.66 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001117/0.6238, allocations: 1.369 MB / 1.039 GB, free: 11.29 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001183/0.625, allocations: 1.497 MB / 1.041 GB, free: 9.785 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0066/0.6316, allocations: 3.56 MB / 1.044 GB, free: 6.133 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.6316, allocations: 8 kB / 1.044 GB, free: 6.125 MB / 0.795 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003875/0.6355, allocations: 4.003 MB / 1.048 GB, free: 2.086 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.6355, allocations: 10.34 kB / 1.048 GB, free: 2.078 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.483e-05/0.6355, allocations: 0 / 1.048 GB, free: 2.078 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.6355, allocations: 4 kB / 1.048 GB, free: 2.074 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001202/0.6357, allocations: 19.98 kB / 1.048 GB, free: 2.055 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.6357, allocations: 0 / 1.048 GB, free: 2.055 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004033/0.6361, allocations: 236.2 kB / 1.048 GB, free: 1.82 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.681e-05/0.6361, allocations: 19.98 kB / 1.048 GB, free: 1.801 MB / 0.795 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.0002697/0.6364, allocations: 242.1 kB / 1.049 GB, free: 1.555 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.963e-05/0.6365, allocations: 70.72 kB / 1.049 GB, free: 1.484 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002623/0.6367, allocations: 78.97 kB / 1.049 GB, free: 1.398 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.347e-06/0.6368, allocations: 4.031 kB / 1.049 GB, free: 1.395 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.6368, allocations: 4 kB / 1.049 GB, free: 1.391 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.6368, allocations: 0 / 1.049 GB, free: 1.391 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003787/0.6372, allocations: 492.9 kB / 1.049 GB, free: 0.8633 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.6372, allocations: 3.938 kB / 1.049 GB, free: 0.8594 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.977e-05/0.6372, allocations: 11.98 kB / 1.049 GB, free: 0.8477 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-06/0.6372, allocations: 0 / 1.049 GB, free: 0.8477 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.23e-05/0.6373, allocations: 3.938 kB / 1.049 GB, free: 0.8438 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.25e-06/0.6373, allocations: 7.938 kB / 1.049 GB, free: 0.8359 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.526e-06/0.6373, allocations: 3.984 kB / 1.049 GB, free: 0.832 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008326/0.6381, allocations: 0.9936 MB / 1.05 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 9.6e-05/0.6382, allocations: 155.8 kB / 1.05 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.19e-05/0.6383, allocations: 4 kB / 1.05 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001364/0.6384, allocations: 11.98 kB / 1.05 GB, free: 15.63 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.55e-05/0.6385, allocations: 11.98 kB / 1.05 GB, free: 15.62 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.207e-05/0.6385, allocations: 11.98 kB / 1.05 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0006413/0.6392, allocations: 0.6689 MB / 1.051 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.41e-07/0.6392, allocations: 0 / 1.051 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.001358/0.6405, allocations: 0.5896 MB / 1.052 GB, free: 14.34 MB / 0.8106 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.002987/0.6435, allocations: 2.139 MB / 1.054 GB, free: 12.19 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.002052/0.6456, allocations: 2.548 MB / 1.056 GB, free: 9.625 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.6456, allocations: 0 / 1.056 GB, free: 9.625 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0002969/0.6459, allocations: 347.8 kB / 1.056 GB, free: 9.285 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002881/0.6462, allocations: 42.17 kB / 1.057 GB, free: 9.246 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01434/0.6605, allocations: 15.25 MB / 1.071 GB, free: 9.82 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004508/0.661, allocations: 0.972 MB / 1.072 GB, free: 8.82 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.000163/0.6612, allocations: 36.55 kB / 1.072 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000277/0.6615, allocations: 265 kB / 1.073 GB, free: 8.527 MB / 0.8262 GB Notification: Performance of SimCode: time 9.82e-07/0.6615, allocations: 0 / 1.073 GB, free: 8.527 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03729/0.6988, allocations: 23.23 MB / 1.095 GB, free: 1.508 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002721/0.6991, allocations: 332.7 kB / 1.096 GB, free: 1.133 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.478/3.177, allocations: 3.938 kB / 1.096 GB, free: 1.129 MB / 0.8419 GB (rm -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters_fmu --startTime=0 --stopTime=4.12e+08 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.fmu > Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)