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


Performing analysis on: 4FGL_J2259.8-1552_daily_bin902
RA = 344.953, Dec = -15.8809
tmin = 473126401, tmax = 473385601
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='625949', job_status='RUN', time_executed='2021-09-29 04:48:59.472455', time_epoch_executed='1632916139.47' WHERE source_name='4FGL J2259.8-1552' and cadence='daily' and bin_id='902'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/625949

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/625949/ft1_4FGL_J2259.8-1552_daily_bin902.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/625949/ft2_4FGL_J2259.8-1552_daily_bin902.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/625949/ft1_4FGL_J2259.8-1552_daily_bin902.fits outfile=/scratch/kocevski/625949/ft1_filteredMKT_4FGL_J2259.8-1552_daily_bin902.fits ra=344.953 dec=-15.8809 rad=12.0 tmin=473126401.0 tmax=473385601.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.47
user 3.24
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/625949/ft1_filtered_4FGL_J2259.8-1552_daily_bin902.fits" evtable="EVENTS" scfile=/scratch/kocevski/625949/ft2_4FGL_J2259.8-1552_daily_bin902.fits sctable="SC_DATA" outfile=/scratch/kocevski/625949/ltcube_473126401_473385601_4FGL_J2259.8-1552_daily_bin902.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/625949/ft2_4FGL_J2259.8-1552_daily_bin902.fits
.....................!
real 11.85
user 11.50
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/625949/ft1_filtered_4FGL_J2259.8-1552_daily_bin902.fits evtable="EVENTS" scfile=/scratch/kocevski/625949/ft2_4FGL_J2259.8-1552_daily_bin902.fits sctable="SC_DATA" expcube=/scratch/kocevski/625949/ltcube_473126401_473385601_4FGL_J2259.8-1552_daily_bin902.fits outfile=/scratch/kocevski/625949/expmap_473126401_473385601_4FGL_J2259.8-1552_daily_bin902.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/625949/ltcube_473126401_473385601_4FGL_J2259.8-1552_daily_bin902.fits
.....................!
real 190.89
user 185.63
sys 4.86

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/625949/ft1_filtered_4FGL_J2259.8-1552_daily_bin902.fits scfile=/scratch/kocevski/625949/ft2_4FGL_J2259.8-1552_daily_bin902.fits outfile=/scratch/kocevski/625949/cmap_473126401_473385601_4FGL_J2259.8-1552_daily_bin902.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.38
sys 0.14

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/625949/ft1_filtered_4FGL_J2259.8-1552_daily_bin902.fits evtable="EVENTS" scfile=/scratch/kocevski/625949/ft2_4FGL_J2259.8-1552_daily_bin902.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/625949/Model_4FGL_J2259.8-1552_daily_bin902.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/625949/ft1_filtered_4FGL_J2259.8-1552_daily_bin902.fits.....................!
real 40.38
user 39.04
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7207       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10182E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.8920       1.0000         .10000E-03   10000.    
     8 'norm      '    .10101E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    50.302       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.7617       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.560       1.0000         .10000E-03   10000.    
    16 'Prefactor '    39.149       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .23477       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.4423       1.0000         .10000E-03   10000.    
    22 'norm      '    2.6295       1.0000         .10000E-03   10000.    
    23 'Prefactor '    131.10       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    21.297       1.0000         .10000E-03   10000.    
    26 'norm      '    .53342       1.0000         .10000E-03   10000.    
    27 'norm      '    18.087       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .98489       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .86463       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=   4455.012     FROM MIGRAD    STATUS=CONVERGED   1335 CALLS     4971 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7269        55.033        .32024E-03   -.31098E-04
   2  Prefactor     .10003E-03    63.244        .16617    ** at limit **
   3  Prefactor     .10000E-03    42.019        .18142E-02** at limit **
   4  norm          .10000E-03    1.3239        .74725E-03** at limit **
   5  Prefactor     .10000E-03    33.346        .18142E-02** at limit **
   6  Prefactor     .10000E-03    7.0207        .17261E-02** at limit **
   7  norm          1.8926        1.1212        .51939E-04   -.47367E-03
   8  norm          .10000E-03    2.3923        .99701E-03** at limit **
   9  Prefactor     50.351        65.154        .56544E-04   -.40212E-04
  10  Prefactor     .10000E-03    4.3255        .13547E-02** at limit **
  11  norm          .10000E-03    .35072        .38167E-03** at limit **
  12  Prefactor     .10000E-03    12.061        .18142E-02** at limit **
  13  Prefactor     .10000E-03    19.425        .18142E-02** at limit **
  14  Prefactor     5.7661        12.947        .16733E-03   -.63866E-04
  15  Prefactor     12.560        9.0700        .11303E-03   -.18507E-04
  16  Prefactor     39.160        19.509        .64060E-04   -.64244E-04
  17  Prefactor     .10000E-03    5.5866        .15381E-02** at limit **
  18  Prefactor     .99423        77.083        .14346        .11075E-03
  19  Prefactor     .10000E-03    68.189        .18142E-02** at limit **
  20  Prefactor     .10000E-03    14.633        .18142E-02** at limit **
  21  norm          2.4339        4.4140        .17995E-03   -.14600E-03
  22  norm          2.6315        4.2530        .16377E-03   -.29454E-03
  23  Prefactor     131.18        97.112        .17583E-03   -.15165E-03
  24  Prefactor     .10000E-03    18.473        .18142E-02** at limit **
  25  Prefactor     21.303        31.833        .86794E-04   -.21874E-04
  26  norm          .53343        .96608        .69833E-03    .12625E-02
  27  norm          18.091        12.336        .94175E-04   -.31013E-03
  28  Normalizat    .98417        .28408        .27149E-03   -.49398E-03
  29  Prefactor     .86491        .21225        .23292E-03   -.16019E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.72694
  Prefactor  = 0.000100027
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.89259
  norm       = 0.000100001
  Prefactor  = 50.3506
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.7661
  Prefactor  = 12.56
  Prefactor  = 39.1598
  Prefactor  = 0.0001
  Prefactor  = 0.994226
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.43386
  norm       = 2.63154
  Prefactor  = 131.185
  Prefactor  = 0.000100002
  Prefactor  = 21.3028
  norm       = 0.533434
  norm       = 18.0907
  Normalizat = 0.984174
  Prefactor  = 0.864911
 **********
 **   18 **HESSE 
 **********

 FCN=   4455.012     FROM HESSE     STATUS=OK           545 CALLS     5516 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7269        55.000        .12810E-04   -1.5445    
   2  Prefactor     .10003E-03    63.175        .16632       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    42.020        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.3240        .14945E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    33.346        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.0209        .34522E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.8926        1.1212        .20775E-05   -1.5433    
   8  norm          .10000E-03    2.3926        .19940E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     50.351        65.145        .11309E-04   -1.4288    
  10  Prefactor     .10000E-03    4.3256        .27094E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .35073        .76334E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.062        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.428        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.7661        12.944        .66931E-05   -1.5228    
  15  Prefactor     12.560        9.0699        .45211E-05   -1.4999    
  16  Prefactor     39.160        19.507        .25624E-05   -1.4456    
  17  Prefactor     .10000E-03    5.5869        .30762E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .99423        78.383        .14196       -1.5509    
  19  Prefactor     .10000E-03    68.219        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.634        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.4339        4.4145        .71980E-05   -1.5396    
  22  norm          2.6315        4.2523        .65508E-05   -1.5384    
  23  Prefactor     131.18        97.106        .35166E-04   -1.3412    
  24  Prefactor     .10000E-03    18.473        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     21.303        31.822        .34718E-05   -1.4785    
  26  norm          .53343        .96214        .27933E-04   -1.5562    
  27  norm          18.091        12.297        .37670E-05   -1.4857    
  28  Normalizat    .98417        .28436        .54298E-04   -.93563    
  29  Prefactor     .86491        .21245        .46583E-04   -.97378    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79726e-09
