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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin220
RA = 344.953, Dec = -15.8809
tmin = 296352001, tmax = 296611201
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='621619', job_status='RUN', time_executed='2021-09-29 04:33:11.940984', time_epoch_executed='1632915191.94' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='220'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/621619

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/621619/ft1_4FGL_J2259.8-1552_daily_bin220.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/621619/ft2_4FGL_J2259.8-1552_daily_bin220.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/621619/ft1_4FGL_J2259.8-1552_daily_bin220.fits outfile=/scratch/kocevski/621619/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin220.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=296352001.0 tmax=296611201.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 2.51
user 2.30
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/621619/ft2_4FGL_J2259.8-1552_daily_bin220.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/621619/ft2_4FGL_J2259.8-1552_daily_bin220.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/621619/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin220.fits evtable="EVENTS" outfile="/scratch/kocevski/621619/ft1_filtered_4FGL_J2259.8-1552_daily_bin220.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/621619/ft1_filtered_4FGL_J2259.8-1552_daily_bin220.fits" evtable="EVENTS" scfile=/scratch/kocevski/621619/ft2_4FGL_J2259.8-1552_daily_bin220.fits sctable="SC_DATA" outfile=/scratch/kocevski/621619/ltcube_296352001_296611201_4FGL_J2259.8-1552_daily_bin220.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/621619/ft2_4FGL_J2259.8-1552_daily_bin220.fits
.....................!
real 11.94
user 11.55
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/621619/ft1_filtered_4FGL_J2259.8-1552_daily_bin220.fits evtable="EVENTS" scfile=/scratch/kocevski/621619/ft2_4FGL_J2259.8-1552_daily_bin220.fits sctable="SC_DATA" expcube=/scratch/kocevski/621619/ltcube_296352001_296611201_4FGL_J2259.8-1552_daily_bin220.fits outfile=/scratch/kocevski/621619/expmap_296352001_296611201_4FGL_J2259.8-1552_daily_bin220.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/621619/ltcube_296352001_296611201_4FGL_J2259.8-1552_daily_bin220.fits
.....................!
real 190.70
user 184.98
sys 5.31

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 161 point sources and 0 extended sources

