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


Performing analysis on: 4FGL_J1228.7+4858_daily_bin287
RA = 187.179, Dec = 48.9827
tmin = 313718401, tmax = 313977601
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='694480', job_status='RUN', time_executed='2021-09-05 18:10:53.460394', time_epoch_executed='1630890653.46' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='287'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/694480

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/694480/ft1_4FGL_J1228.7+4858_daily_bin287.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/694480/ft2_4FGL_J1228.7+4858_daily_bin287.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/694480/ft1_4FGL_J1228.7+4858_daily_bin287.fits outfile=/scratch/kocevski/694480/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin287.fits ra=187.179 dec=48.9827 rad=12.0 tmin=313718401.0 tmax=313977601.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.34
user 3.13
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/694480/ft1_filtered_4FGL_J1228.7+4858_daily_bin287.fits" evtable="EVENTS" scfile=/scratch/kocevski/694480/ft2_4FGL_J1228.7+4858_daily_bin287.fits sctable="SC_DATA" outfile=/scratch/kocevski/694480/ltcube_313718401_313977601_4FGL_J1228.7+4858_daily_bin287.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/694480/ft2_4FGL_J1228.7+4858_daily_bin287.fits
.....................!
real 12.01
user 11.66
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/694480/ft1_filtered_4FGL_J1228.7+4858_daily_bin287.fits evtable="EVENTS" scfile=/scratch/kocevski/694480/ft2_4FGL_J1228.7+4858_daily_bin287.fits sctable="SC_DATA" expcube=/scratch/kocevski/694480/ltcube_313718401_313977601_4FGL_J1228.7+4858_daily_bin287.fits outfile=/scratch/kocevski/694480/expmap_313718401_313977601_4FGL_J1228.7+4858_daily_bin287.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/694480/ltcube_313718401_313977601_4FGL_J1228.7+4858_daily_bin287.fits
.....................!
real 190.29
user 185.07
sys 4.84

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/694480/ft1_filtered_4FGL_J1228.7+4858_daily_bin287.fits scfile=/scratch/kocevski/694480/ft2_4FGL_J1228.7+4858_daily_bin287.fits outfile=/scratch/kocevski/694480/cmap_313718401_313977601_4FGL_J1228.7+4858_daily_bin287.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/694480/ft1_filtered_4FGL_J1228.7+4858_daily_bin287.fits scfile=/scratch/kocevski/694480/ft2_4FGL_J1228.7+4858_daily_bin287.fits outfile=/scratch/kocevski/694480/cmap_HighResolution_313718401_313977601_4FGL_J1228.7+4858_daily_bin287.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.56
user 0.37
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19826E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .44460       1.0000         .10000E-03   10000.    
     3 'norm      '    33.735       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.4514       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .34152E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.8281       1.0000         .10000E-03   10000.    
     8 'norm      '    .65694E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    25.437       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .75598       1.0000         .10000E-03   10000.    
    11 'norm      '    3.8888       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.4924       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .26713E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10571E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    9.1399       1.0000         .10000E-03   10000.    
    17 'norm      '    1.8234       1.0000         .10000E-03   10000.    
    18 'Prefactor '    26.332       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .38951E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.336       1.0000         .10000E-03   10000.    
    21 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .82448       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2169       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=   5563.251     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2327 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    15.236       -.19747E-07** at limit **
   2  norm          .44482        .96833       -.18095E-06   -.29584E-03
   3  norm          33.764        14.907        .13696E-07   -.13387E-03
   4  Prefactor     4.4525        3.5741        .16664E-06   -.55620E-04
   5  Prefactor     .10000E-03    29.817       -.29618E-06** at limit **
   6  Prefactor     .10000E-03    6.5676        .41026E-07** at limit **
   7  norm          1.8279        2.3783        .22646E-06   -.30853E-04
   8  norm          .10000E-03    13.282        .55011E-05** at limit **
   9  Prefactor     25.606        25.751       -.45997E-06   -.10384E-03
  10  Prefactor     .78936        4.8838        .20270E-08    .15651E-04
  11  norm          3.8872        2.5778        .14930E-07    .91520E-05
  12  Prefactor     .10000E-03    8.2003        .22587E-06** at limit **
  13  norm          4.4895        2.6383        .25181E-07   -.37377E-04
  14  Prefactor     .10000E-03    22.166        .36811E-07** at limit **
  15  Prefactor     .10000E-03    5.9022       -.10221E-06** at limit **
  16  norm          9.1595        9.6034       -.76466E-08    .52552E-05
  17  norm          1.8145        2.6950        .21399E-06    .64158E-04
  18  Prefactor     27.820        39.739        .26657E-06    .75999E-04
  19  Prefactor     .10005E-03    12.354       -.89327E-06** at limit **
  20  Prefactor     30.721        35.014        .25259E-06    .81586E-04
  21  norm          .10000E-03    1.4851        .51223E-07** at limit **
  22  Normalizat    .82399        .18320       -.21477E-05    .40185E-05
  23  Prefactor     1.2171        .21878        .19735E-05   -.12676E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.444822
  norm       = 33.7642
  Prefactor  = 4.45245
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.8279
  norm       = 0.0001
  Prefactor  = 25.6061
  Prefactor  = 0.78936
  norm       = 3.88719
  Prefactor  = 0.0001
  norm       = 4.4895
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.15947
  norm       = 1.81447
  Prefactor  = 27.8202
  Prefactor  = 0.000100046
  Prefactor  = 30.7214
  norm       = 0.0001
  Normalizat = 0.823995
  Prefactor  = 1.21712
 **********
 **   18 **HESSE 
 **********

 FCN=   5563.251     FROM HESSE     STATUS=OK           374 CALLS     2701 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    15.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .44482        .84170        .10338E-02   -1.5575    
   3  norm          33.764        14.818        .68993E-04   -1.4545    
   4  Prefactor     4.4525        3.5669        .11935E-03   -1.5286    
   5  Prefactor     .10000E-03    29.835        .19683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.5708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.8279        2.3544        .12331E-03   -1.5438    
   8  norm          .10000E-03    13.752        .42030E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     25.606        25.989        .79426E-04   -1.4695    
  10  Prefactor     .78936        23.402        .29105E-02   -1.5530    
  11  norm          3.8872        2.6352        .88915E-04   -1.5314    
  12  Prefactor     .10000E-03    8.2269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.4895        2.6354        .89467E-04   -1.5284    
  14  Prefactor     .10000E-03    22.194        .19951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.9278        .17687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.1595        9.6049        .13257E-03   -1.5103    
  17  norm          1.8145        2.6694        .14363E-03   -1.5439    
  18  Prefactor     27.820        39.583        .78067E-04   -1.4653    
  19  Prefactor     .10005E-03    61.040        .49171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     30.721        34.962        .70465E-04   -1.4599    
  21  norm          .10000E-03    1.4904        .88669E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .82399        .20620        .24350E-03   -.99185    
  23  Prefactor     1.2171        .24854        .26071E-03   -.85806    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.48225e-09
