/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 129 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 = 7420
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2259.8-1552_daily_bin95
RA = 344.953, Dec = -15.8809
tmin = 263952001, tmax = 264211201
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='621438', job_status='RUN', time_executed='2021-09-29 04:32:42.813696', time_epoch_executed='1632915162.81' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='95'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/621438

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/621438/ft1_4FGL_J2259.8-1552_daily_bin95.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/621438/ft2_4FGL_J2259.8-1552_daily_bin95.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/621438/ft1_4FGL_J2259.8-1552_daily_bin95.fits outfile=/scratch/kocevski/621438/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin95.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=263952001.0 tmax=264211201.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 1.70
user 1.52
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/621438/ft1_filtered_4FGL_J2259.8-1552_daily_bin95.fits" evtable="EVENTS" scfile=/scratch/kocevski/621438/ft2_4FGL_J2259.8-1552_daily_bin95.fits sctable="SC_DATA" outfile=/scratch/kocevski/621438/ltcube_263952001_264211201_4FGL_J2259.8-1552_daily_bin95.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/621438/ft2_4FGL_J2259.8-1552_daily_bin95.fits
.....................!
real 12.59
user 12.14
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/621438/ft1_filtered_4FGL_J2259.8-1552_daily_bin95.fits evtable="EVENTS" scfile=/scratch/kocevski/621438/ft2_4FGL_J2259.8-1552_daily_bin95.fits sctable="SC_DATA" expcube=/scratch/kocevski/621438/ltcube_263952001_264211201_4FGL_J2259.8-1552_daily_bin95.fits outfile=/scratch/kocevski/621438/expmap_263952001_264211201_4FGL_J2259.8-1552_daily_bin95.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/621438/ltcube_263952001_264211201_4FGL_J2259.8-1552_daily_bin95.fits
.....................!
real 191.31
user 185.74
sys 5.25

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/621438/ft1_filtered_4FGL_J2259.8-1552_daily_bin95.fits scfile=/scratch/kocevski/621438/ft2_4FGL_J2259.8-1552_daily_bin95.fits outfile=/scratch/kocevski/621438/cmap_263952001_264211201_4FGL_J2259.8-1552_daily_bin95.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/621438/ft1_filtered_4FGL_J2259.8-1552_daily_bin95.fits scfile=/scratch/kocevski/621438/ft2_4FGL_J2259.8-1552_daily_bin95.fits outfile=/scratch/kocevski/621438/cmap_HighResolution_263952001_264211201_4FGL_J2259.8-1552_daily_bin95.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/621438/ft1_filtered_4FGL_J2259.8-1552_daily_bin95.fits evtable="EVENTS" scfile=/scratch/kocevski/621438/ft2_4FGL_J2259.8-1552_daily_bin95.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/621438/Model_4FGL_J2259.8-1552_daily_bin95.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/621438/ft1_filtered_4FGL_J2259.8-1552_daily_bin95.fits.....................!
real 56.72
user 55.34
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .83285E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    47.728       1.0000         .10000E-03   10000.    
     4 'norm      '    9.8505       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.0698       1.0000         .10000E-03   10000.    
     8 'norm      '    1.3462       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.051       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .53080       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.5261       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.1138       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3060       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.8752       1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.704       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .19616       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.1219       1.0000         .10000E-03   10000.    
    22 'norm      '    6.3462       1.0000         .10000E-03   10000.    
    23 'Prefactor '    44.413       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .30059E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2733       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .56865       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=   6876.057     FROM MIGRAD    STATUS=CONVERGED    749 CALLS     4363 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10009E-03    9.3569        .70519E-05** at limit **
   2  Prefactor     .10000E-03    31.084       -.28422E-05** at limit **
   3  Prefactor     47.720        40.901        .16698E-05   -.51165E-04
   4  norm          9.8499        3.7688        .25182E-08   -.48311E-03
   5  Prefactor     .10000E-03    26.130        .64790E-05** at limit **
   6  Prefactor     .10000E-03    7.9131        .61635E-06** at limit **
   7  norm          1.0698        .69947        .48806E-07   -.20950E-03
   8  norm          1.3460        1.3146        .88281E-07    .12920E-03
   9  Prefactor     13.059        42.536       -.13099E-05   -.44966E-04
  10  Prefactor     .10000E-03    11.873        .29229E-06** at limit **
  11  norm          .53085        .56614        .68543E-07    .39990E-03
  12  Prefactor     .10000E-03    4.6430        .10029E-06** at limit **
  13  Prefactor     2.5305        21.322        .50068E-05   -.12738E-04
  14  Prefactor     8.1079        15.854       -.16472E-05    .11376E-04
  15  Prefactor     .10000E-03    1.9048        .17761E-07** at limit **
  16  Prefactor     1.3068        10.198        .10994E-04   -.69179E-05
  17  Prefactor     3.8749        5.2665       -.34446E-06   -.56017E-04
  18  Prefactor     28.693        35.083        .14967E-05   -.35261E-04
  19  Prefactor     .15137        12.124        .34702E-05   -.19967E-03
  20  Prefactor     .10000E-03    3.1117       -.29768E-06** at limit **
  21  norm          1.1217        2.9820        .28607E-06    .52274E-04
  22  norm          6.3449        3.3358       -.10463E-08    .53475E-04
  23  Prefactor     44.350        40.591        .12549E-06   -.45028E-04
  24  Prefactor     .10003E-03    14.062        .69471E-06** at limit **
  25  Prefactor     .10000E-03    22.339       -.25300E-05** at limit **
  26  norm          .10000E-03    .11048        .70188E-07** at limit **
  27  norm          .10000E-03    2.1901        .19928E-06** at limit **
  28  Normalizat    1.2738        .17107        .15617E-05   -.17486E-03
  29  Prefactor     .56825        .13364       -.45254E-05   -.71911E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100093
  Prefactor  = 0.0001
  Prefactor  = 47.7203
  norm       = 9.8499
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.06977
  norm       = 1.34604
  Prefactor  = 13.0586
  Prefactor  = 0.0001
  norm       = 0.530847
  Prefactor  = 0.0001
  Prefactor  = 2.53053
  Prefactor  = 8.10788
  Prefactor  = 0.0001
  Prefactor  = 1.30677
  Prefactor  = 3.87486
  Prefactor  = 28.6932
  Prefactor  = 0.151371
  Prefactor  = 0.0001
  norm       = 1.12173
  norm       = 6.34492
  Prefactor  = 44.35
  Prefactor  = 0.000100034
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.27376
  Prefactor  = 0.568252
 **********
 **   18 **HESSE 
 **********

 FCN=   6876.057     FROM HESSE     STATUS=OK           573 CALLS     4936 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10009E-03    43.969        .40091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    31.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     47.720        40.812        .58041E-04   -1.4325    
   4  norm          9.8499        3.7690        .94923E-04   -1.5080    
   5  Prefactor     .10000E-03    26.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.0152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.0698        .68074        .53392E-04   -1.5501    
   8  norm          1.3460        1.3340        .88136E-04   -1.5476    
   9  Prefactor     13.059        42.444        .11088E-03   -1.4985    
  10  Prefactor     .10000E-03    12.102        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .53085        .52288        .61495E-03   -1.5562    
  12  Prefactor     .10000E-03    4.6476        .17447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.5305        20.464        .12851E-02   -1.5390    
  14  Prefactor     8.1079        15.430        .14075E-03   -1.5138    
  15  Prefactor     .10000E-03    1.9061        .11177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.3068        11.053        .19310E-02   -1.5479    
  17  Prefactor     3.8749        5.2500        .20498E-03   -1.5314    
  18  Prefactor     28.693        34.709        .74779E-04   -1.4636    
  19  Prefactor     .15137        11.372        .98546E-01   -1.5630    
  20  Prefactor     .10000E-03    3.1194        .14258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.1217        2.4306        .22367E-02   -1.5496    
  22  norm          6.3449        3.3433        .10496E-03   -1.5204    
  23  Prefactor     44.350        58.759        .60159E-04   -1.4375    
  24  Prefactor     .10003E-03    34.353        .77403E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    22.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .11432        .53799E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    2.2796        .23961E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2738        .20206        .21718E-03   -.84353    
  29  Prefactor     .56825        .15725        .25778E-03   -1.0894    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.60057e-09
