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


Performing analysis on: 4FGL_J1228.7+4858_daily_bin1029
RA = 187.179, Dec = 48.9827
tmin = 506044801, tmax = 506304001
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='700334', job_status='RUN', time_executed='2021-09-05 18:34:48.801879', time_epoch_executed='1630892088.8' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='1029'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/700334

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/700334/ft1_4FGL_J1228.7+4858_daily_bin1029.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/700334/ft2_4FGL_J1228.7+4858_daily_bin1029.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/700334/ft1_4FGL_J1228.7+4858_daily_bin1029.fits outfile=/scratch/kocevski/700334/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin1029.fits ra=187.179 dec=48.9827 rad=12.0 tmin=506044801.0 tmax=506304001.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.44
user 4.08
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/700334/ft2_4FGL_J1228.7+4858_daily_bin1029.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/700334/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin1029.fits evtable="EVENTS" outfile="/scratch/kocevski/700334/ft1_filtered_4FGL_J1228.7+4858_daily_bin1029.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.52
user 0.33
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/700334/ft1_filtered_4FGL_J1228.7+4858_daily_bin1029.fits" evtable="EVENTS" scfile=/scratch/kocevski/700334/ft2_4FGL_J1228.7+4858_daily_bin1029.fits sctable="SC_DATA" outfile=/scratch/kocevski/700334/ltcube_506044801_506304001_4FGL_J1228.7+4858_daily_bin1029.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/700334/ft2_4FGL_J1228.7+4858_daily_bin1029.fits
.....................!
real 11.87
user 11.56
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/700334/ft1_filtered_4FGL_J1228.7+4858_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/700334/ft2_4FGL_J1228.7+4858_daily_bin1029.fits sctable="SC_DATA" expcube=/scratch/kocevski/700334/ltcube_506044801_506304001_4FGL_J1228.7+4858_daily_bin1029.fits outfile=/scratch/kocevski/700334/expmap_506044801_506304001_4FGL_J1228.7+4858_daily_bin1029.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/700334/ltcube_506044801_506304001_4FGL_J1228.7+4858_daily_bin1029.fits
.....................!
real 193.14
user 187.36
sys 5.33

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/700334/ft1_filtered_4FGL_J1228.7+4858_daily_bin1029.fits scfile=/scratch/kocevski/700334/ft2_4FGL_J1228.7+4858_daily_bin1029.fits outfile=/scratch/kocevski/700334/cmap_506044801_506304001_4FGL_J1228.7+4858_daily_bin1029.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/700334/ft1_filtered_4FGL_J1228.7+4858_daily_bin1029.fits scfile=/scratch/kocevski/700334/ft2_4FGL_J1228.7+4858_daily_bin1029.fits outfile=/scratch/kocevski/700334/cmap_HighResolution_506044801_506304001_4FGL_J1228.7+4858_daily_bin1029.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/700334/ft1_filtered_4FGL_J1228.7+4858_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/700334/ft2_4FGL_J1228.7+4858_daily_bin1029.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/700334/Model_4FGL_J1228.7+4858_daily_bin1029.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/700334/ft1_filtered_4FGL_J1228.7+4858_daily_bin1029.fits.....................!
real 48.01
user 46.42
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.1640       1.0000         .10000E-03   10000.    
     2 'norm      '    .13493       1.0000         .10000E-03   10000.    
     3 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11388E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.345       1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.306       1.0000         .10000E-03   10000.    
     7 'norm      '    3.4304       1.0000         .10000E-03   10000.    
     8 'norm      '    28.028       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4808       1.0000         .10000E-03   10000.    
    11 'norm      '    .51679       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    5.5853       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.7598       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .17399E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.2665       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .86184       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0620       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=   5586.950     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2313 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1648        25.153       -.25398E-06   -.30770E-05
   2  norm          .13523        .98240       -.70033E-06    .11243E-02
   3  norm          .10000E-03    3.8683        .20507E-06** at limit **
   4  Prefactor     .10000E-03    1.7950       -.10019E-06** at limit **
   5  Prefactor     26.317        45.132       -.12668E-05    .81102E-04
   6  Prefactor     20.314        18.511        .20183E-06    .72855E-04
   7  norm          3.4306        2.0672       -.69076E-07    .65558E-04
   8  norm          28.028        9.2054       -.48585E-07    .45620E-04
   9  Prefactor     .10000E-03    4.8503        .22964E-07** at limit **
  10  Prefactor     1.4893        5.7352       -.45115E-05   -.20535E-03
  11  norm          .51383        1.4539        .30518E-06    .38948E-04
  12  Prefactor     .10000E-03    11.648        .27519E-06** at limit **
  13  norm          5.5850        2.4522       -.11318E-07    .66924E-04
  14  Prefactor     .10000E-03    80.360       -.44946E-05** at limit **
  15  Prefactor     .10000E-03    9.2814       -.29419E-06** at limit **
  16  norm          .10000E-03    4.2211        .72396E-07** at limit **
  17  norm          5.7593        4.4524       -.63490E-07   -.73445E-04
  18  Prefactor     .10000E-03    10.722       -.35224E-06** at limit **
  19  Prefactor     .10004E-03    63.127        .52680E-05** at limit **
  20  Prefactor     .10014E-03    99.776       -.47948E-05** at limit **
  21  norm          2.2610        3.4466       -.30646E-06   -.51291E-03
  22  Normalizat    .86182        .16016        .11558E-05    .17111E-03
  23  Prefactor     1.0620        .19835       -.47309E-06    .18405E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.16485
  norm       = 0.13523
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.3173
  Prefactor  = 20.3142
  norm       = 3.43057
  norm       = 28.0279
  Prefactor  = 0.0001
  Prefactor  = 1.48932
  norm       = 0.513828
  Prefactor  = 0.0001
  norm       = 5.58504
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.75929
  Prefactor  = 0.0001
  Prefactor  = 0.000100043
  Prefactor  = 0.00010014
  norm       = 2.26103
  Normalizat = 0.861821
  Prefactor  = 1.06198
 **********
 **   18 **HESSE 
 **********

 FCN=   5586.950     FROM HESSE     STATUS=OK           382 CALLS     2695 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1648        25.155        .14987E-03   -1.5173    
   2  norm          .13523        1.5725        .12375E-02   -1.5634    
   3  norm          .10000E-03    3.8754        .14360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.3767        .19089E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     26.317        44.849        .78049E-04   -1.4682    
   6  Prefactor     20.314        18.237        .88883E-04   -1.4806    
   7  norm          3.4306        2.0653        .79742E-04   -1.5338    
   8  norm          28.028        9.2039        .75674E-04   -1.4649    
   9  Prefactor     .10000E-03    4.8517        .16076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.4893        5.8279        .32731E-03   -1.5464    
  11  norm          .51383        1.4544        .14750E-02   -1.5565    
  12  Prefactor     .10000E-03    11.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.5850        2.4514        .75112E-04   -1.5235    
  14  Prefactor     .10000E-03    78.673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.3886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    4.2221        .14998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.7593        4.4429        .13299E-03   -1.5228    
  18  Prefactor     .10000E-03    10.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10004E-03    89.445        .44023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10014E-03    223.59        .73537E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.2610        3.2566        .15691E-03   -1.5407    
  22  Normalizat    .86182        .18685        .22870E-03   -.97815    
  23  Prefactor     1.0620        .23400        .26363E-03   -.90691    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38377e-09
