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


Performing analysis on: 4FGL_J1228.7+4858_daily_bin51
RA = 187.179, Dec = 48.9827
tmin = 252547201, tmax = 252806401
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='692766', job_status='RUN', time_executed='2021-09-05 18:09:08.714561', time_epoch_executed='1630890548.71' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='51'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/692766

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/692766/ft1_4FGL_J1228.7+4858_daily_bin51.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/692766/ft2_4FGL_J1228.7+4858_daily_bin51.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/692766/ft1_4FGL_J1228.7+4858_daily_bin51.fits outfile=/scratch/kocevski/692766/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin51.fits ra=187.179 dec=48.9827 rad=12.0 tmin=252547201.0 tmax=252806401.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.46
user 1.22
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/692766/ft2_4FGL_J1228.7+4858_daily_bin51.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/692766/ft2_4FGL_J1228.7+4858_daily_bin51.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/692766/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin51.fits evtable="EVENTS" outfile="/scratch/kocevski/692766/ft1_filtered_4FGL_J1228.7+4858_daily_bin51.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.60
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/692766/ft1_filtered_4FGL_J1228.7+4858_daily_bin51.fits" evtable="EVENTS" scfile=/scratch/kocevski/692766/ft2_4FGL_J1228.7+4858_daily_bin51.fits sctable="SC_DATA" outfile=/scratch/kocevski/692766/ltcube_252547201_252806401_4FGL_J1228.7+4858_daily_bin51.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/692766/ft2_4FGL_J1228.7+4858_daily_bin51.fits
.....................!
real 12.68
user 12.27
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/692766/ft1_filtered_4FGL_J1228.7+4858_daily_bin51.fits evtable="EVENTS" scfile=/scratch/kocevski/692766/ft2_4FGL_J1228.7+4858_daily_bin51.fits sctable="SC_DATA" expcube=/scratch/kocevski/692766/ltcube_252547201_252806401_4FGL_J1228.7+4858_daily_bin51.fits outfile=/scratch/kocevski/692766/expmap_252547201_252806401_4FGL_J1228.7+4858_daily_bin51.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/692766/ltcube_252547201_252806401_4FGL_J1228.7+4858_daily_bin51.fits
.....................!
real 189.99
user 185.23
sys 4.38

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 217 point sources and 0 extended sources