Setting source of interest to:
4FGL J2259.8-1552 @ 344.953 -15.8809

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/621619/ft1_filtered_4FGL_J2259.8-1552_daily_bin220.fits scfile=/scratch/kocevski/621619/ft2_4FGL_J2259.8-1552_daily_bin220.fits outfile=/scratch/kocevski/621619/cmap_296352001_296611201_4FGL_J2259.8-1552_daily_bin220.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=344.953 yref=-15.8809 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/621619/ft1_filtered_4FGL_J2259.8-1552_daily_bin220.fits scfile=/scratch/kocevski/621619/ft2_4FGL_J2259.8-1552_daily_bin220.fits outfile=/scratch/kocevski/621619/cmap_HighResolution_296352001_296611201_4FGL_J2259.8-1552_daily_bin220.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=344.953 yref=-15.8809 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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/621619/ft1_filtered_4FGL_J2259.8-1552_daily_bin220.fits evtable="EVENTS" scfile=/scratch/kocevski/621619/ft2_4FGL_J2259.8-1552_daily_bin220.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/621619/Model_4FGL_J2259.8-1552_daily_bin220.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/621619/ft1_filtered_4FGL_J2259.8-1552_daily_bin220.fits.....................!
real 55.83
user 54.42
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/621619/ft1_filtered_4FGL_J2259.8-1552_daily_bin220.fits', '/scratch/kocevski/621619/ft2_4FGL_J2259.8-1552_daily_bin220.fits', expMap='/scratch/kocevski/621619/expmap_296352001_296611201_4FGL_J2259.8-1552_daily_bin220.fits', expCube='/scratch/kocevski/621619/ltcube_296352001_296611201_4FGL_J2259.8-1552_daily_bin220.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/621619/Model_4FGL_J2259.8-1552_daily_bin220.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2259.8-1552'

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  2.289e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.132e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/621619/ft1_filtered_4FGL_J2259.8-1552_daily_bin220.fits
Spacecraft file(s): /scratch/kocevski/621619/ft2_4FGL_J2259.8-1552_daily_bin220.fits
Exposure map: /scratch/kocevski/621619/expmap_296352001_296611201_4FGL_J2259.8-1552_daily_bin220.fits
Exposure cube: /scratch/kocevski/621619/ltcube_296352001_296611201_4FGL_J2259.8-1552_daily_bin220.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/621619/Model_4FGL_J2259.8-1552_daily_bin220.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) = 6597.48409403

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.4234       1.0000         .10000E-03   10000.    
     4 'norm      '    15.512       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.945       1.0000         .10000E-03   10000.    
     7 'norm      '    1.8925       1.0000         .10000E-03   10000.    
     8 'norm      '    2.3645       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .23222E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .19507       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.053       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11039E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.6630       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.1298       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.1614       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .39196       1.0000         .10000E-03   10000.    
    27 'norm      '    9.8346       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1476       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .66538       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6597.390     FROM MIGRAD    STATUS=CONVERGED    699 CALLS     3689 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1567        .43315E-07** at limit **
   2  Prefactor     .10000E-03    40.559       -.48424E-06** at limit **
   3  Prefactor     3.4237        75.532       -.94391E-07   -.27041E-05
   4  norm          15.513        4.3207       -.13895E-07    .62124E-04
   5  Prefactor     .10000E-03    16.530       -.10253E-05** at limit **
   6  Prefactor     16.946        11.278       -.22996E-06   -.56079E-05
   7  norm          1.8925        .88542        .11110E-06    .26717E-03
   8  norm          2.3648        1.9067        .25870E-07   -.94950E-04
   9  Prefactor     .10000E-03    38.951        .11041E-05** at limit **
  10  Prefactor     .10000E-03    17.999       -.50100E-06** at limit **
  11  norm          .19749        .78456       -.13704E-05   -.50548E-04
  12  Prefactor     14.013        26.169        .18522E-05    .34031E-04
  13  Prefactor     .10000E-03    7.6781       -.71120E-06** at limit **
  14  Prefactor     .10000E-03    9.9295        .88367E-06** at limit **
  15  Prefactor     9.6636        8.1640        .26093E-06    .34599E-04
  16  Prefactor     .10000E-03    4.3848       -.22164E-06** at limit **
  17  Prefactor     8.1287        8.5801       -.89951E-08   -.60042E-04
  18  Prefactor     .10000E-03    12.519        .38783E-06** at limit **
  19  Prefactor     .10000E-03    7.5983       -.64188E-06** at limit **
  20  Prefactor     .10000E-03    2.1131        .78344E-09** at limit **
  21  norm          .10000E-03    3.0307        .42002E-08** at limit **
  22  norm          3.1611        2.4269       -.62791E-07   -.95956E-05
  23  Prefactor     .10000E-03    21.396        .17455E-05** at limit **
  24  Prefactor     .10000E-03    6.9124        .81764E-06** at limit **
  25  Prefactor     .10000E-03    17.042       -.87716E-06** at limit **
  26  norm          .39196        .45872        .14009E-07   -.20260E-03
  27  norm          9.8344        6.4983       -.93747E-07   -.24712E-04
  28  Normalizat    1.1476        .17622        .15855E-05   -.20427E-04
  29  Prefactor     .66536        .14291       -.47511E-06    .13425E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.42375
  norm       = 15.5126
  Prefactor  = 0.0001
  Prefactor  = 16.9463
  norm       = 1.89251
  norm       = 2.36484
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.19749
  Prefactor  = 14.0129
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.66355
  Prefactor  = 0.0001
  Prefactor  = 8.12871
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.1611
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.391957
  norm       = 9.83439
  Normalizat = 1.14762
  Prefactor  = 0.665359
 **********
 **   18 **HESSE 
 **********

 FCN=   6597.390     FROM HESSE     STATUS=OK           553 CALLS     4242 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.1611        .16172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    40.599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.4237        75.424        .21863E-03   -1.5338    
   4  norm          15.513        4.3208        .85534E-04   -1.4920    
   5  Prefactor     .10000E-03    16.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.946        11.292        .97296E-04   -1.4884    
   7  norm          1.8925        .88045        .49699E-04   -1.5433    
   8  norm          2.3648        1.8956        .97155E-04   -1.5400    
   9  Prefactor     .10000E-03    39.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.065        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .19749        .78411        .10939E-03   -1.5619    
  12  Prefactor     14.013        25.995        .10685E-03   -1.4959    
  13  Prefactor     .10000E-03    7.7068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.6636        8.1620        .12891E-03   -1.5086    
  16  Prefactor     .10000E-03    4.4056        .16608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.1287        8.5480        .14061E-03   -1.5138    
  18  Prefactor     .10000E-03    12.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.6037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.1163        .11530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.0856        .13807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.1611        2.4263        .10698E-03   -1.5352    
  23  Prefactor     .10000E-03    21.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.9121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    17.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .39196        .43388        .50602E-03   -1.5583    
  27  norm          9.8344        6.4286        .12778E-03   -1.5081    
  28  Normalizat    1.1476        .19893        .22865E-03   -.88237    
  29  Prefactor     .66536        .16307        .24530E-03   -1.0490    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91514e-10
