/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 89 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 = 4927
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1228.7+4858_daily_bin1339
RA = 187.179, Dec = 48.9827
tmin = 586396801, tmax = 586656001
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='703278', job_status='RUN', time_executed='2021-09-05 18:42:33.509436', time_epoch_executed='1630892553.51' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='1339'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/703278

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/703278/ft1_4FGL_J1228.7+4858_daily_bin1339.fits


Retrieving the FT1 file...

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

Retrieving 31 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/703278/ft2_4FGL_J1228.7+4858_daily_bin1339.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/703278/ft1_4FGL_J1228.7+4858_daily_bin1339.fits outfile=/scratch/kocevski/703278/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin1339.fits ra=187.179 dec=48.9827 rad=12.0 tmin=586396801.0 tmax=586656001.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 2.59
user 2.40
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/703278/ft1_filtered_4FGL_J1228.7+4858_daily_bin1339.fits" evtable="EVENTS" scfile=/scratch/kocevski/703278/ft2_4FGL_J1228.7+4858_daily_bin1339.fits sctable="SC_DATA" outfile=/scratch/kocevski/703278/ltcube_586396801_586656001_4FGL_J1228.7+4858_daily_bin1339.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/703278/ft2_4FGL_J1228.7+4858_daily_bin1339.fits
.....................!
real 8.58
user 8.19
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/703278/ft1_filtered_4FGL_J1228.7+4858_daily_bin1339.fits evtable="EVENTS" scfile=/scratch/kocevski/703278/ft2_4FGL_J1228.7+4858_daily_bin1339.fits sctable="SC_DATA" expcube=/scratch/kocevski/703278/ltcube_586396801_586656001_4FGL_J1228.7+4858_daily_bin1339.fits outfile=/scratch/kocevski/703278/expmap_586396801_586656001_4FGL_J1228.7+4858_daily_bin1339.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/703278/ltcube_586396801_586656001_4FGL_J1228.7+4858_daily_bin1339.fits
.....................!
real 190.29
user 184.43
sys 5.49

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/703278/ft1_filtered_4FGL_J1228.7+4858_daily_bin1339.fits scfile=/scratch/kocevski/703278/ft2_4FGL_J1228.7+4858_daily_bin1339.fits outfile=/scratch/kocevski/703278/cmap_586396801_586656001_4FGL_J1228.7+4858_daily_bin1339.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.51
user 0.36
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/703278/ft1_filtered_4FGL_J1228.7+4858_daily_bin1339.fits evtable="EVENTS" scfile=/scratch/kocevski/703278/ft2_4FGL_J1228.7+4858_daily_bin1339.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/703278/Model_4FGL_J1228.7+4858_daily_bin1339.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/703278/ft1_filtered_4FGL_J1228.7+4858_daily_bin1339.fits.....................!
real 40.52
user 39.12
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.4830       1.0000         .10000E-03   10000.    
     3 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.8326       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.188       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.348       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4533       1.0000         .10000E-03   10000.    
    11 'norm      '    3.4003       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.9217       1.0000         .10000E-03   10000.    
    14 'Prefactor '    64.876       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11216E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    102.87       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3451       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .63983       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=   4278.263     FROM MIGRAD    STATUS=CONVERGED    533 CALLS     2542 TOTAL
                     EDM=   .77E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    20.422        .46882E-08** at limit **
   2  norm          3.4829        2.1217        .28441E-07   -.13568E-04
   3  norm          .10000E-03    10.808        .13319E-07** at limit **
   4  Prefactor     3.8329        5.6433        .17575E-05   -.21100E-03
   5  Prefactor     .10000E-03    59.322        .57055E-07** at limit **
   6  Prefactor     24.195        29.582       -.84659E-06   -.42291E-04
   7  norm          .10000E-03    1.3076        .60189E-07** at limit **
   8  norm          .10000E-03    7.8494       -.69389E-07** at limit **
   9  Prefactor     19.347        25.692        .24701E-06   -.83620E-05
  10  Prefactor     2.4536        5.9219       -.29584E-06    .31076E-04
  11  norm          3.4004        2.6006        .79636E-07    .77119E-05
  12  Prefactor     .10000E-03    32.721       -.35267E-07** at limit **
  13  norm          5.9218        2.9869        .27951E-07    .14247E-04
  14  Prefactor     64.880        58.600       -.11180E-06    .91152E-05
  15  Prefactor     .10000E-03    3.2798        .24350E-07** at limit **
  16  norm          .10000E-03    5.7616        .21123E-08** at limit **
  17  norm          .10000E-03    3.3114       -.23809E-06** at limit **
  18  Prefactor     .10004E-03    383.49       -.16038E-04** at limit **
  19  Prefactor     .10000E-03    4.8344       -.43599E-07** at limit **
  20  Prefactor     102.79        57.366        .32669E-05   -.16012E-04
  21  norm          .10000E-03    1.3071       -.70556E-07** at limit **
  22  Normalizat    1.3450        .20782        .64629E-07    .73022E-04
  23  Prefactor     .63987        .24318       -.13387E-05    .11028E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.48292
  norm       = 0.0001
  Prefactor  = 3.83293
  Prefactor  = 0.0001
  Prefactor  = 24.1952
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 19.3468
  Prefactor  = 2.45358
  norm       = 3.40041
  Prefactor  = 0.0001
  norm       = 5.92181
  Prefactor  = 64.8798
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100041
  Prefactor  = 0.0001
  Prefactor  = 102.79
  norm       = 0.0001
  Normalizat = 1.34504
  Prefactor  = 0.639873
 **********
 **   18 **HESSE 
 **********

 FCN=   4278.263     FROM HESSE     STATUS=OK           364 CALLS     2906 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    20.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.4829        2.1187        .71383E-04   -1.5335    
   3  norm          .10000E-03    10.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.8329        5.6918        .78662E-03   -1.5316    
   5  Prefactor     .10000E-03    59.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     24.195        29.618        .81448E-04   -1.4724    
   7  norm          .10000E-03    1.3442        .14595E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.9108        .17866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     19.347        25.706        .91056E-04   -1.4828    
  10  Prefactor     2.4536        5.8794        .23051E-03   -1.5395    
  11  norm          3.4004        2.5910        .86562E-04   -1.5339    
  12  Prefactor     .10000E-03    32.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.9218        2.9861        .77691E-04   -1.5221    
  14  Prefactor     64.880        58.592        .49825E-04   -1.4095    
  15  Prefactor     .10000E-03    3.2829        .11568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.7625        .15334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.3522        .11626E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10004E-03    413.97        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.8358        .14046E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     102.79        57.900        .19822E-03   -1.3677    
  21  norm          .10000E-03    1.3088        .73040E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3450        .24286        .21087E-03   -.82232    
  23  Prefactor     .63987        .28037        .34897E-03   -1.0593    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57968e-10
