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


Performing analysis on: 4FGL_J1228.7+4858_daily_bin1083
RA = 187.179, Dec = 48.9827
tmin = 520041601, tmax = 520300801
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='701586', job_status='RUN', time_executed='2021-09-05 18:37:22.391794', time_epoch_executed='1630892242.39' WHERE source_name='4FGL J1228.7+4858' and cadence='daily' and bin_id='1083'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/701586

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/701586/ft1_4FGL_J1228.7+4858_daily_bin1083.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/701586/ft2_4FGL_J1228.7+4858_daily_bin1083.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/701586/ft1_4FGL_J1228.7+4858_daily_bin1083.fits outfile=/scratch/kocevski/701586/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin1083.fits ra=187.179 dec=48.9827 rad=12.0 tmin=520041601.0 tmax=520300801.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.31
user 4.09
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/701586/ft2_4FGL_J1228.7+4858_daily_bin1083.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/701586/ft1_filteredMKT_4FGL_J1228.7+4858_daily_bin1083.fits evtable="EVENTS" outfile="/scratch/kocevski/701586/ft1_filtered_4FGL_J1228.7+4858_daily_bin1083.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/701586/ft1_filtered_4FGL_J1228.7+4858_daily_bin1083.fits" evtable="EVENTS" scfile=/scratch/kocevski/701586/ft2_4FGL_J1228.7+4858_daily_bin1083.fits sctable="SC_DATA" outfile=/scratch/kocevski/701586/ltcube_520041601_520300801_4FGL_J1228.7+4858_daily_bin1083.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/701586/ft2_4FGL_J1228.7+4858_daily_bin1083.fits
.....................!
real 12.25
user 11.91
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/701586/ft1_filtered_4FGL_J1228.7+4858_daily_bin1083.fits evtable="EVENTS" scfile=/scratch/kocevski/701586/ft2_4FGL_J1228.7+4858_daily_bin1083.fits sctable="SC_DATA" expcube=/scratch/kocevski/701586/ltcube_520041601_520300801_4FGL_J1228.7+4858_daily_bin1083.fits outfile=/scratch/kocevski/701586/expmap_520041601_520300801_4FGL_J1228.7+4858_daily_bin1083.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/701586/ltcube_520041601_520300801_4FGL_J1228.7+4858_daily_bin1083.fits
.....................!
real 190.30
user 185.02
sys 4.90

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/701586/ft1_filtered_4FGL_J1228.7+4858_daily_bin1083.fits scfile=/scratch/kocevski/701586/ft2_4FGL_J1228.7+4858_daily_bin1083.fits outfile=/scratch/kocevski/701586/cmap_520041601_520300801_4FGL_J1228.7+4858_daily_bin1083.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.60
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/701586/ft1_filtered_4FGL_J1228.7+4858_daily_bin1083.fits scfile=/scratch/kocevski/701586/ft2_4FGL_J1228.7+4858_daily_bin1083.fits outfile=/scratch/kocevski/701586/cmap_HighResolution_520041601_520300801_4FGL_J1228.7+4858_daily_bin1083.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/701586/ft1_filtered_4FGL_J1228.7+4858_daily_bin1083.fits evtable="EVENTS" scfile=/scratch/kocevski/701586/ft2_4FGL_J1228.7+4858_daily_bin1083.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/701586/Model_4FGL_J1228.7+4858_daily_bin1083.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/701586/ft1_filtered_4FGL_J1228.7+4858_daily_bin1083.fits.....................!
real 47.76
user 46.32
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.173       1.0000         .10000E-03   10000.    
     2 'norm      '    5.8057       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.6683       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10351E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .68944E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    2.4446       1.0000         .10000E-03   10000.    
     8 'norm      '    10.708       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10608E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.4574       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    14.587       1.0000         .10000E-03   10000.    
    17 'norm      '    3.3668       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.8848       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    104.91       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .96947       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0043       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=   5494.896     FROM MIGRAD    STATUS=CONVERGED    519 CALLS     2535 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.173        27.199        .44587E-07    .42235E-06
   2  norm          5.8040        1.8164        .75685E-07   -.49487E-03
   3  norm          .10000E-03    6.2228       -.14716E-06** at limit **
   4  Prefactor     5.6664        3.1869       -.53844E-06   -.15109E-02
   5  Prefactor     .10006E-03    123.38        .84995E-05** at limit **
   6  Prefactor     .10002E-03    141.35       -.57119E-04** at limit **
   7  norm          2.4447        2.7190       -.79403E-08    .19750E-03
   8  norm          10.708        8.7251       -.21455E-05    .13401E-03
   9  Prefactor     .10003E-03    70.919       -.12359E-05** at limit **
  10  Prefactor     .10000E-03    1.8622        .25017E-07** at limit **
  11  norm          6.4583        2.6914        .27305E-07    .52168E-04
  12  Prefactor     .10000E-03    16.947        .73655E-07** at limit **
  13  norm          .10000E-03    .56532        .66032E-07** at limit **
  14  Prefactor     .10005E-03    48.852        .69914E-05** at limit **
  15  Prefactor     .10000E-03    4.8285        .23410E-08** at limit **
  16  norm          14.588        13.712        .16662E-06   -.23633E-04
  17  norm          3.3673        4.1473       -.44993E-07    .69648E-04
  18  Prefactor     5.8850        52.297        .51833E-06    .63402E-05
  19  Prefactor     .10000E-03    14.478        .29918E-06** at limit **
  20  Prefactor     104.91        51.179       -.11977E-06   -.76940E-04
  21  norm          .10000E-03    1.2709        .25877E-07** at limit **
  22  Normalizat    .96951        .17253       -.49984E-06   -.36304E-03
  23  Prefactor     1.0043        .20927       -.35669E-06   -.33178E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.1733
  norm       = 5.80395
  norm       = 0.0001
  Prefactor  = 5.6664
  Prefactor  = 0.000100061
  Prefactor  = 0.000100023
  norm       = 2.44465
  norm       = 10.7083
  Prefactor  = 0.000100034
  Prefactor  = 0.0001
  norm       = 6.45827
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100049
  Prefactor  = 0.0001
  norm       = 14.5876
  norm       = 3.36734
  Prefactor  = 5.88497
  Prefactor  = 0.0001
  Prefactor  = 104.915
  norm       = 0.0001
  Normalizat = 0.969513
  Prefactor  = 1.00426
 **********
 **   18 **HESSE 
 **********

 FCN=   5494.896     FROM HESSE     STATUS=OK           366 CALLS     2901 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.173        27.209        .11481E-03   -1.5010    
   2  norm          5.8040        1.8159        .53736E-04   -1.5226    
   3  norm          .10000E-03    6.2394        .18059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.6664        3.0800        .92117E-04   -1.5232    
   5  Prefactor     .10006E-03    125.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10002E-03    135.58        .54006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.4447        2.7140        .11923E-03   -1.5395    
   8  norm          10.708        8.7363        .12244E-03   -1.5053    
   9  Prefactor     .10003E-03    70.933        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.8660        .98755E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.4583        2.6901        .76201E-04   -1.5200    
  12  Prefactor     .10000E-03    17.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .56686        .54433E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10005E-03    50.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.8439        .15905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          14.588        13.713        .10487E-03   -1.4944    
  17  norm          3.3673        4.1343        .16046E-03   -1.5341    
  18  Prefactor     5.8850        51.730        .16554E-03   -1.5223    
  19  Prefactor     .10000E-03    14.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     104.91        50.992        .39260E-04   -1.3656    
  21  norm          .10000E-03    1.2729        .81607E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .96951        .20496        .23047E-03   -.94059    
  23  Prefactor     1.0043        .24826        .28377E-03   -.92588    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78183e-09
