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


Performing analysis on: 4FGL_J1228.7+4858_daily_bin1031
RA = 187.179, Dec = 48.9827
tmin = 506563201, tmax = 506822401
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='700336', job_status='RUN', time_executed='2021-09-05 18:32:58.462263', time_epoch_executed='1630891978.46' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='1031'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/700336

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/700336/ft1_4FGL_J1228.7+4858_daily_bin1031.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/700336/ft2_4FGL_J1228.7+4858_daily_bin1031.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/700336/ft1_4FGL_J1228.7+4858_daily_bin1031.fits outfile=/scratch/kocevski/700336/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin1031.fits ra=187.179 dec=48.9827 rad=12.0 tmin=506563201.0 tmax=506822401.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.50
user 3.22
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/700336/ft2_4FGL_J1228.7+4858_daily_bin1031.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/700336/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin1031.fits evtable="EVENTS" outfile="/scratch/kocevski/700336/ft1_filtered_4FGL_J1228.7+4858_daily_bin1031.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.53
user 0.36
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/700336/ft1_filtered_4FGL_J1228.7+4858_daily_bin1031.fits" evtable="EVENTS" scfile=/scratch/kocevski/700336/ft2_4FGL_J1228.7+4858_daily_bin1031.fits sctable="SC_DATA" outfile=/scratch/kocevski/700336/ltcube_506563201_506822401_4FGL_J1228.7+4858_daily_bin1031.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/700336/ft2_4FGL_J1228.7+4858_daily_bin1031.fits
.....................!
real 11.97
user 11.60
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/700336/ft1_filtered_4FGL_J1228.7+4858_daily_bin1031.fits evtable="EVENTS" scfile=/scratch/kocevski/700336/ft2_4FGL_J1228.7+4858_daily_bin1031.fits sctable="SC_DATA" expcube=/scratch/kocevski/700336/ltcube_506563201_506822401_4FGL_J1228.7+4858_daily_bin1031.fits outfile=/scratch/kocevski/700336/expmap_506563201_506822401_4FGL_J1228.7+4858_daily_bin1031.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/700336/ltcube_506563201_506822401_4FGL_J1228.7+4858_daily_bin1031.fits
.....................!
real 190.96
user 185.71
sys 4.85

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/700336/ft1_filtered_4FGL_J1228.7+4858_daily_bin1031.fits scfile=/scratch/kocevski/700336/ft2_4FGL_J1228.7+4858_daily_bin1031.fits outfile=/scratch/kocevski/700336/cmap_506563201_506822401_4FGL_J1228.7+4858_daily_bin1031.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/700336/ft1_filtered_4FGL_J1228.7+4858_daily_bin1031.fits scfile=/scratch/kocevski/700336/ft2_4FGL_J1228.7+4858_daily_bin1031.fits outfile=/scratch/kocevski/700336/cmap_HighResolution_506563201_506822401_4FGL_J1228.7+4858_daily_bin1031.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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/700336/ft1_filtered_4FGL_J1228.7+4858_daily_bin1031.fits evtable="EVENTS" scfile=/scratch/kocevski/700336/ft2_4FGL_J1228.7+4858_daily_bin1031.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/700336/Model_4FGL_J1228.7+4858_daily_bin1031.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/700336/ft1_filtered_4FGL_J1228.7+4858_daily_bin1031.fits.....................!
real 46.56
user 45.26
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    2.0836       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10302E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.2028       1.0000         .10000E-03   10000.    
     7 'norm      '    1.4142       1.0000         .10000E-03   10000.    
     8 'norm      '    8.1931       1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.656       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3429       1.0000         .10000E-03   10000.    
    11 'norm      '    3.7891       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.4141       1.0000         .10000E-03   10000.    
    14 'Prefactor '    47.095       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    11.990       1.0000         .10000E-03   10000.    
    17 'norm      '    2.4242       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    41.606       1.0000         .10000E-03   10000.    
    21 'norm      '    .10833E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0877       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .63628       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=   5115.829     FROM MIGRAD    STATUS=CONVERGED    513 CALLS     2546 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    14.973       -.10313E-04** at limit **
   2  norm          2.0826        1.3714       -.32958E-07   -.19593E-03
   3  norm          .10000E-03    2.9883       -.84522E-08** at limit **
   4  Prefactor     .10000E-03    1.8588        .62249E-07** at limit **
   5  Prefactor     .10000E-03    68.886       -.30825E-05** at limit **
   6  Prefactor     4.1887        21.669       -.18917E-05   -.56333E-04
   7  norm          1.4143        1.6092       -.46909E-07   -.21964E-03
   8  norm          8.1936        6.7655       -.38362E-06   -.46266E-04
   9  Prefactor     30.660        24.990        .15746E-05   -.55878E-05
  10  Prefactor     3.3425        4.8668       -.73069E-06   -.25924E-03
  11  norm          3.7888        2.3895        .78629E-07   -.35288E-04
  12  Prefactor     .10000E-03    6.4462        .13868E-05** at limit **
  13  norm          1.4139        1.9879       -.14130E-06   -.49354E-03
  14  Prefactor     47.096        44.240        .17671E-06   -.17702E-05
  15  Prefactor     .10000E-03    5.8882       -.19336E-06** at limit **
  16  norm          11.990        11.124       -.42136E-07    .14282E-04
  17  norm          2.4243        2.8523       -.13829E-07   -.15957E-03
  18  Prefactor     .10000E-03    42.116        .29008E-05** at limit **
  19  Prefactor     .10000E-03    14.638        .10065E-04** at limit **
  20  Prefactor     41.603        37.900       -.25504E-05   -.17261E-04
  21  norm          .10000E-03    2.5801       -.60081E-06** at limit **
  22  Normalizat    1.0876        .16353        .25988E-06   -.33094E-04
  23  Prefactor     .63647        .19211        .13592E-06   -.19618E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.08258
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.18867
  norm       = 1.41425
  norm       = 8.1936
  Prefactor  = 30.6602
  Prefactor  = 3.34248
  norm       = 3.78879
  Prefactor  = 0.0001
  norm       = 1.41391
  Prefactor  = 47.0958
  Prefactor  = 0.0001
  norm       = 11.9897
  norm       = 2.42428
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 41.603
  norm       = 0.000100001
  Normalizat = 1.08758
  Prefactor  = 0.636467
 **********
 **   18 **HESSE 
 **********

 FCN=   5115.829     FROM HESSE     STATUS=OK           374 CALLS     2920 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    14.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.0826        1.3665        .65131E-04   -1.5419    
   3  norm          .10000E-03    2.9891        .12075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.8837        .18928E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    69.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.1887        21.568        .19657E-03   -1.5299    
   7  norm          1.4143        1.5961        .92992E-04   -1.5470    
   8  norm          8.1936        6.7555        .14007E-03   -1.5135    
   9  Prefactor     30.660        25.019        .72364E-04   -1.4600    
  10  Prefactor     3.3425        4.8793        .17964E-03   -1.5342    
  11  norm          3.7888        2.3885        .82649E-04   -1.5319    
  12  Prefactor     .10000E-03    6.4474        .17731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.4139        1.9674        .11549E-03   -1.5470    
  14  Prefactor     47.096        44.246        .58428E-04   -1.4334    
  15  Prefactor     .10000E-03    5.9222        .16944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          11.990        11.125        .11569E-03   -1.5015    
  17  norm          2.4243        2.8426        .12682E-03   -1.5397    
  18  Prefactor     .10000E-03    42.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     41.603        37.877        .62147E-04   -1.4417    
  21  norm          .10000E-03    6.6084        .22171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0876        .18894        .19713E-03   -.90152    
  23  Prefactor     .63647        .22042        .30479E-03   -1.0607    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73901e-10
