Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_SmallScaleValidation,fileNamePrefix="Buildings_9_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_9_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.007478/0.007478, allocations: 100.8 kB / 15.73 MB, free: 6.047 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.001718/0.001718, allocations: 185.6 kB / 16.67 MB, free: 5.977 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.365/1.365, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.524/2.524, allocations: 390.2 MB / 0.6648 GB, free: 224 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001252, allocations: 68.38 kB / 0.9505 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2983/0.2996, allocations: 140.4 MB / 1.088 GB, free: 1.957 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003114/0.3028, allocations: 1.737 MB / 1.089 GB, free: 216 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.006211/0.309, allocations: 4.217 MB / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001521/0.3092, allocations: 3.938 kB / 1.093 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001471/0.3107, allocations: 371.2 kB / 1.094 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001907/0.3109, allocations: 63.66 kB / 1.094 GB, free: 11.54 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.003109/0.314, allocations: 0.9884 MB / 1.095 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003976/0.3145, allocations: 147.3 kB / 1.095 GB, free: 10.41 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 6.692e-05/0.3145, allocations: 13.55 kB / 1.095 GB, free: 10.39 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001116/0.3147, allocations: 55.78 kB / 1.095 GB, free: 10.34 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000238/0.3149, allocations: 163.5 kB / 1.095 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 4.525e-05/0.315, allocations: 12 kB / 1.095 GB, free: 10.16 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002371/0.3173, allocations: 1.388 MB / 1.096 GB, free: 8.773 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0002392/0.3176, allocations: 279.8 kB / 1.097 GB, free: 8.5 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002997/0.3179, allocations: 302.1 kB / 1.097 GB, free: 8.203 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.002541/0.3205, allocations: 1.551 MB / 1.099 GB, free: 6.648 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3205, allocations: 0 / 1.099 GB, free: 6.648 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.693e-06/0.3205, allocations: 0 / 1.099 GB, free: 6.648 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 2.286e-05/0.3205, allocations: 0 / 1.099 GB, free: 6.648 MB / 0.8575 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.008239/0.3288, allocations: 1.277 MB / 1.1 GB, free: 5.32 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.73e-05/0.3288, allocations: 8.031 kB / 1.1 GB, free: 5.312 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.326e-05/0.3289, allocations: 34.75 kB / 1.1 GB, free: 5.27 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004053/0.3293, allocations: 99.52 kB / 1.1 GB, free: 5.172 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006322/0.3299, allocations: 402 kB / 1.1 GB, free: 4.73 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.495e-05/0.33, allocations: 8.375 kB / 1.1 GB, free: 4.723 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.36e-05/0.33, allocations: 8.359 kB / 1.1 GB, free: 4.715 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004705/0.3305, allocations: 391.3 kB / 1.101 GB, free: 4.32 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/0.3305, allocations: 0 / 1.101 GB, free: 4.32 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.481e-05/0.3305, allocations: 0 / 1.101 GB, free: 4.32 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.3306, allocations: 4 kB / 1.101 GB, free: 4.316 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004577/0.331, allocations: 443.7 kB / 1.101 GB, free: 3.883 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007182/0.3317, allocations: 0.6613 MB / 1.102 GB, free: 3.172 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005132/0.3323, allocations: 0.5672 MB / 1.102 GB, free: 2.586 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002949/0.3326, allocations: 337.7 kB / 1.103 GB, free: 2.25 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001042/0.3336, allocations: 1.025 MB / 1.104 GB, free: 1.004 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004013/0.334, allocations: 404.8 kB / 1.104 GB, free: 0.5898 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 1.693e-06/0.3341, allocations: 0 / 1.104 GB, free: 0.5898 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8): time 0.001358/0.3354, allocations: 1.3 MB / 1.105 GB, free: 15.28 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.537e-05/0.3355, allocations: 85.09 kB / 1.105 GB, free: 15.18 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001277/0.3368, allocations: 1.281 MB / 1.107 GB, free: 13.89 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 5.225e-05/0.3368, allocations: 33.7 kB / 1.107 GB, free: 13.85 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002174/0.3371, allocations: 281.4 kB / 1.107 GB, free: 13.57 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 4.539e-05/0.3371, allocations: 23.69 kB / 1.107 GB, free: 13.54 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003425/0.3375, allocations: 351.5 kB / 1.107 GB, free: 13.2 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001124/0.3376, allocations: 318 kB / 1.108 GB, free: 12.88 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001198/0.3388, allocations: 1.369 MB / 1.109 GB, free: 11.51 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001291/0.3401, allocations: 1.489 MB / 1.11 GB, free: 10.01 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006942/0.347, allocations: 3.538 MB / 1.114 GB, free: 6.379 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/0.3471, allocations: 4 kB / 1.114 GB, free: 6.375 MB / 0.8731 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.004336/0.3514, allocations: 3.972 MB / 1.118 GB, free: 2.371 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.921e-05/0.3515, allocations: 9.562 kB / 1.118 GB, free: 2.363 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.714e-05/0.3515, allocations: 0 / 1.118 GB, free: 2.363 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.039e-05/0.3515, allocations: 0 / 1.118 GB, free: 2.363 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000141/0.3517, allocations: 19.98 kB / 1.118 GB, free: 2.344 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.148e-06/0.3517, allocations: 7.938 kB / 1.118 GB, free: 2.336 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004709/0.3522, allocations: 232.3 kB / 1.118 GB, free: 2.105 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.534e-05/0.3522, allocations: 23.98 kB / 1.118 GB, free: 2.082 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 11 (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 (16): * Single equations (assignments): 13 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 1 * 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.0003116/0.3526, allocations: 245.7 kB / 1.118 GB, free: 1.832 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.926e-05/0.3526, allocations: 74.62 kB / 1.118 GB, free: 1.758 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003026/0.353, allocations: 87.66 kB / 1.118 GB, free: 1.66 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.353, allocations: 0 / 1.118 GB, free: 1.66 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/0.353, allocations: 4.031 kB / 1.118 GB, free: 1.656 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.353, allocations: 0 / 1.118 GB, free: 1.656 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004696/0.3535, allocations: 0.5177 MB / 1.119 GB, free: 1.094 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.3535, allocations: 7.875 kB / 1.119 GB, free: 1.086 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.189e-05/0.3536, allocations: 7.984 kB / 1.119 GB, free: 1.078 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.045e-06/0.3536, allocations: 0 / 1.119 GB, free: 1.078 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.504e-05/0.3536, allocations: 4 kB / 1.119 GB, free: 1.074 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.3536, allocations: 0 / 1.119 GB, free: 1.074 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.3536, allocations: 0 / 1.119 GB, free: 1.074 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009201/0.3545, allocations: 1.006 MB / 1.12 GB, free: 48 kB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000152/0.3547, allocations: 163.7 kB / 1.12 GB, free: 15.87 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.614e-05/0.3548, allocations: 0 / 1.12 GB, free: 15.87 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001476/0.3549, allocations: 15.92 kB / 1.12 GB, free: 15.85 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.942e-05/0.355, allocations: 4 kB / 1.12 GB, free: 15.85 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.604e-05/0.355, allocations: 19.97 kB / 1.12 GB, free: 15.83 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0007972/0.3558, allocations: 0.7179 MB / 1.121 GB, free: 15.11 MB / 0.8887 GB Notification: Performance of sort global known variables: time 5.11e-07/0.3558, allocations: 0 / 1.121 GB, free: 15.11 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.001113/0.357, allocations: 399.9 kB / 1.121 GB, free: 14.71 MB / 0.8887 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.002592/0.3596, allocations: 1.935 MB / 1.123 GB, free: 12.75 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.002274/0.3619, allocations: 2.499 MB / 1.126 GB, free: 10.24 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.3619, allocations: 0 / 1.126 GB, free: 10.24 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0003181/0.3622, allocations: 335.8 kB / 1.126 GB, free: 9.91 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000492/0.3627, allocations: 65.61 kB / 1.126 GB, free: 9.848 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0171/0.3798, allocations: 14.98 MB / 1.141 GB, free: 10.7 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008028/0.3807, allocations: 0.9917 MB / 1.141 GB, free: 9.684 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0002402/0.381, allocations: 37.42 kB / 1.142 GB, free: 9.648 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004568/0.3815, allocations: 287.3 kB / 1.142 GB, free: 9.367 MB / 0.9044 GB Notification: Performance of SimCode: time 1.923e-06/0.3815, allocations: 0 / 1.142 GB, free: 9.367 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0469/0.4284, allocations: 19.87 MB / 1.161 GB, free: 5.727 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.997/10.43, allocations: 6.609 kB / 1.161 GB, free: 5.723 MB / 0.92 GB (rm -f Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation_fmu --startTime=0 --stopTime=1.8e+12 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.fmu > Buildings_9_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)