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


Performing analysis on: 4FGL_J1228.7+4858_daily_bin388
RA = 187.179, Dec = 48.9827
tmin = 339897601, tmax = 340156801
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='698560', job_status='RUN', time_executed='2021-09-05 18:25:37.728775', time_epoch_executed='1630891537.73' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='388'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/698560

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/698560/ft1_4FGL_J1228.7+4858_daily_bin388.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/698560/ft2_4FGL_J1228.7+4858_daily_bin388.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/698560/ft1_4FGL_J1228.7+4858_daily_bin388.fits outfile=/scratch/kocevski/698560/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin388.fits ra=187.179 dec=48.9827 rad=12.0 tmin=339897601.0 tmax=340156801.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.36
user 3.10
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/698560/ft2_4FGL_J1228.7+4858_daily_bin388.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/698560/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin388.fits evtable="EVENTS" outfile="/scratch/kocevski/698560/ft1_filtered_4FGL_J1228.7+4858_daily_bin388.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/698560/ft1_filtered_4FGL_J1228.7+4858_daily_bin388.fits" evtable="EVENTS" scfile=/scratch/kocevski/698560/ft2_4FGL_J1228.7+4858_daily_bin388.fits sctable="SC_DATA" outfile=/scratch/kocevski/698560/ltcube_339897601_340156801_4FGL_J1228.7+4858_daily_bin388.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/698560/ft2_4FGL_J1228.7+4858_daily_bin388.fits
.....................!
real 12.50
user 11.82
sys 0.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/698560/ft1_filtered_4FGL_J1228.7+4858_daily_bin388.fits evtable="EVENTS" scfile=/scratch/kocevski/698560/ft2_4FGL_J1228.7+4858_daily_bin388.fits sctable="SC_DATA" expcube=/scratch/kocevski/698560/ltcube_339897601_340156801_4FGL_J1228.7+4858_daily_bin388.fits outfile=/scratch/kocevski/698560/expmap_339897601_340156801_4FGL_J1228.7+4858_daily_bin388.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/698560/ltcube_339897601_340156801_4FGL_J1228.7+4858_daily_bin388.fits
.....................!
real 191.34
user 184.97
sys 5.44

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/698560/ft1_filtered_4FGL_J1228.7+4858_daily_bin388.fits scfile=/scratch/kocevski/698560/ft2_4FGL_J1228.7+4858_daily_bin388.fits outfile=/scratch/kocevski/698560/cmap_339897601_340156801_4FGL_J1228.7+4858_daily_bin388.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/698560/ft1_filtered_4FGL_J1228.7+4858_daily_bin388.fits scfile=/scratch/kocevski/698560/ft2_4FGL_J1228.7+4858_daily_bin388.fits outfile=/scratch/kocevski/698560/cmap_HighResolution_339897601_340156801_4FGL_J1228.7+4858_daily_bin388.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/698560/ft1_filtered_4FGL_J1228.7+4858_daily_bin388.fits evtable="EVENTS" scfile=/scratch/kocevski/698560/ft2_4FGL_J1228.7+4858_daily_bin388.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/698560/Model_4FGL_J1228.7+4858_daily_bin388.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/698560/ft1_filtered_4FGL_J1228.7+4858_daily_bin388.fits.....................!
real 57.95
user 55.95
sys 1.58

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    6.3036       1.0000         .10000E-03   10000.    
     3 'norm      '    .10233E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.3514       1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.9107       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .34955       1.0000         .10000E-03   10000.    
     8 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.561       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.4540       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10537E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.5975       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    20.962       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10315E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.280       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4007       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .56707       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=   6873.400     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     2185 TOTAL
                     EDM=   .44E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    13.255       -.13452E-05** at limit **
   2  norm          6.3036        1.6881       -.19885E-07   -.25622E-05
   3  norm          .10000E-03    14.753       -.55160E-05** at limit **
   4  Prefactor     9.3505        3.8406        .10785E-07    .11295E-03
   5  Prefactor     5.9109        50.666       -.12407E-05   -.31394E-06
   6  Prefactor     .10000E-03    6.2575        .32330E-06** at limit **
   7  norm          .34970        1.3664       -.98751E-06    .19152E-03
   8  norm          .10000E-03    4.7800       -.53136E-07** at limit **
   9  Prefactor     28.557        21.213        .23660E-06   -.14218E-04
  10  Prefactor     .10000E-03    1.7602       -.34427E-08** at limit **
  11  norm          6.4534        2.5314       -.15977E-07    .13389E-03
  12  Prefactor     .10000E-03    53.954        .37655E-05** at limit **
  13  norm          1.5974        1.6948       -.31960E-07    .18313E-04
  14  Prefactor     .10000E-03    50.088        .14356E-06** at limit **
  15  Prefactor     .10000E-03    5.8456       -.39739E-06** at limit **
  16  norm          20.965        15.477       -.60752E-07    .30147E-05
  17  norm          .10000E-03    1.6342       -.55294E-07** at limit **
  18  Prefactor     .10000E-03    36.643       -.41768E-05** at limit **
  19  Prefactor     15.282        13.150       -.88736E-07    .27446E-04
  20  Prefactor     .10000E-03    26.273        .56693E-06** at limit **
  21  norm          .10000E-03    1.0182       -.12180E-07** at limit **
  22  Normalizat    1.4009        .16429        .37683E-06    .13979E-03
  23  Prefactor     .56674        .19142        .24823E-06    .92716E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 6.30359
  norm       = 0.0001
  Prefactor  = 9.35053
  Prefactor  = 5.91092
  Prefactor  = 0.0001
  norm       = 0.349699
  norm       = 0.0001
  Prefactor  = 28.5574
  Prefactor  = 0.0001
  norm       = 6.45344
  Prefactor  = 0.0001
  norm       = 1.59743
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.9646
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 15.2816
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.40088
  Prefactor  = 0.566744
 **********
 **   18 **HESSE 
 **********

 FCN=   6873.400     FROM HESSE     STATUS=OK           368 CALLS     2553 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.3036        1.6881        .51822E-04   -1.5206    
   3  norm          .10000E-03    14.614        .33289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.3505        3.8494        .99441E-04   -1.5096    
   5  Prefactor     5.9109        50.271        .16517E-03   -1.5222    
   6  Prefactor     .10000E-03    6.2702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .34970        1.3905        .18704E-03   -1.5590    
   8  norm          .10000E-03    4.8333        .17670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     28.557        21.233        .74965E-04   -1.4639    
  10  Prefactor     .10000E-03    1.7654        .10738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.4534        2.5310        .79995E-04   -1.5200    
  12  Prefactor     .10000E-03    55.336        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.5974        1.6879        .10757E-03   -1.5455    
  14  Prefactor     .10000E-03    50.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.8946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          20.965        15.475        .87482E-04   -1.4792    
  17  norm          .10000E-03    1.6617        .10349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    38.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.282        13.163        .10246E-03   -1.4926    
  20  Prefactor     .10000E-03    26.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.0198        .81678E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4009        .18933        .20622E-03   -.80603    
  23  Prefactor     .56674        .21841        .36765E-03   -1.0901    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.58174e-11
