/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 = 7455
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2259.8-1552_daily_bin1384
RA = 344.953, Dec = -15.8809
tmin = 598060801, tmax = 598320001
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='628770', job_status='RUN', time_executed='2021-09-29 04:55:49.316002', time_epoch_executed='1632916549.32' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='1384'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/628770

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/628770/ft1_4FGL_J2259.8-1552_daily_bin1384.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/628770/ft2_4FGL_J2259.8-1552_daily_bin1384.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/628770/ft1_4FGL_J2259.8-1552_daily_bin1384.fits outfile=/scratch/kocevski/628770/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin1384.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=598060801.0 tmax=598320001.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.93
user 4.64
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/628770/ft2_4FGL_J2259.8-1552_daily_bin1384.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/628770/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin1384.fits evtable="EVENTS" outfile="/scratch/kocevski/628770/ft1_filtered_4FGL_J2259.8-1552_daily_bin1384.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/628770/ft1_filtered_4FGL_J2259.8-1552_daily_bin1384.fits" evtable="EVENTS" scfile=/scratch/kocevski/628770/ft2_4FGL_J2259.8-1552_daily_bin1384.fits sctable="SC_DATA" outfile=/scratch/kocevski/628770/ltcube_598060801_598320001_4FGL_J2259.8-1552_daily_bin1384.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/628770/ft2_4FGL_J2259.8-1552_daily_bin1384.fits
.....................!
real 11.70
user 11.33
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/628770/ft1_filtered_4FGL_J2259.8-1552_daily_bin1384.fits evtable="EVENTS" scfile=/scratch/kocevski/628770/ft2_4FGL_J2259.8-1552_daily_bin1384.fits sctable="SC_DATA" expcube=/scratch/kocevski/628770/ltcube_598060801_598320001_4FGL_J2259.8-1552_daily_bin1384.fits outfile=/scratch/kocevski/628770/expmap_598060801_598320001_4FGL_J2259.8-1552_daily_bin1384.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/628770/ltcube_598060801_598320001_4FGL_J2259.8-1552_daily_bin1384.fits
.....................!
real 192.23
user 186.82
sys 5.08

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/628770/ft1_filtered_4FGL_J2259.8-1552_daily_bin1384.fits scfile=/scratch/kocevski/628770/ft2_4FGL_J2259.8-1552_daily_bin1384.fits outfile=/scratch/kocevski/628770/cmap_598060801_598320001_4FGL_J2259.8-1552_daily_bin1384.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/628770/ft1_filtered_4FGL_J2259.8-1552_daily_bin1384.fits scfile=/scratch/kocevski/628770/ft2_4FGL_J2259.8-1552_daily_bin1384.fits outfile=/scratch/kocevski/628770/cmap_HighResolution_598060801_598320001_4FGL_J2259.8-1552_daily_bin1384.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/628770/ft1_filtered_4FGL_J2259.8-1552_daily_bin1384.fits evtable="EVENTS" scfile=/scratch/kocevski/628770/ft2_4FGL_J2259.8-1552_daily_bin1384.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/628770/Model_4FGL_J2259.8-1552_daily_bin1384.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/628770/ft1_filtered_4FGL_J2259.8-1552_daily_bin1384.fits.....................!
real 59.32
user 58.02
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/628770/ft1_filtered_4FGL_J2259.8-1552_daily_bin1384.fits', '/scratch/kocevski/628770/ft2_4FGL_J2259.8-1552_daily_bin1384.fits', expMap='/scratch/kocevski/628770/expmap_598060801_598320001_4FGL_J2259.8-1552_daily_bin1384.fits', expCube='/scratch/kocevski/628770/ltcube_598060801_598320001_4FGL_J2259.8-1552_daily_bin1384.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/628770/Model_4FGL_J2259.8-1552_daily_bin1384.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/628770/ft1_filtered_4FGL_J2259.8-1552_daily_bin1384.fits
Spacecraft file(s): /scratch/kocevski/628770/ft2_4FGL_J2259.8-1552_daily_bin1384.fits
Exposure map: /scratch/kocevski/628770/expmap_598060801_598320001_4FGL_J2259.8-1552_daily_bin1384.fits
Exposure cube: /scratch/kocevski/628770/ltcube_598060801_598320001_4FGL_J2259.8-1552_daily_bin1384.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/628770/Model_4FGL_J2259.8-1552_daily_bin1384.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) = 7116.90775131

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0789       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10433E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.7031       1.0000         .10000E-03   10000.    
     5 'Prefactor '    71.902       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.3622       1.0000         .10000E-03   10000.    
     7 'norm      '    2.3992       1.0000         .10000E-03   10000.    
     8 'norm      '    2.1294       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    51.233       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.3374       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10496E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.8574       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    60.708       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.693       1.0000         .10000E-03   10000.    
    21 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.2575       1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.910       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .26743E-01   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .23704       1.0000         .10000E-03   10000.    
    27 'norm      '    16.908       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .86797       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .75651       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=   7116.721     FROM MIGRAD    STATUS=CONVERGED    742 CALLS     3736 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0770        15.533        .52314E-05   -.18187E-03
   2  Prefactor     .10000E-03    92.749       -.30700E-05** at limit **
   3  Prefactor     .10000E-03    14.304       -.43075E-07** at limit **
   4  norm          1.7036        2.9793        .47741E-06   -.87800E-04
   5  Prefactor     71.895        82.053       -.23080E-05   -.49114E-04
   6  Prefactor     5.3657        8.8565        .11771E-06   -.89436E-04
   7  norm          2.3992        .84723        .29687E-08   -.40133E-03
   8  norm          2.1296        1.3624        .40404E-07    .15561E-04
   9  Prefactor     .10000E-03    27.310        .71939E-07** at limit **
  10  Prefactor     51.236        17.165       -.65229E-07   -.60889E-03
  11  norm          .10000E-03    .75423        .39575E-06** at limit **
  12  Prefactor     5.3384        20.347        .12031E-05   -.82368E-04
  13  Prefactor     .10000E-03    3.1982        .19309E-08** at limit **
  14  Prefactor     .10000E-03    9.3844        .26916E-06** at limit **
  15  Prefactor     .10000E-03    6.8938        .38065E-07** at limit **
  16  Prefactor     4.8578        7.5516        .23343E-06   -.73916E-04
  17  Prefactor     .10000E-03    5.5535        .84929E-07** at limit **
  18  Prefactor     60.678        47.031       -.60545E-05   -.24627E-03
  19  Prefactor     .10000E-03    5.7328        .96344E-07** at limit **
  20  Prefactor     13.695        9.9168        .14649E-05   -.52645E-04
  21  norm          .10000E-03    1.9752       -.76049E-08** at limit **
  22  norm          6.2580        2.7554        .31874E-07   -.16704E-03
  23  Prefactor     18.935        40.516        .10575E-05    .46428E-04
  24  Prefactor     .10143E-03    13.201        .19792E-05** at limit **
  25  Prefactor     .10000E-03    9.2028       -.67292E-07** at limit **
  26  norm          .23685        .46166        .22375E-06   -.14217E-03
  27  norm          16.909        5.7932       -.39878E-06   -.26065E-03
  28  Normalizat    .86758        .16328       -.24329E-05   -.27944E-03
  29  Prefactor     .75680        .13170        .16812E-06   -.41215E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.07701
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.70365
  Prefactor  = 71.8952
  Prefactor  = 5.36575
  norm       = 2.39918
  norm       = 2.12955
  Prefactor  = 0.0001
  Prefactor  = 51.2357
  norm       = 0.0001
  Prefactor  = 5.3384
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.85784
  Prefactor  = 0.0001
  Prefactor  = 60.6778
  Prefactor  = 0.0001
  Prefactor  = 13.6949
  norm       = 0.0001
  norm       = 6.258
  Prefactor  = 18.9346
  Prefactor  = 0.000101434
  Prefactor  = 0.0001
  norm       = 0.236847
  norm       = 16.9092
  Normalizat = 0.867584
  Prefactor  = 0.756803
 **********
 **   18 **HESSE 
 **********

 FCN=   7116.721     FROM HESSE     STATUS=OK           559 CALLS     4295 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0770        15.843        .89206E-03   -1.5257    
   2  Prefactor     .10000E-03    93.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.7036        2.9459        .17750E-03   -1.5447    
   5  Prefactor     71.895        81.697        .47344E-04   -1.4010    
   6  Prefactor     5.3657        8.8824        .17355E-03   -1.5245    
   7  norm          2.3992        .84732        .44063E-04   -1.5398    
   8  norm          2.1296        1.3669        .76491E-04   -1.5416    
   9  Prefactor     .10000E-03    27.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     51.236        15.256        .56030E-04   -1.4275    
  11  norm          .10000E-03    .91721        .11986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.3384        20.046        .17396E-03   -1.5246    
  13  Prefactor     .10000E-03    3.2005        .14734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.6275        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.9817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.8578        7.5449        .18252E-03   -1.5267    
  17  Prefactor     .10000E-03    5.6198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     60.678        47.989        .51496E-04   -1.4148    
  19  Prefactor     .10000E-03    5.7340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.695        9.9442        .10824E-03   -1.4968    
  21  norm          .10000E-03    1.9813        .11568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.2580        2.7606        .88918E-04   -1.5208    
  23  Prefactor     18.935        48.143        .92104E-04   -1.4837    
  24  Prefactor     .10143E-03    21.241        .73834E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    9.2128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .23685        .43411        .67035E-03   -1.5611    
  27  norm          16.909        5.7032        .97403E-04   -1.4885    
  28  Normalizat    .86758        .18785        .24840E-03   -.97609    
  29  Prefactor     .75680        .15266        .22743E-03   -1.0134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06741e-08
