/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 94 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 = 7430
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2209.8-5028_daily_bin250
RA = 332.474, Dec = -50.4702
tmin = 304128001, tmax = 304387201
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='206056', job_status='RUN', time_executed='2021-09-28 06:12:33.944294', time_epoch_executed='1632834753.94' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='250'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/206056

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/206056/ft1_4FGL_J2209.8-5028_daily_bin250.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/206056/ft2_4FGL_J2209.8-5028_daily_bin250.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/206056/ft1_4FGL_J2209.8-5028_daily_bin250.fits outfile=/scratch/kocevski/206056/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin250.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=304128001.0 tmax=304387201.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 3.48
user 3.26
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/206056/ft2_4FGL_J2209.8-5028_daily_bin250.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/206056/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin250.fits evtable="EVENTS" outfile="/scratch/kocevski/206056/ft1_filtered_4FGL_J2209.8-5028_daily_bin250.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.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/206056/ft1_filtered_4FGL_J2209.8-5028_daily_bin250.fits" evtable="EVENTS" scfile=/scratch/kocevski/206056/ft2_4FGL_J2209.8-5028_daily_bin250.fits sctable="SC_DATA" outfile=/scratch/kocevski/206056/ltcube_304128001_304387201_4FGL_J2209.8-5028_daily_bin250.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/206056/ft2_4FGL_J2209.8-5028_daily_bin250.fits
.....................!
real 12.10
user 11.70
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/206056/ft1_filtered_4FGL_J2209.8-5028_daily_bin250.fits evtable="EVENTS" scfile=/scratch/kocevski/206056/ft2_4FGL_J2209.8-5028_daily_bin250.fits sctable="SC_DATA" expcube=/scratch/kocevski/206056/ltcube_304128001_304387201_4FGL_J2209.8-5028_daily_bin250.fits outfile=/scratch/kocevski/206056/expmap_304128001_304387201_4FGL_J2209.8-5028_daily_bin250.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/206056/ltcube_304128001_304387201_4FGL_J2209.8-5028_daily_bin250.fits
.....................!
real 190.17
user 185.60
sys 4.21

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/206056/ft1_filtered_4FGL_J2209.8-5028_daily_bin250.fits scfile=/scratch/kocevski/206056/ft2_4FGL_J2209.8-5028_daily_bin250.fits outfile=/scratch/kocevski/206056/cmap_304128001_304387201_4FGL_J2209.8-5028_daily_bin250.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/206056/ft1_filtered_4FGL_J2209.8-5028_daily_bin250.fits scfile=/scratch/kocevski/206056/ft2_4FGL_J2209.8-5028_daily_bin250.fits outfile=/scratch/kocevski/206056/cmap_HighResolution_304128001_304387201_4FGL_J2209.8-5028_daily_bin250.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/206056/ft1_filtered_4FGL_J2209.8-5028_daily_bin250.fits evtable="EVENTS" scfile=/scratch/kocevski/206056/ft2_4FGL_J2209.8-5028_daily_bin250.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/206056/Model_4FGL_J2209.8-5028_daily_bin250.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/206056/ft1_filtered_4FGL_J2209.8-5028_daily_bin250.fits.....................!
real 53.35
user 52.02
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/206056/ft1_filtered_4FGL_J2209.8-5028_daily_bin250.fits', '/scratch/kocevski/206056/ft2_4FGL_J2209.8-5028_daily_bin250.fits', expMap='/scratch/kocevski/206056/expmap_304128001_304387201_4FGL_J2209.8-5028_daily_bin250.fits', expCube='/scratch/kocevski/206056/ltcube_304128001_304387201_4FGL_J2209.8-5028_daily_bin250.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/206056/Model_4FGL_J2209.8-5028_daily_bin250.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/206056/ft1_filtered_4FGL_J2209.8-5028_daily_bin250.fits
Spacecraft file(s): /scratch/kocevski/206056/ft2_4FGL_J2209.8-5028_daily_bin250.fits
Exposure map: /scratch/kocevski/206056/expmap_304128001_304387201_4FGL_J2209.8-5028_daily_bin250.fits
Exposure cube: /scratch/kocevski/206056/ltcube_304128001_304387201_4FGL_J2209.8-5028_daily_bin250.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/206056/Model_4FGL_J2209.8-5028_daily_bin250.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) = 7185.01656883

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.796       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.1425       1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.969       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .21683E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    9.1851       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10275E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .96501       1.0000         .10000E-03   10000.    
    12 'Prefactor '    63.365       1.0000         .10000E-03   10000.    
    13 'norm      '    .55639       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.0737       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.1067       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11978E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    68.272       1.0000         .10000E-03   10000.    
    23 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .81155       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0864       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=   7185.013     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2882 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.854       -.13268E-05** at limit **
   2  Prefactor     16.790        45.939       -.19914E-05   -.85701E-04
   3  Prefactor     8.1460        7.9725        .12161E-06   -.19762E-03
   4  Prefactor     28.966        27.984       -.42533E-06   -.14963E-03
   5  Prefactor     .10000E-03    13.183        .53392E-06** at limit **
   6  Prefactor     .10001E-03    2.0254        .10703E-05** at limit **
   7  norm          9.1850        4.6635       -.57309E-06   -.10158E-02
   8  Prefactor     .10000E-03    12.837        .29133E-06** at limit **
   9  Prefactor     .10000E-03    9.3280       -.15734E-05** at limit **
  10  Prefactor     .10000E-03    2.9988       -.17194E-06** at limit **
  11  Prefactor     .96440        2.8472        .52137E-06   -.29815E-03
  12  Prefactor     63.341        77.826       -.78624E-05   -.27051E-03
  13  norm          .55553        6.6671        .19960E-05   -.48286E-03
  14  Prefactor     .10000E-03    1.1163        .38456E-07** at limit **
  15  Prefactor     .10000E-03    23.244        .24751E-06** at limit **
  16  Prefactor     6.0727        4.1151        .73271E-07    .14443E-04
  17  Prefactor     .10000E-03    8.3268        .11249E-05** at limit **
  18  Prefactor     6.1054        8.2255        .27410E-05   -.65270E-03
  19  Prefactor     .10000E-03    43.260        .22760E-05** at limit **
  20  Prefactor     .10000E-03    2.3020        .44578E-08** at limit **
  21  Prefactor     .10000E-03    71.168       -.22209E-05** at limit **
  22  Prefactor     68.270        22.822       -.16780E-06   -.80442E-05
  23  norm          .10000E-03    6.0932       -.14021E-05** at limit **
  24  Normalizat    .81148        .17106       -.19220E-07   -.25633E-03
  25  Prefactor     1.0865        .13901        .72624E-07   -.35780E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 16.7904
  Prefactor  = 8.14597
  Prefactor  = 28.9661
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  norm       = 9.18497
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.964396
  Prefactor  = 63.3408
  norm       = 0.555533
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.07269
  Prefactor  = 0.0001
  Prefactor  = 6.10537
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 68.2704
  norm       = 0.000100001
  Normalizat = 0.811476
  Prefactor  = 1.08646
 **********
 **   18 **HESSE 
 **********

 FCN=   7185.013     FROM HESSE     STATUS=OK           417 CALLS     3299 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.790        46.179        .97728E-04   -1.4888    
   3  Prefactor     8.1460        7.9504        .14050E-03   -1.5137    
   4  Prefactor     28.966        27.969        .74437E-04   -1.4631    
   5  Prefactor     .10000E-03    13.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    6.0653        .22260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          9.1850        4.7180        .12372E-03   -1.5102    
   8  Prefactor     .10000E-03    13.185        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.4094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.0084        .14316E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .96440        2.8239        .23261E-03   -1.5512    
  12  Prefactor     63.341        80.816        .50411E-04   -1.4115    
  13  norm          .55553        7.4847        .44511E-03   -1.5559    
  14  Prefactor     .10000E-03    1.1378        .87425E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    23.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.0727        4.1201        .13614E-03   -1.5215    
  17  Prefactor     .10000E-03    8.3953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.1054        8.6501        .81233E-03   -1.5214    
  19  Prefactor     .10000E-03    43.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.3135        .12559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    72.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     68.270        22.880        .48578E-04   -1.4054    
  23  norm          .10000E-03    6.2070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .81148        .19934        .28325E-03   -.99644    
  25  Prefactor     1.0865        .16253        .20572E-03   -.89900    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.03625e-09