Minuit parameter uncertainties:
  1  0.0040397
  2  8.90822e-06
  3  40.8355
  4  3.7691
  5  0.000177535
  6  0.000137395
  7  0.680745
  8  1.33404
  9  42.5428
  10  2.61791e-05
  11  0.522887
  12  1.07119e-05
  13  14.3989
  14  15.4371
  15  3.69101e-06
  16  7.60255
  17  5.25064
  18  34.733
  19  2.62371
  20  4.34145e-05
  21  2.43082
  22  3.34339
  23  58.8354
  24  0.002171
  25  8.33857e-05
  26  9.86451e-07
  27  1.45006e-05
  28  0.202187
  29  0.157368
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.307e+00  7.603e+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

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  5.683e-01  1.574e-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.274e+00  2.022e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/621438/likelihoodResults_263952001_264211201_4FGL_J2259.8-1552_daily_bin95.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) = 6876.05285572
delta logL = 0.00376249844157

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6876.05187278
delta logL = 0.00474544258759

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6884       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9770       1.0000          .0000       10.000    
     3 'Normalizat'    1.2745       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56750       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6876.052     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      272 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6885        12.168        .16200E-02   -.68238E-03
   2  Index         1.9771        1.4892        .76029E-02    .48642E-05
   3  Normalizat    1.2745        .18341        .21712E-03   -.52361E-07
   4  Prefactor     .56749        .15243        .25795E-03    .88147E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.68847
  Index      = 1.97706
  Normalizat = 1.27453
  Prefactor  = 0.567485
 **********
 **   18 **HESSE 
 **********

 FCN=   6876.052     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6885        11.556        .64801E-04   -1.5448    
   2  Index         1.9771        1.4541        .30412E-03   -.64925    
   3  Normalizat    1.2745        .18355        .86848E-05   -.84330    
   4  Prefactor     .56749        .15248        .10318E-04   -1.0897    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28572e-09
Minuit parameter uncertainties:
  1  8.83653
  2  1.48852
  3  0.183642
  4  0.152593
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/621438': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6876.05187277
delta logL = 0.0047454496771

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  1.688e+00  8.837e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  1.977e+00  1.489e+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:  5.675e-01  1.526e-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.275e+00  1.836e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
Ra Dec: 344.953 -15.881

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/621438/cmap_HighResolution_263952001_264211201_4FGL_J2259.8-1552_daily_bin95.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.63e-03', job_status='DONE', photon_flux_upper_limit='6.11e-08', time_completed='2021-09-29 04:46:52.346651', job_id='621438', GAL2='0.57', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1632916012.35', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.57', dlogl='4.75e-03', ts2='0.04', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='95' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:46:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 621438: <4FGL_J2259.8-1552_daily_bin95> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin95 344.953 -15.8809 263952001 264211201 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 :                                   849.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             262.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            992 sec.

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