Minuit parameter uncertainties:
  1  3.08648e-06
  2  3.22641e-05
  3  32.1849
  4  4.32085
  5  1.40809e-05
  6  11.293
  7  0.880455
  8  1.89565
  9  3.29681e-05
  10  0.000473968
  11  0.784147
  12  26.0162
  13  1.404e-05
  14  2.3432e-05
  15  8.16292
  16  3.04636e-08
  17  8.54927
  18  3.30099e-06
  19  9.65412e-06
  20  2.12542e-06
  21  5.66107e-06
  22  2.42639
  23  3.37802e-06
  24  6.92617e-06
  25  2.51649e-05
  26  0.433881
  27  6.42905
  28  0.199057
  29  0.163191
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  3.046e-08  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.132e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
316        Scale:  1.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  6.654e-01  1.632e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  1.148e+00  1.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 344.953 -15.881
Photon Flux Upper Limit: 4.89e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/621619/likelihoodResults_296352001_296611201_4FGL_J2259.8-1552_daily_bin220.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) = 6597.39137201
delta logL = -0.00108048265247

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6597.39029154
delta logL = -1.40462361742e-08

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 'Index     '    2.1262       1.0000          .0000       10.000    
     3 'Normalizat'    1.1477       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66534       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5160E+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=   6597.390     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      234 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10011E-03    47.696        .16630E-02** at limit **
   2  Index         2.1095        8.0310        .50000        .88252E-05
   3  Normalizat    1.1476        .13573E-01    .22865E-03    .21877E-05
   4  Prefactor     .66536        .11430E-01    .24530E-03    .33833E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100107
  Index      = 2.10948
  Normalizat = 1.14762
  Prefactor  = 0.665358
 **********
 **   18 **HESSE 
 **********

 FCN=   6597.390     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      263 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10011E-03    217.62        .33260E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1095        5.9960        .50000       -.61640    
   3  Normalizat    1.1476        .30435E-01    .91460E-05   -.88237    
   4  Prefactor     .66536        .25627E-01    .98119E-05   -1.0490    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.05513e-09
Minuit parameter uncertainties:
  1  0.00968215
  2  522.249
  3  0.0304357
  4  0.0256273
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/621619': 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) = 6597.39029149
delta logL = 4.04743332183e-08

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.001e-04  9.682e-03  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.109e+00  5.222e+02  0.000e+00  1.000e+01 (-1.000e+00)
316        Scale:  1.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  6.654e-01  2.563e-02  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  1.148e+00  3.044e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 344.953 -15.881

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/621619/cmap_HighResolution_296352001_296611201_4FGL_J2259.8-1552_daily_bin220.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.71e-03', job_status='DONE', photon_flux_upper_limit='4.89e-08', time_completed='2021-09-29 04:46:10.372204', job_id='621619', GAL2='0.67', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1632915970.37', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='4.05e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='220' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:46:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 621619: <4FGL_J2259.8-1552_daily_bin220> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin220> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 04:30:36 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:30:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 04:30:37 2021
Terminated at Wed Sep 29 04:46:11 2021
Results reported at Wed Sep 29 04:46:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin220 344.953 -15.8809 296352001 296611201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2259.8-1552 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   774.36 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             286.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            935 sec.

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

