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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin424
RA = 344.953, Dec = -15.8809
tmin = 349228801, tmax = 349488001
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='623066', job_status='RUN', time_executed='2021-09-29 04:36:17.315458', time_epoch_executed='1632915377.32' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='424'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/623066

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/623066/ft1_4FGL_J2259.8-1552_daily_bin424.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/623066/ft2_4FGL_J2259.8-1552_daily_bin424.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/623066/ft1_4FGL_J2259.8-1552_daily_bin424.fits outfile=/scratch/kocevski/623066/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin424.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=349228801.0 tmax=349488001.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.43
user 3.20
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/623066/ft2_4FGL_J2259.8-1552_daily_bin424.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/623066/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin424.fits evtable="EVENTS" outfile="/scratch/kocevski/623066/ft1_filtered_4FGL_J2259.8-1552_daily_bin424.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/623066/ft1_filtered_4FGL_J2259.8-1552_daily_bin424.fits" evtable="EVENTS" scfile=/scratch/kocevski/623066/ft2_4FGL_J2259.8-1552_daily_bin424.fits sctable="SC_DATA" outfile=/scratch/kocevski/623066/ltcube_349228801_349488001_4FGL_J2259.8-1552_daily_bin424.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/623066/ft2_4FGL_J2259.8-1552_daily_bin424.fits
.....................!
real 12.59
user 12.21
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/623066/ft1_filtered_4FGL_J2259.8-1552_daily_bin424.fits evtable="EVENTS" scfile=/scratch/kocevski/623066/ft2_4FGL_J2259.8-1552_daily_bin424.fits sctable="SC_DATA" expcube=/scratch/kocevski/623066/ltcube_349228801_349488001_4FGL_J2259.8-1552_daily_bin424.fits outfile=/scratch/kocevski/623066/expmap_349228801_349488001_4FGL_J2259.8-1552_daily_bin424.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/623066/ltcube_349228801_349488001_4FGL_J2259.8-1552_daily_bin424.fits
.....................!
real 193.14
user 187.77
sys 5.01

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/623066/ft1_filtered_4FGL_J2259.8-1552_daily_bin424.fits scfile=/scratch/kocevski/623066/ft2_4FGL_J2259.8-1552_daily_bin424.fits outfile=/scratch/kocevski/623066/cmap_349228801_349488001_4FGL_J2259.8-1552_daily_bin424.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.56
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/623066/ft1_filtered_4FGL_J2259.8-1552_daily_bin424.fits scfile=/scratch/kocevski/623066/ft2_4FGL_J2259.8-1552_daily_bin424.fits outfile=/scratch/kocevski/623066/cmap_HighResolution_349228801_349488001_4FGL_J2259.8-1552_daily_bin424.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4392.60587299

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    99.460       1.0000         .10000E-03   10000.    
     4 'norm      '    .10711E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.931       1.0000         .10000E-03   10000.    
     7 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .78301E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    119.91       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .50372E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    .84572       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.7349       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5050       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .37541       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.969       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.474       1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.163       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.721       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.7408       1.0000         .10000E-03   10000.    
    22 'norm      '    1.9217       1.0000         .10000E-03   10000.    
    23 'Prefactor '    115.73       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .15185E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    48.274       1.0000         .10000E-03   10000.    
    26 'norm      '    2.4743       1.0000         .10000E-03   10000.    
    27 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1489       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .77805       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=   4392.606     FROM MIGRAD    STATUS=CONVERGED   1281 CALLS     4341 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.5226        .18142E-02** at limit **
   2  Prefactor     .10000E-03    37.041        .18142E-02** at limit **
   3  Prefactor     99.519        78.098        .20155E-03   -.11254E-03
   4  norm          .10000E-03    3.4692        .23545E-03** at limit **
   5  Prefactor     .10000E-03    33.290        .18142E-02** at limit **
   6  Prefactor     12.940        20.483        .11139E-03    .40416E-04
   7  norm          .10000E-03    .25341        .32465E-03** at limit **
   8  norm          .10011E-03    40.029        .19287E-02** at limit **
   9  Prefactor     119.93        80.587        .18375E-03   -.36814E-04
  10  Prefactor     .10000E-03    125.53        .43929E-02** at limit **
  11  norm          .84978        1.4879        .50437E-04    .98276E-04
  12  Prefactor     9.7347        26.424        .12843E-03    .13809E-04
  13  Prefactor     2.5039        464.12        .25819E-03    .10299E-03
  14  Prefactor     .43857        1679.7        .42154E-02    .55625E-04
  15  Prefactor     17.970        12.841        .94484E-04    .10829E-04
  16  Prefactor     10.478        13.843        .12380E-03    .91831E-05
  17  Prefactor     22.145        24.832        .85082E-04    .34466E-03
  18  Prefactor     .10000E-03    21.605        .18142E-02** at limit **
  19  Prefactor     18.719        21.299        .92568E-04   -.51926E-04
  20  Prefactor     .10000E-03    7.7617        .17892E-02** at limit **
  21  norm          2.7413        6.6366        .12296E-02    .24276E-03
  22  norm          1.9220        4.6084        .19210E-03   -.11836E-05
  23  Prefactor     115.63        92.150        .18700E-03   -.76662E-04
  24  Prefactor     .10000E-03    82.432        .18142E-02** at limit **
  25  Prefactor     48.284        56.557        .57714E-04   -.28641E-04
  26  norm          2.4744        .91795        .36921E-04   -.12119E-02
  27  norm          .10000E-03    6.7103        .33058E-03** at limit **
  28  Normalizat    1.1488        .31125        .26620E-03   -.22886E-03
  29  Prefactor     .77807        .23732        .25446E-03    .11728E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 99.5195
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.9396
  norm       = 0.0001
  norm       = 0.000100108
  Prefactor  = 119.931
  Prefactor  = 0.000100004
  norm       = 0.849779
  Prefactor  = 9.7347
  Prefactor  = 2.50392
  Prefactor  = 0.438567
  Prefactor  = 17.9701
  Prefactor  = 10.4779
  Prefactor  = 22.1449
  Prefactor  = 0.0001
  Prefactor  = 18.7186
  Prefactor  = 0.0001
  norm       = 2.74132
  norm       = 1.92204
  Prefactor  = 115.63
  Prefactor  = 0.000100001
  Prefactor  = 48.2842
  norm       = 2.47443
  norm       = 0.0001
  Normalizat = 1.14876
  Prefactor  = 0.778074
 **********
 **   18 **HESSE 
 **********

 FCN=   4392.606     FROM HESSE     STATUS=OK           527 CALLS     4868 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.5236        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    37.042        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     99.519        78.085        .40310E-04   -1.3709    
   4  norm          .10000E-03    3.4693        .47090E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    33.290        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.940        20.475        .44557E-05   -1.4988    
   7  norm          .10000E-03    .25342        .64929E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10011E-03    40.309        .38574E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     119.93        77.528        .73498E-05   -1.3513    
  10  Prefactor     .10000E-03    125.75        .17572E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .84978        1.4737        .20175E-05   -1.5524    
  12  Prefactor     9.7347        26.410        .51374E-05   -1.5084    
  13  Prefactor     2.5039        129.82        .10328E-04   -1.5391    
  14  Prefactor     .43857        436.94        .16861E-03   -1.5576    
  15  Prefactor     17.970        12.841        .37794E-05   -1.4860    
  16  Prefactor     10.478        13.842        .49520E-05   -1.5060    
  17  Prefactor     22.145        18.942        .17016E-04   -1.4766    
  18  Prefactor     .10000E-03    21.605        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     18.719        21.299        .18514E-04   -1.4842    
  20  Prefactor     .10000E-03    7.7652        .35785E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.7413        6.6336        .49186E-04   -1.5377    
  22  norm          1.9220        4.6058        .76841E-05   -1.5431    
  23  Prefactor     115.63        92.008        .74800E-05   -1.3553    
  24  Prefactor     .10000E-03    82.477        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     48.284        56.536        .11543E-04   -1.4317    
  26  norm          2.4744        .91791        .73843E-05   -1.5393    
  27  norm          .10000E-03    6.7105        .66116E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1488        .29767        .53241E-04   -.88201    
  29  Prefactor     .77807        .22810        .10178E-04   -1.0054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.04438e-09
Minuit parameter uncertainties:
  1  1.11097e-05
  2  0.000208224
  3  78.1661
  4  3.98641e-06
  5  0.000241635
  6  20.4858
  7  1.0485e-06
  8  0.00416823
  9  77.5932
  10  0.0014413
  11  1.4738
  12  26.4417
  13  36.1407
  14  27.8891
  15  12.8428
  16  13.8464
  17  18.9468
  18  4.28762e-05
  19  21.3076
  20  9.38106e-08
  21  6.63537
  22  4.60669
  23  92.122
  24  0.000496315
  25  56.5988
  26  0.917913
  27  2.01252e-05
  28  0.298104
  29  0.228372
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.048e+01  1.385e+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:  7.781e-01  2.284e-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.149e+00  2.981e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.81
Ra Dec: 344.953 -15.881
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/623066/likelihoodResults_349228801_349488001_4FGL_J2259.8-1552_daily_bin424.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) = 4392.48154407
delta logL = 0.124285983562

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4392.47747801
delta logL = 0.128352050831

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8838       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6591       1.0000          .0000       10.000    
     3 'Normalizat'    1.1264       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79036       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4392.477     FROM MIGRAD    STATUS=FAILED       104 CALLS      314 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8727        28.940        .82779E-03    .16932E-03
   2  Index         2.6609        2.2743        .72382E-02    .36426E-03
   3  Normalizat    1.1258        .28680        .26854E-03   -.89329E-05
   4  Prefactor     .79072        .22897        .25258E-03   -.69314E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4392.477     FROM SIMPLEX   STATUS=UNCHANGED     83 CALLS      397 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8727        28.940        .21022E-03   -1.5223    
   2  Index         2.6609        2.2743        .81010E-03   -.48682    
   3  Normalizat    1.1258        .28680        .41111E-03   -.88929    
   4  Prefactor     .79072        .22897        .39473E-03   -1.0007    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4392.477     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      427 TOTAL
                     EDM=   .22E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8727        14.716        .16556E-03   -.79656E-05
   2  Index         2.6609        1.3263        .14476E-02   -.83244E-06
   3  Normalizat    1.1258        .27764        .10741E-04   -.88905E-05
   4  Prefactor     .79072        .22151        .10103E-04   -.69765E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.87274
  Index      = 2.66089
  Normalizat = 1.12576
  Prefactor  = 0.790724
 **********
 **   18 **HESSE 
 **********

 FCN=   4392.477     FROM HESSE     STATUS=OK            23 CALLS      450 TOTAL
                     EDM=   .20E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8727        13.728        .66223E-05   -1.5223    
   2  Index         2.6609        1.2391        .57906E-04   -.48682    
   3  Normalizat    1.1258        .27663        .21483E-05   -.88929    
   4  Prefactor     .79072        .22067        .20207E-05   -1.0007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.03745e-13
Minuit parameter uncertainties:
  1  13.7358
  2  1.25599
  3  0.276983
  4  0.220915
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/623066': 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) = 4392.47747475
delta logL = 0.128355302483

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  5.873e+00  1.374e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.661e+00  1.256e+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.907e-01  2.209e-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.126e+00  2.770e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.07
Ra Dec: 344.953 -15.881
Photon Index (Free Index): 2.66 +/- 1.26
Photon Flux (Free Index): 4.65e-08 +/- 6.14e-08
Energy Flux (Free Index): 1.16e-05 +/- 1.45e-05

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/623066/cmap_HighResolution_349228801_349488001_4FGL_J2259.8-1552_daily_bin424.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.38e-03', comment='SUCCESS', energy_flux2='1.16e-05', dlogl='1.28e-01', photon_flux2='4.65e-08', job_status='DONE', time_completed='2021-09-29 04:47:22.149698', photon_index_error2='1.26', photon_index2='2.66', ts='0.81', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='1.24e-07', energy_flux_error2='1.45e-05', EG='1.15', time_epoch_completed='1632916042.15', return_code='0', job_id='623066', GAL2='0.79', EG2='1.13', return_code2='0', photon_flux_error2='6.14e-08', ts2='1.07', photon_index='2.13' WHERE bin_id='424' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:47:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 623066: <4FGL_J2259.8-1552_daily_bin424> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin424> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 04:35:38 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:35:40 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:35:40 2021
Terminated at Wed Sep 29 04:47:22 2021
Results reported at Wed Sep 29 04:47:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin424 344.953 -15.8809 349228801 349488001 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 :                                   654.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   702 sec.
    Turnaround time :                            704 sec.

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

