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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin1306
RA = 344.953, Dec = -15.8809
tmin = 577843201, tmax = 578102401
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='628655', job_status='RUN', time_executed='2021-09-29 04:56:03.179723', time_epoch_executed='1632916563.18' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='1306'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/628655

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/628655/ft1_4FGL_J2259.8-1552_daily_bin1306.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/628655/ft2_4FGL_J2259.8-1552_daily_bin1306.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/628655/ft1_4FGL_J2259.8-1552_daily_bin1306.fits outfile=/scratch/kocevski/628655/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin1306.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=577843201.0 tmax=578102401.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.26
user 3.03
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/628655/ft1_filtered_4FGL_J2259.8-1552_daily_bin1306.fits" evtable="EVENTS" scfile=/scratch/kocevski/628655/ft2_4FGL_J2259.8-1552_daily_bin1306.fits sctable="SC_DATA" outfile=/scratch/kocevski/628655/ltcube_577843201_578102401_4FGL_J2259.8-1552_daily_bin1306.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/628655/ft2_4FGL_J2259.8-1552_daily_bin1306.fits
.....................!
real 13.48
user 13.12
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/628655/ft1_filtered_4FGL_J2259.8-1552_daily_bin1306.fits evtable="EVENTS" scfile=/scratch/kocevski/628655/ft2_4FGL_J2259.8-1552_daily_bin1306.fits sctable="SC_DATA" expcube=/scratch/kocevski/628655/ltcube_577843201_578102401_4FGL_J2259.8-1552_daily_bin1306.fits outfile=/scratch/kocevski/628655/expmap_577843201_578102401_4FGL_J2259.8-1552_daily_bin1306.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/628655/ltcube_577843201_578102401_4FGL_J2259.8-1552_daily_bin1306.fits
.....................!
real 190.28
user 184.80
sys 5.11

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/628655/ft1_filtered_4FGL_J2259.8-1552_daily_bin1306.fits scfile=/scratch/kocevski/628655/ft2_4FGL_J2259.8-1552_daily_bin1306.fits outfile=/scratch/kocevski/628655/cmap_577843201_578102401_4FGL_J2259.8-1552_daily_bin1306.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/628655/ft1_filtered_4FGL_J2259.8-1552_daily_bin1306.fits scfile=/scratch/kocevski/628655/ft2_4FGL_J2259.8-1552_daily_bin1306.fits outfile=/scratch/kocevski/628655/cmap_HighResolution_577843201_578102401_4FGL_J2259.8-1552_daily_bin1306.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/628655/ft1_filtered_4FGL_J2259.8-1552_daily_bin1306.fits evtable="EVENTS" scfile=/scratch/kocevski/628655/ft2_4FGL_J2259.8-1552_daily_bin1306.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/628655/Model_4FGL_J2259.8-1552_daily_bin1306.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/628655/ft1_filtered_4FGL_J2259.8-1552_daily_bin1306.fits.....................!
real 48.23
user 46.90
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    134.11       1.0000         .10000E-03   10000.    
     3 'Prefactor '    103.72       1.0000         .10000E-03   10000.    
     4 'norm      '    1.8813       1.0000         .10000E-03   10000.    
     5 'Prefactor '    129.50       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10494E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.3985       1.0000         .10000E-03   10000.    
     8 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.1946       1.0000         .10000E-03   10000.    
    10 'Prefactor '    71.416       1.0000         .10000E-03   10000.    
    11 'norm      '    .10181E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.470       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    36.251       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.833       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.927       1.0000         .10000E-03   10000.    
    21 'norm      '    7.9558       1.0000         .10000E-03   10000.    
    22 'norm      '    5.1096       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.548       1.0000         .10000E-03   10000.    
    25 'Prefactor '    17.715       1.0000         .10000E-03   10000.    
    26 'norm      '    .11973       1.0000         .10000E-03   10000.    
    27 'norm      '    15.442       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .91636       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .87815       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=   5477.333     FROM MIGRAD    STATUS=CONVERGED    697 CALLS     3738 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.539        .24171E-06** at limit **
   2  Prefactor     134.09        85.565        .87959E-07   -.51325E-04
   3  Prefactor     103.68        73.716       -.61109E-06   -.41023E-04
   4  norm          1.8832        3.8248       -.31563E-06    .50184E-03
   5  Prefactor     129.28        114.79       -.16824E-05   -.20631E-03
   6  Prefactor     .10000E-03    20.319       -.13115E-05** at limit **
   7  norm          2.3985        1.2029       -.13923E-07    .64106E-03
   8  norm          .10000E-03    .64599       -.16238E-06** at limit **
   9  Prefactor     8.1600        69.483       -.15940E-05    .21827E-04
  10  Prefactor     71.391        25.370        .41519E-05    .85771E-03
  11  norm          .10001E-03    1.0506       -.29559E-05** at limit **
  12  Prefactor     21.447        40.214        .28143E-05    .19849E-03
  13  Prefactor     .10000E-03    5.8063        .34850E-07** at limit **
  14  Prefactor     36.259        17.134       -.16470E-06    .38055E-03
  15  Prefactor     11.832        11.375        .89004E-07    .10629E-03
  16  Prefactor     .10000E-03    12.182        .73959E-07** at limit **
  17  Prefactor     .10000E-03    8.6603        .26093E-06** at limit **
  18  Prefactor     .10000E-03    24.811        .22929E-06** at limit **
  19  Prefactor     .10000E-03    11.294        .19269E-06** at limit **
  20  Prefactor     11.927        12.433       -.24489E-06   -.99609E-05
  21  norm          7.9555        7.8791        .35311E-06   -.53056E-03
  22  norm          5.1095        3.1711       -.26874E-07    .65352E-04
  23  Prefactor     .10000E-03    37.990        .18575E-06** at limit **
  24  Prefactor     11.547        13.705       -.20261E-06    .55487E-04
  25  Prefactor     17.714        24.753       -.90204E-07    .16022E-04
  26  norm          .11964        .40405        .18501E-06   -.17017E-02
  27  norm          15.443        6.9487       -.17063E-06    .11978E-03
  28  Normalizat    .91633        .21809        .20655E-06    .20556E-03
  29  Prefactor     .87823        .17321        .21786E-06    .43467E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 134.086
  Prefactor  = 103.678
  norm       = 1.88324
  Prefactor  = 129.278
  Prefactor  = 0.000100003
  norm       = 2.3985
  norm       = 0.0001
  Prefactor  = 8.16002
  Prefactor  = 71.3913
  norm       = 0.000100008
  Prefactor  = 21.447
  Prefactor  = 0.0001
  Prefactor  = 36.2594
  Prefactor  = 11.8321
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.9269
  norm       = 7.95549
  norm       = 5.10953
  Prefactor  = 0.0001
  Prefactor  = 11.5473
  Prefactor  = 17.7135
  norm       = 0.119641
  norm       = 15.4434
  Normalizat = 0.916325
  Prefactor  = 0.878233
 **********
 **   18 **HESSE 
 **********

 FCN=   5477.333     FROM HESSE     STATUS=OK           555 CALLS     4293 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     134.09        85.388        .17387E-03   -1.3387    
   3  Prefactor     103.68        73.703        .19741E-03   -1.3668    
   4  norm          1.8832        3.7806        .19107E-03   -1.5433    
   5  Prefactor     129.28        114.52        .17690E-03   -1.3429    
   6  Prefactor     .10000E-03    20.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.3985        1.1982        .53771E-04   -1.5398    
   8  norm          .10000E-03    .64563        .58000E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.1600        69.608        .14005E-03   -1.5137    
  10  Prefactor     71.391        25.910        .47504E-04   -1.4016    
  11  norm          .10001E-03    3.6948        .12567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     21.447        40.179        .86443E-04   -1.4781    
  13  Prefactor     .10000E-03    5.8072        .17414E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     36.259        17.175        .66563E-04   -1.4503    
  15  Prefactor     11.832        11.385        .11645E-03   -1.5020    
  16  Prefactor     .10000E-03    12.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.6774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    24.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.927        12.438        .11599E-03   -1.5017    
  21  norm          7.9555        7.8752        .71077E-03   -1.5144    
  22  norm          5.1095        3.1698        .99514E-04   -1.5256    
  23  Prefactor     .10000E-03    38.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     11.547        13.712        .11789E-03   -1.5028    
  25  Prefactor     17.714        24.763        .95160E-04   -1.4866    
  26  norm          .11964        .43475        .75827E-03   -1.5639    
  27  norm          15.443        6.9380        .10192E-03   -1.4922    
  28  Normalizat    .91633        .25785        .28896E-03   -.95889    
  29  Prefactor     .87823        .20459        .24499E-03   -.96906    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.50098e-09