Minuit parameter uncertainties:
  1  8.26184e-05
  2  1.68807
  3  4.57176e-05
  4  3.84953
  5  34.515
  6  1.25891e-05
  7  1.39062
  8  1.34672e-05
  9  21.2382
  10  4.10192e-08
  11  2.531
  12  0.000134635
  13  1.68797
  14  1.24293e-05
  15  1.66912e-05
  16  15.4779
  17  2.28589e-06
  18  0.000406842
  19  13.1651
  20  5.59602e-05
  21  3.59976e-07
  22  0.189425
  23  0.218732
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  2.856e+01  2.124e+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.667e-01  2.187e-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.401e+00  1.894e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.39
Ra Dec: 187.179 48.983
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 4.77e-08 +/- 3.54e-08
Energy Flux (Fixed Index): 1.30e-05 +/- 9.70e-06

TS (Fixed Index): 3.39
Ra Dec: 187.179 48.983
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/698560/likelihoodResults_339897601_340156801_4FGL_J1228.7+4858_daily_bin388.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6873.40045866
delta logL = 2.43588701778e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6873.4004148
delta logL = 6.82198660797e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.249       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5673       1.0000          .0000       10.000    
     3 'Normalizat'    1.4004       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56699       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=   6873.400     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      257 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.238        41.002        .75377E-04   -.42113E-03
   2  Index         2.5684        1.2848        .88663E-02   -.16628E-03
   3  Normalizat    1.4003        .19513        .20625E-03   -.12690E-02
   4  Prefactor     .56729        .22467        .36749E-03   -.10566E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.2382
  Index      = 2.56841
  Normalizat = 1.40027
  Prefactor  = 0.567286
 **********
 **   18 **HESSE 
 **********

 FCN=   6873.400     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.238        34.443        .15075E-04   -1.4645    
   2  Index         2.5684        1.0811        .35465E-03   -.50787    
   3  Normalizat    1.4003        .19232        .41250E-04   -.80621    
   4  Prefactor     .56729        .22248        .73499E-04   -1.0898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.5425e-09
Minuit parameter uncertainties:
  1  34.4671
  2  1.09245
  3  0.192423
  4  0.222821
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/698560': 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) = 6873.40041289
delta logL = 7.01326471244e-05

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  2.824e+01  3.447e+01  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  2.568e+00  1.092e+00  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.673e-01  2.228e-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.400e+00  1.924e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.38
Ra Dec: 187.179 48.983
Photon Index (Free Index): 2.57 +/- 1.09
Photon Flux (Free Index): 4.81e-08 +/- 4.93e-08
Energy Flux (Free Index): 1.30e-05 +/- 1.07e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/698560/cmap_HighResolution_339897601_340156801_4FGL_J1228.7+4858_daily_bin388.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.64e-03', comment='SUCCESS', photon_flux='4.77e-08', energy_flux2='1.30e-05', photon_flux_error='3.54e-08', dlogl='7.01e-05', energy_flux='1.30e-05', photon_flux2='4.81e-08', job_status='DONE', time_completed='2021-09-05 18:38:23.861770', photon_index_error2='1.09', photon_index2='2.57', ts='3.39', fit_tolerance='1e-08', GAL='0.57', photon_index_error='0.00', photon_flux_upper_limit='1.24e-07', energy_flux_error2='1.07e-05', EG='1.40', time_epoch_completed='1630892303.86', return_code='0', job_id='698560', GAL2='0.57', EG2='1.40', return_code2='0', energy_flux_error='9.70e-06', photon_flux_error2='4.93e-08', ts2='3.38', photon_index='2.56' WHERE bin_id='388' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:38:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 698560: <4FGL_J1228.7+4858_daily_bin388> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin388 187.179 48.9827 339897601 340156801 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 :                                   757.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             353.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            779 sec.

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