Minuit parameter uncertainties:
  1  5.4084e-08
  2  1.36654
  3  7.42809e-08
  4  6.3266e-06
  5  1.07614e-05
  6  19.0201
  7  1.59619
  8  6.75614
  9  25.0278
  10  4.87983
  11  2.38853
  12  3.05935e-06
  13  1.96752
  14  44.2766
  15  3.07848e-06
  16  11.1271
  17  2.84276
  18  0.000160798
  19  7.3355e-06
  20  37.8989
  21  0.000190412
  22  0.189057
  23  0.220719
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  3.066e+01  2.503e+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.365e-01  2.207e-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.088e+00  1.891e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.46
Ra Dec: 187.179 48.983
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 5.12e-08 +/- 4.17e-08
Energy Flux (Fixed Index): 1.40e-05 +/- 1.14e-05

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

Saving results to:
/scratch/kocevski/700336/likelihoodResults_506563201_506822401_4FGL_J1228.7+4858_daily_bin1031.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) = 5115.82351485
delta logL = 0.00502912410684

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5115.81548602
delta logL = 0.0130579504075

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.266       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6933       1.0000          .0000       10.000    
     3 'Normalizat'    1.0828       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64109       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=   5115.815     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      242 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.251        39.763        .78165E-04    .36835E-03
   2  Index         2.6939        1.0059        .65928E-02    .13398E-03
   3  Normalizat    1.0828        .18572        .19751E-03   -.18365E-02
   4  Prefactor     .64114        .22205        .30378E-03   -.14021E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.2511
  Index      = 2.69386
  Normalizat = 1.08277
  Prefactor  = 0.641137
 **********
 **   18 **HESSE 
 **********

 FCN=   5115.815     FROM HESSE     STATUS=OK            25 CALLS      267 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.251        34.595        .15633E-04   -1.4683    
   2  Index         2.6939        .87572        .26371E-03   -.47938    
   3  Normalizat    1.0828        .18535        .39501E-04   -.90307    
   4  Prefactor     .64114        .22161        .60757E-04   -1.0588    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.38399e-09
