/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 219 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 = 7403
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2259.8-1552_daily_bin121
RA = 344.953, Dec = -15.8809
tmin = 270691201, tmax = 270950401
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='621475', job_status='RUN', time_executed='2021-09-29 04:34:13.099508', time_epoch_executed='1632915253.1' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='121'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/621475

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/621475/ft1_4FGL_J2259.8-1552_daily_bin121.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/621475/ft2_4FGL_J2259.8-1552_daily_bin121.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/621475/ft1_4FGL_J2259.8-1552_daily_bin121.fits outfile=/scratch/kocevski/621475/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin121.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=270691201.0 tmax=270950401.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 1.63
user 1.44
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/621475/ft1_filtered_4FGL_J2259.8-1552_daily_bin121.fits" evtable="EVENTS" scfile=/scratch/kocevski/621475/ft2_4FGL_J2259.8-1552_daily_bin121.fits sctable="SC_DATA" outfile=/scratch/kocevski/621475/ltcube_270691201_270950401_4FGL_J2259.8-1552_daily_bin121.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/621475/ft2_4FGL_J2259.8-1552_daily_bin121.fits
.....................!
real 12.81
user 12.44
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/621475/ft1_filtered_4FGL_J2259.8-1552_daily_bin121.fits evtable="EVENTS" scfile=/scratch/kocevski/621475/ft2_4FGL_J2259.8-1552_daily_bin121.fits sctable="SC_DATA" expcube=/scratch/kocevski/621475/ltcube_270691201_270950401_4FGL_J2259.8-1552_daily_bin121.fits outfile=/scratch/kocevski/621475/expmap_270691201_270950401_4FGL_J2259.8-1552_daily_bin121.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/621475/ltcube_270691201_270950401_4FGL_J2259.8-1552_daily_bin121.fits
.....................!
real 189.95
user 185.72
sys 3.89

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/621475/ft1_filtered_4FGL_J2259.8-1552_daily_bin121.fits scfile=/scratch/kocevski/621475/ft2_4FGL_J2259.8-1552_daily_bin121.fits outfile=/scratch/kocevski/621475/cmap_270691201_270950401_4FGL_J2259.8-1552_daily_bin121.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.54
user 0.36
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/621475/ft1_filtered_4FGL_J2259.8-1552_daily_bin121.fits scfile=/scratch/kocevski/621475/ft2_4FGL_J2259.8-1552_daily_bin121.fits outfile=/scratch/kocevski/621475/cmap_HighResolution_270691201_270950401_4FGL_J2259.8-1552_daily_bin121.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.51
user 0.37
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/621475/ft1_filtered_4FGL_J2259.8-1552_daily_bin121.fits evtable="EVENTS" scfile=/scratch/kocevski/621475/ft2_4FGL_J2259.8-1552_daily_bin121.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/621475/Model_4FGL_J2259.8-1552_daily_bin121.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/621475/ft1_filtered_4FGL_J2259.8-1552_daily_bin121.fits.....................!
real 51.47
user 50.17
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.366       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    10.953       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.048       1.0000         .10000E-03   10000.    
     7 'norm      '    3.1836       1.0000         .10000E-03   10000.    
     8 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    162.92       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.0075       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6725       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.3216       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .94734E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    .53477       1.0000         .10000E-03   10000.    
    22 'norm      '    1.6674       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .70353E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.321       1.0000         .10000E-03   10000.    
    25 'Prefactor '    25.691       1.0000         .10000E-03   10000.    
    26 'norm      '    .19016       1.0000         .10000E-03   10000.    
    27 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3310       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .68187       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=   6003.188     FROM MIGRAD    STATUS=CONVERGED    766 CALLS     3802 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.0746        .55088E-06** at limit **
   2  Prefactor     13.455        131.82        .32089E-05    .66556E-04
   3  Prefactor     .10000E-03    21.666        .22053E-06** at limit **
   4  norm          10.952        4.6655        .53273E-07    .60383E-04
   5  Prefactor     .10000E-03    21.488       -.22734E-06** at limit **
   6  Prefactor     18.048        13.997        .24465E-07    .51759E-04
   7  norm          3.1835        1.1480        .29836E-07    .14701E-03
   8  norm          .10000E-03    1.2242        .28764E-06** at limit **
   9  Prefactor     162.94        60.778       -.17582E-06    .15613E-03
  10  Prefactor     .10000E-03    6.2147       -.56219E-07** at limit **
  11  norm          .10000E-03    .34772       -.59896E-08** at limit **
  12  Prefactor     .10000E-03    17.074       -.30889E-07** at limit **
  13  Prefactor     .10000E-03    5.0450       -.10155E-06** at limit **
  14  Prefactor     1.0072        14.096       -.50650E-05    .63085E-03
  15  Prefactor     .10000E-03    2.6524       -.26635E-07** at limit **
  16  Prefactor     1.6742        17.591        .24490E-05    .92888E-04
  17  Prefactor     .10000E-03    4.2004       -.17176E-06** at limit **
  18  Prefactor     6.4147        42.230        .10209E-04    .22301E-03
  19  Prefactor     .10000E-03    6.1907        .54674E-07** at limit **
  20  Prefactor     .10026E-03    7.8110       -.35949E-05** at limit **
  21  norm          .56626        7.4690        .41474E-05   -.11370E-03
  22  norm          1.6698        3.2304        .50351E-06    .18380E-03
  23  Prefactor     .10000E-03    417.33       -.22719E-05** at limit **
  24  Prefactor     20.328        15.455       -.20577E-05   -.28111E-03
  25  Prefactor     25.669        38.399       -.60396E-06   -.85788E-06
  26  norm          .19013        .32242        .33858E-07    .46195E-03
  27  norm          .10000E-03    2.5664       -.54478E-08** at limit **
  28  Normalizat    1.3309        .20264       -.48811E-06    .37351E-03
  29  Prefactor     .68188        .15677       -.68524E-07    .26050E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.455
  Prefactor  = 0.0001
  norm       = 10.9519
  Prefactor  = 0.0001
  Prefactor  = 18.0483
  norm       = 3.18351
  norm       = 0.0001
  Prefactor  = 162.94
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.00723
  Prefactor  = 0.0001
  Prefactor  = 1.67419
  Prefactor  = 0.0001
  Prefactor  = 6.41471
  Prefactor  = 0.0001
  Prefactor  = 0.000100255
  norm       = 0.566257
  norm       = 1.66978
  Prefactor  = 0.000100005
  Prefactor  = 20.3276
  Prefactor  = 25.669
  norm       = 0.190129
  norm       = 0.0001
  Normalizat = 1.33092
  Prefactor  = 0.681877
 **********
 **   18 **HESSE 
 **********

 FCN=   6003.188     FROM HESSE     STATUS=OK           561 CALLS     4363 TOTAL
                     EDM=   .73E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.0901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.455        130.22        .10956E-03   -1.4974    
   3  Prefactor     .10000E-03    21.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          10.952        4.6619        .10319E-03   -1.5046    
   5  Prefactor     .10000E-03    21.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.048        14.007        .94277E-04   -1.4858    
   7  norm          3.1835        1.1470        .47486E-04   -1.5351    
   8  norm          .10000E-03    1.2363        .83528E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     162.94        60.355        .15799E-03   -1.3148    
  10  Prefactor     .10000E-03    6.2439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .35772        .89066E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.0451        .16990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.0072        28.735        .45244E-02   -1.5507    
  15  Prefactor     .10000E-03    2.6537        .12324E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.6742        17.592        .32592E-03   -1.5449    
  17  Prefactor     .10000E-03    4.2054        .15492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.4147        53.627        .15965E-03   -1.5201    
  19  Prefactor     .10000E-03    6.1913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10026E-03    22.942        .55288E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .56626        17.663        .31407E-02   -1.5557    
  22  norm          1.6698        3.1841        .17679E-03   -1.5450    
  23  Prefactor     .10000E-03    426.12        .37383E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     20.328        15.498        .88851E-04   -1.4806    
  25  Prefactor     25.669        38.168        .79033E-04   -1.4694    
  26  norm          .19013        .27065        .55446E-03   -1.5621    
  27  norm          .10000E-03    2.5883        .12107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3309        .23994        .24159E-03   -.82648    
  29  Prefactor     .68188        .18483        .26397E-03   -1.0424    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.26989e-08
