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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin207
RA = 344.953, Dec = -15.8809
tmin = 292982401, tmax = 293241601
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='621600', job_status='RUN', time_executed='2021-09-29 04:33:54.608743', time_epoch_executed='1632915234.61' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='207'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/621600

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/621600/ft1_4FGL_J2259.8-1552_daily_bin207.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/621600/ft2_4FGL_J2259.8-1552_daily_bin207.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/621600/ft1_4FGL_J2259.8-1552_daily_bin207.fits outfile=/scratch/kocevski/621600/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin207.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=292982401.0 tmax=293241601.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.66
user 3.42
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/621600/ft1_filtered_4FGL_J2259.8-1552_daily_bin207.fits" evtable="EVENTS" scfile=/scratch/kocevski/621600/ft2_4FGL_J2259.8-1552_daily_bin207.fits sctable="SC_DATA" outfile=/scratch/kocevski/621600/ltcube_292982401_293241601_4FGL_J2259.8-1552_daily_bin207.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/621600/ft2_4FGL_J2259.8-1552_daily_bin207.fits
.....................!
real 12.04
user 11.71
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/621600/ft1_filtered_4FGL_J2259.8-1552_daily_bin207.fits evtable="EVENTS" scfile=/scratch/kocevski/621600/ft2_4FGL_J2259.8-1552_daily_bin207.fits sctable="SC_DATA" expcube=/scratch/kocevski/621600/ltcube_292982401_293241601_4FGL_J2259.8-1552_daily_bin207.fits outfile=/scratch/kocevski/621600/expmap_292982401_293241601_4FGL_J2259.8-1552_daily_bin207.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/621600/ltcube_292982401_293241601_4FGL_J2259.8-1552_daily_bin207.fits
.....................!
real 190.93
user 185.43
sys 5.14

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/621600/ft1_filtered_4FGL_J2259.8-1552_daily_bin207.fits scfile=/scratch/kocevski/621600/ft2_4FGL_J2259.8-1552_daily_bin207.fits outfile=/scratch/kocevski/621600/cmap_292982401_293241601_4FGL_J2259.8-1552_daily_bin207.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.59
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/621600/ft1_filtered_4FGL_J2259.8-1552_daily_bin207.fits scfile=/scratch/kocevski/621600/ft2_4FGL_J2259.8-1552_daily_bin207.fits outfile=/scratch/kocevski/621600/cmap_HighResolution_292982401_293241601_4FGL_J2259.8-1552_daily_bin207.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/621600/ft1_filtered_4FGL_J2259.8-1552_daily_bin207.fits evtable="EVENTS" scfile=/scratch/kocevski/621600/ft2_4FGL_J2259.8-1552_daily_bin207.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/621600/Model_4FGL_J2259.8-1552_daily_bin207.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/621600/ft1_filtered_4FGL_J2259.8-1552_daily_bin207.fits.....................!
real 45.98
user 44.33
sys 1.38

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.971       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .59243E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    16.099       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11962E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.2713       1.0000         .10000E-03   10000.    
     7 'norm      '    8.9009       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .20808E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11433E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.6467       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.874       1.0000         .10000E-03   10000.    
    16 'Prefactor '    34.104       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .66683E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.589       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    9.3582       1.0000         .10000E-03   10000.    
    22 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .23715E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10339E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    4.0914       1.0000         .10000E-03   10000.    
    27 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .89470       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .99596       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=   4753.892     FROM MIGRAD    STATUS=CONVERGED    744 CALLS     3719 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.999        26.365       -.14723E-04   -.49539E-04
   2  Prefactor     .10000E-03    423.93        .72440E-04** at limit **
   3  Prefactor     .10000E-03    26.271       -.49209E-05** at limit **
   4  norm          16.110        6.5948       -.29995E-07   -.26350E-03
   5  Prefactor     .10000E-03    48.312        .17879E-05** at limit **
   6  Prefactor     6.2819        14.276       -.15986E-05   -.17283E-04
   7  norm          8.9023        2.0046        .10522E-06    .43254E-04
   8  norm          .10000E-03    2.3941        .75509E-07** at limit **
   9  Prefactor     .10000E-03    79.528       -.67929E-05** at limit **
  10  Prefactor     .10000E-03    19.386       -.26604E-05** at limit **
  11  norm          .10000E-03    .54191       -.11600E-07** at limit **
  12  Prefactor     .10000E-03    22.058       -.64657E-06** at limit **
  13  Prefactor     .10000E-03    11.208        .14655E-06** at limit **
  14  Prefactor     3.6512        13.400       -.25359E-05   -.82278E-04
  15  Prefactor     16.872        13.075        .38166E-07    .63921E-04
  16  Prefactor     34.100        20.994       -.74356E-06    .15317E-03
  17  Prefactor     .10000E-03    5.6107        .12002E-06** at limit **
  18  Prefactor     .11498E-03    51.302       -.97156E-05** at limit **
  19  Prefactor     11.543        37.644        .25994E-04    .15443E-03
  20  Prefactor     .10000E-03    9.0560        .24126E-06** at limit **
  21  norm          9.3597        6.2558       -.15035E-06    .51253E-03
  22  norm          .10000E-03    1.5511       -.73935E-07** at limit **
  23  Prefactor     .10007E-03    683.56       -.16538E-03** at limit **
  24  Prefactor     .10000E-03    20.825        .40538E-05** at limit **
  25  Prefactor     .10000E-03    27.300        .30944E-05** at limit **
  26  norm          4.0908        1.1324       -.27275E-07    .22577E-02
  27  norm          .10000E-03    3.3120       -.20278E-07** at limit **
  28  Normalizat    .89398        .24758        .33568E-05    .61234E-03
  29  Prefactor     .99640        .19591       -.48886E-06    .63693E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.9987
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 16.1103
  Prefactor  = 0.0001
  Prefactor  = 6.28187
  norm       = 8.90231
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.65119
  Prefactor  = 16.872
  Prefactor  = 34.1003
  Prefactor  = 0.0001
  Prefactor  = 0.000114981
  Prefactor  = 11.5431
  Prefactor  = 0.0001
  norm       = 9.3597
  norm       = 0.0001
  Prefactor  = 0.00010007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.0908
  norm       = 0.0001
  Normalizat = 0.893976
  Prefactor  = 0.9964
 **********
 **   18 **HESSE 
 **********

 FCN=   4753.892     FROM HESSE     STATUS=OK           545 CALLS     4264 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.999        26.420        .87465E-04   -1.4791    
   2  Prefactor     .10000E-03    426.18        .18959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    26.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          16.110        6.5961        .99822E-04   -1.4905    
   5  Prefactor     .10000E-03    48.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.2819        14.293        .16029E-03   -1.5207    
   7  norm          8.9023        2.0012        .43754E-04   -1.5111    
   8  norm          .10000E-03    2.4865        .20814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    79.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    19.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .98744        .97534E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    22.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.6512        13.445        .21154E-03   -1.5326    
  15  Prefactor     16.872        13.071        .97500E-04   -1.4886    
  16  Prefactor     34.100        20.969        .68619E-04   -1.4539    
  17  Prefactor     .10000E-03    5.6126        .15933E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .11498E-03    50.969        .14348       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.543        37.862        .11768E-03   -1.5028    
  20  Prefactor     .10000E-03    9.1614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          9.3597        6.2532        .13101E-03   -1.5096    
  22  norm          .10000E-03    1.5615        .83841E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10007E-03    702.62        .20070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    20.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    27.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.0908        1.1349        .37039E-04   -1.5303    
  27  norm          .10000E-03    3.3173        .12246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .89398        .29406        .31010E-03   -.96672    
  29  Prefactor     .99640        .23189        .24353E-03   -.92850    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.6558e-09