Minuit parameter uncertainties:
  1  34.6217
  2  0.881512
  3  0.185463
  4  0.221913
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/700336': 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) = 5115.81548583
delta logL = 0.0130581400554

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  2.625e+01  3.462e+01  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  2.694e+00  8.815e-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:  6.411e-01  2.219e-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.083e+00  1.855e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.50
Ra Dec: 187.179 48.983
Photon Index (Free Index): 2.69 +/- 0.88
Photon Flux (Free Index): 5.44e-08 +/- 4.55e-08
Energy Flux (Free Index): 1.32e-05 +/- 1.13e-05

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/700336/cmap_HighResolution_506563201_506822401_4FGL_J1228.7+4858_daily_bin1031.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', comment='SUCCESS', photon_flux='5.12e-08', energy_flux2='1.32e-05', photon_flux_error='4.17e-08', dlogl='1.31e-02', energy_flux='1.40e-05', photon_flux2='5.44e-08', job_status='DONE', time_completed='2021-09-05 18:44:07.770937', photon_index_error2='0.88', photon_index2='2.69', ts='2.46', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='1.13e-05', EG='1.09', time_epoch_completed='1630892647.77', return_code='0', job_id='700336', GAL2='0.64', EG2='1.08', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='4.55e-08', ts2='2.50', photon_index='2.56' WHERE bin_id='1031' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:44:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0240>
Subject: Job 700336: <4FGL_J1228.7+4858_daily_bin1031> in cluster <slac> Done

Job <4FGL_J1228.7+4858_daily_bin1031> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 18:30:52 2021
Job was executed on host(s) <bullet0240>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:30:53 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:53 2021
Terminated at Sun Sep  5 18:44:08 2021
Results reported at Sun Sep  5 18:44:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin1031 187.179 48.9827 506563201 506822401 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 :                                   665.24 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             282.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   795 sec.
    Turnaround time :                            796 sec.

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

