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


Performing analysis on: 4FGL_J1228.7+4858_daily_bin1058
RA = 187.179, Dec = 48.9827
tmin = 513561601, tmax = 513820801
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='701551', job_status='RUN', time_executed='2021-09-05 18:37:48.582705', time_epoch_executed='1630892268.58' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='1058'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/701551

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/701551/ft1_4FGL_J1228.7+4858_daily_bin1058.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/701551/ft2_4FGL_J1228.7+4858_daily_bin1058.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/701551/ft1_4FGL_J1228.7+4858_daily_bin1058.fits outfile=/scratch/kocevski/701551/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin1058.fits ra=187.179 dec=48.9827 rad=12.0 tmin=513561601.0 tmax=513820801.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.73
user 3.44
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/701551/ft2_4FGL_J1228.7+4858_daily_bin1058.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/701551/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin1058.fits evtable="EVENTS" outfile="/scratch/kocevski/701551/ft1_filtered_4FGL_J1228.7+4858_daily_bin1058.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.54
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/701551/ft1_filtered_4FGL_J1228.7+4858_daily_bin1058.fits" evtable="EVENTS" scfile=/scratch/kocevski/701551/ft2_4FGL_J1228.7+4858_daily_bin1058.fits sctable="SC_DATA" outfile=/scratch/kocevski/701551/ltcube_513561601_513820801_4FGL_J1228.7+4858_daily_bin1058.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/701551/ft2_4FGL_J1228.7+4858_daily_bin1058.fits
.....................!
real 12.25
user 11.88
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/701551/ft1_filtered_4FGL_J1228.7+4858_daily_bin1058.fits evtable="EVENTS" scfile=/scratch/kocevski/701551/ft2_4FGL_J1228.7+4858_daily_bin1058.fits sctable="SC_DATA" expcube=/scratch/kocevski/701551/ltcube_513561601_513820801_4FGL_J1228.7+4858_daily_bin1058.fits outfile=/scratch/kocevski/701551/expmap_513561601_513820801_4FGL_J1228.7+4858_daily_bin1058.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/701551/ltcube_513561601_513820801_4FGL_J1228.7+4858_daily_bin1058.fits
.....................!
real 193.10
user 187.29
sys 5.44

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/701551/ft1_filtered_4FGL_J1228.7+4858_daily_bin1058.fits scfile=/scratch/kocevski/701551/ft2_4FGL_J1228.7+4858_daily_bin1058.fits outfile=/scratch/kocevski/701551/cmap_513561601_513820801_4FGL_J1228.7+4858_daily_bin1058.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/701551/ft1_filtered_4FGL_J1228.7+4858_daily_bin1058.fits scfile=/scratch/kocevski/701551/ft2_4FGL_J1228.7+4858_daily_bin1058.fits outfile=/scratch/kocevski/701551/cmap_HighResolution_513561601_513820801_4FGL_J1228.7+4858_daily_bin1058.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.59
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/701551/ft1_filtered_4FGL_J1228.7+4858_daily_bin1058.fits evtable="EVENTS" scfile=/scratch/kocevski/701551/ft2_4FGL_J1228.7+4858_daily_bin1058.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/701551/Model_4FGL_J1228.7+4858_daily_bin1058.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/701551/ft1_filtered_4FGL_J1228.7+4858_daily_bin1058.fits.....................!
real 53.43
user 51.44
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.9020       1.0000         .10000E-03   10000.    
     3 'norm      '    21.122       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    32.221       1.0000         .10000E-03   10000.    
     7 'norm      '    5.3042       1.0000         .10000E-03   10000.    
     8 'norm      '    14.277       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .90889E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8509       1.0000         .10000E-03   10000.    
    11 'norm      '    6.7673       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    84.112       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.6759       1.0000         .10000E-03   10000.    
    16 'norm      '    12.406       1.0000         .10000E-03   10000.    
    17 'norm      '    .13178E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    114.09       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10760E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .42193E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0744       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .78554       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=   5996.083     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     2690 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    22.489        .17860E-06** at limit **
   2  norm          3.9022        1.6261       -.16018E-07   -.96377E-05
   3  norm          21.117        12.547       -.41898E-08   -.13069E-04
   4  Prefactor     .10000E-03    1.4415       -.36002E-06** at limit **
   5  Prefactor     .10000E-03    51.212        .47446E-06** at limit **
   6  Prefactor     32.213        20.115       -.14856E-05   -.29841E-03
   7  norm          5.3039        2.4480       -.31435E-07   -.51161E-04
   8  norm          14.262        8.5500        .67163E-07   -.24568E-03
   9  Prefactor     .10197E-03    17.116        .79458E-06** at limit **
  10  Prefactor     3.8508        3.8619       -.11261E-07   -.30940E-04
  11  norm          6.7672        2.7421       -.41574E-07   -.99205E-05
  12  Prefactor     .10000E-03    24.889       -.69286E-06** at limit **
  13  norm          .10021E-03    1.1128        .20999E-06** at limit **
  14  Prefactor     84.107        59.346       -.16899E-06    .35116E-04
  15  Prefactor     7.6806        9.5676        .21092E-06    .42006E-04
  16  norm          12.406        11.863       -.19844E-07    .26290E-04
  17  norm          .10000E-03    2.7434       -.58755E-06** at limit **
  18  Prefactor     114.24        47.373        .31615E-05    .73474E-03
  19  Prefactor     .10000E-03    34.739       -.74605E-06** at limit **
  20  Prefactor     .11533E-03    67.563       -.95185E-05** at limit **
  21  norm          .10000E-03    2.3722       -.21266E-06** at limit **
  22  Normalizat    1.0744        .17601        .10864E-05    .20457E-03
  23  Prefactor     .78548        .20441       -.58111E-06    .18356E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.90216
  norm       = 21.1173
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.2126
  norm       = 5.30395
  norm       = 14.262
  Prefactor  = 0.000101968
  Prefactor  = 3.85075
  norm       = 6.76716
  Prefactor  = 0.0001
  norm       = 0.000100208
  Prefactor  = 84.1072
  Prefactor  = 7.68062
  norm       = 12.4064
  norm       = 0.0001
  Prefactor  = 114.242
  Prefactor  = 0.0001
  Prefactor  = 0.000115331
  norm       = 0.0001
  Normalizat = 1.07441
  Prefactor  = 0.785478
 **********
 **   18 **HESSE 
 **********

 FCN=   5996.083     FROM HESSE     STATUS=OK           392 CALLS     3082 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    22.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.9022        1.6267        .61054E-04   -1.5313    
   3  norm          21.117        12.554        .87150E-04   -1.4789    
   4  Prefactor     .10000E-03    1.4474        .90148E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    51.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     32.213        20.150        .70590E-04   -1.4572    
   7  norm          5.3039        2.4535        .78202E-04   -1.5247    
   8  norm          14.262        8.5717        .10600E-03   -1.4952    
   9  Prefactor     .10197E-03    21.434        .91920E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.8508        3.8568        .14602E-03   -1.5315    
  11  norm          6.7672        2.7415        .76990E-04   -1.5188    
  12  Prefactor     .10000E-03    25.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10021E-03    28.602        .15600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     84.107        59.356        .43800E-04   -1.3871    
  15  Prefactor     7.6806        9.5501        .14474E-03   -1.5154    
  16  norm          12.406        11.862        .11373E-03   -1.5003    
  17  norm          .10000E-03    6.9332        .24746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     114.24        57.941        .37664E-04   -1.3566    
  19  Prefactor     .10000E-03    35.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .11533E-03    59.090        .13280       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    9.0003        .22919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0744        .20403        .22697E-03   -.90578    
  23  Prefactor     .78548        .23582        .31384E-03   -1.0027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.60152e-09