Minuit parameter uncertainties:
  1  7.71256e-05
  2  85.467
  3  73.7679
  4  3.78103
  5  114.715
  6  0.000520253
  7  1.19823
  8  1.56259e-05
  9  47.7405
  10  25.9143
  11  0.000336124
  12  40.2301
  13  5.01773e-06
  14  17.1774
  15  11.3866
  16  0.000157125
  17  8.5468e-05
  18  1.64858e-05
  19  1.44494e-06
  20  12.4405
  21  7.87626
  22  3.16992
  23  0.000201235
  24  13.7157
  25  24.7771
  26  0.43476
  27  6.93835
  28  0.258199
  29  0.204767
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.571e-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:  8.782e-01  2.048e-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:  9.163e-01  2.582e-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: 7.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/628655/likelihoodResults_577843201_578102401_4FGL_J2259.8-1552_daily_bin1306.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) = 5477.33312553
delta logL = -0.000385141354855

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5477.33274092
delta logL = -5.30648321728e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10611E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1203       1.0000          .0000       10.000    
     3 'Normalizat'    .91651       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87809       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=   5477.333     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.958        .90712E-02** at limit **
   2  Index         2.1106        7.3248        .50000        .58593E-05
   3  Normalizat    .91633        .48455E-02    .65326E-01    .25319E-04
   4  Prefactor     .87823        .40524E-02    .44725E-01    .22926E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.11056
  Normalizat = 0.916328
  Prefactor  = 0.878229
 **********
 **   18 **HESSE 
 **********

 FCN=   5477.333     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      241 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    66.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1106        5.0814        .50000       -.61614    
   3  Normalizat    .91633        .11843E-01    .28896E-03   -.95889    
   4  Prefactor     .87823        .99139E-02    .24499E-03   -.96906    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.77035e-08
Minuit parameter uncertainties:
  1  5.62011e-05
  2  153.674
  3  0.0118428
  4  0.00991388
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/628655': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5477.33274035
delta logL = 3.43497958966e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  8.782e-01  9.914e-03  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:  9.163e-01  1.184e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/628655/cmap_HighResolution_577843201_578102401_4FGL_J2259.8-1552_daily_bin1306.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.51e-03', job_status='DONE', photon_flux_upper_limit='7.27e-08', time_completed='2021-09-29 05:08:08.072828', job_id='628655', GAL2='0.88', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1632917288.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='3.43e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1306' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 05:08:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 628655: <4FGL_J2259.8-1552_daily_bin1306> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin1306 344.953 -15.8809 577843201 578102401 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 :                                   701.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            765 sec.

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