Minuit parameter uncertainties:
  1  19.5108
  2  0.00263319
  3  6.33402e-05
  4  8.68936e-06
  5  3.63228e-05
  6  5.01662e-05
  7  1.12123
  8  9.76358e-05
  9  65.237
  10  6.15295e-06
  11  2.59302e-06
  12  1.45687e-05
  13  9.71755e-05
  14  12.9505
  15  9.07087
  16  19.5102
  17  1.51244e-05
  18  17.6788
  19  0.000110447
  20  4.9005e-05
  21  4.41509
  22  4.25283
  23  97.2242
  24  0.00033948
  25  31.847
  26  0.96217
  27  12.2992
  28  0.284801
  29  0.212651
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  8.649e-01  2.127e-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.842e-01  2.848e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.09
Ra Dec: 344.953 -15.881
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 1.09e-07 +/- 5.43e-08
Energy Flux (Fixed Index): 5.60e-05 +/- 2.79e-05

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) = 4454.97421799
delta logL = 0.0378896650709

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4454.97282787
delta logL = 0.0392797926979

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.116       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2379       1.0000          .0000       10.000    
     3 'Normalizat'    .97240       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87126       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=   4454.973     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      252 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.153        338.04        .16907E-02   -.90517E-04
   2  Index         2.2386        3.0008        .97761E-01    .28074E-04
   3  Normalizat    .97252        .15395        .45820E-01    .90295E-04
   4  Prefactor     .87090        .98826E-01    .44638E-01    .85576E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.1532
  Index      = 2.2386
  Normalizat = 0.972524
  Prefactor  = 0.870904
 **********
 **   18 **HESSE 
 **********

 FCN=   4454.973     FROM HESSE     STATUS=OK            33 CALLS      285 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.153        23.915        .67626E-04   -1.4521    
   2  Index         2.2386        .40195        .39402E-02   -.58510    
   3  Normalizat    .97252        .25837        .27290E-03   -.93957    
   4  Prefactor     .87090        .20807        .23219E-03   -.97165    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08205e-11
