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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin1554
RA = 344.953, Dec = -15.8809
tmin = 642124801, tmax = 642384001
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='630056', job_status='RUN', time_executed='2021-09-29 05:03:54.948144', time_epoch_executed='1632917034.95' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='1554'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/630056

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/630056/ft1_4FGL_J2259.8-1552_daily_bin1554.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/630056/ft2_4FGL_J2259.8-1552_daily_bin1554.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/630056/ft1_4FGL_J2259.8-1552_daily_bin1554.fits outfile=/scratch/kocevski/630056/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin1554.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=642124801.0 tmax=642384001.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 4.35
user 4.06
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/630056/ft1_filtered_4FGL_J2259.8-1552_daily_bin1554.fits" evtable="EVENTS" scfile=/scratch/kocevski/630056/ft2_4FGL_J2259.8-1552_daily_bin1554.fits sctable="SC_DATA" outfile=/scratch/kocevski/630056/ltcube_642124801_642384001_4FGL_J2259.8-1552_daily_bin1554.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/630056/ft2_4FGL_J2259.8-1552_daily_bin1554.fits
.....................!
real 11.82
user 11.47
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/630056/ft1_filtered_4FGL_J2259.8-1552_daily_bin1554.fits evtable="EVENTS" scfile=/scratch/kocevski/630056/ft2_4FGL_J2259.8-1552_daily_bin1554.fits sctable="SC_DATA" expcube=/scratch/kocevski/630056/ltcube_642124801_642384001_4FGL_J2259.8-1552_daily_bin1554.fits outfile=/scratch/kocevski/630056/expmap_642124801_642384001_4FGL_J2259.8-1552_daily_bin1554.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/630056/ltcube_642124801_642384001_4FGL_J2259.8-1552_daily_bin1554.fits
.....................!
real 190.35
user 184.99
sys 5.01

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 161 point sources and 0 extended sources

Setting source of interest to:
4FGL J2259.8-1552 @ 344.953 -15.8809

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/630056/ft1_filtered_4FGL_J2259.8-1552_daily_bin1554.fits scfile=/scratch/kocevski/630056/ft2_4FGL_J2259.8-1552_daily_bin1554.fits outfile=/scratch/kocevski/630056/cmap_642124801_642384001_4FGL_J2259.8-1552_daily_bin1554.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/630056/ft1_filtered_4FGL_J2259.8-1552_daily_bin1554.fits scfile=/scratch/kocevski/630056/ft2_4FGL_J2259.8-1552_daily_bin1554.fits outfile=/scratch/kocevski/630056/cmap_HighResolution_642124801_642384001_4FGL_J2259.8-1552_daily_bin1554.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.682       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    35.403       1.0000         .10000E-03   10000.    
     4 'norm      '    8.4369       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .94576E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.832       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .12328E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    53.410       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.153       1.0000         .10000E-03   10000.    
    11 'norm      '    .10159E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    96.168       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9630       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.881       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6405       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10483E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    9.2122       1.0000         .10000E-03   10000.    
    22 'norm      '    .84660       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    62.385       1.0000         .10000E-03   10000.    
    26 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    5.5276       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .85098       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .81186       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=   4460.327     FROM MIGRAD    STATUS=CONVERGED    707 CALLS     3735 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.681        24.891        .50128E-06   -.11806E-04
   2  Prefactor     .10000E-03    21.961        .78760E-07** at limit **
   3  Prefactor     35.417        42.990        .70187E-06   -.17371E-06
   4  norm          8.4339        5.0349       -.14639E-05    .11481E-02
   5  Prefactor     .10003E-03    950.73       -.32651E-04** at limit **
   6  Prefactor     11.831        15.315        .88301E-06   -.62992E-04
   7  norm          .10000E-03    .38554        .98938E-07** at limit **
   8  norm          .10000E-03    2.2559        .15640E-05** at limit **
   9  Prefactor     53.429        45.710       -.80805E-06   -.12520E-03
  10  Prefactor     10.170        29.313       -.13401E-05   -.60768E-03
  11  norm          .10000E-03    .80944        .11914E-05** at limit **
  12  Prefactor     96.204        61.053       -.15265E-05   -.69208E-03
  13  Prefactor     .10000E-03    6.6046       -.56968E-07** at limit **
  14  Prefactor     1.9617        14.660        .24889E-05   -.40585E-04
  15  Prefactor     10.879        11.073        .26779E-06   -.10702E-03
  16  Prefactor     1.6498        41.016        .60370E-05   -.73076E-04
  17  Prefactor     .10000E-03    7.4675       -.16417E-06** at limit **
  18  Prefactor     .10000E-03    17.172        .13006E-06** at limit **
  19  Prefactor     .10000E-03    50.906        .56153E-06** at limit **
  20  Prefactor     .10000E-03    3.5339        .47246E-07** at limit **
  21  norm          9.2127        6.9727        .35450E-06   -.39678E-04
  22  norm          .84404        3.9489        .19997E-05   -.65713E-04
  23  Prefactor     .10000E-03    18.939        .18268E-07** at limit **
  24  Prefactor     .10000E-03    6.4666        .81869E-07** at limit **
  25  Prefactor     62.383        44.489       -.14851E-06   -.69522E-04
  26  norm          .10000E-03    .22453        .15685E-06** at limit **
  27  norm          5.5280        4.6105        .92435E-07   -.17695E-03
  28  Normalizat    .85119        .22463       -.31271E-05   -.11492E-03
  29  Prefactor     .81169        .17337       -.13657E-05   -.15233E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.6812
  Prefactor  = 0.0001
  Prefactor  = 35.4172
  norm       = 8.43388
  Prefactor  = 0.000100028
  Prefactor  = 11.8311
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 53.4293
  Prefactor  = 10.1703
  norm       = 0.0001
  Prefactor  = 96.2041
  Prefactor  = 0.0001
  Prefactor  = 1.96168
  Prefactor  = 10.879
  Prefactor  = 1.64976
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.21265
  norm       = 0.844042
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.3832
  norm       = 0.0001
  norm       = 5.52802
  Normalizat = 0.851191
  Prefactor  = 0.811691
 **********
 **   18 **HESSE 
 **********

 FCN=   4460.327     FROM HESSE     STATUS=OK           551 CALLS     4286 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.681        24.891        .54244E-04   -1.4228    
   2  Prefactor     .10000E-03    21.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     35.417        42.991        .67353E-04   -1.4517    
   4  norm          8.4339        4.9070        .10713E-03   -1.5127    
   5  Prefactor     .10003E-03    947.17        .18177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.831        15.339        .11646E-03   -1.5020    
   7  norm          .10000E-03    .40459        .80923E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.2652        .19229E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     53.429        45.069        .54882E-04   -1.4245    
  10  Prefactor     10.170        27.828        .12575E-03   -1.5070    
  11  norm          .10000E-03    1.1458        .10542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     96.204        60.212        .40987E-04   -1.3743    
  13  Prefactor     .10000E-03    6.6055        .16758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.9617        14.624        .29604E-03   -1.5428    
  15  Prefactor     10.879        11.074        .12146E-03   -1.5048    
  16  Prefactor     1.6498        40.605        .32989E-03   -1.5451    
  17  Prefactor     .10000E-03    7.4775        .17776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    51.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.5452        .12256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          9.2127        6.9684        .13205E-03   -1.5101    
  22  norm          .84404        3.8492        .24095E-03   -1.5524    
  23  Prefactor     .10000E-03    18.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.4741        .16587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     62.383        44.044        .50804E-04   -1.4127    
  26  norm          .10000E-03    .25863        .60616E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          5.5280        4.5311        .12453E-03   -1.5238    
  28  Normalizat    .85119        .26076        .26686E-03   -.98197    
  29  Prefactor     .81169        .20381        .22469E-03   -.99299    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97289e-09
