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


Performing analysis on: 4FGL_J1228.7+4858_daily_bin1126
RA = 187.179, Dec = 48.9827
tmin = 531187201, tmax = 531446401
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='701649', job_status='RUN', time_executed='2021-09-05 18:35:33.914144', time_epoch_executed='1630892133.91' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='1126'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/701649

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/701649/ft1_4FGL_J1228.7+4858_daily_bin1126.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/701649/ft2_4FGL_J1228.7+4858_daily_bin1126.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/701649/ft1_4FGL_J1228.7+4858_daily_bin1126.fits outfile=/scratch/kocevski/701649/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin1126.fits ra=187.179 dec=48.9827 rad=12.0 tmin=531187201.0 tmax=531446401.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.98
user 3.75
sys 0.22

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/701649/ft1_filtered_4FGL_J1228.7+4858_daily_bin1126.fits" evtable="EVENTS" scfile=/scratch/kocevski/701649/ft2_4FGL_J1228.7+4858_daily_bin1126.fits sctable="SC_DATA" outfile=/scratch/kocevski/701649/ltcube_531187201_531446401_4FGL_J1228.7+4858_daily_bin1126.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/701649/ft2_4FGL_J1228.7+4858_daily_bin1126.fits
.....................!
real 11.78
user 11.41
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/701649/ft1_filtered_4FGL_J1228.7+4858_daily_bin1126.fits evtable="EVENTS" scfile=/scratch/kocevski/701649/ft2_4FGL_J1228.7+4858_daily_bin1126.fits sctable="SC_DATA" expcube=/scratch/kocevski/701649/ltcube_531187201_531446401_4FGL_J1228.7+4858_daily_bin1126.fits outfile=/scratch/kocevski/701649/expmap_531187201_531446401_4FGL_J1228.7+4858_daily_bin1126.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/701649/ltcube_531187201_531446401_4FGL_J1228.7+4858_daily_bin1126.fits
.....................!
real 191.26
user 185.86
sys 5.00

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/701649/ft1_filtered_4FGL_J1228.7+4858_daily_bin1126.fits scfile=/scratch/kocevski/701649/ft2_4FGL_J1228.7+4858_daily_bin1126.fits outfile=/scratch/kocevski/701649/cmap_531187201_531446401_4FGL_J1228.7+4858_daily_bin1126.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/701649/ft1_filtered_4FGL_J1228.7+4858_daily_bin1126.fits scfile=/scratch/kocevski/701649/ft2_4FGL_J1228.7+4858_daily_bin1126.fits outfile=/scratch/kocevski/701649/cmap_HighResolution_531187201_531446401_4FGL_J1228.7+4858_daily_bin1126.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/701649/ft1_filtered_4FGL_J1228.7+4858_daily_bin1126.fits evtable="EVENTS" scfile=/scratch/kocevski/701649/ft2_4FGL_J1228.7+4858_daily_bin1126.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/701649/Model_4FGL_J1228.7+4858_daily_bin1126.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/701649/ft1_filtered_4FGL_J1228.7+4858_daily_bin1126.fits.....................!
real 55.99
user 54.60
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .70039       1.0000         .10000E-03   10000.    
     3 'norm      '    1.4302       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    59.701       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .32736       1.0000         .10000E-03   10000.    
     8 'norm      '    1.7122       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.408       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.0669       1.0000         .10000E-03   10000.    
    11 'norm      '    5.9759       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.172       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .45792       1.0000         .10000E-03   10000.    
    16 'norm      '    4.1204       1.0000         .10000E-03   10000.    
    17 'norm      '    .10120E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.5824       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0942       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1276       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=   6672.018     FROM MIGRAD    STATUS=CONVERGED    523 CALLS     2568 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    13.262       -.24410E-06** at limit **
   2  norm          .69675        1.7334        .20860E-05   -.66225E-05
   3  norm          1.4309        12.678       -.13184E-05   -.12669E-03
   4  Prefactor     .10000E-03    1.9968        .98841E-07** at limit **
   5  Prefactor     59.799        67.470        .30282E-05    .11416E-03
   6  Prefactor     .10000E-03    13.889        .27728E-06** at limit **
   7  norm          .32345        1.6246        .91175E-06   -.37645E-03
   8  norm          1.7186        5.5513        .14731E-05    .16126E-04
   9  Prefactor     18.379        24.025       -.39594E-05   -.24898E-03
  10  Prefactor     2.0692        4.3935        .68212E-06   -.19030E-03
  11  norm          5.9797        2.6248       -.89233E-07   -.86170E-03
  12  Prefactor     12.165        22.307       -.17929E-06   -.74343E-04
  13  norm          .10000E-03    .87028        .11807E-07** at limit **
  14  Prefactor     .10000E-03    12.530       -.41891E-06** at limit **
  15  Prefactor     .34020        8.7961        .23039E-05   -.48553E-03
  16  norm          4.1193        8.9284        .48277E-05   -.49719E-04
  17  norm          .10001E-03    1.8002       -.37170E-07** at limit **
  18  Prefactor     .10000E-03    8.2994       -.33276E-06** at limit **
  19  Prefactor     .10000E-03    3.5047        .15483E-07** at limit **
  20  Prefactor     .10000E-03    9.8528        .97550E-06** at limit **
  21  norm          2.5824        2.3846        .85947E-07   -.24003E-04
  22  Normalizat    1.0941        .16899       -.12381E-05   -.67382E-03
  23  Prefactor     1.1279        .19819       -.16974E-05   -.44068E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.696749
  norm       = 1.43088
  Prefactor  = 0.0001
  Prefactor  = 59.7993
  Prefactor  = 0.0001
  norm       = 0.323447
  norm       = 1.71858
  Prefactor  = 18.3794
  Prefactor  = 2.0692
  norm       = 5.97971
  Prefactor  = 12.1649
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.340201
  norm       = 4.11927
  norm       = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.58238
  Normalizat = 1.09412
  Prefactor  = 1.12787
 **********
 **   18 **HESSE 
 **********

 FCN=   6672.018     FROM HESSE     STATUS=OK           374 CALLS     2942 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .69675        1.7097        .13698E-03   -1.5541    
   3  norm          1.4309        12.614        .36124E-03   -1.5469    
   4  Prefactor     .10000E-03    2.0661        .22528E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     59.799        68.043        .25963E-03   -1.4160    
   6  Prefactor     .10000E-03    13.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .32345        3.1674        .18999E-02   -1.5594    
   8  norm          1.7186        5.4225        .29589E-03   -1.5446    
   9  Prefactor     18.379        23.791        .93351E-04   -1.4850    
  10  Prefactor     2.0692        4.3483        .23451E-03   -1.5420    
  11  norm          5.9797        2.6336        .81114E-04   -1.5219    
  12  Prefactor     12.165        22.330        .11482E-03   -1.5010    
  13  norm          .10000E-03    .89229        .14879E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .34020        73.867        .43710E-02   -1.5591    
  16  norm          4.1193        8.9155        .99295E-03   -1.5302    
  17  norm          .10001E-03    12.303        .21186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.3041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.5069        .14934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.8658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.5824        2.3817        .11806E-03   -1.5387    
  22  Normalizat    1.0941        .19932        .22811E-03   -.89941    
  23  Prefactor     1.1279        .23436        .27927E-03   -.88581    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54901e-08
