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


Performing analysis on: 4FGL_J1228.7+4858_daily_bin50
RA = 187.179, Dec = 48.9827
tmin = 252288001, tmax = 252547201
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='692764', job_status='RUN', time_executed='2021-09-05 18:07:44.058172', time_epoch_executed='1630890464.06' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='50'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/692764

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/692764/ft1_4FGL_J1228.7+4858_daily_bin50.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/692764/ft2_4FGL_J1228.7+4858_daily_bin50.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/692764/ft1_4FGL_J1228.7+4858_daily_bin50.fits outfile=/scratch/kocevski/692764/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin50.fits ra=187.179 dec=48.9827 rad=12.0 tmin=252288001.0 tmax=252547201.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 2.60
user 2.36
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/692764/ft2_4FGL_J1228.7+4858_daily_bin50.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/692764/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin50.fits evtable="EVENTS" outfile="/scratch/kocevski/692764/ft1_filtered_4FGL_J1228.7+4858_daily_bin50.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/692764/ft1_filtered_4FGL_J1228.7+4858_daily_bin50.fits" evtable="EVENTS" scfile=/scratch/kocevski/692764/ft2_4FGL_J1228.7+4858_daily_bin50.fits sctable="SC_DATA" outfile=/scratch/kocevski/692764/ltcube_252288001_252547201_4FGL_J1228.7+4858_daily_bin50.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/692764/ft2_4FGL_J1228.7+4858_daily_bin50.fits
.....................!
real 12.51
user 12.15
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/692764/ft1_filtered_4FGL_J1228.7+4858_daily_bin50.fits evtable="EVENTS" scfile=/scratch/kocevski/692764/ft2_4FGL_J1228.7+4858_daily_bin50.fits sctable="SC_DATA" expcube=/scratch/kocevski/692764/ltcube_252288001_252547201_4FGL_J1228.7+4858_daily_bin50.fits outfile=/scratch/kocevski/692764/expmap_252288001_252547201_4FGL_J1228.7+4858_daily_bin50.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/692764/ltcube_252288001_252547201_4FGL_J1228.7+4858_daily_bin50.fits
.....................!
real 192.82
user 187.29
sys 4.91

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/692764/ft1_filtered_4FGL_J1228.7+4858_daily_bin50.fits scfile=/scratch/kocevski/692764/ft2_4FGL_J1228.7+4858_daily_bin50.fits outfile=/scratch/kocevski/692764/cmap_252288001_252547201_4FGL_J1228.7+4858_daily_bin50.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.40
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/692764/ft1_filtered_4FGL_J1228.7+4858_daily_bin50.fits scfile=/scratch/kocevski/692764/ft2_4FGL_J1228.7+4858_daily_bin50.fits outfile=/scratch/kocevski/692764/cmap_HighResolution_252288001_252547201_4FGL_J1228.7+4858_daily_bin50.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/692764/ft1_filtered_4FGL_J1228.7+4858_daily_bin50.fits evtable="EVENTS" scfile=/scratch/kocevski/692764/ft2_4FGL_J1228.7+4858_daily_bin50.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/692764/Model_4FGL_J1228.7+4858_daily_bin50.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/692764/ft1_filtered_4FGL_J1228.7+4858_daily_bin50.fits.....................!
real 50.77
user 49.27
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    1.6909       1.0000         .10000E-03   10000.    
     3 'norm      '    1.4871       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11948E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.4917       1.0000         .10000E-03   10000.    
     8 'norm      '    .11131E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    50.682       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.1255       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.1027       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    16.191       1.0000         .10000E-03   10000.    
    17 'norm      '    .11293E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    58.241       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.5414       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .83572       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0056       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=   5827.715     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2534 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    14.801        .65100E-05** at limit **
   2  norm          1.6909        1.0513        .32641E-07   -.64228E-03
   3  norm          1.4864        11.371       -.18748E-05   -.46106E-03
   4  Prefactor     .10000E-03    1.7097        .41355E-09** at limit **
   5  Prefactor     .10000E-03    17.517       -.80306E-05** at limit **
   6  Prefactor     .10000E-03    11.173        .77891E-05** at limit **
   7  norm          4.4918        2.4710        .10117E-06   -.27091E-03
   8  norm          .10000E-03    4.6249        .92148E-06** at limit **
   9  Prefactor     50.679        23.012       -.57545E-06   -.31267E-04
  10  Prefactor     .10000E-03    2.8267       -.17431E-06** at limit **
  11  norm          5.1253        2.3329        .94371E-07    .19927E-03
  12  Prefactor     .10000E-03    5.7351        .38593E-05** at limit **
  13  norm          3.1028        2.0881       -.11507E-07   -.20485E-04
  14  Prefactor     .10000E-03    32.659        .15019E-04** at limit **
  15  Prefactor     .10000E-03    5.3591       -.38642E-05** at limit **
  16  norm          16.191        11.174        .27472E-06    .49109E-03
  17  norm          .10031E-03    2.1180       -.26956E-05** at limit **
  18  Prefactor     58.256        36.165        .15597E-04    .55384E-03
  19  Prefactor     .10000E-03    9.7501       -.66503E-05** at limit **
  20  Prefactor     .10000E-03    16.778       -.59251E-05** at limit **
  21  norm          1.5413        2.5263       -.31605E-06   -.22128E-03
  22  Normalizat    .83558        .15868       -.16915E-05    .44675E-03
  23  Prefactor     1.0057        .19441        .27427E-06    .25603E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.69094
  norm       = 1.4864
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.49179
  norm       = 0.0001
  Prefactor  = 50.6794
  Prefactor  = 0.0001
  norm       = 5.12529
  Prefactor  = 0.0001
  norm       = 3.10281
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.1911
  norm       = 0.000100308
  Prefactor  = 58.2559
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.54125
  Normalizat = 0.835585
  Prefactor  = 1.00574
 **********
 **   18 **HESSE 
 **********

 FCN=   5827.715     FROM HESSE     STATUS=OK           374 CALLS     2908 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    14.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.6909        1.0496        .16186E-03   -1.5448    
   3  norm          1.4864        11.547        .35169E-03   -1.5464    
   4  Prefactor     .10000E-03    4.0735        .19292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.4918        2.4745        .84318E-04   -1.5284    
   8  norm          .10000E-03    4.6601        .16010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     50.679        23.022        .56333E-04   -1.4283    
  10  Prefactor     .10000E-03    2.8445        .12526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.1253        2.3324        .76421E-04   -1.5255    
  12  Prefactor     .10000E-03    5.7294        .17837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.1028        2.0841        .87665E-04   -1.5356    
  14  Prefactor     .10000E-03    32.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.3785        .17234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          16.191        11.186        .49769E-03   -1.4903    
  17  norm          .10031E-03    3.5293        .38548E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     58.256        36.863        .52569E-04   -1.4180    
  19  Prefactor     .10000E-03    9.7733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.5413        2.4956        .15086E-03   -1.5460    
  22  Normalizat    .83558        .18563        .22941E-03   -.98762    
  23  Prefactor     1.0057        .22727        .26168E-03   -.92539    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32536e-09
