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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin1124
RA = 344.953, Dec = -15.8809
tmin = 530668801, tmax = 530928001
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='627397', job_status='RUN', time_executed='2021-09-29 04:51:49.529008', time_epoch_executed='1632916309.53' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='1124'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/627397

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/627397/ft1_4FGL_J2259.8-1552_daily_bin1124.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/627397/ft2_4FGL_J2259.8-1552_daily_bin1124.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/627397/ft1_4FGL_J2259.8-1552_daily_bin1124.fits outfile=/scratch/kocevski/627397/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin1124.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=530668801.0 tmax=530928001.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.59
user 3.39
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/627397/ft1_filtered_4FGL_J2259.8-1552_daily_bin1124.fits" evtable="EVENTS" scfile=/scratch/kocevski/627397/ft2_4FGL_J2259.8-1552_daily_bin1124.fits sctable="SC_DATA" outfile=/scratch/kocevski/627397/ltcube_530668801_530928001_4FGL_J2259.8-1552_daily_bin1124.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/627397/ft2_4FGL_J2259.8-1552_daily_bin1124.fits
.....................!
real 11.54
user 11.21
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/627397/ft1_filtered_4FGL_J2259.8-1552_daily_bin1124.fits evtable="EVENTS" scfile=/scratch/kocevski/627397/ft2_4FGL_J2259.8-1552_daily_bin1124.fits sctable="SC_DATA" expcube=/scratch/kocevski/627397/ltcube_530668801_530928001_4FGL_J2259.8-1552_daily_bin1124.fits outfile=/scratch/kocevski/627397/expmap_530668801_530928001_4FGL_J2259.8-1552_daily_bin1124.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/627397/ltcube_530668801_530928001_4FGL_J2259.8-1552_daily_bin1124.fits
.....................!
real 191.06
user 185.34
sys 5.41

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/627397/ft1_filtered_4FGL_J2259.8-1552_daily_bin1124.fits scfile=/scratch/kocevski/627397/ft2_4FGL_J2259.8-1552_daily_bin1124.fits outfile=/scratch/kocevski/627397/cmap_530668801_530928001_4FGL_J2259.8-1552_daily_bin1124.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.52
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/627397/ft1_filtered_4FGL_J2259.8-1552_daily_bin1124.fits scfile=/scratch/kocevski/627397/ft2_4FGL_J2259.8-1552_daily_bin1124.fits outfile=/scratch/kocevski/627397/cmap_HighResolution_530668801_530928001_4FGL_J2259.8-1552_daily_bin1124.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/627397/ft1_filtered_4FGL_J2259.8-1552_daily_bin1124.fits evtable="EVENTS" scfile=/scratch/kocevski/627397/ft2_4FGL_J2259.8-1552_daily_bin1124.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/627397/Model_4FGL_J2259.8-1552_daily_bin1124.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/627397/ft1_filtered_4FGL_J2259.8-1552_daily_bin1124.fits....................!
real 53.10
user 51.85
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    141.65       1.0000         .10000E-03   10000.    
     4 'norm      '    3.7136       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .23460       1.0000         .10000E-03   10000.    
     8 'norm      '    .10207E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.7774       1.0000         .10000E-03   10000.    
    10 'Prefactor '    70.123       1.0000         .10000E-03   10000.    
    11 'norm      '    5.9177       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.4603       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.252       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.5188       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.335       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.7642       1.0000         .10000E-03   10000.    
    23 'Prefactor '    39.939       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .13358E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .74063       1.0000         .10000E-03   10000.    
    27 'norm      '    5.7047       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .93971       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .84426       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=   6289.890     FROM MIGRAD    STATUS=CONVERGED    728 CALLS     3739 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.947        .80504E-06** at limit **
   2  Prefactor     .10000E-03    25.146       -.25019E-06** at limit **
   3  Prefactor     141.63        68.757       -.38354E-05   -.11963E-03
   4  norm          3.7136        2.7220        .69739E-07   -.12133E-04
   5  Prefactor     .10000E-03    25.119       -.15953E-06** at limit **
   6  Prefactor     .10000E-03    3.2677        .26547E-07** at limit **
   7  norm          .23440        .61437        .33214E-06    .29463E-03
   8  norm          .10000E-03    1.6139        .56366E-07** at limit **
   9  Prefactor     3.7258        82.453        .26549E-05   -.40698E-05
  10  Prefactor     70.122        38.437       -.32375E-07   -.82091E-04
  11  norm          5.9174        2.8367        .36012E-07   -.17796E-03
  12  Prefactor     3.4589        203.68        .38203E-06   -.88543E-05
  13  Prefactor     .10000E-03    7.4811       -.60374E-07** at limit **
  14  Prefactor     30.252        12.703        .11979E-06   -.43877E-04
  15  Prefactor     6.5184        10.059        .16150E-06   -.96359E-05
  16  Prefactor     .10000E-03    4.9917       -.62338E-08** at limit **
  17  Prefactor     .10000E-03    7.6145       -.11371E-06** at limit **
  18  Prefactor     22.340        25.168       -.13255E-05   -.46042E-04
  19  Prefactor     .10000E-03    17.286        .12816E-06** at limit **
  20  Prefactor     .10000E-03    2.2941        .31012E-07** at limit **
  21  norm          .10000E-03    2.6689        .13607E-07** at limit **
  22  norm          2.7634        3.8853        .21913E-06   -.12195E-03
  23  Prefactor     39.977        53.517       -.10163E-05   -.16413E-03
  24  Prefactor     .10217E-03    19.345        .33071E-05** at limit **
  25  Prefactor     .10000E-03    29.349       -.10679E-05** at limit **
  26  norm          .74059        .52285       -.51559E-07   -.82552E-03
  27  norm          5.7046        4.5871       -.51328E-06   -.26192E-03
  28  Normalizat    .93991        .20710       -.30647E-05   -.20746E-03
  29  Prefactor     .84413        .16236        .12113E-05   -.36176E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 141.633
  norm       = 3.71364
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.234402
  norm       = 0.0001
  Prefactor  = 3.72576
  Prefactor  = 70.1222
  norm       = 5.91744
  Prefactor  = 3.45894
  Prefactor  = 0.0001
  Prefactor  = 30.2516
  Prefactor  = 6.51843
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.3404
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.76335
  Prefactor  = 39.9767
  Prefactor  = 0.00010217
  Prefactor  = 0.0001
  norm       = 0.740589
  norm       = 5.70458
  Normalizat = 0.939909
  Prefactor  = 0.844131
 **********
 **   18 **HESSE 
 **********

 FCN=   6289.890     FROM HESSE     STATUS=OK           559 CALLS     4298 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.239        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     141.63        69.284        .16925E-03   -1.3322    
   4  norm          3.7136        2.7220        .10838E-03   -1.5323    
   5  Prefactor     .10000E-03    25.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.2757        .14000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .23440        .60584        .96260E-04   -1.5611    
   8  norm          .10000E-03    2.1513        .17572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.7258        67.223        .20771E-03   -1.5322    
  10  Prefactor     70.122        38.474        .47937E-04   -1.4031    
  11  norm          5.9174        2.9443        .54106E-04   -1.5221    
  12  Prefactor     3.4589        175.98        .21741E-03   -1.5336    
  13  Prefactor     .10000E-03    7.4849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     30.252        12.687        .72845E-04   -1.4607    
  15  Prefactor     6.5184        10.016        .15718E-03   -1.5197    
  16  Prefactor     .10000E-03    5.0099        .17303E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.6518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.340        25.177        .84755E-04   -1.4762    
  19  Prefactor     .10000E-03    17.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.2967        .11732E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.7001        .12653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.7634        3.8838        .17451E-03   -1.5375    
  23  Prefactor     39.977        70.632        .63426E-04   -1.4443    
  24  Prefactor     .10217E-03    31.930        .84318E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    29.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .74059        .52558        .44573E-04   -1.5536    
  27  norm          5.7046        4.6200        .14131E-03   -1.5230    
  28  Normalizat    .93991        .23776        .27272E-03   -.95072    
  29  Prefactor     .84413        .18920        .23943E-03   -.98122    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.95235e-10