Minuit parameter uncertainties:
  1  3.24939e-05
  2  83.9559
  3  9.91894e-05
  4  4.66204
  5  9.92208e-05
  6  14.0096
  7  1.14697
  8  9.87209e-06
  9  60.3783
  10  1.87915e-05
  11  3.58644e-07
  12  1.12133e-05
  13  1.51063e-05
  14  10.7648
  15  1.06788e-06
  16  10.8579
  17  1.80059e-05
  18  37.1395
  19  1.53821e-05
  20  0.00484013
  21  6.32666
  22  3.1844
  23  0.00292808
  24  15.5015
  25  38.2044
  26  0.27065
  27  4.79142e-06
  28  0.240139
  29  0.184992
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.674e+00  1.086e+01  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.819e-01  1.850e-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.331e+00  2.401e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/621475/likelihoodResults_270691201_270950401_4FGL_J2259.8-1552_daily_bin121.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) = 6002.91751094
delta logL = 0.270755427157

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6002.90011453
delta logL = 0.288151834768

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.3180       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9351       1.0000          .0000       10.000    
     3 'Normalizat'    1.3040       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68917       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=   6002.900     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      229 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.3267        79.878        .67360E-02    .55676E-03
   2  Index         2.9336        2.9408        .17539        .80283E-04
   3  Normalizat    1.3038        .45322E-01    .55110E-01    .14178E-03
   4  Prefactor     .68931        .36610E-01    .42257E-01    .45779E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.32667
  Index      = 2.93364
  Normalizat = 1.3038
  Prefactor  = 0.68931
 **********
 **   18 **HESSE 
 **********

 FCN=   6002.900     FROM HESSE     STATUS=OK            29 CALLS      258 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.3267        6.6283        .15943E-03   -1.5403    
   2  Index         2.9336        1.1789        .62517E-02   -.42605    
   3  Normalizat    1.3038        .22612        .24368E-03   -.83453    
   4  Prefactor     .68931        .18140        .26255E-03   -1.0395    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00596e-08
Minuit parameter uncertainties:
  1  6.63042
  2  1.19251
  3  0.226295
  4  0.181555
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/621475': 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) = 6002.90011277
delta logL = 0.288153590977

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  2.327e+00  6.630e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.934e+00  1.193e+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:  6.893e-01  1.816e-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.304e+00  2.263e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/621475/cmap_HighResolution_270691201_270950401_4FGL_J2259.8-1552_daily_bin121.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.24e-03', job_status='DONE', photon_flux_upper_limit='8.23e-08', time_completed='2021-09-29 04:46:16.241276', job_id='621475', GAL2='0.69', fit_tolerance='1e-08', EG2='1.30', EG='1.33', time_epoch_completed='1632915976.24', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='2.88e-01', ts2='0.61', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='121' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:46:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 621475: <4FGL_J2259.8-1552_daily_bin121> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin121> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 04:30:23 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:30:25 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:25 2021
Terminated at Wed Sep 29 04:46:19 2021
Results reported at Wed Sep 29 04:46:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin121 344.953 -15.8809 270691201 270950401 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 :                                   721.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             265.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            956 sec.

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