Minuit parameter uncertainties:
  1  25.192
  2  0.921977
  3  1.43803e-05
  4  1.85412e-05
  5  44.9062
  6  18.2423
  7  2.06537
  8  9.20433
  9  2.71393e-06
  10  5.83009
  11  1.45446
  12  2.04385e-05
  13  2.4514
  14  0.000742636
  15  4.18296e-05
  16  2.31368e-08
  17  4.44311
  18  1.19485e-05
  19  0.00392586
  20  0.0112469
  21  3.25686
  22  0.18699
  23  0.234227
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  1.000e-04  2.714e-06  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.062e+00  2.342e-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.618e-01  1.870e-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: 4.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/700334/likelihoodResults_506044801_506304001_4FGL_J1228.7+4858_daily_bin1029.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) = 5586.95124367
delta logL = -0.000974893798229

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5586.95026891
delta logL = -1.33679350256e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10300E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5284       1.0000          .0000       10.000    
     3 'Normalizat'    .86191       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0619       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=   5586.950     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      255 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.203        .16550E-01** at limit **
   2  Index         1.8399        5.1030        .50000       -.34106E-08
   3  Normalizat    .86182        .64044E-02    .22870E-03   -.42562E-03
   4  Prefactor     1.0620        .81499E-02    .26363E-03   -.36453E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.83986
  Normalizat = 0.861821
  Prefactor  = 1.06198
 **********
 **   18 **HESSE 
 **********

 FCN=   5586.950     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      284 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    163.05        .20056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8399        7.4818        .50000       -.68417    
   3  Normalizat    .86182        .18606E-01    .45740E-04   -.97815    
   4  Prefactor     1.0620        .23677E-01    .52727E-04   -.90691    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.20661e-11
Minuit parameter uncertainties:
  1  3.07223e-05
  2  643.938
  3  0.0186062
  4  0.0236771
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/700334': 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) = 5586.95026509
delta logL = 3.68342625734e-06

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  1.000e-04  3.072e-05  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  1.840e+00  6.439e+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:  1.062e+00  2.368e-02  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.618e-01  1.861e-02  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/700334/cmap_HighResolution_506044801_506304001_4FGL_J1228.7+4858_daily_bin1029.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.45e-03', job_status='DONE', photon_flux_upper_limit='4.42e-08', time_completed='2021-09-05 18:46:22.264307', job_id='700334', GAL2='1.06', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1630892782.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='3.68e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1029' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:46:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 700334: <4FGL_J1228.7+4858_daily_bin1029> in cluster <slac> Done

Job <4FGL_J1228.7+4858_daily_bin1029> 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) <bullet0233>, 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:46:23 2021
Results reported at Sun Sep  5 18:46:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin1029 187.179 48.9827 506044801 506304001 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 :                                   690.10 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             263.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            931 sec.

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