Minuit parameter uncertainties:
  1  1.97585e-06
  2  0.841724
  3  14.8199
  4  3.56711
  5  1.82387e-06
  6  2.50341e-06
  7  2.35457
  8  0.000101199
  9  26.0002
  10  8.59911
  11  2.63528
  12  5.3876e-06
  13  2.63542
  14  2.98869e-05
  15  4.36266e-07
  16  9.6065
  17  2.6696
  18  39.6206
  19  0.00334822
  20  34.9856
  21  2.82718e-06
  22  0.206393
  23  0.248783
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  2.561e+01  2.600e+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.217e+00  2.488e-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:  8.240e-01  2.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.22
Ra Dec: 187.179 48.983
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 4.27e-08 +/- 4.34e-08
Energy Flux (Fixed Index): 1.17e-05 +/- 1.19e-05

TS (Fixed Index): 1.22
Ra Dec: 187.179 48.983
Photon Flux Upper Limit: 1.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.01e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/694480/likelihoodResults_313718401_313977601_4FGL_J1228.7+4858_daily_bin287.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) = 5561.36864301
delta logL = 1.88190637832

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5561.30027992
delta logL = 1.95026946594

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20934       1.0000         .10000E-03   10000.    
     2 'Index     '    5.6911       1.0000          .0000       10.000    
     3 'Normalizat'    .72322       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3135       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=   5561.300     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      275 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .20674        1.6247        .38332E-02   -.13613E-01
   2  Index         5.6979        2.4521        .84966E-01   -.57302E-03
   3  Normalizat    .72284        .52999E-01    .42600E-01   -.23845E-03
   4  Prefactor     1.3139        .67628E-01    .57063E-01   -.26616E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.206744
  Index      = 5.69792
  Normalizat = 0.722839
  Prefactor  = 1.31387
 **********
 **   18 **HESSE 
 **********

 FCN=   5561.300     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      308 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .20674        2.8337        .17200E-04   -1.5617    
   2  Index         5.6979        3.3725        .34941E-02    .14004    
   3  Normalizat    .72284        .17757        .25788E-03   -1.0300    
   4  Prefactor     1.3139        .22310        .25232E-03   -.82896    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.05476e-09
Minuit parameter uncertainties:
  1  1.53054
  2  3.71011
  3  0.177708
  4  0.223259
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/694480': 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) = 5561.30027243
delta logL = 1.95027695862

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  2.067e-01  1.531e+00  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  5.698e+00  3.710e+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.314e+00  2.233e-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:  7.228e-01  1.777e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.54
Ra Dec: 187.179 48.983
Photon Index (Free Index): 5.70 +/- 3.71
Photon Flux (Free Index): 1.07e-07 +/- 5.69e-08
Energy Flux (Free Index): 1.36e-05 +/- 8.28e-06

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/694480/cmap_HighResolution_313718401_313977601_4FGL_J1228.7+4858_daily_bin287.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', comment='SUCCESS', photon_flux='4.27e-08', energy_flux2='1.36e-05', photon_flux_error='4.34e-08', dlogl='1.95e+00', energy_flux='1.17e-05', photon_flux2='1.07e-07', job_status='DONE', time_completed='2021-09-05 18:22:23.218532', photon_index_error2='3.71', photon_index2='5.70', ts='1.22', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='1.30e-07', energy_flux_error2='8.28e-06', EG='0.82', time_epoch_completed='1630891343.22', return_code='0', job_id='694480', GAL2='1.31', EG2='0.72', return_code2='102', energy_flux_error='1.19e-05', photon_flux_error2='5.69e-08', ts2='5.54', photon_index='2.56' WHERE bin_id='287' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:22:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 694480: <4FGL_J1228.7+4858_daily_bin287> in cluster <slac> Done

Job <4FGL_J1228.7+4858_daily_bin287> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 18:10:39 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:10:42 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:10:42 2021
Terminated at Sun Sep  5 18:22:24 2021
Results reported at Sun Sep  5 18:22:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin287 187.179 48.9827 313718401 313977601 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 :                                   685.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             343.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   701 sec.
    Turnaround time :                            705 sec.

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

