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


Performing analysis on: 4FGL_J1228.7+4858_daily_bin1403
RA = 187.179, Dec = 48.9827
tmin = 602985601, tmax = 603244801
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='703376', job_status='RUN', time_executed='2021-09-05 18:41:06.291202', time_epoch_executed='1630892466.29' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='1403'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/703376

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/703376/ft1_4FGL_J1228.7+4858_daily_bin1403.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/703376/ft2_4FGL_J1228.7+4858_daily_bin1403.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/703376/ft1_4FGL_J1228.7+4858_daily_bin1403.fits outfile=/scratch/kocevski/703376/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin1403.fits ra=187.179 dec=48.9827 rad=12.0 tmin=602985601.0 tmax=603244801.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.05
user 2.86
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/703376/ft1_filtered_4FGL_J1228.7+4858_daily_bin1403.fits" evtable="EVENTS" scfile=/scratch/kocevski/703376/ft2_4FGL_J1228.7+4858_daily_bin1403.fits sctable="SC_DATA" outfile=/scratch/kocevski/703376/ltcube_602985601_603244801_4FGL_J1228.7+4858_daily_bin1403.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/703376/ft2_4FGL_J1228.7+4858_daily_bin1403.fits
.....................!
real 12.54
user 12.11
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/703376/ft1_filtered_4FGL_J1228.7+4858_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/703376/ft2_4FGL_J1228.7+4858_daily_bin1403.fits sctable="SC_DATA" expcube=/scratch/kocevski/703376/ltcube_602985601_603244801_4FGL_J1228.7+4858_daily_bin1403.fits outfile=/scratch/kocevski/703376/expmap_602985601_603244801_4FGL_J1228.7+4858_daily_bin1403.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/703376/ltcube_602985601_603244801_4FGL_J1228.7+4858_daily_bin1403.fits
.....................!
real 190.44
user 184.84
sys 4.80

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/703376/ft1_filtered_4FGL_J1228.7+4858_daily_bin1403.fits scfile=/scratch/kocevski/703376/ft2_4FGL_J1228.7+4858_daily_bin1403.fits outfile=/scratch/kocevski/703376/cmap_602985601_603244801_4FGL_J1228.7+4858_daily_bin1403.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=187.179 yref=48.9827 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/703376/ft1_filtered_4FGL_J1228.7+4858_daily_bin1403.fits scfile=/scratch/kocevski/703376/ft2_4FGL_J1228.7+4858_daily_bin1403.fits outfile=/scratch/kocevski/703376/cmap_HighResolution_602985601_603244801_4FGL_J1228.7+4858_daily_bin1403.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=187.179 yref=48.9827 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/703376/ft1_filtered_4FGL_J1228.7+4858_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/703376/ft2_4FGL_J1228.7+4858_daily_bin1403.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/703376/Model_4FGL_J1228.7+4858_daily_bin1403.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/703376/ft1_filtered_4FGL_J1228.7+4858_daily_bin1403.fits.....................!
real 41.21
user 39.89
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10125E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.4505       1.0000         .10000E-03   10000.    
     3 'norm      '    .10192E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1281       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    5.9733       1.0000         .10000E-03   10000.    
     8 'norm      '    4.3974       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13897E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.086       1.0000         .10000E-03   10000.    
    11 'norm      '    1.9130       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.9025       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    53.459       1.0000         .10000E-03   10000.    
    17 'norm      '    1.5073       1.0000         .10000E-03   10000.    
    18 'Prefactor '    31.095       1.0000         .10000E-03   10000.    
    19 'Prefactor '    36.661       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .49307E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    .29268E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .63447       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2332       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=   4421.635     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2569 TOTAL
                     EDM=   .42E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    51.922       -.11739E-06** at limit **
   2  norm          3.4501        2.7142       -.61213E-07   -.92275E-05
   3  norm          .10000E-03    10.064        .29032E-08** at limit **
   4  Prefactor     6.1289        5.7412       -.12059E-05   -.87195E-04
   5  Prefactor     .10000E-03    48.982        .53772E-06** at limit **
   6  Prefactor     .10000E-03    127.29        .17387E-06** at limit **
   7  norm          5.9737        3.3180        .15195E-07    .56983E-05
   8  norm          4.3930        8.8948       -.18953E-06   -.42780E-04
   9  Prefactor     .10000E-03    24.779       -.12835E-05** at limit **
  10  Prefactor     14.084        6.8976       -.89100E-07    .18406E-03
  11  norm          1.9131        1.5891        .48957E-07    .16591E-04
  12  Prefactor     .10000E-03    18.240       -.12641E-06** at limit **
  13  norm          2.9024        2.1436       -.28441E-06   -.74645E-04
  14  Prefactor     .10000E-03    56.770       -.52764E-06** at limit **
  15  Prefactor     .10000E-03    2.0295        .96325E-07** at limit **
  16  norm          53.473        22.662        .10331E-06    .15514E-04
  17  norm          1.5070        1.9115        .13293E-07   -.29017E-05
  18  Prefactor     31.099        29.842       -.14838E-05   -.51824E-04
  19  Prefactor     36.668        17.164       -.25190E-06   -.50931E-04
  20  Prefactor     .10000E-03    253.66       -.30535E-05** at limit **
  21  norm          .10000E-03    3.1980        .57868E-06** at limit **
  22  Normalizat    .63443        .19716       -.97397E-06   -.17140E-04
  23  Prefactor     1.2333        .23273        .56578E-06   -.66540E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.45007
  norm       = 0.0001
  Prefactor  = 6.12888
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 5.97374
  norm       = 4.39304
  Prefactor  = 0.0001
  Prefactor  = 14.084
  norm       = 1.91306
  Prefactor  = 0.0001
  norm       = 2.90244
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 53.4732
  norm       = 1.50703
  Prefactor  = 31.0989
  Prefactor  = 36.6682
  Prefactor  = 0.0001
  norm       = 0.000100001
  Normalizat = 0.63443
  Prefactor  = 1.23331
 **********
 **   18 **HESSE 
 **********

 FCN=   4421.635     FROM HESSE     STATUS=OK           374 CALLS     2943 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    51.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.4501        2.7104        .94373E-04   -1.5336    
   3  norm          .10000E-03    10.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.1289        5.7535        .14721E-03   -1.5213    
   5  Prefactor     .10000E-03    48.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    128.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          5.9737        3.3305        .84578E-04   -1.5219    
   8  norm          4.3930        8.8546        .19205E-03   -1.5289    
   9  Prefactor     .10000E-03    24.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     14.084        6.8941        .10672E-03   -1.4957    
  11  norm          1.9131        1.5910        .73127E-04   -1.5431    
  12  Prefactor     .10000E-03    18.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.9024        2.1446        .40293E-03   -1.5367    
  14  Prefactor     .10000E-03    56.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.0311        .92517E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          53.473        22.669        .54857E-04   -1.4244    
  17  norm          1.5070        1.8977        .10055E-03   -1.5462    
  18  Prefactor     31.099        29.876        .71854E-04   -1.4592    
  19  Prefactor     36.668        16.647        .66191E-04   -1.4496    
  20  Prefactor     .10000E-03    261.25        .73111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    23.829        .17072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .63443        .23094        .27730E-03   -1.0654    
  23  Prefactor     1.2333        .27352        .25492E-03   -.85312    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18536e-10