Minuit parameter uncertainties:
  1  15.8565
  2  0.000425999
  3  1.76519e-06
  4  2.94615
  5  81.8251
  6  8.88461
  7  0.847325
  8  1.36687
  9  6.33743e-05
  10  15.2576
  11  2.01036e-05
  12  20.0711
  13  2.54366e-06
  14  5.82758e-05
  15  7.05827e-06
  16  7.54639
  17  2.12771e-05
  18  48.0195
  19  9.03991e-07
  20  9.9454
  21  8.02993e-07
  22  2.76062
  23  48.2416
  24  0.0110427
  25  4.92881e-06
  26  0.434117
  27  5.70341
  28  0.187995
  29  0.152743
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  4.858e+00  7.546e+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

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  7.568e-01  1.527e-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:  8.676e-01  1.880e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/628770/likelihoodResults_598060801_598320001_4FGL_J2259.8-1552_daily_bin1384.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) = 7116.6428257
delta logL = 0.0779622506843

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7116.64151096
delta logL = 0.0792769892005

Fit tolerance = 1e-08

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

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

 FCN=   7116.642     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      269 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3506        148.68        .55257E-02    .56729E-03
   2  Index         2.5329        6.2502        .15486        .12580E-03
   3  Normalizat    .85935        .48794E-01    .44381E-01    .53073E-04
   4  Prefactor     .76070        .37829E-01    .43201E-01    .46657E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.35064
  Index      = 2.53285
  Normalizat = 0.859355
  Prefactor  = 0.760702
 **********
 **   18 **HESSE 
 **********

 FCN=   7116.642     FROM HESSE     STATUS=OK            33 CALLS      302 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3506        8.8142        .20121E-03   -1.5342    
   2  Index         2.5329        1.3592        .95973E-02   -.51603    
   3  Normalizat    .85935        .17642        .24945E-03   -.97903    
   4  Prefactor     .76070        .15139        .22688E-03   -1.0119    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.09836e-11
Minuit parameter uncertainties:
  1  8.81759
  2  1.38237
  3  0.176535
  4  0.151472
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/628770': 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) = 7116.64150908
delta logL = 0.0792788702311

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  3.351e+00  8.818e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.533e+00  1.382e+00  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:  7.607e-01  1.515e-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:  8.594e-01  1.765e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/628770/cmap_HighResolution_598060801_598320001_4FGL_J2259.8-1552_daily_bin1384.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.08e-03', job_status='DONE', photon_flux_upper_limit='6.70e-08', time_completed='2021-09-29 05:09:47.835182', job_id='628770', GAL2='0.76', fit_tolerance='1e-08', EG2='0.86', EG='0.87', time_epoch_completed='1632917387.84', return_code2='0', ts='0.60', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='7.93e-02', ts2='0.75', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1384' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 05:09:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 628770: <4FGL_J2259.8-1552_daily_bin1384> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin1384> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep 29 04:55:33 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:55:34 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:55:34 2021
Terminated at Wed Sep 29 05:09:48 2021
Results reported at Wed Sep 29 05:09:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin1384 344.953 -15.8809 598060801 598320001 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 :                                   833.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             357.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            855 sec.

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