Minuit parameter uncertainties:
  1  0.000161827
  2  1.61828e-06
  3  69.3239
  4  2.72206
  5  1.13129e-06
  6  4.62477e-06
  7  0.605859
  8  2.28536e-05
  9  31.6926
  10  38.4872
  11  2.94441
  12  49.4975
  13  6.58591e-07
  14  12.6882
  15  10.0187
  16  6.10484e-06
  17  4.90386e-06
  18  25.1891
  19  7.26459e-07
  20  3.74275e-06
  21  4.52708e-06
  22  3.88416
  23  70.7807
  24  0.0166585
  25  8.23987e-06
  26  0.525581
  27  4.62027
  28  0.238028
  29  0.18935
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.000e-04  6.105e-06  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.441e-01  1.893e-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:  9.399e-01  2.380e-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.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/627397/likelihoodResults_530668801_530928001_4FGL_J2259.8-1552_daily_bin1124.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) = 6289.89061059
delta logL = -0.000949947998379

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6289.88966064
delta logL = 6.40284270048e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1242       1.0000          .0000       10.000    
     3 'Normalizat'    .93995       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84411       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=   6289.890     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      234 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10023E-03    57.407        .17344E-02** at limit **
   2  Index         2.0986        5.1625        .50000        .10504E-04
   3  Normalizat    .93991        .15570E-01    .27273E-03    .45854E-06
   4  Prefactor     .84413        .13093E-01    .23943E-03    .42259E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100234
  Index      = 2.09857
  Normalizat = 0.939907
  Prefactor  = 0.844133
 **********
 **   18 **HESSE 
 **********

 FCN=   6289.890     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      263 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10023E-03    257.31        .34688E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0986        5.4092        .50000       -.61908    
   3  Normalizat    .93991        .34683E-01    .10909E-04   -.95072    
   4  Prefactor     .84413        .29162E-01    .95773E-05   -.98121    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.47638e-09
Minuit parameter uncertainties:
  1  0.0155932
  2  614.948
  3  0.0346835
  4  0.0291626
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/627397': 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) = 6289.88966057
delta logL = 7.09296728019e-08

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.002e-04  1.559e-02  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.099e+00  6.149e+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:  8.441e-01  2.916e-02  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  9.399e-01  3.468e-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/627397/cmap_HighResolution_530668801_530928001_4FGL_J2259.8-1552_daily_bin1124.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.36e-03', job_status='DONE', photon_flux_upper_limit='5.75e-08', time_completed='2021-09-29 05:04:50.985020', job_id='627397', GAL2='0.84', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1632917090.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='7.09e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1124' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 05:04:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 627397: <4FGL_J2259.8-1552_daily_bin1124> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin1124 344.953 -15.8809 530668801 530928001 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 :                                   759.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             345.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            842 sec.

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