Minuit parameter uncertainties:
  1  1.85707e-05
  2  1.62671
  3  12.5552
  4  1.73203e-05
  5  7.42139e-05
  6  20.154
  7  2.45352
  8  8.57248
  9  0.0129953
  10  3.85708
  11  2.74154
  12  0.000125753
  13  0.00488221
  14  59.3982
  15  9.55202
  16  11.8647
  17  3.07816e-05
  18  57.9699
  19  0.000131871
  20  0.0602554
  21  4.838e-05
  22  0.204179
  23  0.236119
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  1.020e-04  1.300e-02  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:  7.855e-01  2.361e-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.074e+00  2.042e-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: 8.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/701551/likelihoodResults_513561601_513820801_4FGL_J1228.7+4858_daily_bin1058.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) = 5996.08273992
delta logL = -1.36314156407e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5996.08273991
delta logL = -1.36253856908e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96361E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5556       1.0000          .0000       10.000    
     3 'Normalizat'    1.0744       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78549       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=   5996.005     FROM MIGRAD    STATUS=CONVERGED    183 CALLS      365 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .72793        40.441        .90712E-02    .13487E-02
   2  Index         4.1140        3.4343        .23344        .51490E-04
   3  Normalizat    1.0545        .25419E-01    .39153E-01   -.85841E-05
   4  Prefactor     .79955        .30680E-01    .70346E-01    .31239E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.727926
  Index      = 4.11399
  Normalizat = 1.05446
  Prefactor  = 0.799553
 **********
 **   18 **HESSE 
 **********

 FCN=   5996.005     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      398 TOTAL
                     EDM=   .74E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .72793        241.54        .16275E-03   -1.5537    
   2  Index         4.1140        7.5727        .98769E-02   -.17814    
   3  Normalizat    1.0545        .15390        .22875E-03   -.91228    
   4  Prefactor     .79955        .18385        .31127E-03   -.99745    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.40736e-07
Minuit parameter uncertainties:
  1  26.6265
  2  19.5998
  3  0.153963
  4  0.183996
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/701551': 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) = 5996.00482214
delta logL = 0.0779041451715

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  7.279e-01  2.663e+01  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  4.114e+00  1.960e+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:  7.996e-01  1.840e-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.054e+00  1.540e-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/701551/cmap_HighResolution_513561601_513820801_4FGL_J1228.7+4858_daily_bin1058.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.33e-03', job_status='DONE', photon_flux_upper_limit='8.11e-08', time_completed='2021-09-05 18:51:40.136784', job_id='701551', GAL2='0.80', fit_tolerance='1e-08', EG2='1.05', EG='1.07', time_epoch_completed='1630893100.14', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='7.79e-02', ts2='0.16', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1058' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:51:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 701551: <4FGL_J1228.7+4858_daily_bin1058> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin1058 187.179 48.9827 513561601 513820801 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 :                                   757.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             318.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            984 sec.

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