Minuit parameter uncertainties:
  1  27.2369
  2  1.81592
  3  2.78435e-05
  4  3.08009
  5  0.00555737
  6  0.00356177
  7  2.71412
  8  8.73729
  9  0.00312301
  10  3.76031e-06
  11  2.69019
  12  9.60001e-05
  13  4.52649e-06
  14  0.00313101
  15  3.07352e-06
  16  13.716
  17  4.13463
  18  34.9361
  19  8.1703e-05
  20  51.0138
  21  2.80177e-06
  22  0.205122
  23  0.248545
Done.

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

Extracting fit parameters...

4FGL J1228.7+4858
   Spectrum: PowerLaw
359    Prefactor:  1.000e-04  3.123e-03  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.004e+00  2.485e-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:  9.695e-01  2.051e-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: 8.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/701586/likelihoodResults_520041601_520300801_4FGL_J1228.7+4858_daily_bin1083.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) = 5494.896516
delta logL = -6.71390471325e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5494.89644905
delta logL = -1.8665468815e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5036       1.0000          .0000       10.000    
     3 'Normalizat'    .96952       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0043       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=   5494.896     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      286 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    181.90        .36285E-03** at limit **
   2  Index         2.5960        6.1159        .50000       -.16403E-04
   3  Normalizat    .96951        .19509        .23047E-03    .54260E-05
   4  Prefactor     1.0043        .24496        .28377E-03   -.11177E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100026
  Index      = 2.596
  Normalizat = 0.969514
  Prefactor  = 1.00426
 **********
 **   18 **HESSE 
 **********

 FCN=   5494.896     FROM HESSE     STATUS=OK            29 CALLS      315 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    88.547        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5960        6.2939        .50000       -.50157    
   3  Normalizat    .96951        .19528        .92189E-05   -.94059    
   4  Prefactor     1.0043        .24520        .11351E-04   -.92588    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.74995e-10
Minuit parameter uncertainties:
  1  0.00303142
  2  4.43804
  3  0.195421
  4  0.245471
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/701586': 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) = 5494.89644872
delta logL = 1.46486854646e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
687    Prefactor:  1.004e+00  2.455e-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:  9.695e-01  1.954e-01  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/701586/cmap_HighResolution_520041601_520300801_4FGL_J1228.7+4858_daily_bin1083.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.96e-03', job_status='DONE', photon_flux_upper_limit='8.91e-08', time_completed='2021-09-05 18:49:32.331538', job_id='701586', GAL2='1.00', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1630892972.33', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.46e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.56' WHERE bin_id='1083' AND source_name='4FGL J1228.7+4858' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 18:49:32 PDT 2021


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

Job <4FGL_J1228.7+4858_daily_bin1083> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 18:35:18 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 18:35:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 18:35:20 2021
Terminated at Sun Sep  5 18:49:33 2021
Results reported at Sun Sep  5 18:49:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1228.7+4858_daily_bin1083 187.179 48.9827 520041601 520300801 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 :                                   698.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            855 sec.

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

