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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin945
RA = 344.953, Dec = -15.8809
tmin = 484272001, tmax = 484531201
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='627117', job_status='RUN', time_executed='2021-09-29 04:53:09.436650', time_epoch_executed='1632916389.44' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='945'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/627117

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/627117/ft1_4FGL_J2259.8-1552_daily_bin945.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/627117/ft2_4FGL_J2259.8-1552_daily_bin945.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/627117/ft1_4FGL_J2259.8-1552_daily_bin945.fits outfile=/scratch/kocevski/627117/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin945.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=484272001.0 tmax=484531201.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 5.15
user 4.90
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/627117/ft1_filtered_4FGL_J2259.8-1552_daily_bin945.fits" evtable="EVENTS" scfile=/scratch/kocevski/627117/ft2_4FGL_J2259.8-1552_daily_bin945.fits sctable="SC_DATA" outfile=/scratch/kocevski/627117/ltcube_484272001_484531201_4FGL_J2259.8-1552_daily_bin945.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/627117/ft2_4FGL_J2259.8-1552_daily_bin945.fits
.....................!
real 11.76
user 11.42
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/627117/ft1_filtered_4FGL_J2259.8-1552_daily_bin945.fits evtable="EVENTS" scfile=/scratch/kocevski/627117/ft2_4FGL_J2259.8-1552_daily_bin945.fits sctable="SC_DATA" expcube=/scratch/kocevski/627117/ltcube_484272001_484531201_4FGL_J2259.8-1552_daily_bin945.fits outfile=/scratch/kocevski/627117/expmap_484272001_484531201_4FGL_J2259.8-1552_daily_bin945.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/627117/ltcube_484272001_484531201_4FGL_J2259.8-1552_daily_bin945.fits
.....................!
real 190.12
user 184.94
sys 4.80

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/627117/ft1_filtered_4FGL_J2259.8-1552_daily_bin945.fits scfile=/scratch/kocevski/627117/ft2_4FGL_J2259.8-1552_daily_bin945.fits outfile=/scratch/kocevski/627117/cmap_484272001_484531201_4FGL_J2259.8-1552_daily_bin945.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=344.953 yref=-15.8809 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.39
sys 0.13

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/627117/ft1_filtered_4FGL_J2259.8-1552_daily_bin945.fits evtable="EVENTS" scfile=/scratch/kocevski/627117/ft2_4FGL_J2259.8-1552_daily_bin945.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/627117/Model_4FGL_J2259.8-1552_daily_bin945.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/627117/ft1_filtered_4FGL_J2259.8-1552_daily_bin945.fits.....................!
real 57.48
user 56.05
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.645       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.5780       1.0000         .10000E-03   10000.    
     4 'norm      '    15.431       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .24565E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.467       1.0000         .10000E-03   10000.    
     7 'norm      '    6.0638       1.0000         .10000E-03   10000.    
     8 'norm      '    .10307E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .40987       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.754       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.858       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .32061E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .80442E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.8086       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.5006       1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.802       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.516       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.5255       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    1.9232       1.0000         .10000E-03   10000.    
    23 'Prefactor '    38.552       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    31.561       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    9.9847       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0850       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .77785       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=   6868.342     FROM MIGRAD    STATUS=CONVERGED    749 CALLS     3760 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.646        14.595       -.35377E-07    .37486E-04
   2  Prefactor     .10000E-03    40.235       -.92719E-06** at limit **
   3  Prefactor     4.5808        26.823       -.10143E-05   -.30303E-04
   4  norm          15.431        4.5795       -.12046E-06   -.50933E-04
   5  Prefactor     .10002E-03    339.23       -.10030E-04** at limit **
   6  Prefactor     10.467        12.306        .89500E-06    .42364E-03
   7  norm          6.0638        1.2292       -.48389E-07   -.11492E-03
   8  norm          .10000E-03    1.2010       -.61329E-07** at limit **
   9  Prefactor     .10000E-03    55.351        .44825E-05** at limit **
  10  Prefactor     .10000E-03    10.909       -.43936E-07** at limit **
  11  norm          .41005        .86519        .32986E-06    .11945E-02
  12  Prefactor     12.750        24.421        .31386E-06    .19240E-03
  13  Prefactor     10.852        13.560        .19726E-05    .94193E-03
  14  Prefactor     .10143E-03    9.1889       -.40851E-05** at limit **
  15  Prefactor     .10002E-03    6.3940        .48248E-06** at limit **
  16  Prefactor     6.8086        10.880        .14206E-06    .82222E-04
  17  Prefactor     3.4982        9.3455       -.79015E-06    .40673E-03
  18  Prefactor     27.794        38.430        .34446E-06    .28160E-04
  19  Prefactor     16.513        18.738        .38615E-06    .54531E-04
  20  Prefactor     4.5256        5.1285       -.43172E-06   -.19725E-03
  21  norm          .10000E-03    1.2347       -.45429E-07** at limit **
  22  norm          1.9233        1.9956        .60910E-07    .10479E-03
  23  Prefactor     38.575        34.759       -.24406E-05   -.20058E-03
  24  Prefactor     .10000E-03    10.329       -.28354E-06** at limit **
  25  Prefactor     31.565        28.382       -.99978E-06   -.80388E-04
  26  norm          .10000E-03    .19693        .34550E-07** at limit **
  27  norm          9.9843        4.8578       -.49642E-08   -.30101E-04
  28  Normalizat    1.0850        .18451        .18785E-05    .54102E-03
  29  Prefactor     .77775        .14567       -.85801E-06    .47829E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.6456
  Prefactor  = 0.0001
  Prefactor  = 4.58078
  norm       = 15.4314
  Prefactor  = 0.000100023
  Prefactor  = 10.4669
  norm       = 6.06378
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.41005
  Prefactor  = 12.7496
  Prefactor  = 10.8516
  Prefactor  = 0.000101434
  Prefactor  = 0.000100018
  Prefactor  = 6.80864
  Prefactor  = 3.49822
  Prefactor  = 27.7944
  Prefactor  = 16.5133
  Prefactor  = 4.52556
  norm       = 0.0001
  norm       = 1.92329
  Prefactor  = 38.5755
  Prefactor  = 0.0001
  Prefactor  = 31.5653
  norm       = 0.0001
  norm       = 9.98429
  Normalizat = 1.08501
  Prefactor  = 0.777752
 **********
 **   18 **HESSE 
 **********

 FCN=   6868.342     FROM HESSE     STATUS=OK           561 CALLS     4321 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.646        14.599        .95347E-04   -1.4868    
   2  Prefactor     .10000E-03    40.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.5808        26.871        .18813E-03   -1.5280    
   4  norm          15.431        4.5782        .92264E-04   -1.4922    
   5  Prefactor     .10002E-03    345.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     10.467        12.482        .12384E-03   -1.5061    
   7  norm          6.0638        1.2289        .39524E-04   -1.5215    
   8  norm          .10000E-03    3.9029        .17608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    55.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .41005        .76410        .87229E-03   -1.5580    
  12  Prefactor     12.750        24.272        .11216E-03   -1.4994    
  13  Prefactor     10.852        13.504        .12159E-03   -1.5049    
  14  Prefactor     .10143E-03    58.768        .35944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10002E-03    30.325        .40158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.8086        10.872        .15377E-03   -1.5186    
  17  Prefactor     3.4982        9.4544        .21609E-03   -1.5334    
  18  Prefactor     27.794        38.371        .75980E-04   -1.4653    
  19  Prefactor     16.513        18.737        .98552E-04   -1.4895    
  20  Prefactor     4.5256        5.1175        .18550E-03   -1.5282    
  21  norm          .10000E-03    1.2357        .89929E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          1.9233        1.9834        .11415E-03   -1.5431    
  23  Prefactor     38.575        34.829        .64552E-04   -1.4465    
  24  Prefactor     .10000E-03    10.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     31.565        28.365        .71323E-04   -1.4584    
  26  norm          .10000E-03    .31473        .69261E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          9.9843        4.7114        .11943E-03   -1.5076    
  28  Normalizat    1.0850        .21563        .25250E-03   -.90235    
  29  Prefactor     .77775        .16940        .24752E-03   -1.0055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55385e-08
