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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin604
RA = 344.953, Dec = -15.8809
tmin = 395884801, tmax = 396144001
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='624398', job_status='RUN', time_executed='2021-09-29 04:43:00.344969', time_epoch_executed='1632915780.34' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='604'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/624398

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/624398/ft1_4FGL_J2259.8-1552_daily_bin604.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/624398/ft2_4FGL_J2259.8-1552_daily_bin604.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/624398/ft1_4FGL_J2259.8-1552_daily_bin604.fits outfile=/scratch/kocevski/624398/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin604.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=395884801.0 tmax=396144001.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.30
user 3.09
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/624398/ft2_4FGL_J2259.8-1552_daily_bin604.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/624398/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin604.fits evtable="EVENTS" outfile="/scratch/kocevski/624398/ft1_filtered_4FGL_J2259.8-1552_daily_bin604.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/624398/ft1_filtered_4FGL_J2259.8-1552_daily_bin604.fits" evtable="EVENTS" scfile=/scratch/kocevski/624398/ft2_4FGL_J2259.8-1552_daily_bin604.fits sctable="SC_DATA" outfile=/scratch/kocevski/624398/ltcube_395884801_396144001_4FGL_J2259.8-1552_daily_bin604.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/624398/ft2_4FGL_J2259.8-1552_daily_bin604.fits
.....................!
real 11.82
user 11.46
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/624398/ft1_filtered_4FGL_J2259.8-1552_daily_bin604.fits evtable="EVENTS" scfile=/scratch/kocevski/624398/ft2_4FGL_J2259.8-1552_daily_bin604.fits sctable="SC_DATA" expcube=/scratch/kocevski/624398/ltcube_395884801_396144001_4FGL_J2259.8-1552_daily_bin604.fits outfile=/scratch/kocevski/624398/expmap_395884801_396144001_4FGL_J2259.8-1552_daily_bin604.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/624398/ltcube_395884801_396144001_4FGL_J2259.8-1552_daily_bin604.fits
.....................!
real 191.90
user 186.46
sys 5.10

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/624398/ft1_filtered_4FGL_J2259.8-1552_daily_bin604.fits scfile=/scratch/kocevski/624398/ft2_4FGL_J2259.8-1552_daily_bin604.fits outfile=/scratch/kocevski/624398/cmap_395884801_396144001_4FGL_J2259.8-1552_daily_bin604.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/624398/ft1_filtered_4FGL_J2259.8-1552_daily_bin604.fits scfile=/scratch/kocevski/624398/ft2_4FGL_J2259.8-1552_daily_bin604.fits outfile=/scratch/kocevski/624398/cmap_HighResolution_395884801_396144001_4FGL_J2259.8-1552_daily_bin604.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=344.953 yref=-15.8809 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.470       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.1906       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.7834       1.0000         .10000E-03   10000.    
     5 'Prefactor '    190.41       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.813       1.0000         .10000E-03   10000.    
     7 'norm      '    .74293       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10520E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .19085E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .46169       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.0971       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .14615E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .30504       1.0000         .10000E-03   10000.    
    21 'norm      '    .26103E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    10.168       1.0000         .10000E-03   10000.    
    23 'Prefactor '    141.87       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10500E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    8.6419       1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .65642       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .91153       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=   5808.288     FROM MIGRAD    STATUS=CONVERGED    751 CALLS     3852 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.464        19.950       -.32512E-06   -.44917E-04
   2  Prefactor     5.3028        237.36        .24121E-04    .44364E-04
   3  Prefactor     .10000E-03    26.736       -.45916E-06** at limit **
   4  norm          5.7866        5.1779       -.23788E-06   -.85352E-04
   5  Prefactor     190.35        126.22       -.24405E-05   -.61212E-04
   6  Prefactor     13.811        12.475        .17594E-06   -.16007E-04
   7  norm          .74318        .92000       -.22866E-07   -.30680E-03
   8  norm          .10000E-03    1.0015        .68052E-07** at limit **
   9  Prefactor     .10000E-03    103.67       -.26493E-06** at limit **
  10  Prefactor     .10004E-03    37.964        .10624E-04** at limit **
  11  norm          .46312        .65267       -.13575E-07   -.16088E-03
  12  Prefactor     .10000E-03    12.822        .62222E-06** at limit **
  13  Prefactor     8.0960        8.6678        .49698E-07   -.31605E-05
  14  Prefactor     .10000E-03    5.0014        .10964E-06** at limit **
  15  Prefactor     .10000E-03    2.9586        .32212E-07** at limit **
  16  Prefactor     .10000E-03    8.1403        .20372E-05** at limit **
  17  Prefactor     .10000E-03    3.3954        .53617E-07** at limit **
  18  Prefactor     .10000E-03    24.335        .78768E-06** at limit **
  19  Prefactor     .10000E-03    25.920       -.32842E-09** at limit **
  20  Prefactor     .32740        9.7417        .29017E-05    .80454E-03
  21  norm          .10011E-03    24.565       -.83959E-05** at limit **
  22  norm          10.167        3.8620        .34358E-07   -.21328E-04
  23  Prefactor     141.89        67.076        .11120E-05    .48347E-04
  24  Prefactor     .10000E-03    13.975       -.71412E-06** at limit **
  25  Prefactor     .10000E-03    11.787       -.13657E-06** at limit **
  26  norm          8.6416        1.1858       -.37773E-08    .87306E-04
  27  norm          .10000E-03    2.1524        .94774E-08** at limit **
  28  Normalizat    .65702        .18973       -.16410E-05    .24597E-04
  29  Prefactor     .91100        .15546        .42997E-06   -.18448E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.4635
  Prefactor  = 5.30278
  Prefactor  = 0.0001
  norm       = 5.78663
  Prefactor  = 190.347
  Prefactor  = 13.811
  norm       = 0.74318
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100036
  norm       = 0.463117
  Prefactor  = 0.0001
  Prefactor  = 8.09601
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.327399
  norm       = 0.000100105
  norm       = 10.167
  Prefactor  = 141.894
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.64161
  norm       = 0.0001
  Normalizat = 0.657025
  Prefactor  = 0.911
 **********
 **   18 **HESSE 
 **********

 FCN=   5808.288     FROM HESSE     STATUS=OK           563 CALLS     4415 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.464        19.946        .80979E-04   -1.4718    
   2  Prefactor     5.3028        248.76        .17645E-03   -1.5247    
   3  Prefactor     .10000E-03    26.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.7866        5.2112        .72287E-03   -1.5227    
   5  Prefactor     190.35        125.96        .14634E-03   -1.2940    
   6  Prefactor     13.811        12.477        .10777E-03   -1.4965    
   7  norm          .74318        .87879        .75895E-03   -1.5536    
   8  norm          .10000E-03    1.0126        .74458E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    104.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10004E-03    83.993        .34942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .46312        .66495        .79979E-03   -1.5572    
  12  Prefactor     .10000E-03    12.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.0960        8.6668        .14090E-03   -1.5139    
  14  Prefactor     .10000E-03    5.0287        .16641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.9620        .12803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    61.070        .38862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.4128        .13714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    24.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    25.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .32740        24.449        .34777E-02   -1.5594    
  21  norm          .10011E-03    54.651        .24418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          10.167        3.8645        .87979E-04   -1.5070    
  23  Prefactor     141.89        67.178        .16912E-03   -1.3320    
  24  Prefactor     .10000E-03    14.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    11.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          8.6416        1.1856        .29282E-04   -1.5120    
  27  norm          .10000E-03    2.1584        .10912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .65702        .21463        .29854E-03   -1.0561    
  29  Prefactor     .91100        .17880        .21583E-03   -.95758    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24326e-08
