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


Performing analysis on: 4FGL_J1228.7+4858_daily_bin1005
RA = 187.179, Dec = 48.9827
tmin = 499824001, tmax = 500083201
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='700297', job_status='RUN', time_executed='2021-09-05 18:31:06.098980', time_epoch_executed='1630891866.1' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='1005'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/700297

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/700297/ft1_4FGL_J1228.7+4858_daily_bin1005.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/700297/ft2_4FGL_J1228.7+4858_daily_bin1005.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/700297/ft1_4FGL_J1228.7+4858_daily_bin1005.fits outfile=/scratch/kocevski/700297/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin1005.fits ra=187.179 dec=48.9827 rad=12.0 tmin=499824001.0 tmax=500083201.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 5.21
user 4.96
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/700297/ft2_4FGL_J1228.7+4858_daily_bin1005.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/700297/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin1005.fits evtable="EVENTS" outfile="/scratch/kocevski/700297/ft1_filtered_4FGL_J1228.7+4858_daily_bin1005.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/700297/ft1_filtered_4FGL_J1228.7+4858_daily_bin1005.fits" evtable="EVENTS" scfile=/scratch/kocevski/700297/ft2_4FGL_J1228.7+4858_daily_bin1005.fits sctable="SC_DATA" outfile=/scratch/kocevski/700297/ltcube_499824001_500083201_4FGL_J1228.7+4858_daily_bin1005.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/700297/ft2_4FGL_J1228.7+4858_daily_bin1005.fits
.....................!
real 12.20
user 11.85
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/700297/ft1_filtered_4FGL_J1228.7+4858_daily_bin1005.fits evtable="EVENTS" scfile=/scratch/kocevski/700297/ft2_4FGL_J1228.7+4858_daily_bin1005.fits sctable="SC_DATA" expcube=/scratch/kocevski/700297/ltcube_499824001_500083201_4FGL_J1228.7+4858_daily_bin1005.fits outfile=/scratch/kocevski/700297/expmap_499824001_500083201_4FGL_J1228.7+4858_daily_bin1005.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/700297/ltcube_499824001_500083201_4FGL_J1228.7+4858_daily_bin1005.fits
.....................!
real 190.35
user 185.04
sys 4.94

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/700297/ft1_filtered_4FGL_J1228.7+4858_daily_bin1005.fits scfile=/scratch/kocevski/700297/ft2_4FGL_J1228.7+4858_daily_bin1005.fits outfile=/scratch/kocevski/700297/cmap_499824001_500083201_4FGL_J1228.7+4858_daily_bin1005.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/700297/ft1_filtered_4FGL_J1228.7+4858_daily_bin1005.fits scfile=/scratch/kocevski/700297/ft2_4FGL_J1228.7+4858_daily_bin1005.fits outfile=/scratch/kocevski/700297/cmap_HighResolution_499824001_500083201_4FGL_J1228.7+4858_daily_bin1005.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.58
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/700297/ft1_filtered_4FGL_J1228.7+4858_daily_bin1005.fits evtable="EVENTS" scfile=/scratch/kocevski/700297/ft2_4FGL_J1228.7+4858_daily_bin1005.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/700297/Model_4FGL_J1228.7+4858_daily_bin1005.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/700297/ft1_filtered_4FGL_J1228.7+4858_daily_bin1005.fits.....................!
real 42.85
user 41.49
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.482       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.6400       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    11.057       1.0000         .10000E-03   10000.    
     7 'norm      '    .17408E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.1761       1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.864       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.6477       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.1757       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.286       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    11.201       1.0000         .10000E-03   10000.    
    17 'norm      '    .28012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.3574       1.0000         .10000E-03   10000.    
    19 'Prefactor '    30.211       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.8671       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0797       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2571       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=   4662.465     FROM MIGRAD    STATUS=CONVERGED    507 CALLS     2555 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.475        44.241       -.12347E-04    .64501E-04
   2  norm          .10000E-03    .39351       -.26415E-07** at limit **
   3  norm          2.6393        6.8699       -.45346E-06   -.25985E-03
   4  Prefactor     .10000E-03    3.6375       -.21499E-07** at limit **
   5  Prefactor     .10000E-03    21.761        .23821E-05** at limit **
   6  Prefactor     11.058        24.474        .27552E-05   -.45149E-04
   7  norm          .10000E-03    1.6898        .43411E-06** at limit **
   8  norm          6.1763        10.027       -.13988E-05   -.12076E-03
   9  Prefactor     24.868        31.907        .57623E-05   -.41338E-04
  10  Prefactor     .10000E-03    2.5955        .46806E-07** at limit **
  11  norm          2.6476        2.0947        .67876E-07   -.22336E-04
  12  Prefactor     .10000E-03    8.2328        .39155E-06** at limit **
  13  norm          4.1756        2.5634        .64385E-07    .18838E-03
  14  Prefactor     21.284        38.299       -.43938E-05    .61474E-04
  15  Prefactor     .10000E-03    3.3690        .25549E-07** at limit **
  16  norm          11.201        11.145        .65898E-06    .71450E-03
  17  norm          .10004E-03    3.3095       -.61427E-05** at limit **
  18  Prefactor     6.3914        53.996        .10664E-03    .68606E-04
  19  Prefactor     30.201        33.146       -.14818E-04    .30169E-03
  20  Prefactor     .10000E-03    14.777       -.21219E-05** at limit **
  21  norm          1.8696        6.1371        .35644E-05   -.31286E-03
  22  Normalizat    1.0796        .21075       -.54404E-05    .60190E-03
  23  Prefactor     1.2573        .25177        .32959E-05    .27381E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 19.4753
  norm       = 0.0001
  norm       = 2.63932
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.0576
  norm       = 0.000100001
  norm       = 6.17625
  Prefactor  = 24.868
  Prefactor  = 0.0001
  norm       = 2.64758
  Prefactor  = 0.0001
  norm       = 4.17556
  Prefactor  = 21.284
  Prefactor  = 0.0001
  norm       = 11.2011
  norm       = 0.000100043
  Prefactor  = 6.39141
  Prefactor  = 30.2005
  Prefactor  = 0.000100001
  norm       = 1.86958
  Normalizat = 1.07962
  Prefactor  = 1.25733
 **********
 **   18 **HESSE 
 **********

 FCN=   4662.465     FROM HESSE     STATUS=OK           368 CALLS     2923 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.475        44.251        .90743E-04   -1.4825    
   2  norm          .10000E-03    .40150        .41821E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.6393        6.8511        .25094E-03   -1.5383    
   4  Prefactor     .10000E-03    3.7512        .25319E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    21.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     11.058        24.406        .12049E-03   -1.5043    
   7  norm          .10000E-03    6.3282        .16718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.1763        9.9859        .16154E-03   -1.5211    
   9  Prefactor     24.868        31.875        .80335E-04   -1.4710    
  10  Prefactor     .10000E-03    2.6060        .10740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.6476        2.0907        .85547E-04   -1.5383    
  12  Prefactor     .10000E-03    8.2360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.1756        2.5645        .83242E-04   -1.5299    
  14  Prefactor     21.284        38.290        .86815E-04   -1.4785    
  15  Prefactor     .10000E-03    3.3727        .12240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          11.201        11.160        .59852E-03   -1.5038    
  17  norm          .10004E-03    17.342        .23511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.3914        54.131        .15919E-03   -1.5202    
  19  Prefactor     30.201        32.236        .72894E-04   -1.4608    
  20  Prefactor     .10000E-03    14.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.8696        5.9672        .24994E-03   -1.5434    
  22  Normalizat    1.0796        .24266        .24508E-03   -.90409    
  23  Prefactor     1.2573        .29490        .28528E-03   -.84585    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.87404e-09
