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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin1102
RA = 344.953, Dec = -15.8809
tmin = 524966401, tmax = 525225601
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='627363', job_status='RUN', time_executed='2021-09-29 04:52:14.244120', time_epoch_executed='1632916334.24' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='1102'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/627363

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/627363/ft1_4FGL_J2259.8-1552_daily_bin1102.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/627363/ft2_4FGL_J2259.8-1552_daily_bin1102.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/627363/ft1_4FGL_J2259.8-1552_daily_bin1102.fits outfile=/scratch/kocevski/627363/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin1102.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=524966401.0 tmax=525225601.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.46
user 3.23
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/627363/ft2_4FGL_J2259.8-1552_daily_bin1102.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/627363/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin1102.fits evtable="EVENTS" outfile="/scratch/kocevski/627363/ft1_filtered_4FGL_J2259.8-1552_daily_bin1102.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/627363/ft1_filtered_4FGL_J2259.8-1552_daily_bin1102.fits" evtable="EVENTS" scfile=/scratch/kocevski/627363/ft2_4FGL_J2259.8-1552_daily_bin1102.fits sctable="SC_DATA" outfile=/scratch/kocevski/627363/ltcube_524966401_525225601_4FGL_J2259.8-1552_daily_bin1102.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/627363/ft2_4FGL_J2259.8-1552_daily_bin1102.fits
.....................!
real 12.66
user 12.31
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/627363/ft1_filtered_4FGL_J2259.8-1552_daily_bin1102.fits evtable="EVENTS" scfile=/scratch/kocevski/627363/ft2_4FGL_J2259.8-1552_daily_bin1102.fits sctable="SC_DATA" expcube=/scratch/kocevski/627363/ltcube_524966401_525225601_4FGL_J2259.8-1552_daily_bin1102.fits outfile=/scratch/kocevski/627363/expmap_524966401_525225601_4FGL_J2259.8-1552_daily_bin1102.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/627363/ltcube_524966401_525225601_4FGL_J2259.8-1552_daily_bin1102.fits
.....................!
real 190.52
user 185.00
sys 5.21

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/627363/ft1_filtered_4FGL_J2259.8-1552_daily_bin1102.fits scfile=/scratch/kocevski/627363/ft2_4FGL_J2259.8-1552_daily_bin1102.fits outfile=/scratch/kocevski/627363/cmap_524966401_525225601_4FGL_J2259.8-1552_daily_bin1102.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/627363/ft1_filtered_4FGL_J2259.8-1552_daily_bin1102.fits scfile=/scratch/kocevski/627363/ft2_4FGL_J2259.8-1552_daily_bin1102.fits outfile=/scratch/kocevski/627363/cmap_HighResolution_524966401_525225601_4FGL_J2259.8-1552_daily_bin1102.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7609       1.0000         .10000E-03   10000.    
     2 'Prefactor '    40.626       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.259       1.0000         .10000E-03   10000.    
     4 'norm      '    6.2636       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.8524       1.0000         .10000E-03   10000.    
     8 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    46.056       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10361E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.0971       1.0000         .10000E-03   10000.    
    12 'Prefactor '    43.500       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12000E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.835       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.3280       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.7989       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.5502       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .30073E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .79087       1.0000         .10000E-03   10000.    
    21 'norm      '    6.8517       1.0000         .10000E-03   10000.    
    22 'norm      '    1.5783       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10628E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.7380       1.0000         .10000E-03   10000.    
    26 'norm      '    1.7263       1.0000         .10000E-03   10000.    
    27 'norm      '    40.653       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .66497       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .96544       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=   7901.892     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     3790 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7621        12.170       -.61883E-07   -.99836E-05
   2  Prefactor     40.563        58.254       -.21174E-06    .40681E-04
   3  Prefactor     19.164        52.256       -.30073E-06    .44368E-04
   4  norm          6.2639        3.1791       -.67673E-07    .20516E-04
   5  Prefactor     .10000E-03    36.636       -.29746E-06** at limit **
   6  Prefactor     .10000E-03    6.1887       -.23538E-06** at limit **
   7  norm          3.8525        1.0341       -.71918E-08   -.69778E-04
   8  norm          .10000E-03    1.5351        .33929E-06** at limit **
   9  Prefactor     46.048        35.986       -.13925E-05   -.38069E-03
  10  Prefactor     .10000E-03    13.711        .33425E-06** at limit **
  11  norm          3.0978        1.3275       -.55255E-07    .60764E-04
  12  Prefactor     43.480        30.754        .25905E-06    .19445E-04
  13  Prefactor     .10007E-03    112.67        .17553E-04** at limit **
  14  Prefactor     21.828        11.407       -.68106E-06   -.38702E-03
  15  Prefactor     3.3269        7.8284       -.87183E-06    .50048E-04
  16  Prefactor     3.7971        7.6385       -.85656E-06    .55053E-04
  17  Prefactor     4.5458        8.8545       -.81424E-06   -.44510E-04
  18  Prefactor     .10000E-03    176.87       -.10159E-05** at limit **
  19  Prefactor     .10000E-03    10.885       -.35614E-06** at limit **
  20  Prefactor     .79314        5.4574        .10796E-05    .72110E-03
  21  norm          6.8531        4.9834        .13706E-06    .38092E-03
  22  norm          1.5773        3.2228       -.15276E-05    .13800E-04
  23  Prefactor     .10000E-03    74.820       -.13930E-05** at limit **
  24  Prefactor     .10000E-03    4.8611       -.22296E-06** at limit **
  25  Prefactor     3.7344        59.557        .36169E-05    .71376E-04
  26  norm          1.7262        .76578       -.43833E-07    .29309E-03
  27  norm          40.654        8.5936        .71786E-07    .64570E-04
  28  Normalizat    .66516        .16584        .14388E-05    .14795E-03
  29  Prefactor     .96542        .13821        .35510E-06    .17669E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.76214
  Prefactor  = 40.5627
  Prefactor  = 19.1635
  norm       = 6.2639
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.85251
  norm       = 0.000100001
  Prefactor  = 46.048
  Prefactor  = 0.0001
  norm       = 3.09777
  Prefactor  = 43.4796
  Prefactor  = 0.000100075
  Prefactor  = 21.8282
  Prefactor  = 3.32694
  Prefactor  = 3.7971
  Prefactor  = 4.54582
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.793143
  norm       = 6.85314
  norm       = 1.57726
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.7344
  norm       = 1.72619
  norm       = 40.6541
  Normalizat = 0.665158
  Prefactor  = 0.965417
 **********
 **   18 **HESSE 
 **********

 FCN=   7901.892     FROM HESSE     STATUS=OK           563 CALLS     4353 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7621        12.161        .13542E-03   -1.5116    
   2  Prefactor     40.563        58.230        .62889E-04   -1.4433    
   3  Prefactor     19.164        52.275        .91265E-04   -1.4832    
   4  norm          6.2639        3.1764        .10725E-03   -1.5207    
   5  Prefactor     .10000E-03    36.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.2874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.8525        1.0334        .20561E-04   -1.5315    
   8  norm          .10000E-03    2.5350        .18895E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     46.048        32.685        .59081E-04   -1.4350    
  10  Prefactor     .10000E-03    13.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.0978        1.3406        .53377E-04   -1.5356    
  12  Prefactor     43.480        31.165        .60784E-04   -1.4388    
  13  Prefactor     .10007E-03    124.08        .56453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.828        11.460        .85719E-04   -1.4773    
  15  Prefactor     3.3269        7.8030        .22188E-03   -1.5343    
  16  Prefactor     3.7971        7.6117        .20710E-03   -1.5318    
  17  Prefactor     4.5458        8.7753        .18872E-03   -1.5282    
  18  Prefactor     .10000E-03    181.78        .39652E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.931        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .79314        14.333        .31806E-02   -1.5530    
  21  norm          6.8531        5.1136        .15328E-03   -1.5184    
  22  norm          1.5773        3.1838        .19186E-03   -1.5457    
  23  Prefactor     .10000E-03    76.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.8849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.7344        57.484        .20884E-03   -1.5321    
  26  norm          1.7262        .76781        .43917E-04   -1.5445    
  27  norm          40.654        8.6914        .62868E-04   -1.4432    
  28  Normalizat    .66516        .19512        .29936E-03   -1.0528    
  29  Prefactor     .96542        .16404        .22166E-03   -.93891    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.57783e-09
