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


Performing analysis on: 4FGL_J2209.8-5028_daily_bin192
RA = 332.474, Dec = -50.4702
tmin = 289094401, tmax = 289353601
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='205965', job_status='RUN', time_executed='2021-09-28 06:14:42.213956', time_epoch_executed='1632834882.21' WHERE source_name='4FGL J2209.8-5028' and cadence='daily' and bin_id='192'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/205965

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/205965/ft1_4FGL_J2209.8-5028_daily_bin192.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/205965/ft2_4FGL_J2209.8-5028_daily_bin192.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/205965/ft1_4FGL_J2209.8-5028_daily_bin192.fits outfile=/scratch/kocevski/205965/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin192.fits ra=332.474 dec=-50.4702 rad=12.0 tmin=289094401.0 tmax=289353601.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.60
user 3.40
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/205965/ft2_4FGL_J2209.8-5028_daily_bin192.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/205965/ft1_filteredMKT_4FGL_J2209.8-5028_daily_bin192.fits evtable="EVENTS" outfile="/scratch/kocevski/205965/ft1_filtered_4FGL_J2209.8-5028_daily_bin192.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/205965/ft1_filtered_4FGL_J2209.8-5028_daily_bin192.fits" evtable="EVENTS" scfile=/scratch/kocevski/205965/ft2_4FGL_J2209.8-5028_daily_bin192.fits sctable="SC_DATA" outfile=/scratch/kocevski/205965/ltcube_289094401_289353601_4FGL_J2209.8-5028_daily_bin192.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/205965/ft2_4FGL_J2209.8-5028_daily_bin192.fits
.....................!
real 13.99
user 13.63
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/205965/ft1_filtered_4FGL_J2209.8-5028_daily_bin192.fits evtable="EVENTS" scfile=/scratch/kocevski/205965/ft2_4FGL_J2209.8-5028_daily_bin192.fits sctable="SC_DATA" expcube=/scratch/kocevski/205965/ltcube_289094401_289353601_4FGL_J2209.8-5028_daily_bin192.fits outfile=/scratch/kocevski/205965/expmap_289094401_289353601_4FGL_J2209.8-5028_daily_bin192.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/205965/ltcube_289094401_289353601_4FGL_J2209.8-5028_daily_bin192.fits
.....................!
real 190.26
user 184.92
sys 4.76

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/205965/ft1_filtered_4FGL_J2209.8-5028_daily_bin192.fits scfile=/scratch/kocevski/205965/ft2_4FGL_J2209.8-5028_daily_bin192.fits outfile=/scratch/kocevski/205965/cmap_289094401_289353601_4FGL_J2209.8-5028_daily_bin192.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.57
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/205965/ft1_filtered_4FGL_J2209.8-5028_daily_bin192.fits scfile=/scratch/kocevski/205965/ft2_4FGL_J2209.8-5028_daily_bin192.fits outfile=/scratch/kocevski/205965/cmap_HighResolution_289094401_289353601_4FGL_J2209.8-5028_daily_bin192.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .20440E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.398       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.3367       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.2098       1.0000         .10000E-03   10000.    
    12 'Prefactor '    56.639       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.3556       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    101.69       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.095       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3186       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96436       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=   5165.894     FROM MIGRAD    STATUS=CONVERGED    582 CALLS     2856 TOTAL
                     EDM=   .87E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.501       -.89408E-06** at limit **
   2  Prefactor     .10000E-03    438.86       -.13634E-05** at limit **
   3  Prefactor     16.398        12.988       -.94205E-07    .13976E-04
   4  Prefactor     .10000E-03    11.599        .99670E-06** at limit **
   5  Prefactor     .10000E-03    16.883       -.76191E-06** at limit **
   6  Prefactor     8.3366        5.7120        .12226E-05   -.29768E-03
   7  norm          .10000E-03    1.5318        .13082E-07** at limit **
   8  Prefactor     .10000E-03    5.8872        .13748E-07** at limit **
   9  Prefactor     .10000E-03    81.697        .17558E-06** at limit **
  10  Prefactor     .10000E-03    14.343       -.12196E-07** at limit **
  11  Prefactor     6.2102        4.9361       -.28255E-06   -.22269E-03
  12  Prefactor     56.646        92.943        .44671E-06    .10960E-04
  13  norm          .10000E-03    6.8614       -.36937E-07** at limit **
  14  Prefactor     .10000E-03    2.8962        .15455E-07** at limit **
  15  Prefactor     .10000E-03    50.257       -.13154E-06** at limit **
  16  Prefactor     .10000E-03    4.3032       -.83398E-07** at limit **
  17  Prefactor     3.3674        62.544       -.16105E-05   -.24161E-04
  18  Prefactor     .10000E-03    5.3317       -.21257E-06** at limit **
  19  Prefactor     101.67        87.174       -.22932E-05   -.80994E-04
  20  Prefactor     13.097        11.444       -.29984E-06   -.78197E-04
  21  Prefactor     .10000E-03    17.098        .76593E-06** at limit **
  22  Prefactor     .10000E-03    17.036       -.13012E-07** at limit **
  23  norm          .10000E-03    2.9710        .33061E-08** at limit **
  24  Normalizat    1.3186        .22676        .85843E-06   -.38169E-04
  25  Prefactor     .96433        .17321       -.10181E-05    .62946E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.3985
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.33657
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.21015
  Prefactor  = 56.6462
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.36736
  Prefactor  = 0.0001
  Prefactor  = 101.665
  Prefactor  = 13.097
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.31864
  Prefactor  = 0.964326
 **********
 **   18 **HESSE 
 **********

 FCN=   5165.894     FROM HESSE     STATUS=OK           415 CALLS     3271 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    446.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.398        12.995        .98905E-04   -1.4898    
   4  Prefactor     .10000E-03    11.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.3366        5.8927        .69423E-03   -1.5130    
   7  norm          .10000E-03    1.5362        .86873E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.8922        .17033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    82.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.708        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.2102        4.9790        .13668E-03   -1.5210    
  12  Prefactor     56.646        92.764        .53303E-04   -1.4201    
  13  norm          .10000E-03    7.0006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.9471        .11939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    50.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.3460        .14549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.3674        63.496        .22093E-03   -1.5341    
  18  Prefactor     .10000E-03    5.3465        .16193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     101.67        88.841        .19935E-03   -1.3688    
  20  Prefactor     13.097        11.508        .11069E-03   -1.4984    
  21  Prefactor     .10000E-03    17.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    17.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.9712        .12100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3186        .26394        .26492E-03   -.83012    
  25  Prefactor     .96433        .20047        .23843E-03   -.93928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06052e-10