Setting source of interest to:
4FGL J1228.7+4858 @ 187.179 48.9827

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/692766/ft1_filtered_4FGL_J1228.7+4858_daily_bin51.fits scfile=/scratch/kocevski/692766/ft2_4FGL_J1228.7+4858_daily_bin51.fits outfile=/scratch/kocevski/692766/cmap_252547201_252806401_4FGL_J1228.7+4858_daily_bin51.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=187.179 yref=48.9827 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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/692766/ft1_filtered_4FGL_J1228.7+4858_daily_bin51.fits scfile=/scratch/kocevski/692766/ft2_4FGL_J1228.7+4858_daily_bin51.fits outfile=/scratch/kocevski/692766/cmap_HighResolution_252547201_252806401_4FGL_J1228.7+4858_daily_bin51.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=187.179 yref=48.9827 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/692766/ft1_filtered_4FGL_J1228.7+4858_daily_bin51.fits evtable="EVENTS" scfile=/scratch/kocevski/692766/ft2_4FGL_J1228.7+4858_daily_bin51.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/692766/Model_4FGL_J1228.7+4858_daily_bin51.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/692766/ft1_filtered_4FGL_J1228.7+4858_daily_bin51.fits.....................!
real 54.76
user 53.37
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/692766/ft1_filtered_4FGL_J1228.7+4858_daily_bin51.fits', '/scratch/kocevski/692766/ft2_4FGL_J1228.7+4858_daily_bin51.fits', expMap='/scratch/kocevski/692766/expmap_252547201_252806401_4FGL_J1228.7+4858_daily_bin51.fits', expCube='/scratch/kocevski/692766/ltcube_252547201_252806401_4FGL_J1228.7+4858_daily_bin51.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/692766/Model_4FGL_J1228.7+4858_daily_bin51.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1228.7+4858'

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  7.350e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  2.556e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
361        Scale:  8.802e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/692766/ft1_filtered_4FGL_J1228.7+4858_daily_bin51.fits
Spacecraft file(s): /scratch/kocevski/692766/ft2_4FGL_J1228.7+4858_daily_bin51.fits
Exposure map: /scratch/kocevski/692766/expmap_252547201_252806401_4FGL_J1228.7+4858_daily_bin51.fits
Exposure cube: /scratch/kocevski/692766/ltcube_252547201_252806401_4FGL_J1228.7+4858_daily_bin51.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/692766/Model_4FGL_J1228.7+4858_daily_bin51.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) = 6510.09348574

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.1110       1.0000         .10000E-03   10000.    
     2 'norm      '    1.2433       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6201       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.1866       1.0000         .10000E-03   10000.    
     8 'norm      '    6.7104       1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.895       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10546E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.2600       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .63296       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.7833       1.0000         .10000E-03   10000.    
    16 'norm      '    11.608       1.0000         .10000E-03   10000.    
    17 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .61347E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.019       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11058E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .25617E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0495       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .94848       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6509.987     FROM MIGRAD    STATUS=CONVERGED    509 CALLS     2220 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.1143        37.292        .19266E-05    .23025E-04
   2  norm          1.2430        .91007        .99187E-07   -.15947E-03
   3  norm          .10000E-03    3.5056        .14016E-07** at limit **
   4  Prefactor     2.6206        3.5870        .61337E-06   -.17897E-03
   5  Prefactor     .10001E-03    29.766        .55338E-05** at limit **
   6  Prefactor     .10000E-03    8.2844        .20836E-05** at limit **
   7  norm          1.1868        1.2845        .41821E-07   -.25778E-04
   8  norm          6.7102        7.1256        .26527E-05   -.58310E-03
   9  Prefactor     28.897        20.418       -.77836E-06    .15063E-04
  10  Prefactor     .10000E-03    7.3669       -.21139E-05** at limit **
  11  norm          5.2588        2.5489       -.21508E-06    .18273E-03
  12  Prefactor     .10000E-03    6.1478        .19491E-06** at limit **
  13  norm          .63297        1.6144        .39300E-06   -.12423E-03
  14  Prefactor     .10000E-03    10.685       -.59356E-06** at limit **
  15  Prefactor     6.7783        10.928        .34259E-05   -.26608E-03
  16  norm          11.608        11.335        .17612E-06    .91541E-05
  17  norm          .10000E-03    2.1029        .28708E-08** at limit **
  18  Prefactor     .10002E-03    94.324       -.14938E-04** at limit **
  19  Prefactor     20.086        17.320        .57268E-06    .36497E-03
  20  Prefactor     .10000E-03    23.854       -.30756E-05** at limit **
  21  norm          .10010E-03    2.2412        .39540E-06** at limit **
  22  Normalizat    1.0495        .15916       -.17000E-05    .85049E-04
  23  Prefactor     .94831        .18982       -.42534E-06   -.27570E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.1143
  norm       = 1.24303
  norm       = 0.0001
  Prefactor  = 2.62058
  Prefactor  = 0.000100006
  Prefactor  = 0.000100001
  norm       = 1.18681
  norm       = 6.71023
  Prefactor  = 28.8969
  Prefactor  = 0.0001
  norm       = 5.25879
  Prefactor  = 0.0001
  norm       = 0.632969
  Prefactor  = 0.0001
  Prefactor  = 6.77828
  norm       = 11.6078
  norm       = 0.0001
  Prefactor  = 0.000100024
  Prefactor  = 20.0858
  Prefactor  = 0.000100001
  norm       = 0.000100103
  Normalizat = 1.04954
  Prefactor  = 0.948311
 **********
 **   18 **HESSE 
 **********

 FCN=   6509.987     FROM HESSE     STATUS=OK           372 CALLS     2592 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.1143        37.365        .16241E-03   -1.5213    
   2  norm          1.2430        .91151        .63751E-04   -1.5485    
   3  norm          .10000E-03    3.5124        .14753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.6206        3.5701        .16721E-03   -1.5384    
   5  Prefactor     .10001E-03    30.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.4091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.1868        1.2746        .91858E-04   -1.5490    
   8  norm          6.7102        7.3055        .77450E-03   -1.5190    
   9  Prefactor     28.897        20.517        .74532E-04   -1.4632    
  10  Prefactor     .10000E-03    7.6983        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.2588        2.5465        .84604E-04   -1.5249    
  12  Prefactor     .10000E-03    6.1553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .63297        1.6061        .15716E-03   -1.5549    
  14  Prefactor     .10000E-03    10.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.7783        11.128        .77028E-03   -1.5187    
  16  norm          11.608        11.335        .11758E-03   -1.5026    
  17  norm          .10000E-03    2.1525        .11422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10002E-03    99.714        .42104E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.086        16.613        .89517E-04   -1.4811    
  20  Prefactor     .10000E-03    24.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10010E-03    41.577        .21785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0495        .18282        .21885E-03   -.91389    
  23  Prefactor     .94831        .21934        .28175E-03   -.94473    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.76783e-09