Minuit parameter uncertainties:
  1  19.9516
  2  72.9634
  3  2.93601e-05
  4  5.21163
  5  126.14
  6  12.4798
  7  0.878805
  8  2.86761e-06
  9  0.000242394
  10  0.00349
  11  0.664963
  12  3.379e-05
  13  8.66809
  14  1.43704e-05
  15  2.20369e-06
  16  8.5867e-05
  17  5.97057e-06
  18  0.00016976
  19  6.69745e-06
  20  5.66004
  21  0.00480582
  22  3.86462
  23  67.2143
  24  7.20116e-05
  25  2.08585e-06
  26  1.18556
  27  7.67341e-07
  28  0.214908
  29  0.178918
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  8.587e-05  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:  9.110e-01  1.789e-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:  6.570e-01  2.149e-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.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/624398/likelihoodResults_395884801_396144001_4FGL_J2259.8-1552_daily_bin604.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) = 5808.28781135
delta logL = -7.66958555687e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5808.28772474
delta logL = 9.92240165942e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .25601E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2627       1.0000          .0000       10.000    
     3 'Normalizat'    .65702       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91104       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=   5808.127     FROM MIGRAD    STATUS=CONVERGED    267 CALLS      446 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .35630E-01    .25675E-03** at limit **
   2  Index         6.9791        8.4742        .79171E-02    .42987E-04
   3  Normalizat    .62038        .70639E-01    .30697E-03    .29809E-03
   4  Prefactor     .93135        .59125E-01    .21377E-03    .25121E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 6.97908
  Normalizat = 0.620381
  Prefactor  = 0.931349
 **********
 **   18 **HESSE 
 **********

 FCN=   5808.127     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      481 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .25774E-01    .30525E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.9791        8.4577        .31668E-03    .40696    
   3  Normalizat    .62038        .66460E-01    .12279E-04   -1.0713    
   4  Prefactor     .93135        .55905E-01    .42755E-04   -.95054    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.44285e-10
Minuit parameter uncertainties:
  1  8.03812e-07
  2  8.34708
  3  0.0664684
  4  0.0559083
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/624398': 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) = 5808.12693476
delta logL = 0.160799894824

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  8.038e-07  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  6.979e+00  8.347e+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:  9.313e-01  5.591e-02  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:  6.204e-01  6.647e-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/624398/cmap_HighResolution_395884801_396144001_4FGL_J2259.8-1552_daily_bin604.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.55e-03', job_status='DONE', photon_flux_upper_limit='7.33e-08', time_completed='2021-09-29 04:55:19.584931', job_id='624398', GAL2='0.93', fit_tolerance='1e-08', EG2='0.62', EG='0.66', time_epoch_completed='1632916519.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.61e-01', ts2='0.36', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='604' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:55:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 624398: <4FGL_J2259.8-1552_daily_bin604> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin604 344.953 -15.8809 395884801 396144001 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 :                                   738.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            901 sec.

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