Minuit parameter uncertainties:
  1  8.42385e-05
  2  0.000907933
  3  12.9969
  4  8.87969e-05
  5  8.66227e-05
  6  5.89308
  7  9.1985e-08
  8  1.07859e-06
  9  2.5302e-05
  10  2.25987e-05
  11  4.97929
  12  93.0017
  13  7.25286e-06
  14  3.93545e-07
  15  1.65456e-05
  16  4.72598e-06
  17  29.2804
  18  1.14433e-05
  19  88.9579
  20  11.5095
  21  9.30911e-05
  22  2.76845e-06
  23  9.94638e-08
  24  0.26421
  25  0.20062
Done.

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

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  5.665e+01  9.300e+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:  9.643e-01  2.006e-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.319e+00  2.642e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/205965/likelihoodResults_289094401_289353601_4FGL_J2209.8-5028_daily_bin192.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) = 5165.86163665
delta logL = 0.0326308911062

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5165.859084
delta logL = 0.0351835478405

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    77.258       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0633       1.0000          .0000       10.000    
     3 'Normalizat'    1.3249       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96079       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=   5165.859     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      249 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     77.278        137.64        .45686E-04   -.21520E-03
   2  Index         2.0626        1.0833        .11479E-01   -.18700E-03
   3  Normalizat    1.3249        .25048        .26437E-03    .41974E-03
   4  Prefactor     .96079        .19707        .23880E-03    .55054E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 77.2785
  Index      = 2.06264
  Normalizat = 1.32492
  Prefactor  = 0.960791
 **********
 **   18 **HESSE 
 **********

 FCN=   5165.859     FROM HESSE     STATUS=OK            23 CALLS      272 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     77.278        133.87        .91372E-05   -1.3948    
   2  Index         2.0626        1.0538        .45918E-03   -.62793    
   3  Normalizat    1.3249        .25054        .52875E-04   -.82826    
   4  Prefactor     .96079        .19715        .47760E-04   -.94048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79969e-09
Minuit parameter uncertainties:
  1  134.394
  2  1.06608
  3  0.250769
  4  0.1973
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/205965': 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) = 5165.85908383
delta logL = 0.0351837112748

Extracting fit parameters...

4FGL J2209.8-5028
   Spectrum: PowerLaw
347    Prefactor:  7.728e+01  1.344e+02  1.000e-04  1.000e+04 ( 1.000e-14)
348        Index:  2.063e+00  1.066e+00  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.608e-01  1.973e-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.325e+00  2.508e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.55
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/205965/cmap_HighResolution_289094401_289353601_4FGL_J2209.8-5028_daily_bin192.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.58e-03', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-09-28 06:25:33.907095', job_id='205965', GAL2='0.96', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1632835533.91', return_code2='0', ts='0.55', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='3.52e-02', ts2='0.62', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='192' AND source_name='4FGL J2209.8-5028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 06:25:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 205965: <4FGL_J2209.8-5028_daily_bin192> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2209.8-5028_daily_bin192 332.474 -50.4702 289094401 289353601 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 :                                   640.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             252.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            894 sec.

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

