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


Performing analysis on: 4FGL_J1228.7+4858_daily_bin108
RA = 187.179, Dec = 48.9827
tmin = 267321601, tmax = 267580801
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='692849', job_status='RUN', time_executed='2021-09-05 18:05:47.990184', time_epoch_executed='1630890347.99' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='108'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/692849

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/692849/ft1_4FGL_J1228.7+4858_daily_bin108.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/692849/ft2_4FGL_J1228.7+4858_daily_bin108.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/692849/ft1_4FGL_J1228.7+4858_daily_bin108.fits outfile=/scratch/kocevski/692849/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin108.fits ra=187.179 dec=48.9827 rad=12.0 tmin=267321601.0 tmax=267580801.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.42
user 1.21
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/692849/ft2_4FGL_J1228.7+4858_daily_bin108.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/692849/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin108.fits evtable="EVENTS" outfile="/scratch/kocevski/692849/ft1_filtered_4FGL_J1228.7+4858_daily_bin108.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/692849/ft1_filtered_4FGL_J1228.7+4858_daily_bin108.fits" evtable="EVENTS" scfile=/scratch/kocevski/692849/ft2_4FGL_J1228.7+4858_daily_bin108.fits sctable="SC_DATA" outfile=/scratch/kocevski/692849/ltcube_267321601_267580801_4FGL_J1228.7+4858_daily_bin108.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/692849/ft2_4FGL_J1228.7+4858_daily_bin108.fits
.....................!
real 13.09
user 12.71
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/692849/ft1_filtered_4FGL_J1228.7+4858_daily_bin108.fits evtable="EVENTS" scfile=/scratch/kocevski/692849/ft2_4FGL_J1228.7+4858_daily_bin108.fits sctable="SC_DATA" expcube=/scratch/kocevski/692849/ltcube_267321601_267580801_4FGL_J1228.7+4858_daily_bin108.fits outfile=/scratch/kocevski/692849/expmap_267321601_267580801_4FGL_J1228.7+4858_daily_bin108.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/692849/ltcube_267321601_267580801_4FGL_J1228.7+4858_daily_bin108.fits
.....................!
real 190.69
user 185.25
sys 5.05

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/692849/ft1_filtered_4FGL_J1228.7+4858_daily_bin108.fits scfile=/scratch/kocevski/692849/ft2_4FGL_J1228.7+4858_daily_bin108.fits outfile=/scratch/kocevski/692849/cmap_267321601_267580801_4FGL_J1228.7+4858_daily_bin108.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/692849/ft1_filtered_4FGL_J1228.7+4858_daily_bin108.fits scfile=/scratch/kocevski/692849/ft2_4FGL_J1228.7+4858_daily_bin108.fits outfile=/scratch/kocevski/692849/cmap_HighResolution_267321601_267580801_4FGL_J1228.7+4858_daily_bin108.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.54
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/692849/ft1_filtered_4FGL_J1228.7+4858_daily_bin108.fits evtable="EVENTS" scfile=/scratch/kocevski/692849/ft2_4FGL_J1228.7+4858_daily_bin108.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/692849/Model_4FGL_J1228.7+4858_daily_bin108.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/692849/ft1_filtered_4FGL_J1228.7+4858_daily_bin108.fits.....................!
real 44.42
user 43.09
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    81.408       1.0000         .10000E-03   10000.    
     2 'norm      '    .33771       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12036E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10123E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .22200E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    62.584       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5730       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .15929       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.8537       1.0000         .10000E-03   10000.    
    17 'norm      '    6.3924       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13505E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    46.212       1.0000         .10000E-03   10000.    
    20 'Prefactor '    93.959       1.0000         .10000E-03   10000.    
    21 'norm      '    .10346E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1810       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .87440       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=   4878.711     FROM MIGRAD    STATUS=CONVERGED    541 CALLS     2312 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          81.432        54.757        .13882E-04    .17104E-05
   2  norm          .33728        1.0928       -.64013E-06   -.16480E-02
   3  norm          .10000E-03    3.8320        .16681E-07** at limit **
   4  Prefactor     .10000E-03    2.0265       -.10193E-06** at limit **
   5  Prefactor     .10000E-03    176.63        .51842E-05** at limit **
   6  Prefactor     .10000E-03    13.133       -.12227E-05** at limit **
   7  norm          .10000E-03    1.3806       -.63896E-07** at limit **
   8  norm          .10000E-03    7.5538       -.12108E-05** at limit **
   9  Prefactor     62.613        33.622        .22410E-05    .24676E-03
  10  Prefactor     4.5729        5.6429       -.17718E-06   -.13787E-03
  11  norm          .10000E-03    1.1016       -.53338E-08** at limit **
  12  Prefactor     .10000E-03    11.231       -.11791E-05** at limit **
  13  norm          .14861        1.6769       -.22994E-06   -.22327E-03
  14  Prefactor     .10000E-03    18.362        .16346E-06** at limit **
  15  Prefactor     .10000E-03    11.947        .21380E-05** at limit **
  16  norm          4.8520        13.755       -.14330E-05   -.65284E-04
  17  norm          6.3914        5.6857        .90880E-06   -.10560E-03
  18  Prefactor     .10000E-03    61.610        .44212E-06** at limit **
  19  Prefactor     46.205        30.359        .13953E-05    .10247E-04
  20  Prefactor     93.940        52.392       -.91339E-05    .14218E-05
  21  norm          .10000E-03    2.4734        .17779E-08** at limit **
  22  Normalizat    1.1813        .20092        .43129E-06    .21487E-03
  23  Prefactor     .87416        .23211       -.31481E-06    .15141E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 81.4315
  norm       = 0.337284
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 62.6132
  Prefactor  = 4.57295
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.148605
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.852
  norm       = 6.39142
  Prefactor  = 0.000100002
  Prefactor  = 46.2053
  Prefactor  = 93.9398
  norm       = 0.0001
  Normalizat = 1.18131
  Prefactor  = 0.87416
 **********
 **   18 **HESSE 
 **********

 FCN=   4878.711     FROM HESSE     STATUS=OK           368 CALLS     2680 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          81.432        54.129        .44515E-04   -1.3901    
   2  norm          .33728        1.1037        .12700E-03   -1.5592    
   3  norm          .10000E-03    3.8368        .13353E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.206        .18869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    178.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    7.9201        .15555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    22.459        .34897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     62.613        32.026        .50723E-04   -1.4124    
  10  Prefactor     4.5729        5.6314        .17819E-03   -1.5280    
  11  norm          .10000E-03    1.1075        .71511E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .14861        11.230        .17276E-02   -1.5631    
  14  Prefactor     .10000E-03    18.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.8520        13.767        .18259E-03   -1.5267    
  17  norm          6.3914        5.6616        .14968E-03   -1.5202    
  18  Prefactor     .10000E-03    61.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     46.205        30.283        .58981E-04   -1.4347    
  20  Prefactor     93.940        52.225        .41462E-04   -1.3766    
  21  norm          .10000E-03    2.4765        .10714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1813        .23064        .22102E-03   -.87182    
  23  Prefactor     .87416        .27143        .30588E-03   -.97050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54362e-09
