/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 7 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7383
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2209.8-5028_daily_bin1377
RA = 332.474, Dec = -50.4702
tmin = 596246401, tmax = 596505601
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='211711', job_status='RUN', time_executed='2021-09-28 06:30:41.476671', time_epoch_executed='1632835841.48' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='1377'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/211711

Creating custom pfile directory:
/scratch/kocevski/211711/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=596246401.0 && nMetStart<596505601.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=596246401.0 && nMetStart<596505601.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/211711/ft1_4FGL_J2209.8-5028_daily_bin1377.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=596246401.0 && nMetStart<596505601.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/211711/ft2_4FGL_J2209.8-5028_daily_bin1377.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/211711/ft1_4FGL_J2209.8-5028_daily_bin1377.fits outfile=/scratch/kocevski/211711/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1377.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=596246401.0 tmax=596505601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.90
user 4.65
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/211711/ft2_4FGL_J2209.8-5028_daily_bin1377.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/211711/ft2_4FGL_J2209.8-5028_daily_bin1377.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/211711/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin1377.fits evtable="EVENTS" outfile="/scratch/kocevski/211711/ft1_filtered_4FGL_J2209.8-5028_daily_bin1377.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/211711/ft1_filtered_4FGL_J2209.8-5028_daily_bin1377.fits" evtable="EVENTS" scfile=/scratch/kocevski/211711/ft2_4FGL_J2209.8-5028_daily_bin1377.fits sctable="SC_DATA" outfile=/scratch/kocevski/211711/ltcube_596246401_596505601_4FGL_J2209.8-5028_daily_bin1377.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/211711/ft2_4FGL_J2209.8-5028_daily_bin1377.fits
.....................!
real 12.99
user 12.62
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/211711/ft1_filtered_4FGL_J2209.8-5028_daily_bin1377.fits evtable="EVENTS" scfile=/scratch/kocevski/211711/ft2_4FGL_J2209.8-5028_daily_bin1377.fits sctable="SC_DATA" expcube=/scratch/kocevski/211711/ltcube_596246401_596505601_4FGL_J2209.8-5028_daily_bin1377.fits outfile=/scratch/kocevski/211711/expmap_596246401_596505601_4FGL_J2209.8-5028_daily_bin1377.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/211711/ltcube_596246401_596505601_4FGL_J2209.8-5028_daily_bin1377.fits
.....................!
real 191.28
user 185.93
sys 5.03

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J2209.8-5028 @ 332.474 -50.4702

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/211711/ft1_filtered_4FGL_J2209.8-5028_daily_bin1377.fits scfile=/scratch/kocevski/211711/ft2_4FGL_J2209.8-5028_daily_bin1377.fits outfile=/scratch/kocevski/211711/cmap_596246401_596505601_4FGL_J2209.8-5028_daily_bin1377.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=332.474 yref=-50.4702 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/211711/ft1_filtered_4FGL_J2209.8-5028_daily_bin1377.fits scfile=/scratch/kocevski/211711/ft2_4FGL_J2209.8-5028_daily_bin1377.fits outfile=/scratch/kocevski/211711/cmap_HighResolution_596246401_596505601_4FGL_J2209.8-5028_daily_bin1377.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=332.474 yref=-50.4702 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/211711/ft1_filtered_4FGL_J2209.8-5028_daily_bin1377.fits evtable="EVENTS" scfile=/scratch/kocevski/211711/ft2_4FGL_J2209.8-5028_daily_bin1377.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/211711/Model_4FGL_J2209.8-5028_daily_bin1377.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/211711/ft1_filtered_4FGL_J2209.8-5028_daily_bin1377.fits....................!
real 42.34
user 40.96
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/211711/ft1_filtered_4FGL_J2209.8-5028_daily_bin1377.fits', '/scratch/kocevski/211711/ft2_4FGL_J2209.8-5028_daily_bin1377.fits', expMap='/scratch/kocevski/211711/expmap_596246401_596505601_4FGL_J2209.8-5028_daily_bin1377.fits', expCube='/scratch/kocevski/211711/ltcube_596246401_596505601_4FGL_J2209.8-5028_daily_bin1377.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/211711/Model_4FGL_J2209.8-5028_daily_bin1377.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2209.8-5028'

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  7.258e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.372e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  1.353e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/211711/ft1_filtered_4FGL_J2209.8-5028_daily_bin1377.fits
Spacecraft file(s): /scratch/kocevski/211711/ft2_4FGL_J2209.8-5028_daily_bin1377.fits
Exposure map: /scratch/kocevski/211711/expmap_596246401_596505601_4FGL_J2209.8-5028_daily_bin1377.fits
Exposure cube: /scratch/kocevski/211711/ltcube_596246401_596505601_4FGL_J2209.8-5028_daily_bin1377.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/211711/Model_4FGL_J2209.8-5028_daily_bin1377.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 5053.10015506

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 5053.08440202

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.797       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.086       1.0000         .10000E-03   10000.    
     4 'Prefactor '    73.593       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.1096       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.034       1.0000         .10000E-03   10000.    
     7 'norm      '    8.7287       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.204       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.0214       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .30041E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.1098       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .49022E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.7815       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1506       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98045       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5053.084     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     3298 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.595        .20446E-06** at limit **
   2  Prefactor     19.842        44.041        .20109E-05    .16766E-03
   3  Prefactor     12.087        10.864        .13357E-06   -.21924E-04
   4  Prefactor     73.603        57.286        .58563E-06    .29519E-04
   5  Prefactor     5.1300        39.247        .22364E-05    .47446E-04
   6  Prefactor     10.034        6.9497        .32039E-06   -.60091E-04
   7  norm          8.7283        6.2372        .20733E-07   -.23543E-04
   8  Prefactor     .10000E-03    5.9032        .91732E-08** at limit **
   9  Prefactor     .10000E-03    21.618        .41005E-06** at limit **
  10  Prefactor     11.187        12.001       -.57018E-05   -.71632E-03
  11  Prefactor     7.0212        4.3717        .41098E-07   -.27212E-03
  12  Prefactor     .10003E-03    6244.4        .76179E-05** at limit **
  13  norm          .10000E-03    3.8393       -.40470E-07** at limit **
  14  Prefactor     8.1093        7.0689        .25826E-05   -.27102E-03
  15  Prefactor     .10000E-03    76.130       -.69477E-06** at limit **
  16  Prefactor     .10062E-03    10.877        .46906E-05** at limit **
  17  Prefactor     .10000E-03    17.837       -.19445E-06** at limit **
  18  Prefactor     .10000E-03    18.500       -.68844E-06** at limit **
  19  Prefactor     .10000E-03    75.852       -.74633E-08** at limit **
  20  Prefactor     9.7819        8.7775       -.13441E-06   -.74227E-04
  21  Prefactor     .10000E-03    16.354        .30885E-06** at limit **
  22  Prefactor     .10000E-03    17.661       -.33922E-06** at limit **
  23  norm          .10000E-03    10.399       -.22708E-06** at limit **
  24  Normalizat    1.1502        .23602       -.10839E-06   -.62923E-03
  25  Prefactor     .98065        .17695       -.11642E-05   -.48001E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 19.8425
  Prefactor  = 12.0867
  Prefactor  = 73.6034
  Prefactor  = 5.12995
  Prefactor  = 10.0342
  norm       = 8.72828
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.1872
  Prefactor  = 7.02116
  Prefactor  = 0.000100028
  norm       = 0.0001
  Prefactor  = 8.10925
  Prefactor  = 0.0001
  Prefactor  = 0.000100624
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.78189
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.15018
  Prefactor  = 0.980646
 **********
 **   18 **HESSE 
 **********

 FCN=   5053.084     FROM HESSE     STATUS=OK           419 CALLS     3717 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.842        44.024        .90018E-04   -1.4817    
   3  Prefactor     12.087        10.855        .11523E-03   -1.5013    
   4  Prefactor     73.603        57.232        .46801E-04   -1.3990    
   5  Prefactor     5.1300        39.037        .17786E-03   -1.5255    
   6  Prefactor     10.034        6.9437        .12650E-03   -1.5074    
   7  norm          8.7283        6.2348        .13567E-03   -1.5117    
   8  Prefactor     .10000E-03    5.9049        .16868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.187        12.147        .11969E-03   -1.5039    
  11  Prefactor     7.0212        4.3709        .11267E-03   -1.5178    
  12  Prefactor     .10003E-03    6269.4        .39654E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.8502        .13603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.1093        6.9952        .70394E-03   -1.5138    
  15  Prefactor     .10000E-03    76.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10062E-03    40.011        .38969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    75.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.7819        8.7801        .12813E-03   -1.5082    
  21  Prefactor     .10000E-03    16.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    17.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    10.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1502        .27166        .28264E-03   -.88157    
  25  Prefactor     .98065        .20628        .23634E-03   -.93377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6385e-08
