Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.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/Buildings 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="Buildings_latest_Buildings_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.001083/0.001083, allocations: 89.73 kB / 15.06 MB, free: 1.098 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.00148/0.00148, allocations: 172.7 kB / 15.95 MB, free: 208 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.36/1.36, allocations: 223.2 MB / 240 MB, free: 5.441 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.49/2.49, allocations: 409.4 MB / 0.684 GB, free: 0.8945 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0004023/0.0004023, allocations: 20 kB / 0.8378 GB, free: 6.465 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6371/0.6375, allocations: 146.8 MB / 0.9812 GB, free: 6.227 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.001843/0.6394, allocations: 1.428 MB / 0.9826 GB, free: 4.789 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.007034/0.6465, allocations: 4.985 MB / 0.9874 GB, free: 15.78 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.32e-05/0.6466, allocations: 0 / 0.9874 GB, free: 15.78 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.001011/0.6476, allocations: 325.2 kB / 0.9878 GB, free: 15.46 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.0001348/0.6478, allocations: 59.73 kB / 0.9878 GB, free: 15.41 MB / 0.7481 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.003046/0.6508, allocations: 1.122 MB / 0.9889 GB, free: 14.29 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.0002648/0.6511, allocations: 171.4 kB / 0.9891 GB, free: 14.12 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 5.719e-05/0.6512, allocations: 25.47 kB / 0.9891 GB, free: 14.09 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 7.583e-05/0.6512, allocations: 51.8 kB / 0.9891 GB, free: 14.04 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002607/0.6515, allocations: 199.5 kB / 0.9893 GB, free: 13.85 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 3.973e-05/0.6515, allocations: 16 kB / 0.9893 GB, free: 13.83 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002833/0.6544, allocations: 1.942 MB / 0.9912 GB, free: 11.89 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0002172/0.6546, allocations: 271.2 kB / 0.9915 GB, free: 11.62 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0001371/0.6548, allocations: 125.2 kB / 0.9916 GB, free: 11.49 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.001672/0.6564, allocations: 1.446 MB / 0.993 GB, free: 10.04 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 1.491e-05/0.6565, allocations: 4 kB / 0.993 GB, free: 10.04 MB / 0.7481 GB Notification: Performance of FrontEnd: time 2.605e-06/0.6565, allocations: 0 / 0.993 GB, free: 10.04 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 8.466e-06/0.6565, allocations: 0 / 0.993 GB, free: 10.04 MB / 0.7481 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.007037/0.6635, allocations: 1.308 MB / 0.9943 GB, free: 8.68 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 5.097e-05/0.6636, allocations: 11.98 kB / 0.9943 GB, free: 8.668 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.367e-05/0.6636, allocations: 42.48 kB / 0.9944 GB, free: 8.617 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003646/0.664, allocations: 94.66 kB / 0.9945 GB, free: 8.523 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005085/0.6645, allocations: 401 kB / 0.9948 GB, free: 8.082 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.558e-06/0.6646, allocations: 4 kB / 0.9948 GB, free: 8.078 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.854e-05/0.6646, allocations: 12 kB / 0.9949 GB, free: 8.066 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004237/0.665, allocations: 391.1 kB / 0.9952 GB, free: 7.672 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.767e-06/0.665, allocations: 0 / 0.9952 GB, free: 7.672 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.247e-05/0.6651, allocations: 0 / 0.9952 GB, free: 7.672 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.6651, allocations: 0 / 0.9952 GB, free: 7.672 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004165/0.6655, allocations: 443.6 kB / 0.9957 GB, free: 7.238 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005815/0.6661, allocations: 0.6615 MB / 0.9963 GB, free: 6.527 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000511/0.6666, allocations: 0.5672 MB / 0.9969 GB, free: 5.941 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002969/0.6669, allocations: 337.7 kB / 0.9972 GB, free: 5.605 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009588/0.6679, allocations: 1.032 MB / 0.9982 GB, free: 4.352 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004744/0.6684, allocations: 404.9 kB / 0.9986 GB, free: 3.938 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=8): time 1.312e-06/0.6684, allocations: 8 kB / 0.9986 GB, free: 3.93 MB / 0.7481 GB Notification: Performance of matching and sorting (n=8): time 0.001354/0.6697, allocations: 1.296 MB / 0.9998 GB, free: 2.625 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.505e-05/0.6698, allocations: 81.11 kB / 0.9999 GB, free: 2.527 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001207/0.671, allocations: 1.285 MB / 1.001 GB, free: 1.23 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 3.527e-05/0.6711, allocations: 25.7 kB / 1.001 GB, free: 1.199 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001987/0.6713, allocations: 293.5 kB / 1.001 GB, free: 0.9062 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 3.352e-05/0.6713, allocations: 15.81 kB / 1.001 GB, free: 0.8906 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.393e-05/0.6713, allocations: 0 / 1.001 GB, free: 0.8906 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001725/0.6715, allocations: 431.9 kB / 1.002 GB, free: 472 kB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001175/0.6727, allocations: 1.369 MB / 1.003 GB, free: 15.09 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001256/0.674, allocations: 1.501 MB / 1.005 GB, free: 13.57 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001566/0.6756, allocations: 1.914 MB / 1.007 GB, free: 11.64 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.6756, allocations: 3.938 kB / 1.007 GB, free: 11.64 MB / 0.7637 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004064/0.6796, allocations: 3.996 MB / 1.01 GB, free: 7.609 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.6797, allocations: 4.938 kB / 1.01 GB, free: 7.605 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.724e-05/0.6797, allocations: 4 kB / 1.01 GB, free: 7.602 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/0.6797, allocations: 3.953 kB / 1.01 GB, free: 7.598 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001262/0.6799, allocations: 24.02 kB / 1.011 GB, free: 7.574 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.563e-06/0.6799, allocations: 0 / 1.011 GB, free: 7.574 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004389/0.6803, allocations: 236.2 kB / 1.011 GB, free: 7.34 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.617e-05/0.6804, allocations: 27.89 kB / 1.011 GB, free: 7.316 MB / 0.7637 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.0003279/0.6807, allocations: 249.6 kB / 1.011 GB, free: 7.062 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.688e-05/0.6808, allocations: 70.69 kB / 1.011 GB, free: 6.992 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002675/0.681, allocations: 87.81 kB / 1.011 GB, free: 6.895 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.381e-06/0.6811, allocations: 3.953 kB / 1.011 GB, free: 6.891 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.68e-06/0.6811, allocations: 0 / 1.011 GB, free: 6.891 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.6811, allocations: 7.984 kB / 1.011 GB, free: 6.883 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004682/0.6816, allocations: 0.5063 MB / 1.012 GB, free: 6.332 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.6816, allocations: 0 / 1.012 GB, free: 6.332 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.772e-05/0.6816, allocations: 15.92 kB / 1.012 GB, free: 6.316 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.6817, allocations: 0 / 1.012 GB, free: 6.316 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.51e-05/0.6817, allocations: 4 kB / 1.012 GB, free: 6.312 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.6817, allocations: 4.031 kB / 1.012 GB, free: 6.309 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/0.6817, allocations: 3.953 kB / 1.012 GB, free: 6.305 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009066/0.6826, allocations: 1.006 MB / 1.013 GB, free: 5.277 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001408/0.6828, allocations: 159.8 kB / 1.013 GB, free: 5.102 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.395e-05/0.6828, allocations: 4 kB / 1.013 GB, free: 5.098 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000141/0.683, allocations: 11.98 kB / 1.013 GB, free: 5.086 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.442e-05/0.683, allocations: 3.953 kB / 1.013 GB, free: 5.082 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.898e-05/0.6831, allocations: 19.97 kB / 1.013 GB, free: 5.062 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0007908/0.6839, allocations: 0.7104 MB / 1.014 GB, free: 4.348 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.8e-07/0.6839, allocations: 0 / 1.014 GB, free: 4.348 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.001527/0.6854, allocations: 0.5857 MB / 1.014 GB, free: 3.762 MB / 0.7637 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.003/0.6884, allocations: 2.131 MB / 1.016 GB, free: 1.617 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.002321/0.6907, allocations: 2.552 MB / 1.019 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.6908, allocations: 4.062 kB / 1.019 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0003177/0.6911, allocations: 343.7 kB / 1.019 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003491/0.6914, allocations: 48.7 kB / 1.019 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01028/0.7017, allocations: 9.659 MB / 1.029 GB, free: 4.906 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000505/0.7023, allocations: 0.9842 MB / 1.029 GB, free: 3.898 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0002027/0.7025, allocations: 41.36 kB / 1.03 GB, free: 3.859 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000316/0.7028, allocations: 296.1 kB / 1.03 GB, free: 3.57 MB / 0.7794 GB Notification: Performance of SimCode: time 7.31e-07/0.7028, allocations: 4 kB / 1.03 GB, free: 3.566 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03978/0.7426, allocations: 22.98 MB / 1.052 GB, free: 12.84 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000222/0.7429, allocations: 323.2 kB / 1.053 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.578/3.321, allocations: 0 / 1.053 GB, free: 12.48 MB / 0.8106 GB (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation_fmu --startTime=0 --stopTime=1.8e+12 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.fmu > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1) Environment - environmentSimulation: