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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin793
RA = 344.953, Dec = -15.8809
tmin = 444873601, tmax = 445132801
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='625782', job_status='RUN', time_executed='2021-09-29 04:48:32.554318', time_epoch_executed='1632916112.55' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='793'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/625782

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/625782/ft1_4FGL_J2259.8-1552_daily_bin793.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/625782/ft2_4FGL_J2259.8-1552_daily_bin793.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/625782/ft1_4FGL_J2259.8-1552_daily_bin793.fits outfile=/scratch/kocevski/625782/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin793.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=444873601.0 tmax=445132801.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.53
user 3.33
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/625782/ft2_4FGL_J2259.8-1552_daily_bin793.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/625782/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin793.fits evtable="EVENTS" outfile="/scratch/kocevski/625782/ft1_filtered_4FGL_J2259.8-1552_daily_bin793.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.50
user 0.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/625782/ft1_filtered_4FGL_J2259.8-1552_daily_bin793.fits" evtable="EVENTS" scfile=/scratch/kocevski/625782/ft2_4FGL_J2259.8-1552_daily_bin793.fits sctable="SC_DATA" outfile=/scratch/kocevski/625782/ltcube_444873601_445132801_4FGL_J2259.8-1552_daily_bin793.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/625782/ft2_4FGL_J2259.8-1552_daily_bin793.fits
.....................!
real 11.83
user 11.49
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/625782/ft1_filtered_4FGL_J2259.8-1552_daily_bin793.fits evtable="EVENTS" scfile=/scratch/kocevski/625782/ft2_4FGL_J2259.8-1552_daily_bin793.fits sctable="SC_DATA" expcube=/scratch/kocevski/625782/ltcube_444873601_445132801_4FGL_J2259.8-1552_daily_bin793.fits outfile=/scratch/kocevski/625782/expmap_444873601_445132801_4FGL_J2259.8-1552_daily_bin793.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/625782/ltcube_444873601_445132801_4FGL_J2259.8-1552_daily_bin793.fits
.....................!
real 189.20
user 184.93
sys 3.94

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/625782/ft1_filtered_4FGL_J2259.8-1552_daily_bin793.fits scfile=/scratch/kocevski/625782/ft2_4FGL_J2259.8-1552_daily_bin793.fits outfile=/scratch/kocevski/625782/cmap_444873601_445132801_4FGL_J2259.8-1552_daily_bin793.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/625782/ft1_filtered_4FGL_J2259.8-1552_daily_bin793.fits scfile=/scratch/kocevski/625782/ft2_4FGL_J2259.8-1552_daily_bin793.fits outfile=/scratch/kocevski/625782/cmap_HighResolution_444873601_445132801_4FGL_J2259.8-1552_daily_bin793.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/625782/ft1_filtered_4FGL_J2259.8-1552_daily_bin793.fits evtable="EVENTS" scfile=/scratch/kocevski/625782/ft2_4FGL_J2259.8-1552_daily_bin793.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/625782/Model_4FGL_J2259.8-1552_daily_bin793.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/625782/ft1_filtered_4FGL_J2259.8-1552_daily_bin793.fits.....................!
real 40.01
user 38.79
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4283       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.426       1.0000         .10000E-03   10000.    
     4 'norm      '    2.9797       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    31.614       1.0000         .10000E-03   10000.    
     7 'norm      '    2.3798       1.0000         .10000E-03   10000.    
     8 'norm      '    4.6805       1.0000         .10000E-03   10000.    
     9 'Prefactor '    41.735       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.698       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.3156       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.6014       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.9344       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10320E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.2561       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    32.967       1.0000         .10000E-03   10000.    
    25 'Prefactor '    53.032       1.0000         .10000E-03   10000.    
    26 'norm      '    .93410       1.0000         .10000E-03   10000.    
    27 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .57546       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2026       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=   4334.941     FROM MIGRAD    STATUS=CONVERGED    731 CALLS     4285 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4263        22.041        .68862E-06    .29159E-05
   2  Prefactor     .10000E-03    36.485       -.21099E-05** at limit **
   3  Prefactor     21.429        79.592        .73290E-06   -.87896E-05
   4  norm          2.9800        4.4170        .12569E-06   -.11164E-03
   5  Prefactor     .10000E-03    49.567        .16869E-05** at limit **
   6  Prefactor     31.610        26.989        .63368E-06    .96893E-06
   7  norm          2.3802        1.3320       -.39976E-07   -.61151E-03
   8  norm          4.6795        4.3121        .78179E-08   -.76996E-05
   9  Prefactor     41.732        119.53       -.55466E-07   -.11604E-04
  10  Prefactor     .10000E-03    20.212        .14493E-05** at limit **
  11  norm          .10000E-03    .95790        .83328E-06** at limit **
  12  Prefactor     10.746        26.225       -.50061E-06   -.19076E-03
  13  Prefactor     .10000E-03    10.261        .11567E-05** at limit **
  14  Prefactor     8.3177        18.849       -.70642E-06   -.14959E-04
  15  Prefactor     .10000E-03    5.1932        .46638E-07** at limit **
  16  Prefactor     .10000E-03    10.845       -.13759E-05** at limit **
  17  Prefactor     6.5996        12.754        .37178E-05    .40404E-04
  18  Prefactor     3.0072        244.03        .10533E-04   -.59258E-07
  19  Prefactor     .10000E-03    9.1354       -.31000E-06** at limit **
  20  Prefactor     .10000E-03    19.296        .13822E-04** at limit **
  21  norm          .10000E-03    3.0707        .11746E-05** at limit **
  22  norm          1.2562        2.8943        .24874E-06    .37958E-04
  23  Prefactor     .10000E-03    77.514        .81928E-06** at limit **
  24  Prefactor     32.964        21.643        .57640E-06   -.56196E-05
  25  Prefactor     53.033        43.902        .34341E-06   -.10022E-04
  26  norm          .93411        .69781        .57053E-07    .10400E-03
  27  norm          .10000E-03    4.5944       -.15870E-06** at limit **
  28  Normalizat    .57545        .26922       -.57321E-05   -.26242E-03
  29  Prefactor     1.2026        .20712        .20746E-05   -.56095E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.42626
  Prefactor  = 0.000100001
  Prefactor  = 21.4295
  norm       = 2.97995
  Prefactor  = 0.000100001
  Prefactor  = 31.6099
  norm       = 2.3802
  norm       = 4.67952
  Prefactor  = 41.7322
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 10.7463
  Prefactor  = 0.0001
  Prefactor  = 8.31771
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.59962
  Prefactor  = 3.00717
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.25624
  Prefactor  = 0.0001
  Prefactor  = 32.9639
  Prefactor  = 53.0334
  norm       = 0.934109
  norm       = 0.0001
  Normalizat = 0.575446
  Prefactor  = 1.2026
 **********
 **   18 **HESSE 
 **********

 FCN=   4334.941     FROM HESSE     STATUS=OK           557 CALLS     4842 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4263        22.020        .14715E-03   -1.5163    
   2  Prefactor     .10000E-03    36.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.429        79.458        .86532E-04   -1.4782    
   4  norm          2.9800        4.4082        .15917E-03   -1.5363    
   5  Prefactor     .10000E-03    49.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     31.610        27.011        .71262E-04   -1.4583    
   7  norm          2.3802        1.3264        .52543E-04   -1.5399    
   8  norm          4.6795        4.3413        .10688E-03   -1.5275    
   9  Prefactor     41.732        119.92        .62051E-04   -1.4415    
  10  Prefactor     .10000E-03    20.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.5138        .11391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.746        24.490        .12249E-03   -1.5052    
  13  Prefactor     .10000E-03    10.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.3177        18.770        .13902E-03   -1.5131    
  15  Prefactor     .10000E-03    5.2002        .14653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.5996        12.764        .78094E-03   -1.5194    
  18  Prefactor     3.0072        238.63        .23712E-03   -1.5361    
  19  Prefactor     .10000E-03    9.1387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    19.182        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.0841        .11251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.2562        2.8234        .16060E-03   -1.5484    
  23  Prefactor     .10000E-03    77.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     32.964        21.645        .69789E-04   -1.4559    
  25  Prefactor     53.033        43.780        .55076E-04   -1.4250    
  26  norm          .93411        .67682        .45549E-03   -1.5515    
  27  norm          .10000E-03    4.6350        .13754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .57545        .30194        .34082E-03   -1.0904    
  29  Prefactor     1.2026        .23624        .20479E-03   -.86251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01597e-09
