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


Performing analysis on: 4FGL_J1228.7+4858_daily_bin1332
RA = 187.179, Dec = 48.9827
tmin = 584582401, tmax = 584841601
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='703268', job_status='RUN', time_executed='2021-09-05 18:40:57.764662', time_epoch_executed='1630892457.76' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='1332'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/703268

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/703268/ft1_4FGL_J1228.7+4858_daily_bin1332.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/703268/ft2_4FGL_J1228.7+4858_daily_bin1332.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/703268/ft1_4FGL_J1228.7+4858_daily_bin1332.fits outfile=/scratch/kocevski/703268/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin1332.fits ra=187.179 dec=48.9827 rad=12.0 tmin=584582401.0 tmax=584841601.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.39
user 2.65
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/703268/ft1_filtered_4FGL_J1228.7+4858_daily_bin1332.fits" evtable="EVENTS" scfile=/scratch/kocevski/703268/ft2_4FGL_J1228.7+4858_daily_bin1332.fits sctable="SC_DATA" outfile=/scratch/kocevski/703268/ltcube_584582401_584841601_4FGL_J1228.7+4858_daily_bin1332.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/703268/ft2_4FGL_J1228.7+4858_daily_bin1332.fits
.....................!
real 12.19
user 11.83
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/703268/ft1_filtered_4FGL_J1228.7+4858_daily_bin1332.fits evtable="EVENTS" scfile=/scratch/kocevski/703268/ft2_4FGL_J1228.7+4858_daily_bin1332.fits sctable="SC_DATA" expcube=/scratch/kocevski/703268/ltcube_584582401_584841601_4FGL_J1228.7+4858_daily_bin1332.fits outfile=/scratch/kocevski/703268/expmap_584582401_584841601_4FGL_J1228.7+4858_daily_bin1332.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/703268/ltcube_584582401_584841601_4FGL_J1228.7+4858_daily_bin1332.fits
.....................!
real 190.44
user 184.91
sys 5.17

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/703268/ft1_filtered_4FGL_J1228.7+4858_daily_bin1332.fits scfile=/scratch/kocevski/703268/ft2_4FGL_J1228.7+4858_daily_bin1332.fits outfile=/scratch/kocevski/703268/cmap_584582401_584841601_4FGL_J1228.7+4858_daily_bin1332.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/703268/ft1_filtered_4FGL_J1228.7+4858_daily_bin1332.fits scfile=/scratch/kocevski/703268/ft2_4FGL_J1228.7+4858_daily_bin1332.fits outfile=/scratch/kocevski/703268/cmap_HighResolution_584582401_584841601_4FGL_J1228.7+4858_daily_bin1332.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/703268/ft1_filtered_4FGL_J1228.7+4858_daily_bin1332.fits evtable="EVENTS" scfile=/scratch/kocevski/703268/ft2_4FGL_J1228.7+4858_daily_bin1332.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/703268/Model_4FGL_J1228.7+4858_daily_bin1332.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/703268/ft1_filtered_4FGL_J1228.7+4858_daily_bin1332.fits.....................!
real 67.86
user 65.42
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    3.2411       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.3263       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.1392       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .38093E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .30956E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.4725       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.628       1.0000         .10000E-03   10000.    
    13 'norm      '    5.5312       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.755       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5599       1.0000         .10000E-03   10000.    
    16 'norm      '    10.989       1.0000         .10000E-03   10000.    
    17 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.2055       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10690E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.6481       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1606       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .91489       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=   8379.916     FROM MIGRAD    STATUS=CONVERGED    509 CALLS     2523 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    18.208       -.84520E-07** at limit **
   2  norm          3.2409        1.4274        .17489E-07    .79567E-04
   3  norm          .10000E-03    3.6266        .15458E-07** at limit **
   4  Prefactor     8.3262        3.4835       -.12641E-07    .22531E-03
   5  Prefactor     .10000E-03    55.229        .24343E-06** at limit **
   6  Prefactor     .10000E-03    7.0060        .13876E-06** at limit **
   7  norm          .10000E-03    .44156        .12730E-07** at limit **
   8  norm          2.1113        6.0452        .28910E-05    .10237E-02
   9  Prefactor     .10034E-03    15.724       -.45724E-05** at limit **
  10  Prefactor     .10042E-03    2.9999        .13178E-05** at limit **
  11  norm          6.4746        2.1514       -.87054E-08   -.14320E-02
  12  Prefactor     10.620        14.630        .31191E-06    .28992E-03
  13  norm          5.5313        2.0060       -.55028E-09    .86893E-04
  14  Prefactor     18.739        41.744       -.16501E-05   -.16777E-03
  15  Prefactor     3.5604        3.4563       -.10937E-06   -.20042E-03
  16  norm          10.990        9.9232        .79151E-07    .15025E-04
  17  norm          .10000E-03    1.5255       -.42744E-07** at limit **
  18  Prefactor     4.2007        29.891        .63044E-06    .88538E-05
  19  Prefactor     .10000E-03    6.8046       -.50725E-07** at limit **
  20  Prefactor     .10000E-03    54.553        .15586E-06** at limit **
  21  norm          3.6482        3.1116        .15764E-06    .23181E-03
  22  Normalizat    1.1605        .14931        .33366E-06    .35192E-03
  23  Prefactor     .91504        .18084       -.63949E-06    .19410E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.24088
  norm       = 0.0001
  Prefactor  = 8.32616
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.11135
  Prefactor  = 0.000100336
  Prefactor  = 0.000100424
  norm       = 6.47462
  Prefactor  = 10.6202
  norm       = 5.53128
  Prefactor  = 18.7392
  Prefactor  = 3.56035
  norm       = 10.9897
  norm       = 0.0001
  Prefactor  = 4.20066
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.64818
  Normalizat = 1.16049
  Prefactor  = 0.915043
 **********
 **   18 **HESSE 
 **********

 FCN=   8379.916     FROM HESSE     STATUS=OK           370 CALLS     2893 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    18.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.2409        1.4252        .70317E-04   -1.5348    
   3  norm          .10000E-03    3.6379        .17025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.3262        3.4871        .10607E-03   -1.5131    
   5  Prefactor     .10000E-03    55.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.0177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .44659        .59373E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.1113        6.4638        .28181E-03   -1.5417    
   9  Prefactor     .10034E-03    66.412        .50050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10042E-03    29.297        .25224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.4746        2.0615        .71568E-04   -1.5199    
  12  Prefactor     10.620        14.660        .12290E-03   -1.5056    
  13  norm          5.5313        2.0054        .75411E-04   -1.5238    
  14  Prefactor     18.739        42.499        .92482E-04   -1.4842    
  15  Prefactor     3.5604        3.4590        .16286E-03   -1.5331    
  16  norm          10.990        9.9231        .12086E-03   -1.5045    
  17  norm          .10000E-03    1.5428        .11026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.2007        29.602        .19651E-03   -1.5298    
  19  Prefactor     .10000E-03    6.8696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    55.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.6482        3.0912        .14182E-03   -1.5326    
  22  Normalizat    1.1605        .17344        .22107E-03   -.87833    
  23  Prefactor     .91504        .20987        .30632E-03   -.95617    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08186e-08