Minuit parameter uncertainties:
  1  26.4351
  2  0.00206606
  3  1.7845e-05
  4  6.59638
  5  7.19848e-06
  6  14.3005
  7  2.00117
  8  2.88019e-06
  9  0.00011718
  10  7.89807e-06
  11  3.16045e-06
  12  1.06052e-05
  13  2.97657e-05
  14  13.4566
  15  13.0733
  16  20.9732
  17  1.50828e-05
  18  0.0553123
  19  37.9413
  20  6.519e-05
  21  6.25368
  22  4.9363e-06
  23  0.0141575
  24  0.000132557
  25  3.09282e-05
  26  1.13489
  27  2.77356e-06
  28  0.294587
  29  0.232122
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  3.410e+01  2.097e+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:  9.964e-01  2.321e-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:  8.940e-01  2.946e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.58
Ra Dec: 344.953 -15.881
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 9.50e-08 +/- 5.84e-08
Energy Flux (Fixed Index): 4.87e-05 +/- 3.00e-05

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) = 4753.57130953
delta logL = 0.320857970321

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4753.54216786
delta logL = 0.349999636858

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.632       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5501       1.0000          .0000       10.000    
     3 'Normalizat'    .83777       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0247       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=   4753.542     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      271 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.628        23.239        .84197E-04    .40413E-03
   2  Index         2.5501        .58946        .39195E-02    .16170E-03
   3  Normalizat    .83747        .28802        .31916E-03   -.42193E-03
   4  Prefactor     1.0251        .23297        .24037E-03   -.85223E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.6282
  Index      = 2.55008
  Normalizat = 0.837468
  Prefactor  = 1.02509
 **********
 **   18 **HESSE 
 **********

 FCN=   4753.542     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.628        21.038        .33679E-05   -1.4756    
   2  Index         2.5501        .53298        .15678E-03   -.51207    
   3  Normalizat    .83747        .28661        .63832E-04   -.98694    
   4  Prefactor     1.0251        .23210        .48075E-04   -.91898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40423e-09
Minuit parameter uncertainties:
  1  21.045
  2  0.534316
  3  0.287135
  4  0.232331
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/621600': 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) = 4753.54216645
delta logL = 0.350001042786

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  2.263e+01  2.104e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.550e+00  5.343e-01  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.025e+00  2.323e-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:  8.375e-01  2.871e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.23
Ra Dec: 344.953 -15.881
Photon Index (Free Index): 2.55 +/- 0.53
Photon Flux (Free Index): 1.42e-07 +/- 9.24e-08
Energy Flux (Free Index): 3.92e-05 +/- 2.28e-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/621600/cmap_HighResolution_292982401_293241601_4FGL_J2259.8-1552_daily_bin207.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.50e-08', energy_flux2='3.92e-05', photon_flux_error='5.84e-08', dlogl='3.50e-01', energy_flux='4.87e-05', photon_flux2='1.42e-07', job_status='DONE', time_completed='2021-09-29 04:43:39.105355', photon_index_error2='0.53', photon_index2='2.55', ts='4.58', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='2.28e-05', EG='0.89', time_epoch_completed='1632915819.11', return_code='0', job_id='621600', GAL2='1.03', EG2='0.84', return_code2='0', energy_flux_error='3.00e-05', photon_flux_error2='9.24e-08', ts2='5.23', photon_index='2.13' WHERE bin_id='207' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:43:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 621600: <4FGL_J2259.8-1552_daily_bin207> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin207> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep 29 04:30:34 2021
Job was executed on host(s) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:30:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 04:30:36 2021
Terminated at Wed Sep 29 04:43:39 2021
Results reported at Wed Sep 29 04:43:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin207 344.953 -15.8809 292982401 293241601 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 :                                   582.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             217.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            785 sec.

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

