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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin612
RA = 344.953, Dec = -15.8809
tmin = 397958401, tmax = 398217601
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='624409', job_status='RUN', time_executed='2021-09-29 04:42:37.804228', time_epoch_executed='1632915757.8' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='612'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/624409

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/624409/ft1_4FGL_J2259.8-1552_daily_bin612.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/624409/ft2_4FGL_J2259.8-1552_daily_bin612.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/624409/ft1_4FGL_J2259.8-1552_daily_bin612.fits outfile=/scratch/kocevski/624409/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin612.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=397958401.0 tmax=398217601.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.53
user 3.34
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/624409/ft2_4FGL_J2259.8-1552_daily_bin612.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/624409/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin612.fits evtable="EVENTS" outfile="/scratch/kocevski/624409/ft1_filtered_4FGL_J2259.8-1552_daily_bin612.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.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/624409/ft1_filtered_4FGL_J2259.8-1552_daily_bin612.fits" evtable="EVENTS" scfile=/scratch/kocevski/624409/ft2_4FGL_J2259.8-1552_daily_bin612.fits sctable="SC_DATA" outfile=/scratch/kocevski/624409/ltcube_397958401_398217601_4FGL_J2259.8-1552_daily_bin612.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/624409/ft2_4FGL_J2259.8-1552_daily_bin612.fits
.....................!
real 11.83
user 11.47
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/624409/ft1_filtered_4FGL_J2259.8-1552_daily_bin612.fits evtable="EVENTS" scfile=/scratch/kocevski/624409/ft2_4FGL_J2259.8-1552_daily_bin612.fits sctable="SC_DATA" expcube=/scratch/kocevski/624409/ltcube_397958401_398217601_4FGL_J2259.8-1552_daily_bin612.fits outfile=/scratch/kocevski/624409/expmap_397958401_398217601_4FGL_J2259.8-1552_daily_bin612.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/624409/ltcube_397958401_398217601_4FGL_J2259.8-1552_daily_bin612.fits
.....................!
real 189.91
user 183.84
sys 5.77

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/624409/ft1_filtered_4FGL_J2259.8-1552_daily_bin612.fits scfile=/scratch/kocevski/624409/ft2_4FGL_J2259.8-1552_daily_bin612.fits outfile=/scratch/kocevski/624409/cmap_397958401_398217601_4FGL_J2259.8-1552_daily_bin612.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.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    35.131       1.0000         .10000E-03   10000.    
     4 'norm      '    .18608E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.6463       1.0000         .10000E-03   10000.    
     7 'norm      '    2.2758       1.0000         .10000E-03   10000.    
     8 'norm      '    1.6383       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.826       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .82228       1.0000         .10000E-03   10000.    
    18 'Prefactor '    33.581       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.131       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    21.624       1.0000         .10000E-03   10000.    
    25 'Prefactor '    68.705       1.0000         .10000E-03   10000.    
    26 'norm      '    2.9163       1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2167       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .57753       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=   5511.395     FROM MIGRAD    STATUS=CONVERGED    741 CALLS     3738 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10026E-03    16.533       -.12324E-05** at limit **
   2  Prefactor     .10000E-03    48.144       -.57026E-06** at limit **
   3  Prefactor     35.175        84.567        .10042E-05    .70911E-04
   4  norm          .31215E-01    2.3570       -.11028E-05    .12615E-02
   5  Prefactor     .10000E-03    52.474       -.59739E-07** at limit **
   6  Prefactor     6.6475        7.0405        .10681E-06   -.47215E-05
   7  norm          2.2754        1.2078        .58349E-07    .63817E-03
   8  norm          1.6384        1.4975       -.18097E-07   -.88984E-04
   9  Prefactor     .10000E-03    19.878       -.20239E-06** at limit **
  10  Prefactor     .10000E-03    4.5450       -.83201E-07** at limit **
  11  norm          .10000E-03    .34117       -.70539E-07** at limit **
  12  Prefactor     19.814        16.520        .24062E-06    .67123E-04
  13  Prefactor     .10000E-03    3.5382       -.55147E-07** at limit **
  14  Prefactor     .10000E-03    2.8159       -.13148E-06** at limit **
  15  Prefactor     .10000E-03    3.0883       -.42127E-07** at limit **
  16  Prefactor     .10000E-03    7.5872       -.24548E-06** at limit **
  17  Prefactor     .82369        4.5217        .27951E-05    .41801E-03
  18  Prefactor     33.618        56.877        .13402E-05    .41414E-04
  19  Prefactor     10.144        23.880        .26925E-06    .10825E-04
  20  Prefactor     .10000E-03    5.9345        .20383E-05** at limit **
  21  norm          .10000E-03    2.2943        .47904E-06** at limit **
  22  norm          .10000E-03    1.5654       -.30202E-07** at limit **
  23  Prefactor     .10000E-03    27.611       -.29636E-07** at limit **
  24  Prefactor     21.629        16.412        .27237E-06   -.22115E-05
  25  Prefactor     68.707        45.113        .52205E-06    .74423E-05
  26  norm          2.9164        .80854        .21821E-07    .41444E-04
  27  norm          .10000E-03    4.4678       -.76675E-07** at limit **
  28  Normalizat    1.2166        .20739       -.31099E-05    .20557E-03
  29  Prefactor     .57740        .15979        .28044E-05    .13896E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100259
  Prefactor  = 0.0001
  Prefactor  = 35.1754
  norm       = 0.0312148
  Prefactor  = 0.0001
  Prefactor  = 6.64747
  norm       = 2.27535
  norm       = 1.63839
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.8141
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.823691
  Prefactor  = 33.6182
  Prefactor  = 10.1435
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.6286
  Prefactor  = 68.7074
  norm       = 2.91643
  norm       = 0.0001
  Normalizat = 1.21659
  Prefactor  = 0.577404
 **********
 **   18 **HESSE 
 **********

 FCN=   5511.395     FROM HESSE     STATUS=OK           557 CALLS     4295 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10026E-03    118.05        .55118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    48.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     35.175        84.492        .67612E-04   -1.4521    
   4  norm          .31215E-01    3.6851        .32767E-01   -1.5673    
   5  Prefactor     .10000E-03    52.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.6475        7.0433        .15565E-03   -1.5192    
   7  norm          2.2754        1.1994        .52911E-04   -1.5406    
   8  norm          1.6384        1.5129        .84478E-04   -1.5452    
   9  Prefactor     .10000E-03    19.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.5592        .15446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .34970        .83953E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     19.814        16.397        .89951E-04   -1.4817    
  13  Prefactor     .10000E-03    3.5400        .13639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.8279        .12168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.0949        .12741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.6832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .82369        4.7414        .31787E-03   -1.5526    
  18  Prefactor     33.618        56.826        .69150E-04   -1.4548    
  19  Prefactor     10.144        23.872        .12589E-03   -1.5071    
  20  Prefactor     .10000E-03    6.0035        .17709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.3027        .10987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.5815        .90475E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    27.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     21.629        16.432        .86135E-04   -1.4777    
  25  Prefactor     68.707        45.132        .48426E-04   -1.4048    
  26  norm          2.9164        .80712        .33803E-04   -1.5366    
  27  norm          .10000E-03    4.5120        .15280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2166        .22825        .22406E-03   -.86092    
  29  Prefactor     .57740        .17601        .25383E-03   -1.0855    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.86505e-09