Minuit parameter uncertainties:
  1  1.32683e-06
  2  1.04957
  3  8.28759
  4  5.1073e-05
  5  1.61307e-05
  6  4.75201e-06
  7  2.4746
  8  1.35501e-05
  9  23.0258
  10  3.93718e-06
  11  2.3324
  12  1.70532e-06
  13  2.08417
  14  3.32504e-05
  15  1.18901e-05
  16  11.1875
  17  0.00208672
  18  36.877
  19  2.53433e-06
  20  0.000271938
  21  2.49579
  22  0.18577
  23  0.22749
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  5.068e+01  2.303e+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.006e+00  2.275e-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.356e-01  1.858e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.79
Ra Dec: 187.179 48.983
Photon Index (Fixed Index): 2.56 +/- 0.00
Photon Flux (Fixed Index): 8.46e-08 +/- 3.84e-08
Energy Flux (Fixed Index): 2.32e-05 +/- 1.05e-05

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) = 5825.75585519
delta logL = 1.95903681535

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5825.54431704
delta logL = 2.17057496455

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    73.389       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7857       1.0000          .0000       10.000    
     3 'Normalizat'    .88517       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96628       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=   5825.544     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      210 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     73.389        37.846        .11716E-02   -.99635E-03
   2  Index         1.7857        .32560        .14621       -.22190E-04
   3  Normalizat    .88500        .15419        .44712E-01    .10947E-04
   4  Prefactor     .96648        .19095        .45844E-01    .10913E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 73.3886
  Index      = 1.78573
  Normalizat = 0.885005
  Prefactor  = 0.966483
 **********
 **   18 **HESSE 
 **********

 FCN=   5825.544     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     73.389        37.112        .23433E-03   -1.3993    
   2  Index         1.7857        .34623        .59390E-02   -.69822    
   3  Normalizat    .88500        .18032        .22366E-03   -.96989    
   4  Prefactor     .96648        .22335        .26620E-03   -.93855    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12036e-09
Minuit parameter uncertainties:
  1  37.1236
  2  0.3467
  3  0.180442
  4  0.223562
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/692764': 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) = 5825.54431661
delta logL = 2.17057539353

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
687    Prefactor:  9.665e-01  2.236e-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.850e-01  1.804e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.14
Ra Dec: 187.179 48.983
Photon Index (Free Index): 1.79 +/- 0.35
Photon Flux (Free Index): 4.52e-08 +/- 3.01e-08
Energy Flux (Free Index): 5.65e-05 +/- 4.38e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/692764/cmap_HighResolution_252288001_252547201_4FGL_J1228.7+4858_daily_bin50.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.46e-08', energy_flux2='5.65e-05', photon_flux_error='3.84e-08', dlogl='2.17e+00', energy_flux='2.32e-05', photon_flux2='4.52e-08', job_status='DONE', time_completed='2021-09-05 18:18:16.413583', photon_index_error2='0.35', photon_index2='1.79', ts='12.79', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='4.38e-05', EG='0.84', time_epoch_completed='1630891096.41', return_code='0', job_id='692764', GAL2='0.97', EG2='0.89', return_code2='0', energy_flux_error='1.05e-05', photon_flux_error2='3.01e-08', ts2='17.14', photon_index='2.56' WHERE bin_id='50' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:18:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 692764: <4FGL_J1228.7+4858_daily_bin50> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin50 187.179 48.9827 252288001 252547201 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 :                                   631.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             301.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   768 sec.
    Turnaround time :                            772 sec.

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

