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


Performing analysis on: 4FGL_J1228.7+4858_daily_bin1133
RA = 187.179, Dec = 48.9827
tmin = 533001601, tmax = 533260801
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='701660', job_status='RUN', time_executed='2021-09-05 18:35:44.766570', time_epoch_executed='1630892144.77' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='1133'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/701660

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/701660/ft1_4FGL_J1228.7+4858_daily_bin1133.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/701660/ft2_4FGL_J1228.7+4858_daily_bin1133.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/701660/ft1_4FGL_J1228.7+4858_daily_bin1133.fits outfile=/scratch/kocevski/701660/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin1133.fits ra=187.179 dec=48.9827 rad=12.0 tmin=533001601.0 tmax=533260801.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.55
user 3.32
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/701660/ft1_filtered_4FGL_J1228.7+4858_daily_bin1133.fits" evtable="EVENTS" scfile=/scratch/kocevski/701660/ft2_4FGL_J1228.7+4858_daily_bin1133.fits sctable="SC_DATA" outfile=/scratch/kocevski/701660/ltcube_533001601_533260801_4FGL_J1228.7+4858_daily_bin1133.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/701660/ft2_4FGL_J1228.7+4858_daily_bin1133.fits
.....................!
real 11.83
user 11.50
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/701660/ft1_filtered_4FGL_J1228.7+4858_daily_bin1133.fits evtable="EVENTS" scfile=/scratch/kocevski/701660/ft2_4FGL_J1228.7+4858_daily_bin1133.fits sctable="SC_DATA" expcube=/scratch/kocevski/701660/ltcube_533001601_533260801_4FGL_J1228.7+4858_daily_bin1133.fits outfile=/scratch/kocevski/701660/expmap_533001601_533260801_4FGL_J1228.7+4858_daily_bin1133.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/701660/ltcube_533001601_533260801_4FGL_J1228.7+4858_daily_bin1133.fits
.....................!
real 190.92
user 185.22
sys 5.31

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/701660/ft1_filtered_4FGL_J1228.7+4858_daily_bin1133.fits scfile=/scratch/kocevski/701660/ft2_4FGL_J1228.7+4858_daily_bin1133.fits outfile=/scratch/kocevski/701660/cmap_533001601_533260801_4FGL_J1228.7+4858_daily_bin1133.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=187.179 yref=48.9827 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/701660/ft1_filtered_4FGL_J1228.7+4858_daily_bin1133.fits evtable="EVENTS" scfile=/scratch/kocevski/701660/ft2_4FGL_J1228.7+4858_daily_bin1133.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/701660/Model_4FGL_J1228.7+4858_daily_bin1133.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/701660/ft1_filtered_4FGL_J1228.7+4858_daily_bin1133.fits.....................!
real 58.37
user 57.01
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.3874       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10134E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    12.324       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10773E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1782       1.0000         .10000E-03   10000.    
    11 'norm      '    4.4356       1.0000         .10000E-03   10000.    
    12 'Prefactor '    55.154       1.0000         .10000E-03   10000.    
    13 'norm      '    1.2832       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .23195E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    9.2311       1.0000         .10000E-03   10000.    
    17 'norm      '    10.369       1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.743       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.2060       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1022       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .75049       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=   6794.591     FROM MIGRAD    STATUS=CONVERGED    520 CALLS     2200 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    12.412       -.20448E-05** at limit **
   2  norm          3.3876        1.3289       -.56495E-07   -.23423E-03
   3  norm          .10000E-03    4.1940        .56751E-07** at limit **
   4  Prefactor     .10000E-03    1.4159        .14308E-06** at limit **
   5  Prefactor     .10000E-03    28.201        .43188E-05** at limit **
   6  Prefactor     .10000E-03    7.8446        .61114E-06** at limit **
   7  norm          .10000E-03    .79675       -.12251E-06** at limit **
   8  norm          12.322        7.2372       -.63540E-08    .16107E-03
   9  Prefactor     .10000E-03    63.852       -.75109E-05** at limit **
  10  Prefactor     2.1869        6.5293       -.15775E-05   -.96053E-03
  11  norm          4.4358        2.5029       -.19872E-07   -.86905E-03
  12  Prefactor     55.151        23.658       -.69620E-06    .43077E-04
  13  norm          1.2832        1.2234        .68379E-07    .11344E-03
  14  Prefactor     .10000E-03    16.723        .82105E-05** at limit **
  15  Prefactor     .10019E-03    6.8336        .22037E-05** at limit **
  16  norm          9.2309        9.3087        .40760E-06    .44518E-03
  17  norm          10.369        4.2674        .61323E-07    .56671E-04
  18  Prefactor     18.742        20.173       -.32290E-07    .53637E-04
  19  Prefactor     .10000E-03    7.9080        .11261E-05** at limit **
  20  Prefactor     .10000E-03    22.106       -.14196E-04** at limit **
  21  norm          3.2060        2.9086        .13533E-07    .22497E-04
  22  Normalizat    1.1023        .15160        .86531E-08   -.10350E-03
  23  Prefactor     .75044        .17771        .25121E-06   -.80462E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.3876
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100005
  norm       = 12.3223
  Prefactor  = 0.0001
  Prefactor  = 2.18693
  norm       = 4.43578
  Prefactor  = 55.1509
  norm       = 1.28322
  Prefactor  = 0.0001
  Prefactor  = 0.000100191
  norm       = 9.23091
  norm       = 10.3691
  Prefactor  = 18.7425
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.20598
  Normalizat = 1.10226
  Prefactor  = 0.750444
 **********
 **   18 **HESSE 
 **********

 FCN=   6794.591     FROM HESSE     STATUS=OK           368 CALLS     2568 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.3876        1.3282        .57502E-04   -1.5340    
   3  norm          .10000E-03    4.2312        .16485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.4596        .19137E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    28.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.8859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    7.7706        .13997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          12.322        7.2139        .11411E-03   -1.5006    
   9  Prefactor     .10000E-03    65.628        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.1869        6.6215        .27896E-03   -1.5412    
  11  norm          4.4358        2.4573        .85281E-04   -1.5287    
  12  Prefactor     55.151        23.665        .54012E-04   -1.4221    
  13  norm          1.2832        1.2405        .86601E-04   -1.5481    
  14  Prefactor     .10000E-03    16.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10019E-03    37.706        .39510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.2309        9.3636        .65955E-03   -1.5100    
  17  norm          10.369        4.2660        .10506E-03   -1.5064    
  18  Prefactor     18.742        20.171        .92513E-04   -1.4842    
  19  Prefactor     .10000E-03    7.9362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    21.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.2060        2.9096        .12991E-03   -1.5350    
  22  Normalizat    1.1023        .17360        .21042E-03   -.89679    
  23  Prefactor     .75044        .20496        .30394E-03   -1.0158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.06186e-09