Minuit parameter uncertainties:
  1  5.07179e-05
  2  2.71052
  3  1.28598e-06
  4  5.75403
  5  0.00019727
  6  0.000800802
  7  3.33064
  8  8.85728
  9  2.85226e-05
  10  6.89453
  11  1.59106
  12  2.98597e-05
  13  2.14469
  14  0.000326513
  15  1.04626e-06
  16  22.6726
  17  1.89782
  18  29.8901
  19  16.6495
  20  0.000720068
  21  0.000347395
  22  0.23129
  23  0.27384
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  1.000e-04  2.852e-05  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.233e+00  2.738e-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:  6.344e-01  2.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 187.179 48.983
Photon Flux Upper Limit: 9.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/703376/likelihoodResults_602985601_603244801_4FGL_J1228.7+4858_daily_bin1403.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): 102
logL (Free Index) = 4421.63528324
delta logL = -0.000193008328097

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4421.63509039
delta logL = -1.60009221872e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4697       1.0000          .0000       10.000    
     3 'Normalizat'    .63444       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2333       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=   4421.635     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      243 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2175.1        .90712E-02** at limit **
   2  Index         2.4879        8.5882        .50000       -.71418E-05
   3  Normalizat    .63443        .53593E-01    .62677E-01    .38407E-05
   4  Prefactor     1.2333        .66855E-01    .57650E-01    .14915E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.4879
  Normalizat = 0.634429
  Prefactor  = 1.23331
 **********
 **   18 **HESSE 
 **********

 FCN=   4421.635     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      276 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7265.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4879        6.6477        .50000       -.52640    
   3  Normalizat    .63443        .15408        .27730E-03   -1.0654    
   4  Prefactor     1.2333        .19270        .25492E-03   -.85312    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.96783e-08
Minuit parameter uncertainties:
  1  0.00293926
  2  66.3118
  3  0.154181
  4  0.192809
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/703376': 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) = 4421.63509035
delta logL = -1.13883288577e-07

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  1.000e-04  2.939e-03  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  2.488e+00  6.631e+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:  1.233e+00  1.928e-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:  6.344e-01  1.542e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 187.179 48.983

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/703376/cmap_HighResolution_602985601_603244801_4FGL_J1228.7+4858_daily_bin1403.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.41e-03', job_status='DONE', photon_flux_upper_limit='9.50e-08', time_completed='2021-09-05 18:51:51.087504', job_id='703376', GAL2='1.23', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1630893111.09', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='-1.14e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1403' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:51:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 703376: <4FGL_J1228.7+4858_daily_bin1403> in cluster <slac> Done

Job <4FGL_J1228.7+4858_daily_bin1403> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 18:40:48 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:40:50 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:40:50 2021
Terminated at Sun Sep  5 18:51:51 2021
Results reported at Sun Sep  5 18:51:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin1403 187.179 48.9827 602985601 603244801 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 :                                   611.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             291.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   661 sec.
    Turnaround time :                            663 sec.

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

