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


Performing analysis on: 4FGL_J1228.7+4858_daily_bin1087
RA = 187.179, Dec = 48.9827
tmin = 521078401, tmax = 521337601
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='701592', job_status='RUN', time_executed='2021-09-05 18:37:24.918423', time_epoch_executed='1630892244.92' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='1087'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/701592

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/701592/ft1_4FGL_J1228.7+4858_daily_bin1087.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/701592/ft2_4FGL_J1228.7+4858_daily_bin1087.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/701592/ft1_4FGL_J1228.7+4858_daily_bin1087.fits outfile=/scratch/kocevski/701592/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin1087.fits ra=187.179 dec=48.9827 rad=12.0 tmin=521078401.0 tmax=521337601.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 4.85
user 4.43
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/701592/ft1_filtered_4FGL_J1228.7+4858_daily_bin1087.fits" evtable="EVENTS" scfile=/scratch/kocevski/701592/ft2_4FGL_J1228.7+4858_daily_bin1087.fits sctable="SC_DATA" outfile=/scratch/kocevski/701592/ltcube_521078401_521337601_4FGL_J1228.7+4858_daily_bin1087.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/701592/ft2_4FGL_J1228.7+4858_daily_bin1087.fits
.....................!
real 11.68
user 11.24
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/701592/ft1_filtered_4FGL_J1228.7+4858_daily_bin1087.fits evtable="EVENTS" scfile=/scratch/kocevski/701592/ft2_4FGL_J1228.7+4858_daily_bin1087.fits sctable="SC_DATA" expcube=/scratch/kocevski/701592/ltcube_521078401_521337601_4FGL_J1228.7+4858_daily_bin1087.fits outfile=/scratch/kocevski/701592/expmap_521078401_521337601_4FGL_J1228.7+4858_daily_bin1087.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/701592/ltcube_521078401_521337601_4FGL_J1228.7+4858_daily_bin1087.fits
.....................!
real 190.42
user 184.30
sys 5.74

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/701592/ft1_filtered_4FGL_J1228.7+4858_daily_bin1087.fits scfile=/scratch/kocevski/701592/ft2_4FGL_J1228.7+4858_daily_bin1087.fits outfile=/scratch/kocevski/701592/cmap_521078401_521337601_4FGL_J1228.7+4858_daily_bin1087.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/701592/ft1_filtered_4FGL_J1228.7+4858_daily_bin1087.fits scfile=/scratch/kocevski/701592/ft2_4FGL_J1228.7+4858_daily_bin1087.fits outfile=/scratch/kocevski/701592/cmap_HighResolution_521078401_521337601_4FGL_J1228.7+4858_daily_bin1087.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/701592/ft1_filtered_4FGL_J1228.7+4858_daily_bin1087.fits evtable="EVENTS" scfile=/scratch/kocevski/701592/ft2_4FGL_J1228.7+4858_daily_bin1087.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/701592/Model_4FGL_J1228.7+4858_daily_bin1087.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/701592/ft1_filtered_4FGL_J1228.7+4858_daily_bin1087.fits.....................!
real 57.25
user 55.39
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10542E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.6049       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .16132E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    3.7211       1.0000         .10000E-03   10000.    
     8 'norm      '    15.204       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.924       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.6573       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.7703       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.623       1.0000         .10000E-03   10000.    
    16 'norm      '    11.636       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .20169E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.083       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.3294       1.0000         .10000E-03   10000.    
    21 'norm      '    2.1240       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .86155       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1944       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=   6923.367     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     2207 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    66.470       -.29277E-05** at limit **
   2  norm          4.6051        1.4342        .12924E-07    .15490E-03
   3  norm          .10000E-03    3.6283        .45545E-08** at limit **
   4  Prefactor     .10001E-03    1.6891        .10161E-05** at limit **
   5  Prefactor     .10000E-03    32.044       -.31064E-06** at limit **
   6  Prefactor     .10003E-03    54.370       -.22689E-04** at limit **
   7  norm          3.7213        1.9209        .84662E-07    .65309E-03
   8  norm          15.204        8.4369        .32149E-06    .49138E-04
   9  Prefactor     19.924        22.188        .56316E-07   -.21885E-05
  10  Prefactor     .10000E-03    2.1298       -.46193E-09** at limit **
  11  norm          1.6574        1.4931        .61973E-07    .25726E-03
  12  Prefactor     .10000E-03    13.176       -.55978E-07** at limit **
  13  norm          3.7703        1.8662       -.35008E-06   -.26234E-02
  14  Prefactor     .10000E-03    15.989        .11112E-06** at limit **
  15  Prefactor     14.624        9.4747        .19063E-06    .27558E-04
  16  norm          11.636        11.139        .11735E-07   -.37167E-04
  17  norm          .10000E-03    .86085        .12689E-07** at limit **
  18  Prefactor     .10001E-03    105.83        .16914E-05** at limit **
  19  Prefactor     15.081        13.310       -.47145E-06   -.67751E-04
  20  Prefactor     3.2532        39.228       -.22297E-05   -.99829E-04
  21  norm          2.1243        3.0832        .82947E-06    .11732E-02
  22  Normalizat    .86144        .15335        .88049E-08    .10188E-03
  23  Prefactor     1.1945        .18973       -.68369E-06    .96047E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100007
  norm       = 4.60509
  norm       = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.00010003
  norm       = 3.72129
  norm       = 15.2036
  Prefactor  = 19.9245
  Prefactor  = 0.0001
  norm       = 1.65742
  Prefactor  = 0.0001
  norm       = 3.77026
  Prefactor  = 0.0001
  Prefactor  = 14.6242
  norm       = 11.6365
  norm       = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 15.0814
  Prefactor  = 3.25316
  norm       = 2.12428
  Normalizat = 0.861442
  Prefactor  = 1.19454
 **********
 **   18 **HESSE 
 **********

 FCN=   6923.367     FROM HESSE     STATUS=OK           374 CALLS     2581 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    66.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.6051        1.4343        .53868E-04   -1.5279    
   3  norm          .10000E-03    3.6329        .15478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    3.0973        .20569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    32.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10003E-03    55.487        .52676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.7213        1.9222        .79414E-04   -1.5322    
   8  norm          15.204        8.4396        .10272E-03   -1.4928    
   9  Prefactor     19.924        22.211        .89730E-04   -1.4815    
  10  Prefactor     .10000E-03    2.1402        .11852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.6574        1.4835        .93163E-04   -1.5450    
  12  Prefactor     .10000E-03    13.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.7703        1.8961        .39415E-03   -1.5320    
  14  Prefactor     .10000E-03    15.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.624        9.4688        .10474E-03   -1.4943    
  16  norm          11.636        11.138        .11744E-03   -1.5026    
  17  norm          .10000E-03    .86320        .75384E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    109.61        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.081        13.279        .10313E-03   -1.4931    
  20  Prefactor     3.2532        39.241        .22183E-03   -1.5347    
  21  norm          2.1243        3.1063        .15915E-03   -1.5416    
  22  Normalizat    .86144        .18123        .24119E-03   -.97829    
  23  Prefactor     1.1945        .22528        .26556E-03   -.86499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.88003e-09