Minuit parameter uncertainties:
  1  7.53319e-06
  2  1.70987
  3  8.49887
  4  1.23808e-05
  5  68.1317
  6  4.69151e-05
  7  2.02417
  8  5.42406
  9  23.8033
  10  4.349
  11  2.63364
  12  22.3451
  13  3.72034e-06
  14  1.40464e-05
  15  10.037
  16  8.91837
  17  0.000797252
  18  3.94672e-06
  19  2.3192e-06
  20  3.82395e-05
  21  2.38178
  22  0.199461
  23  0.23458
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  1.838e+01  2.380e+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:  1.128e+00  2.346e-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.094e+00  1.995e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/701649/likelihoodResults_531187201_531446401_4FGL_J1228.7+4858_daily_bin1126.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) = 6671.39643689
delta logL = 0.621411671272

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6671.35906956
delta logL = 0.65877899992

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0331       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7762       1.0000          .0000       10.000    
     3 'Normalizat'    1.0458       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1674       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.

 FCN=   6671.359     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      243 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0331        67.485        .44810E-02    .44853E-03
   2  Index         3.7762        2.8999        .14754        .92284E-04
   3  Normalizat    1.0458        .48582E-01    .40845E-01    .13640E-04
   4  Prefactor     1.1673        .58641E-01    .62211E-01    .45731E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.03309
  Index      = 3.77619
  Normalizat = 1.04584
  Prefactor  = 1.16735
 **********
 **   18 **HESSE 
 **********

 FCN=   6671.359     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      276 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0331        134.38        .12913E-03   -1.5259    
   2  Index         3.7762        6.8643        .50257E-02   -.24727    
   3  Normalizat    1.0458        .19020        .23251E-03   -.91510    
   4  Prefactor     1.1673        .23518        .27515E-03   -.87342    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.32496e-09
Minuit parameter uncertainties:
  1  52.1433
  2  5.74625
  3  0.190319
  4  0.235391
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/701649': 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): 102
logL (Free Index) = 6671.35906955
delta logL = 0.658779011728

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  5.033e+00  5.214e+01  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  3.776e+00  5.746e+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:  1.167e+00  2.354e-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.046e+00  1.903e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.38
Ra Dec: 187.179 48.983
Photon Index (Free Index): 3.78 +/- 5.75
Photon Flux (Free Index): 6.71e-08 +/- 5.07e-08
Energy Flux (Free Index): 1.05e-05 +/- 1.37e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/701649/cmap_HighResolution_531187201_531446401_4FGL_J1228.7+4858_daily_bin1126.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.33e-03', comment='SUCCESS', energy_flux2='1.05e-05', dlogl='6.59e-01', photon_flux2='6.71e-08', job_status='DONE', time_completed='2021-09-05 18:48:37.360487', photon_index_error2='5.75', photon_index2='3.78', ts='0.97', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='1.07e-07', energy_flux_error2='1.37e-05', EG='1.09', time_epoch_completed='1630892917.36', return_code='0', job_id='701649', GAL2='1.17', EG2='1.05', return_code2='102', photon_flux_error2='5.07e-08', ts2='2.38', photon_index='2.56' WHERE bin_id='1126' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:48:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 701649: <4FGL_J1228.7+4858_daily_bin1126> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin1126 187.179 48.9827 531187201 531446401 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 :                                   779.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             360.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            796 sec.

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