Minuit parameter uncertainties:
  1  3.74341e-05
  2  1.42525
  3  1.3189e-06
  4  3.48717
  5  0.000153331
  6  3.76515e-05
  7  1.54554e-07
  8  6.46594
  9  0.00945193
  10  0.00705178
  11  2.06148
  12  14.6649
  13  2.00547
  14  42.5677
  15  3.45914
  16  9.92462
  17  1.41528e-06
  18  22.3178
  19  3.48145e-05
  20  0.000171303
  21  3.09132
  22  0.173528
  23  0.210051
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  1.003e-04  9.452e-03  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:  9.150e-01  2.101e-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.160e+00  1.735e-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: 6.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/703268/likelihoodResults_584582401_584841601_4FGL_J1228.7+4858_daily_bin1332.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) = 8379.91627488
delta logL = -7.12854198355e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8379.91620384
delta logL = -2.41996531258e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7218       1.0000          .0000       10.000    
     3 'Normalizat'    1.1604       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91515       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=   8379.916     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      251 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .16288        .13538    ** at limit **
   2  Index         2.6927        8.5956        .50000        .35740E-05
   3  Normalizat    1.1605        .55134E-03    .35945E-01   -.68233E-04
   4  Prefactor     .91504        .69072E-03    .69242E-01   -.15914E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.69273
  Normalizat = 1.16049
  Prefactor  = 0.915044
 **********
 **   18 **HESSE 
 **********

 FCN=   8379.916     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      286 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    85.898        .46124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6927        7.7363        .50000       -.47963    
   3  Normalizat    1.1605        .41562E-02    .22107E-03   -.87833    
   4  Prefactor     .91504        .51996E-02    .30632E-03   -.95617    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.18409e-08
Minuit parameter uncertainties:
  1  8.79728e-05
  2  134.187
  3  0.00415622
  4  0.00519964
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/703268': 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) = 8379.91620364
delta logL = -4.52528183814e-08

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  1.000e-04  8.797e-05  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  2.693e+00  1.342e+02  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:  9.150e-01  5.200e-03  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.160e+00  4.156e-03  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/703268/cmap_HighResolution_584582401_584841601_4FGL_J1228.7+4858_daily_bin1332.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.25e-03', job_status='DONE', photon_flux_upper_limit='6.73e-08', time_completed='2021-09-05 18:56:02.796896', job_id='703268', GAL2='0.92', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1630893362.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='-4.53e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1332' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:56:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 703268: <4FGL_J1228.7+4858_daily_bin1332> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin1332 187.179 48.9827 584582401 584841601 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 :                                   880.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             326.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            923 sec.

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