Minuit parameter uncertainties:
  1  5.4603e-07
  2  2.11871
  3  3.03449e-06
  4  5.69258
  5  4.04474e-06
  6  29.6356
  7  1.47245e-06
  8  7.51051e-06
  9  25.7202
  10  5.88079
  11  2.59111
  12  6.07664e-06
  13  2.98614
  14  58.6446
  15  1.64767e-06
  16  5.81334e-07
  17  1.40083e-05
  18  0.00833246
  19  3.42401e-06
  20  57.9318
  21  2.89252e-06
  22  0.243063
  23  0.280991
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  1.935e+01  2.572e+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:  6.399e-01  2.810e-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.345e+00  2.431e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/703278/likelihoodResults_586396801_586656001_4FGL_J1228.7+4858_daily_bin1339.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) = 4278.2513816
delta logL = 0.0120837259383

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4278.2393879
delta logL = 0.0240774276954

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4278.239     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      261 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.303        47.026        .10580E-03    .21674E-03
   2  Index         2.8782        2.2275        .88659E-02    .72706E-04
   3  Normalizat    1.3333        .24956        .21164E-03    .28479E-03
   4  Prefactor     .65036        .28991        .34643E-03   -.29896E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.3026
  Index      = 2.8782
  Normalizat = 1.33332
  Prefactor  = 0.650361
 **********
 **   18 **HESSE 
 **********

 FCN=   4278.239     FROM HESSE     STATUS=OK            25 CALLS      286 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.303        33.520        .42318E-05   -1.4951    
   2  Index         2.8782        1.6182        .35464E-03   -.43826    
   3  Normalizat    1.3333        .24521        .42328E-04   -.82577    
   4  Prefactor     .65036        .28541        .13857E-04   -1.0551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7802e-09
Minuit parameter uncertainties:
  1  33.5643
  2  1.65475
  3  0.245421
  4  0.286053
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/703278': 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): 0
logL (Free Index) = 4278.2393869
delta logL = 0.0240784326543

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  1.430e+01  3.356e+01  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  2.878e+00  1.655e+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:  6.504e-01  2.861e-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.333e+00  2.454e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.75
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/703278/cmap_HighResolution_586396801_586656001_4FGL_J1228.7+4858_daily_bin1339.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', job_status='DONE', photon_flux_upper_limit='1.32e-07', time_completed='2021-09-05 18:54:38.836304', job_id='703278', GAL2='0.65', fit_tolerance='1e-08', EG2='1.33', EG='1.35', time_epoch_completed='1630893278.84', return_code2='0', ts='0.75', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='2.41e-02', ts2='0.80', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1339' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:54:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 703278: <4FGL_J1228.7+4858_daily_bin1339> in cluster <slac> Done

Job <4FGL_J1228.7+4858_daily_bin1339> 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) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:40: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:40:42 2021
Terminated at Sun Sep  5 18:54:41 2021
Results reported at Sun Sep  5 18:54:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin1339 187.179 48.9827 586396801 586656001 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 :                                   601.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             264.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            841 sec.

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