Minuit parameter uncertainties:
  1  14.6019
  2  0.000191971
  3  22.2041
  4  4.57834
  5  0.00563705
  6  12.485
  7  1.22891
  8  1.10157e-06
  9  0.000994657
  10  8.08688e-05
  11  0.764119
  12  24.2905
  13  13.5074
  14  0.0183789
  15  0.00147895
  16  10.8747
  17  9.45844
  18  38.4049
  19  18.7438
  20  5.11797
  21  1.84406e-06
  22  1.9835
  23  34.8475
  24  2.34867e-06
  25  28.3774
  26  6.04776e-07
  27  4.71161
  28  0.215805
  29  0.169516
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  6.809e+00  1.087e+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:  7.778e-01  1.695e-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:  1.085e+00  2.158e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.48
Ra Dec: 344.953 -15.881
Photon Flux Upper Limit: 8.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/627117/likelihoodResults_484272001_484531201_4FGL_J2259.8-1552_daily_bin945.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): 0
logL (Free Index) = 6868.04197098
delta logL = 0.299991927261

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6868.00657406
delta logL = 0.335388845502

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8901       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2193       1.0000          .0000       10.000    
     3 'Normalizat'    1.0405       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80126       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=   6868.007     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      257 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8857        41.769        .75666E-02    .83704E-03
   2  Index         3.2207        3.1942        .10234        .19548E-03
   3  Normalizat    1.0404        .50395E-01    .41245E-01    .11160E-04
   4  Prefactor     .80144        .40941E-01    .43734E-01    .12380E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.88568
  Index      = 3.22066
  Normalizat = 1.04037
  Prefactor  = 0.801438
 **********
 **   18 **HESSE 
 **********

 FCN=   6868.007     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      290 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8857        86.023        .10756E-03   -1.5433    
   2  Index         3.2207        6.5787        .62498E-02   -.36384    
   3  Normalizat    1.0404        .19921        .25701E-03   -.91690    
   4  Prefactor     .80144        .16371        .24416E-03   -.99675    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.80245e-09