Minuit parameter uncertainties:
  1  12.1645
  2  58.3115
  3  52.4007
  4  3.17651
  5  1.52483e-05
  6  1.28963e-05
  7  1.03338
  8  7.20372e-05
  9  32.6979
  10  5.00862e-05
  11  1.34066
  12  31.177
  13  0.00609973
  14  11.4607
  15  7.80541
  16  7.6136
  17  8.77773
  18  0.000741038
  19  2.80945e-06
  20  6.74485
  21  5.11392
  22  3.1841
  23  0.000120447
  24  8.33221e-07
  25  29.3365
  26  0.767811
  27  8.69163
  28  0.195323
  29  0.164123
Done.

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

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  3.797e+00  7.614e+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:  9.654e-01  1.641e-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:  6.652e-01  1.953e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/627363/likelihoodResults_524966401_525225601_4FGL_J2259.8-1552_daily_bin1102.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) = 7901.82190564
delta logL = 0.0696644845211

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7901.80830364
delta logL = 0.0832664887821

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7285       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5261       1.0000          .0000       10.000    
     3 'Normalizat'    .65954       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96746       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=   7901.808     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      254 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7285        7.4697        .22829E-03    .17728E-04
   2  Index         2.5262        1.2056        .98763E-02    .22068E-04
   3  Normalizat    .65955        .18187        .30051E-03    .87994E-04
   4  Prefactor     .96746        .16054        .22143E-03    .93547E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.72845
  Index      = 2.52615
  Normalizat = 0.659545
  Prefactor  = 0.967461
 **********
 **   18 **HESSE 
 **********

 FCN=   7901.808     FROM HESSE     STATUS=OK            25 CALLS      279 TOTAL
                     EDM=   .97E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7285        6.2123        .91318E-05   -1.5378    
   2  Index         2.5262        1.0067        .39505E-03   -.51757    
   3  Normalizat    .65955        .18191        .12021E-04   -1.0551    
   4  Prefactor     .96746        .16052        .88570E-05   -.93822    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.73169e-12
Minuit parameter uncertainties:
  1  6.21378
  2  1.01596
  3  0.18208
  4  0.1606
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/627363': 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) = 7901.80830364
delta logL = 0.0832664897798

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  2.728e+00  6.214e+00  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.526e+00  1.016e+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:  9.675e-01  1.606e-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:  6.595e-01  1.821e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/627363/cmap_HighResolution_524966401_525225601_4FGL_J2259.8-1552_daily_bin1102.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.79e-03', job_status='DONE', photon_flux_upper_limit='6.32e-08', time_completed='2021-09-29 05:07:07.497927', job_id='627363', GAL2='0.97', fit_tolerance='1e-08', EG2='0.66', EG='0.67', time_epoch_completed='1632917227.5', return_code2='0', ts='0.31', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='8.33e-02', ts2='0.49', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1102' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 05:07:07 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin1102 344.953 -15.8809 524966401 525225601 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 :                                   885.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             323.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            983 sec.

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