Minuit parameter uncertainties:
  1  24.8961
  2  1.24633e-05
  3  43.0282
  4  4.90721
  5  0.0104705
  6  15.3442
  7  4.26756e-06
  8  3.07958e-05
  9  45.0981
  10  27.8631
  11  2.0365e-05
  12  60.2507
  13  9.81823e-06
  14  10.7154
  15  11.076
  16  16.3813
  17  9.12153e-06
  18  3.83684e-05
  19  0.000221283
  20  5.63433e-06
  21  6.96897
  22  3.60508
  23  1.88464e-06
  24  1.49975e-05
  25  44.0668
  26  1.84429e-07
  27  4.53135
  28  0.261143
  29  0.204001
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.650e+00  1.638e+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:  8.117e-01  2.040e-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.512e-01  2.611e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/630056/likelihoodResults_642124801_642384001_4FGL_J2259.8-1552_daily_bin1554.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) = 4459.75536887
delta logL = 0.572015503938

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4459.65319921
delta logL = 0.674185160788

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28793       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3059       1.0000          .0000       10.000    
     3 'Normalizat'    .74783       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86357       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=   4459.653     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      236 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28094        3.6572        .67569E-02    .16955E-02
   2  Index         4.3160        2.1968        .10532        .14401E-03
   3  Normalizat    .74778        .45262E-01    .63902E-01    .37558E-04
   4  Prefactor     .86365        .37563E-01    .44539E-01    .11442E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.280945
  Index      = 4.31595
  Normalizat = 0.747784
  Prefactor  = 0.863646
 **********
 **   18 **HESSE 
 **********

 FCN=   4459.653     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      269 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28094        10.457        .30428E-04   -1.5602    
   2  Index         4.3160        6.9453        .36557E-02   -.13724    
   3  Normalizat    .74778        .21334        .28269E-03   -1.0204    
   4  Prefactor     .86365        .17370        .21828E-03   -.97423    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.29295e-10
Minuit parameter uncertainties:
  1  3.42801
  2  5.04262
  3  0.213582
  4  0.173807
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/630056': 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) = 4459.65318748
delta logL = 0.674196897445

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  2.809e-01  3.428e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  4.316e+00  5.043e+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:  8.636e-01  1.738e-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:  7.478e-01  2.136e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.50
Ra Dec: 344.953 -15.881
Photon Index (Free Index): 4.32 +/- 5.04
Photon Flux (Free Index): 9.74e-08 +/- 8.75e-08
Energy Flux (Free Index): 1.39e-05 +/- 1.61e-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/630056/cmap_HighResolution_642124801_642384001_4FGL_J2259.8-1552_daily_bin1554.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.61e-03', comment='SUCCESS', energy_flux2='1.39e-05', dlogl='6.74e-01', photon_flux2='9.74e-08', job_status='DONE', time_completed='2021-09-29 05:14:21.886865', photon_index_error2='5.04', photon_index2='4.32', ts='0.01', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='1.61e-05', EG='0.85', time_epoch_completed='1632917661.89', return_code='0', job_id='630056', GAL2='0.86', EG2='0.75', return_code2='102', photon_flux_error2='8.75e-08', ts2='1.50', photon_index='2.13' WHERE bin_id='1554' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 05:14:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 630056: <4FGL_J2259.8-1552_daily_bin1554> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin1554> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep 29 05:00:25 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 05:00:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 05:00:28 2021
Terminated at Wed Sep 29 05:14:22 2021
Results reported at Wed Sep 29 05:14:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin1554 344.953 -15.8809 642124801 642384001 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 :                                   624.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            837 sec.

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