Minuit parameter uncertainties:
  1  25.5109
  2  6.3844
  3  0.19935
  4  0.163808
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/627117': 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) = 6868.00657263
delta logL = 0.33539027305

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.886e+00  2.551e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  3.221e+00  6.384e+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.014e-01  1.638e-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:  1.040e+00  1.994e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.18
Ra Dec: 344.953 -15.881
Photon Index (Free Index): 3.22 +/- 6.38
Photon Flux (Free Index): 5.07e-08 +/- 6.60e-08
Energy Flux (Free Index): 9.20e-06 +/- 1.64e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/627117/cmap_HighResolution_484272001_484531201_4FGL_J2259.8-1552_daily_bin945.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.57e-03', comment='SUCCESS', energy_flux2='9.20e-06', dlogl='3.35e-01', photon_flux2='5.07e-08', job_status='DONE', time_completed='2021-09-29 05:06:56.054486', photon_index_error2='6.38', photon_index2='3.22', ts='0.48', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='8.66e-08', energy_flux_error2='1.64e-05', EG='1.09', time_epoch_completed='1632917216.05', return_code='0', job_id='627117', GAL2='0.80', EG2='1.04', return_code2='102', photon_flux_error2='6.60e-08', ts2='1.18', photon_index='2.13' WHERE bin_id='945' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 05:06:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 627117: <4FGL_J2259.8-1552_daily_bin945> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin945> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep 29 04:50:23 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:50:25 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:50:25 2021
Terminated at Wed Sep 29 05:06:56 2021
Results reported at Wed Sep 29 05:06:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin945 344.953 -15.8809 484272001 484531201 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 :                                   822.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            993 sec.

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