Minuit parameter uncertainties:
  1  44.3258
  2  8.2043e-07
  3  6.85316
  4  8.70016e-07
  5  4.69164e-05
  6  24.4279
  7  0.000124697
  8  9.98857
  9  31.8963
  10  3.78169e-06
  11  2.09077
  12  1.71994e-05
  13  2.56456
  14  38.3343
  15  4.42798e-06
  16  11.1621
  17  0.00171784
  18  37.2459
  19  32.255
  20  0.00025984
  21  5.96912
  22  0.242909
  23  0.295288
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  2.487e+01  3.190e+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.257e+00  2.953e-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.080e+00  2.429e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/700297/likelihoodResults_499824001_500083201_4FGL_J1228.7+4858_daily_bin1005.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) = 4659.05419365
delta logL = 3.41115373478

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4658.80898612
delta logL = 3.65636126829

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .31023E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.1352       1.0000          .0000       10.000    
     3 'Normalizat'    .91162       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4157       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=   4658.809     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      353 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30429E-03    .34546E-02    .14420E-03** at limit **
   2  Index         9.1442        2.2478        .11688        .54836E-04
   3  Normalizat    .91174        .77362E-01    .45050E-01    .16328E-04
   4  Prefactor     1.4157        .96818E-01    .61347E-01    .12135E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000304291
  Index      = 9.14418
  Normalizat = 0.911743
  Prefactor  = 1.41569
 **********
 **   18 **HESSE 
 **********

 FCN=   4658.809     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      384 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .30429E-03    .50754E-02    .65512E-06   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.1442        7.4916        .52030E-03    .97703    
   3  Normalizat    .91174        .23915        .26255E-03   -.96049    
   4  Prefactor     1.4157        .29462        .27130E-03   -.79929    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.74946e-10
Minuit parameter uncertainties:
  1  0.00203653
  2  3.20478
  3  0.239424
  4  0.294967
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/700297': 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) = 4658.80898164
delta logL = 3.65636574843

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  3.043e-04  2.037e-03  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  9.144e+00  3.205e+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.416e+00  2.950e-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:  9.117e-01  2.394e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.82
Ra Dec: 187.179 48.983
Photon Index (Free Index): 9.14 +/- 3.20
Photon Flux (Free Index): 1.66e-07 +/- 7.76e-08
Energy Flux (Free Index): 1.89e-05 +/- 9.11e-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/700297/cmap_HighResolution_499824001_500083201_4FGL_J1228.7+4858_daily_bin1005.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-02', comment='SUCCESS', energy_flux2='1.89e-05', dlogl='3.66e+00', photon_flux2='1.66e-07', job_status='DONE', time_completed='2021-09-05 18:42:03.597203', photon_index_error2='3.20', photon_index2='9.14', ts='0.92', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', photon_flux_upper_limit='1.52e-07', energy_flux_error2='9.11e-06', EG='1.08', time_epoch_completed='1630892523.6', return_code='0', job_id='700297', GAL2='1.42', EG2='0.91', return_code2='102', photon_flux_error2='7.76e-08', ts2='8.82', photon_index='2.56' WHERE bin_id='1005' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:42:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 700297: <4FGL_J1228.7+4858_daily_bin1005> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin1005 187.179 48.9827 499824001 500083201 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 :                                   648.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   672 sec.
    Turnaround time :                            676 sec.

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