Minuit parameter uncertainties:
  1  30.2576
  2  0.911519
  3  2.0245e-06
  4  3.57034
  5  0.000849038
  6  0.000159353
  7  1.27458
  8  7.30645
  9  20.5225
  10  0.000110533
  11  2.54653
  12  1.57366e-05
  13  1.60622
  14  5.00413e-05
  15  11.1318
  16  11.3373
  17  8.19866e-06
  18  0.0030962
  19  16.6166
  20  0.000346027
  21  0.00413816
  22  0.182929
  23  0.219549
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  2.890e+01  2.052e+01  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  2.556e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
361        Scale:  8.802e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
687    Prefactor:  9.483e-01  2.195e-01  0.000e+00  1.000e+01 ( 1.000e+00)
688        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
689        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
686   Normalization:  1.050e+00  1.829e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.87
Ra Dec: 187.179 48.983
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 4.82e-08 +/- 3.42e-08
Energy Flux (Fixed Index): 1.32e-05 +/- 9.38e-06

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) = 6509.59041327
delta logL = 0.396573554731

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6509.56719535
delta logL = 0.419791474365

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.684       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0446       1.0000          .0000       10.000    
     3 'Normalizat'    1.0696       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93440       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6900E+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=   6509.567     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      266 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.683        26.999        .66170E-04    .58034E-03
   2  Index         2.0443        .55148        .90499E-02    .20568E-03
   3  Normalizat    1.0696        .17757        .21710E-03   -.10830E-03
   4  Prefactor     .93440        .21770        .28365E-03   -.67093E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.683
  Index      = 2.04431
  Normalizat = 1.06961
  Prefactor  = 0.934399
 **********
 **   18 **HESSE 
 **********

 FCN=   6509.567     FROM HESSE     STATUS=OK            23 CALLS      289 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.683        27.048        .13234E-04   -1.4496    
   2  Index         2.0443        .55233        .36200E-03   -.63247    
   3  Normalizat    1.0696        .17772        .86838E-05   -.90734    
   4  Prefactor     .93440        .21789        .11346E-04   -.94949    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61353e-09
Minuit parameter uncertainties:
  1  27.0569
  2  0.55407
  3  0.177824
  4  0.218099
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/692766': 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) = 6509.567195
delta logL = 0.419791819158

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  3.668e+01  2.706e+01  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  2.044e+00  5.541e-01  0.000e+00  1.000e+01 (-1.000e+00)
361        Scale:  8.802e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
687    Prefactor:  9.344e-01  2.181e-01  0.000e+00  1.000e+01 ( 1.000e+00)
688        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
689        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
686   Normalization:  1.070e+00  1.778e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.72
Ra Dec: 187.179 48.983
Photon Index (Free Index): 2.04 +/- 0.55
Photon Flux (Free Index): 3.00e-08 +/- 3.10e-08
Energy Flux (Free Index): 1.86e-05 +/- 1.72e-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/692766/cmap_HighResolution_252547201_252806401_4FGL_J1228.7+4858_daily_bin51.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.82e-08', energy_flux2='1.86e-05', photon_flux_error='3.42e-08', dlogl='4.20e-01', energy_flux='1.32e-05', photon_flux2='3.00e-08', job_status='DONE', time_completed='2021-09-05 18:19:48.550233', photon_index_error2='0.55', photon_index2='2.04', ts='5.87', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.72e-05', EG='1.05', time_epoch_completed='1630891188.55', return_code='0', job_id='692766', GAL2='0.93', EG2='1.07', return_code2='0', energy_flux_error='9.38e-06', photon_flux_error2='3.10e-08', ts2='6.72', photon_index='2.56' WHERE bin_id='51' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:19:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 692766: <4FGL_J1228.7+4858_daily_bin51> in cluster <slac> Done

Job <4FGL_J1228.7+4858_daily_bin51> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 18:05:25 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:05:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 18:05:28 2021
Terminated at Sun Sep  5 18:19:49 2021
Results reported at Sun Sep  5 18:19:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin51 187.179 48.9827 252547201 252806401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1228.7+4858 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   639.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             270.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            864 sec.

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