Minuit parameter uncertainties:
  1  0.000229922
  2  46.2777
  3  7.95139
  4  27.982
  5  6.92304e-05
  6  0.000482681
  7  4.71823
  8  4.87196e-05
  9  0.000160175
  10  1.88749e-05
  11  2.82425
  12  80.9568
  13  4.07848
  14  4.14971e-08
  15  2.97063e-05
  16  4.1203
  17  0.000116048
  18  8.6519
  19  0.000522747
  20  1.80048e-06
  21  0.000698943
  22  22.8829
  23  0.00012074
  24  0.199515
  25  0.162606
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  6.334e+01  8.096e+01  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:  1.086e+00  1.626e-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:  8.115e-01  1.995e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.83
Ra Dec: 332.474 -50.470
Photon Flux Upper Limit: 8.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/206056/likelihoodResults_304128001_304387201_4FGL_J2209.8-5028_daily_bin250.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): 0
logL (Free Index) = 7184.99972367
delta logL = 0.0130582884303

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7184.99192537
delta logL = 0.0208565811345

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    76.338       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2060       1.0000          .0000       10.000    
     3 'Normalizat'    .81530       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0843       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7184.992     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      287 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     76.267        114.37        .22979E-03   -.19790E-06
   2  Index         2.2062        .81957        .10136E-01    .31747E-03
   3  Normalizat    .81530        .19238        .28263E-03   -.41230E-04
   4  Prefactor     1.0844        .15961        .20588E-03    .52237E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 76.2673
  Index      = 2.20621
  Normalizat = 0.815296
  Prefactor  = 1.08435
 **********
 **   18 **HESSE 
 **********

 FCN=   7184.992     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     76.267        109.96        .91916E-05   -1.3959    
   2  Index         2.2062        .78805        .20272E-02   -.59289    
   3  Normalizat    .81530        .19246        .11305E-04   -.99504    
   4  Prefactor     1.0844        .15971        .82353E-05   -.89968    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71639e-11
Minuit parameter uncertainties:
  1  110.253
  2  0.792873
  3  0.192626
  4  0.159778
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/206056': 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): 0
logL (Free Index) = 7184.99192508
delta logL = 0.0208568709659

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  7.627e+01  1.103e+02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.206e+00  7.929e-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:  1.084e+00  1.598e-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:  8.153e-01  1.926e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/206056/cmap_HighResolution_304128001_304387201_4FGL_J2209.8-5028_daily_bin250.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.74e-03', job_status='DONE', photon_flux_upper_limit='8.74e-08', time_completed='2021-09-28 06:25:44.659459', job_id='206056', GAL2='1.08', fit_tolerance='1e-08', EG2='0.82', EG='0.81', time_epoch_completed='1632835544.66', return_code2='0', ts='0.83', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='2.09e-02', ts2='0.87', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='250' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:25:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 206056: <4FGL_J2209.8-5028_daily_bin250> in cluster <slac> Done

Job <4FGL_J2209.8-5028_daily_bin250> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 28 06:10:48 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:10:51 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:10:51 2021
Terminated at Tue Sep 28 06:25:45 2021
Results reported at Tue Sep 28 06:25:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin250 332.474 -50.4702 304128001 304387201 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 :                                   787.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            897 sec.

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