Minuit parameter uncertainties:
  1  54.1617
  2  1.10373
  3  2.99569e-06
  4  0.000331438
  5  0.000804772
  6  6.11715e-06
  7  3.84586e-05
  8  0.000307259
  9  32.0348
  10  5.63209
  11  1.24682e-07
  12  9.14772e-06
  13  2.58328
  14  6.98763e-06
  15  1.02377e-05
  16  13.7763
  17  5.66205
  18  0.000616658
  19  30.2932
  20  52.2501
  21  3.9202e-07
  22  0.230834
  23  0.27185
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  6.261e+01  3.203e+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:  8.742e-01  2.719e-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.181e+00  2.308e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.60
Ra Dec: 187.179 48.983
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 1.05e-07 +/- 5.34e-08
Energy Flux (Fixed Index): 2.86e-05 +/- 1.46e-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) = 4878.36133064
delta logL = 0.349523187215

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4878.27904364
delta logL = 0.431810186706

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    84.490       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1075       1.0000          .0000       10.000    
     3 'Normalizat'    1.2206       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84193       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=   4878.279     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      281 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     84.491        47.292        .43703E-04   -.15775E-03
   2  Index         2.1075        .47226        .60000E-02   -.11226E-03
   3  Normalizat    1.2206        .22720        .21814E-03    .56672E-04
   4  Prefactor     .84196        .27021        .31098E-03    .48731E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 84.4909
  Index      = 2.10746
  Normalizat = 1.22062
  Prefactor  = 0.841958
 **********
 **   18 **HESSE 
 **********

 FCN=   4878.279     FROM HESSE     STATUS=OK            23 CALLS      304 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     84.491        47.016        .87405E-05   -1.3867    
   2  Index         2.1075        .46907        .24000E-03   -.61690    
   3  Normalizat    1.2206        .22733        .43627E-04   -.85968    
   4  Prefactor     .84196        .27039        .12439E-04   -.98200    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29907e-10
Minuit parameter uncertainties:
  1  47.0364
  2  0.470106
  3  0.22751
  4  0.270816
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/692849': 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) = 4878.27904363
delta logL = 0.431810194766

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  8.449e+01  4.704e+01  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  2.107e+00  4.701e-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:  8.420e-01  2.708e-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.221e+00  2.275e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.41
Ra Dec: 187.179 48.983
Photon Index (Free Index): 2.11 +/- 0.47
Photon Flux (Free Index): 7.47e-08 +/- 5.55e-08
Energy Flux (Free Index): 4.03e-05 +/- 2.99e-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/692849/cmap_HighResolution_267321601_267580801_4FGL_J1228.7+4858_daily_bin108.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.05e-07', energy_flux2='4.03e-05', photon_flux_error='5.34e-08', dlogl='4.32e-01', energy_flux='2.86e-05', photon_flux2='7.47e-08', job_status='DONE', time_completed='2021-09-05 18:15:24.814024', photon_index_error2='0.47', photon_index2='2.11', ts='7.60', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='2.99e-05', EG='1.18', time_epoch_completed='1630890924.81', return_code='0', job_id='692849', GAL2='0.84', EG2='1.22', return_code2='0', energy_flux_error='1.46e-05', photon_flux_error2='5.55e-08', ts2='8.41', photon_index='2.56' WHERE bin_id='108' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:15:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 692849: <4FGL_J1228.7+4858_daily_bin108> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin108 187.179 48.9827 267321601 267580801 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 :                                   569.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             347.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   592 sec.
    Turnaround time :                            594 sec.

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