Minuit parameter uncertainties:
  1  23.9218
  2  0.402575
  3  0.258703
  4  0.208256
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/625949': 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) = 4454.97281658
delta logL = 0.0392910777819

Extracting fit parameters...

4FGL J2259.8-1552
   Spectrum: PowerLaw
314    Prefactor:  3.515e+01  2.392e+01  1.000e-04  1.000e+04 ( 1.000e-13)
315        Index:  2.239e+00  4.026e-01  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.709e-01  2.083e-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.725e-01  2.587e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.08
Ra Dec: 344.953 -15.881
Photon Index (Free Index): 2.24 +/- 0.40
Photon Flux (Free Index): 1.19e-07 +/- 6.76e-08
Energy Flux (Free Index): 5.00e-05 +/- 3.20e-05

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/625949/cmap_HighResolution_473126401_473385601_4FGL_J2259.8-1552_daily_bin902.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.09e-07', energy_flux2='5.00e-05', photon_flux_error='5.43e-08', dlogl='3.93e-02', energy_flux='5.60e-05', photon_flux2='1.19e-07', job_status='DONE', time_completed='2021-09-29 04:59:13.586897', photon_index_error2='0.40', photon_index2='2.24', ts='7.09', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='3.20e-05', EG='0.98', time_epoch_completed='1632916753.59', return_code='0', job_id='625949', GAL2='0.87', EG2='0.97', return_code2='0', energy_flux_error='2.79e-05', photon_flux_error2='6.76e-08', ts2='7.08', photon_index='2.13' WHERE bin_id='902' AND source_name='4FGL J2259.8-1552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 04:59:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 625949: <4FGL_J2259.8-1552_daily_bin902> in cluster <slac> Done

Job <4FGL_J2259.8-1552_daily_bin902> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 29 04:45:38 2021
Job was executed on host(s) <bullet0216>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 04:45:40 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:45:40 2021
Terminated at Wed Sep 29 04:59:14 2021
Results reported at Wed Sep 29 04:59:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2259.8-1552_daily_bin902 344.953 -15.8809 473126401 473385601 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 :                                   612.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            816 sec.

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