Minuit parameter uncertainties:
  1  1.46302e-07
  2  1.32822
  3  1.588e-07
  4  1.05282e-06
  5  1.69505e-07
  6  1.5058e-06
  7  0.000374692
  8  7.21438
  9  0.000358604
  10  6.62372
  11  2.45739
  12  23.6685
  13  1.24051
  14  3.62699e-06
  15  0.00536924
  16  9.36509
  17  4.26613
  18  20.1787
  19  1.93408e-06
  20  1.65352e-05
  21  2.90973
  22  0.173695
  23  0.205169
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  1.000e-04  3.586e-04  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.504e-01  2.052e-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.102e+00  1.737e-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: 7.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/701660/likelihoodResults_533001601_533260801_4FGL_J1228.7+4858_daily_bin1133.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) = 6794.59129228
delta logL = -7.26405569367e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6794.59121989
delta logL = -2.52313839155e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7670       1.0000          .0000       10.000    
     3 'Normalizat'    1.1021       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75060       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=   6794.591     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      250 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .28018        .90712E-01** at limit **
   2  Index         2.7544        7.6946        .50000        .12758E-05
   3  Normalizat    1.1023        .57811E-03    .37914E-01    .42977E-04
   4  Prefactor     .75044        .70572E-03    .68691E-01    .30408E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.75439
  Normalizat = 1.10226
  Prefactor  = 0.750444
 **********
 **   18 **HESSE 
 **********

 FCN=   6794.591     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      287 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    87.759        .53682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7544        8.4878        .50000       -.46578    
   3  Normalizat    1.1023        .40533E-02    .21042E-03   -.89679    
   4  Prefactor     .75044        .49404E-02    .30394E-03   -1.0158    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.93869e-09
Minuit parameter uncertainties:
  1  0.000276371
  2  160.792
  3  0.00405329
  4  0.00494043
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/701660': 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) = 6794.59121956
delta logL = 7.58154783398e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
687    Prefactor:  7.504e-01  4.940e-03  0.000e+00  1.000e+01 ( 1.000e+00)
688        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
689        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
686   Normalization:  1.102e+00  4.053e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 187.179 48.983

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/701660/cmap_HighResolution_533001601_533260801_4FGL_J1228.7+4858_daily_bin1133.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.68e-03', job_status='DONE', photon_flux_upper_limit='7.28e-08', time_completed='2021-09-05 18:48:22.888061', job_id='701660', GAL2='0.75', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1630892902.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='7.58e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1133' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:48:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 701660: <4FGL_J1228.7+4858_daily_bin1133> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin1133 187.179 48.9827 533001601 533260801 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 :                                   749.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             328.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            780 sec.

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