Minuit parameter uncertainties:
  1  2.74163e-05
  2  44.0962
  3  10.8566
  4  57.275
  5  28.3279
  6  6.94421
  7  6.23527
  8  1.03793e-06
  9  0.000137748
  10  12.1501
  11  4.37111
  12  0.0176332
  13  2.29893e-06
  14  6.99591
  15  0.000268721
  16  0.0100005
  17  7.82597e-05
  18  0.000121694
  19  8.43589e-05
  20  8.78123
  21  0.000130764
  22  6.15112e-05
  23  2.23303e-05
  24  0.271995
  25  0.206449
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 5053.08439311

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  1.000e-04  1.763e-02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.372e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  1.353e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  9.806e-01  2.064e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  1.150e+00  2.720e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 332.474 -50.470
Photon Flux Upper Limit: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/211711/likelihoodResults_596246401_596505601_4FGL_J2209.8-5028_daily_bin1377.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5053.08439482
delta logL = -1.71280407812e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5053.08439482
delta logL = -1.71276769834e-06

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96367E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3719       1.0000          .0000       10.000    
     3 'Normalizat'    1.1502       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98065       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5053.047     FROM MIGRAD    STATUS=CONVERGED    126 CALLS      279 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4848        636.35        .90712E-02    .26311E-03
   2  Index         3.5940        6.7579        .18119        .64165E-04
   3  Normalizat    1.1294        .41665E-01    .64386E-01   -.12495E-04
   4  Prefactor     .98888        .32400E-01    .46025E-01   -.14255E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.48481
  Index      = 3.59401
  Normalizat = 1.12935
  Prefactor  = 0.988876
 **********
 **   18 **HESSE 
 **********

 FCN=   5053.047     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      312 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4848        6176.3        .36285E-03   -1.5284    
   2  Index         3.5940        8.1512        .11339E-01   -.28504    
   3  Normalizat    1.1294        .18986        .28482E-03   -.88815    
   4  Prefactor     .98888        .14735        .23543E-03   -.93101    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.64027e-09
Minuit parameter uncertainties:
  1  223.627
  2  22.2215
  3  0.189973
  4  0.14741
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/211711': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5053.04730219
delta logL = 0.0370909106687

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  4.485e+00  2.236e+02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  3.594e+00  2.222e+01  0.000e+00  1.000e+01 (-1.000e+00)
349        Scale:  1.353e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  9.889e-01  1.474e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  1.129e+00  1.900e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 332.474 -50.470

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/211711/cmap_HighResolution_596246401_596505601_4FGL_J2209.8-5028_daily_bin1377.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/211711

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.95e-03', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2021-09-28 06:42:49.515590', job_id='211711', GAL2='0.99', fit_tolerance='1e-08', EG2='1.13', EG='1.15', time_epoch_completed='1632836569.52', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='3.71e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1377' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:42:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 211711: <4FGL_J2209.8-5028_daily_bin1377> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin1377> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 06:30:23 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:30:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 06:30:26 2021
Terminated at Tue Sep 28 06:42:50 2021
Results reported at Tue Sep 28 06:42:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin1377 332.474 -50.4702 596246401 596505601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2209.8-5028 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   680.15 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             284.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   743 sec.
    Turnaround time :                            747 sec.

The output (if any) is above this job summary.

