/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 142 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 = 7476
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1228.7+4858_daily_bin98
RA = 187.179, Dec = 48.9827
tmin = 264729601, tmax = 264988801
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='692834', job_status='RUN', time_executed='2021-09-05 18:08:03.320779', time_epoch_executed='1630890483.32' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='98'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/692834

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/692834/ft1_4FGL_J1228.7+4858_daily_bin98.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/692834/ft2_4FGL_J1228.7+4858_daily_bin98.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/692834/ft1_4FGL_J1228.7+4858_daily_bin98.fits outfile=/scratch/kocevski/692834/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin98.fits ra=187.179 dec=48.9827 rad=12.0 tmin=264729601.0 tmax=264988801.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 1.49
user 1.27
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/692834/ft1_filtered_4FGL_J1228.7+4858_daily_bin98.fits" evtable="EVENTS" scfile=/scratch/kocevski/692834/ft2_4FGL_J1228.7+4858_daily_bin98.fits sctable="SC_DATA" outfile=/scratch/kocevski/692834/ltcube_264729601_264988801_4FGL_J1228.7+4858_daily_bin98.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/692834/ft2_4FGL_J1228.7+4858_daily_bin98.fits
.....................!
real 12.91
user 12.45
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/692834/ft1_filtered_4FGL_J1228.7+4858_daily_bin98.fits evtable="EVENTS" scfile=/scratch/kocevski/692834/ft2_4FGL_J1228.7+4858_daily_bin98.fits sctable="SC_DATA" expcube=/scratch/kocevski/692834/ltcube_264729601_264988801_4FGL_J1228.7+4858_daily_bin98.fits outfile=/scratch/kocevski/692834/expmap_264729601_264988801_4FGL_J1228.7+4858_daily_bin98.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/692834/ltcube_264729601_264988801_4FGL_J1228.7+4858_daily_bin98.fits
.....................!
real 190.48
user 184.78
sys 5.16

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

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

This is gtbin version HEAD
real 0.55
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/692834/ft1_filtered_4FGL_J1228.7+4858_daily_bin98.fits scfile=/scratch/kocevski/692834/ft2_4FGL_J1228.7+4858_daily_bin98.fits outfile=/scratch/kocevski/692834/cmap_HighResolution_264729601_264988801_4FGL_J1228.7+4858_daily_bin98.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/692834/ft1_filtered_4FGL_J1228.7+4858_daily_bin98.fits evtable="EVENTS" scfile=/scratch/kocevski/692834/ft2_4FGL_J1228.7+4858_daily_bin98.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/692834/Model_4FGL_J1228.7+4858_daily_bin98.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/692834/ft1_filtered_4FGL_J1228.7+4858_daily_bin98.fits.....................!
real 56.20
user 54.83
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.706       1.0000         .10000E-03   10000.    
     2 'norm      '    .55654       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.4532       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .11659E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.9716       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.9378       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.9961       1.0000         .10000E-03   10000.    
    16 'norm      '    7.4480       1.0000         .10000E-03   10000.    
    17 'norm      '    2.0330       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.682       1.0000         .10000E-03   10000.    
    21 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .76225       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2325       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=   7009.968     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2162 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.704        34.644       -.31758E-05   -.10340E-05
   2  norm          .55628        .86130       -.79624E-07   -.32597E-03
   3  norm          .10000E-03    5.5761       -.22673E-05** at limit **
   4  Prefactor     7.4516        3.5725       -.49452E-06   -.44423E-03
   5  Prefactor     .10000E-03    15.984        .44186E-05** at limit **
   6  Prefactor     .10000E-03    7.5950        .44428E-05** at limit **
   7  norm          .10000E-03    .88293       -.19236E-06** at limit **
   8  norm          .10000E-03    2.4614       -.26580E-07** at limit **
   9  Prefactor     .10000E-03    4.9566        .32923E-05** at limit **
  10  Prefactor     .10000E-03    5.3781       -.10269E-05** at limit **
  11  norm          7.9732        3.2261       -.29313E-06   -.22484E-02
  12  Prefactor     .10000E-03    23.777        .98744E-05** at limit **
  13  norm          2.9378        1.8827       -.35089E-07   -.15537E-03
  14  Prefactor     .10000E-03    27.351       -.11201E-04** at limit **
  15  Prefactor     5.9957        12.146        .13349E-07   -.71072E-04
  16  norm          7.4496        13.278        .14517E-06   -.23287E-04
  17  norm          2.0331        2.8238       -.17794E-06   -.45884E-03
  18  Prefactor     .10000E-03    12.321       -.63044E-05** at limit **
  19  Prefactor     .10000E-03    6.3327       -.15528E-05** at limit **
  20  Prefactor     27.679        22.535       -.24373E-05    .33238E-04
  21  norm          .10000E-03    2.1360        .11406E-07** at limit **
  22  Normalizat    .76227        .14691        .56640E-06   -.30028E-05
  23  Prefactor     1.2325        .18102        .18489E-06    .34984E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 25.704
  norm       = 0.556284
  norm       = 0.0001
  Prefactor  = 7.45155
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.97324
  Prefactor  = 0.0001
  norm       = 2.93777
  Prefactor  = 0.0001
  Prefactor  = 5.99572
  norm       = 7.44958
  norm       = 2.03309
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.6786
  norm       = 0.0001
  Normalizat = 0.762272
  Prefactor  = 1.23247
 **********
 **   18 **HESSE 
 **********

 FCN=   7009.968     FROM HESSE     STATUS=OK           368 CALLS     2530 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.704        34.649        .79010E-04   -1.4694    
   2  norm          .55628        .86080        .45998E-04   -1.5559    
   3  norm          .10000E-03    5.6324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.4516        3.5887        .10449E-03   -1.5162    
   5  Prefactor     .10000E-03    15.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.6055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    4.3136        .15028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.4996        .12826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.9461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.4226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.9732        3.2650        .44353E-03   -1.5143    
  12  Prefactor     .10000E-03    23.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.9378        1.8807        .89066E-04   -1.5365    
  14  Prefactor     .10000E-03    27.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.9957        12.105        .16398E-03   -1.5218    
  16  norm          7.4496        13.276        .14696E-03   -1.5162    
  17  norm          2.0331        2.8109        .16004E-03   -1.5423    
  18  Prefactor     .10000E-03    12.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.3490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     27.679        22.482        .76144E-04   -1.4655    
  21  norm          .10000E-03    2.2397        .23888E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .76227        .17274        .24606E-03   -1.0148    
  23  Prefactor     1.2325        .21495        .24989E-03   -.85338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02661e-09
