/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 157 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 = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1228.7+4858_daily_bin15
RA = 187.179, Dec = 48.9827
tmin = 243216001, tmax = 243475201
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='692714', job_status='RUN', time_executed='2021-09-05 18:08:09.358883', time_epoch_executed='1630890489.36' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='15'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/692714

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/692714/ft1_4FGL_J1228.7+4858_daily_bin15.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/692714/ft2_4FGL_J1228.7+4858_daily_bin15.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/692714/ft1_4FGL_J1228.7+4858_daily_bin15.fits outfile=/scratch/kocevski/692714/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin15.fits ra=187.179 dec=48.9827 rad=12.0 tmin=243216001.0 tmax=243475201.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.39
user 1.19
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/692714/ft2_4FGL_J1228.7+4858_daily_bin15.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/692714/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin15.fits evtable="EVENTS" outfile="/scratch/kocevski/692714/ft1_filtered_4FGL_J1228.7+4858_daily_bin15.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.55
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/692714/ft1_filtered_4FGL_J1228.7+4858_daily_bin15.fits" evtable="EVENTS" scfile=/scratch/kocevski/692714/ft2_4FGL_J1228.7+4858_daily_bin15.fits sctable="SC_DATA" outfile=/scratch/kocevski/692714/ltcube_243216001_243475201_4FGL_J1228.7+4858_daily_bin15.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/692714/ft2_4FGL_J1228.7+4858_daily_bin15.fits
.....................!
real 12.72
user 12.25
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/692714/ft1_filtered_4FGL_J1228.7+4858_daily_bin15.fits evtable="EVENTS" scfile=/scratch/kocevski/692714/ft2_4FGL_J1228.7+4858_daily_bin15.fits sctable="SC_DATA" expcube=/scratch/kocevski/692714/ltcube_243216001_243475201_4FGL_J1228.7+4858_daily_bin15.fits outfile=/scratch/kocevski/692714/expmap_243216001_243475201_4FGL_J1228.7+4858_daily_bin15.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/692714/ltcube_243216001_243475201_4FGL_J1228.7+4858_daily_bin15.fits
.....................!
real 190.94
user 185.15
sys 5.35

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/692714/ft1_filtered_4FGL_J1228.7+4858_daily_bin15.fits scfile=/scratch/kocevski/692714/ft2_4FGL_J1228.7+4858_daily_bin15.fits outfile=/scratch/kocevski/692714/cmap_243216001_243475201_4FGL_J1228.7+4858_daily_bin15.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/692714/ft1_filtered_4FGL_J1228.7+4858_daily_bin15.fits scfile=/scratch/kocevski/692714/ft2_4FGL_J1228.7+4858_daily_bin15.fits outfile=/scratch/kocevski/692714/cmap_HighResolution_243216001_243475201_4FGL_J1228.7+4858_daily_bin15.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/692714/ft1_filtered_4FGL_J1228.7+4858_daily_bin15.fits evtable="EVENTS" scfile=/scratch/kocevski/692714/ft2_4FGL_J1228.7+4858_daily_bin15.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/692714/Model_4FGL_J1228.7+4858_daily_bin15.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/692714/ft1_filtered_4FGL_J1228.7+4858_daily_bin15.fits.....................!
real 50.62
user 49.05
sys 1.38

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/692714/ft1_filtered_4FGL_J1228.7+4858_daily_bin15.fits', '/scratch/kocevski/692714/ft2_4FGL_J1228.7+4858_daily_bin15.fits', expMap='/scratch/kocevski/692714/expmap_243216001_243475201_4FGL_J1228.7+4858_daily_bin15.fits', expCube='/scratch/kocevski/692714/ltcube_243216001_243475201_4FGL_J1228.7+4858_daily_bin15.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/692714/Model_4FGL_J1228.7+4858_daily_bin15.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/692714/ft1_filtered_4FGL_J1228.7+4858_daily_bin15.fits
Spacecraft file(s): /scratch/kocevski/692714/ft2_4FGL_J1228.7+4858_daily_bin15.fits
Exposure map: /scratch/kocevski/692714/expmap_243216001_243475201_4FGL_J1228.7+4858_daily_bin15.fits
Exposure cube: /scratch/kocevski/692714/ltcube_243216001_243475201_4FGL_J1228.7+4858_daily_bin15.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/692714/Model_4FGL_J1228.7+4858_daily_bin15.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) = 5655.92182415

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.0462       1.0000         .10000E-03   10000.    
     3 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.5436       1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.171       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.2207       1.0000         .10000E-03   10000.    
     8 'norm      '    11.718       1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.080       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3570       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11836E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .14286E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .22030       1.0000         .10000E-03   10000.    
    16 'norm      '    12.489       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.1257       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1791       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .53308       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=   5655.842     FROM MIGRAD    STATUS=CONVERGED    522 CALLS     2551 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.465       -.52463E-05** at limit **
   2  norm          1.0449        1.0120        .16517E-05    .12461E-02
   3  norm          .10000E-03    2.6343        .18581E-06** at limit **
   4  Prefactor     2.5439        1.9684       -.68382E-07   -.15510E-04
   5  Prefactor     31.137        43.605       -.40029E-04   -.29423E-04
   6  Prefactor     .10000E-03    4.2711       -.52282E-08** at limit **
   7  norm          3.2210        2.2595       -.21951E-06   -.26831E-03
   8  norm          11.721        8.2144       -.45546E-06   -.13653E-02
   9  Prefactor     33.072        22.994       -.15259E-05    .47521E-04
  10  Prefactor     1.3548        3.9642       -.91048E-06   -.74514E-03
  11  norm          .10000E-03    .68842        .28867E-07** at limit **
  12  Prefactor     .10000E-03    27.085       -.10069E-04** at limit **
  13  norm          .10000E-03    1.1008       -.11933E-06** at limit **
  14  Prefactor     .10000E-03    13.926        .61376E-05** at limit **
  15  Prefactor     .26233        7.7747       -.13816E-05    .37615E-04
  16  norm          12.489        11.628       -.25097E-06   -.52813E-05
  17  norm          .10000E-03    .94708       -.32140E-07** at limit **
  18  Prefactor     .10000E-03    32.289        .10207E-04** at limit **
  19  Prefactor     .10000E-03    9.6891        .62829E-06** at limit **
  20  Prefactor     .10000E-03    18.286       -.48714E-06** at limit **
  21  norm          2.1246        3.6465       -.73930E-06   -.58759E-03
  22  Normalizat    1.1789        .15712        .12168E-05    .10597E-03
  23  Prefactor     .53330        .18396        .18811E-05    .11496E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.0449
  norm       = 0.0001
  Prefactor  = 2.54386
  Prefactor  = 31.1368
  Prefactor  = 0.0001
  norm       = 3.22104
  norm       = 11.7208
  Prefactor  = 33.0721
  Prefactor  = 1.35477
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.262329
  norm       = 12.4892
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.12463
  Normalizat = 1.17893
  Prefactor  = 0.533302
 **********
 **   18 **HESSE 
 **********

 FCN=   5655.842     FROM HESSE     STATUS=OK           374 CALLS     2925 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0449        .98679        .68177E-04   -1.5504    
   3  norm          .10000E-03    2.6362        .11922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.5439        1.9664        .90040E-04   -1.5389    
   5  Prefactor     31.137        43.438        .71766E-04   -1.4591    
   6  Prefactor     .10000E-03    4.2747        .15179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.2210        2.2600        .89846E-04   -1.5349    
   8  norm          11.721        8.2457        .58513E-03   -1.5023    
   9  Prefactor     33.072        22.992        .69670E-04   -1.4557    
  10  Prefactor     1.3548        3.9276        .24360E-03   -1.5475    
  11  norm          .10000E-03    .69391        .60821E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    27.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.0428        .15338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .26233        70.730        .39441E-02   -1.5606    
  16  norm          12.489        11.628        .11335E-03   -1.5001    
  17  norm          .10000E-03    .94967        .71469E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    32.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.7304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.1246        3.6336        .18117E-03   -1.5416    
  22  Normalizat    1.1789        .17900        .18939E-03   -.87256    
  23  Prefactor     .53330        .20742        .32371E-03   -1.1047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55863e-09