Minuit parameter uncertainties:
  1  22.0445
  2  0.00042277
  3  79.8542
  4  4.40865
  5  0.000485264
  6  27.0217
  7  1.32641
  8  4.34155
  9  120.619
  10  4.839e-05
  11  5.94763e-05
  12  24.5124
  13  0.00011661
  14  18.7829
  15  8.69785e-07
  16  0.000115359
  17  12.7694
  18  53.7989
  19  2.98199e-05
  20  7.66322e-05
  21  7.14783e-06
  22  2.82369
  23  0.000293211
  24  21.6505
  25  43.8063
  26  0.676824
  27  2.06914e-06
  28  0.302811
  29  0.236445
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.154e-04  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:  1.203e+00  2.364e-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:  5.754e-01  3.028e-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: 8.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.43e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/625782/likelihoodResults_444873601_445132801_4FGL_J2259.8-1552_daily_bin793.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) = 4334.94144498
delta logL = -0.000435443730566

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4334.9410094
delta logL = 1.34508809424e-07

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 'Index     '    2.1589       1.0000          .0000       10.000    
     3 'Normalizat'    .57545       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2026       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=   4334.931     FROM MIGRAD    STATUS=CONVERGED    213 CALLS      371 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19238        14.574        .27154E-01   -.12292E-02
   2  Index         3.3846        .76941        .49938        .16762E-04
   3  Normalizat    .56671        .19551E-01    .34084E-03    .33455E-04
   4  Prefactor     1.2062        .16547E-01    .20479E-03    .36328E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.192385
  Index      = 3.38459
  Normalizat = 0.566711
  Prefactor  = 1.20616
 **********
 **   18 **HESSE 
 **********

 FCN=   4334.931     FROM HESSE     STATUS=OK            31 CALLS      402 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19238        3.3470        .13931E-02   -1.5796    
   2  Index         3.3846        2.7155        .29792E-02   -.32899    
   3  Normalizat    .56671        .27450        .13634E-04   -1.0942    
   4  Prefactor     1.2062        .22886        .40958E-04   -.86142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20123e-10
Minuit parameter uncertainties:
  1  1.60456
  2  2.89227
  3  0.27516
  4  0.229046
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/625782': 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) = 4334.93084212
delta logL = 0.0101674241068

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.924e-01  1.605e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  3.385e+00  2.892e+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:  1.206e+00  2.290e-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:  5.667e-01  2.752e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/625782/cmap_HighResolution_444873601_445132801_4FGL_J2259.8-1552_daily_bin793.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.43e-03', job_status='DONE', photon_flux_upper_limit='8.49e-08', time_completed='2021-09-29 04:58:59.478505', job_id='625782', GAL2='1.21', fit_tolerance='1e-08', EG2='0.57', EG='0.58', time_epoch_completed='1632916739.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='1.02e-02', ts2='0.02', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='793' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:58:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 625782: <4FGL_J2259.8-1552_daily_bin793> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin793> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 04:45:22 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:45:24 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:45:24 2021
Terminated at Wed Sep 29 04:59:00 2021
Results reported at Wed Sep 29 04:59:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin793 344.953 -15.8809 444873601 445132801 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 :                                   627.33 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             305.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            818 sec.

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