Minuit parameter uncertainties:
  1  34.676
  2  0.86082
  3  4.99176e-06
  4  3.58882
  5  1.52243e-06
  6  1.51929e-05
  7  0.000128044
  8  2.15018e-06
  9  2.92756e-06
  10  2.11042e-05
  11  3.26503
  12  7.04351e-05
  13  1.88074
  14  4.11609e-06
  15  12.1104
  16  13.2815
  17  2.8111
  18  2.13018e-05
  19  2.15284e-06
  20  22.489
  21  2.93792e-06
  22  0.172866
  23  0.215108
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  1.000e-04  2.928e-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.232e+00  2.151e-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:  7.623e-01  1.729e-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.10e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/692834/likelihoodResults_264729601_264988801_4FGL_J1228.7+4858_daily_bin98.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) = 7009.96852775
delta logL = -0.000960182506788

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7009.96756752
delta logL = 5.21204128745e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5343       1.0000          .0000       10.000    
     3 'Normalizat'    .76226       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2325       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=   7009.968     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      261 TOTAL
                     EDM=   .30E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.931        .18142E-01** at limit **
   2  Index         1.9004        8.6522        .50000       -.20555E-07
   3  Normalizat    .76227        .62035E-02    .24606E-03   -.74942E-04
   4  Prefactor     1.2325        .78562E-02    .24989E-03   -.77568E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.90043
  Normalizat = 0.762273
  Prefactor  = 1.23247
 **********
 **   18 **HESSE 
 **********

 FCN=   7009.968     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      290 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    209.29        .21432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9004        5.3278        .50000       -.66863    
   3  Normalizat    .76227        .20267E-01    .98423E-05   -1.0148    
   4  Prefactor     1.2325        .25667E-01    .99957E-05   -.85338    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.99647e-11
Minuit parameter uncertainties:
  1  1.40259e-05
  2  838.848
  3  0.0202672
  4  0.0256668
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/692834': 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) = 7009.96756473
delta logL = 2.83904682874e-06

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  1.000e-04  1.403e-05  1.000e-04  1.000e+04 ( 1.000e-13)
360        Index:  1.900e+00  8.388e+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.232e+00  2.567e-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:  7.623e-01  2.027e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/692834/cmap_HighResolution_264729601_264988801_4FGL_J1228.7+4858_daily_bin98.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.20e-03', job_status='DONE', photon_flux_upper_limit='4.10e-08', time_completed='2021-09-05 18:20:22.868254', job_id='692834', GAL2='1.23', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1630891222.87', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='2.84e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='98' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:20:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0141>
Subject: Job 692834: <4FGL_J1228.7+4858_daily_bin98> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin98 187.179 48.9827 264729601 264988801 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 :                                   739.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             290.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            893 sec.

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