Minuit parameter uncertainties:
  1  0.00136149
  2  1.43426
  3  5.84891e-06
  4  0.000317449
  5  0.000111764
  6  0.00256496
  7  1.92219
  8  8.44024
  9  22.2202
  10  5.06179e-07
  11  1.48354
  12  1.13272e-05
  13  1.89617
  14  9.0504e-06
  15  9.46977
  16  11.1405
  17  7.84615e-07
  18  0.0015925
  19  13.2813
  20  22.6152
  21  3.10655
  22  0.181356
  23  0.225465
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  1.992e+01  2.222e+01  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  2.556e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
361        Scale:  8.802e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
687    Prefactor:  1.195e+00  2.255e-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:  8.614e-01  1.814e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.38
Ra Dec: 187.179 48.983
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 3.33e-08 +/- 3.71e-08
Energy Flux (Fixed Index): 9.10e-06 +/- 1.02e-05

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

Saving results to:
/scratch/kocevski/701592/likelihoodResults_521078401_521337601_4FGL_J1228.7+4858_daily_bin1087.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) = 6923.29139542
delta logL = 0.0757192338715

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6923.28940047
delta logL = 0.077714184612

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.369       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9186       1.0000          .0000       10.000    
     3 'Normalizat'    .84844       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2054       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=   6923.289     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      260 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.369        358.42        .26416E-02    .58391E-03
   2  Index         2.9187        6.4593        .13617        .13412E-03
   3  Normalizat    .84844        .61351E-01    .44239E-01    .17765E-04
   4  Prefactor     1.2054        .67098E-01    .59820E-01    .74483E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.3689
  Index      = 2.91867
  Normalizat = 0.848441
  Prefactor  = 1.20537
 **********
 **   18 **HESSE 
 **********

 FCN=   6923.289     FROM HESSE     STATUS=OK            33 CALLS      293 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.369        26.861        .10566E-03   -1.4950    
   2  Index         2.9187        1.2099        .81421E-02   -.42933    
   3  Normalizat    .84844        .18210        .24280E-03   -.98296    
   4  Prefactor     1.2054        .22806        .26454E-03   -.86166    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26888e-08
Minuit parameter uncertainties:
  1  26.8837
  2  1.22461
  3  0.182233
  4  0.22825
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/701592': 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) = 6923.28940043
delta logL = 0.0777142239303

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  1.437e+01  2.688e+01  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  2.919e+00  1.225e+00  0.000e+00  1.000e+01 (-1.000e+00)
361        Scale:  8.802e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
687    Prefactor:  1.205e+00  2.283e-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:  8.484e-01  1.822e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.57
Ra Dec: 187.179 48.983
Photon Index (Free Index): 2.92 +/- 1.22
Photon Flux (Free Index): 4.29e-08 +/- 4.28e-08
Energy Flux (Free Index): 8.92e-06 +/- 8.58e-06

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/701592/cmap_HighResolution_521078401_521337601_4FGL_J1228.7+4858_daily_bin1087.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.16e-03', comment='SUCCESS', photon_flux='3.33e-08', energy_flux2='8.92e-06', photon_flux_error='3.71e-08', dlogl='7.77e-02', energy_flux='9.10e-06', photon_flux2='4.29e-08', job_status='DONE', time_completed='2021-09-05 18:51:41.389407', photon_index_error2='1.22', photon_index2='2.92', ts='1.38', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='8.58e-06', EG='0.86', time_epoch_completed='1630893101.39', return_code='0', job_id='701592', GAL2='1.21', EG2='0.85', return_code2='0', energy_flux_error='1.02e-05', photon_flux_error2='4.28e-08', ts2='1.57', photon_index='2.56' WHERE bin_id='1087' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:51:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 701592: <4FGL_J1228.7+4858_daily_bin1087> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin1087 187.179 48.9827 521078401 521337601 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 :                                   768.02 sec.
    Max Memory :                                 1047 MB
    Average Memory :                             280.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            984 sec.

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