Minuit parameter uncertainties:
  1  1.77417e-06
  2  0.986808
  3  2.27736e-05
  4  1.96646
  5  43.4826
  6  7.64469e-07
  7  2.26011
  8  8.24649
  9  22.9985
  10  3.92838
  11  1.09637e-06
  12  1.38592e-06
  13  2.74743e-06
  14  8.32111e-06
  15  8.62364
  16  11.6305
  17  1.54515e-06
  18  8.87092e-05
  19  5.83649e-08
  20  3.32047e-05
  21  3.63398
  22  0.179089
  23  0.207717
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  3.307e+01  2.300e+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:  5.333e-01  2.077e-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.179e+00  1.791e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.32
Ra Dec: 187.179 48.983
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 5.52e-08 +/- 3.84e-08
Energy Flux (Fixed Index): 1.51e-05 +/- 1.05e-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) = 5655.84123977
delta logL = 0.000887363876245

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5655.84062576
delta logL = 0.001501374707

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.953       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5229       1.0000          .0000       10.000    
     3 'Normalizat'    1.1805       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .53203       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=   5655.841     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      265 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.962        28.055        .68772E-04    .37195E-04
   2  Index         2.5228        .62108        .66688E-02    .36500E-03
   3  Normalizat    1.1804        .17688        .18929E-03   -.41320E-05
   4  Prefactor     .53213        .20775        .32404E-03   -.60029E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.9624
  Index      = 2.52282
  Normalizat = 1.18041
  Prefactor  = 0.532131
 **********
 **   18 **HESSE 
 **********

 FCN=   5655.841     FROM HESSE     STATUS=OK            25 CALLS      290 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.962        27.097        .27509E-05   -1.4542    
   2  Index         2.5228        .59952        .13338E-02   -.51834    
   3  Normalizat    1.1804        .17689        .37859E-04   -.87210    
   4  Prefactor     .53213        .20781        .12962E-04   -1.1052    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.23663e-11