Minuit parameter uncertainties:
  1  0.01108
  2  0.000257805
  3  84.7811
  4  0.677276
  5  8.3463e-05
  6  7.04422
  7  1.1994
  8  1.5129
  9  2.19816e-05
  10  9.53869e-07
  11  1.0078e-06
  12  16.4003
  13  3.7753e-06
  14  7.36354e-06
  15  2.16876e-06
  16  1.36068e-05
  17  3.95269
  18  56.9172
  19  23.8947
  20  0.000128536
  21  1.89881e-05
  22  6.27481e-07
  23  3.3638e-05
  24  16.4354
  25  45.1542
  26  0.807123
  27  4.46955e-06
  28  0.228438
  29  0.176173
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  1.361e-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:  5.774e-01  1.762e-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.217e+00  2.284e-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: 5.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/624409/likelihoodResults_397958401_398217601_4FGL_J2259.8-1552_daily_bin612.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) = 5511.39520291
delta logL = -0.000620145987341

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5511.39458278
delta logL = -1.38807081385e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1338       1.0000          .0000       10.000    
     3 'Normalizat'    1.2166       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57741       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=   5511.395     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      205 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.8306        .90712E-02** at limit **
   2  Index         2.1356        8.0818        .50000       -.17775E-05
   3  Normalizat    1.2166        .42713E-02    .50680E-01   -.26191E-04
   4  Prefactor     .57740        .34668E-02    .40745E-01    .92266E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.1356
  Normalizat = 1.21659
  Prefactor  = 0.577404
 **********
 **   18 **HESSE 
 **********

 FCN=   5511.395     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      238 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    52.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1356        6.3777        .50000       -.61001    
   3  Normalizat    1.2166        .11779E-01    .22406E-03   -.86092    
   4  Prefactor     .57740        .95591E-02    .25383E-03   -1.0855    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.14914e-09
Minuit parameter uncertainties:
  1  1.97827e-05
  2  177.837
  3  0.011779
  4  0.00955908
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/624409': 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) = 5511.39458276
delta logL = 1.88811100088e-09

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  5.774e-01  9.559e-03  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  1.217e+00  1.178e-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/624409/cmap_HighResolution_397958401_398217601_4FGL_J2259.8-1552_daily_bin612.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.32e-03', job_status='DONE', photon_flux_upper_limit='5.70e-08', time_completed='2021-09-29 04:54:08.934178', job_id='624409', GAL2='0.58', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1632916448.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='1.89e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='612' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:54:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 624409: <4FGL_J2259.8-1552_daily_bin612> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin612 344.953 -15.8809 397958401 398217601 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 :                                   690.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            830 sec.

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