Minuit parameter uncertainties:
  1  27.1068
  2  0.601439
  3  0.176978
  4  0.208104
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/692714': 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) = 5655.84062556
delta logL = 0.00150157302232

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  3.396e+01  2.711e+01  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  2.523e+00  6.014e-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:  5.321e-01  2.081e-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.180e+00  1.770e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.38
Ra Dec: 187.179 48.983
Photon Index (Free Index): 2.52 +/- 0.60
Photon Flux (Free Index): 5.39e-08 +/- 4.17e-08
Energy Flux (Free Index): 1.53e-05 +/- 1.03e-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/692714/cmap_HighResolution_243216001_243475201_4FGL_J1228.7+4858_daily_bin15.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.52e-08', energy_flux2='1.53e-05', photon_flux_error='3.84e-08', dlogl='1.50e-03', energy_flux='1.51e-05', photon_flux2='5.39e-08', job_status='DONE', time_completed='2021-09-05 18:18:38.193203', photon_index_error2='0.60', photon_index2='2.52', ts='4.32', fit_tolerance='1e-08', GAL='0.53', photon_index_error='0.00', energy_flux_error2='1.03e-05', EG='1.18', time_epoch_completed='1630891118.19', return_code='0', job_id='692714', GAL2='0.53', EG2='1.18', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='4.17e-08', ts2='4.38', photon_index='2.56' WHERE bin_id='15' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:18:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 692714: <4FGL_J1228.7+4858_daily_bin15> in cluster <slac> Done

Job <4FGL_J1228.7+4858_daily_bin15> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 18:05:22 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:05:23 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:23 2021
Terminated at Sun Sep  5 18:18:38 2021
Results reported at Sun Sep  5 18:18:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin15 187.179 48.9827 243216001 243475201 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 :                                   627.24 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             284.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            796 sec.

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

