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


Performing analysis on: 4FGL_J1428.9+5406_daily_bin1152
RA = 217.229, Dec = 54.1114
tmin = 537926401, tmax = 538185601
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='549576', job_status='RUN', time_executed='2021-09-09 20:54:23.935996', time_epoch_executed='1631246063.94' WHERE source_name='4FGL J1428.9+5406' and cadence='daily' and bin_id='1152'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/549576

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/549576/ft1_4FGL_J1428.9+5406_daily_bin1152.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/549576/ft2_4FGL_J1428.9+5406_daily_bin1152.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/549576/ft1_4FGL_J1428.9+5406_daily_bin1152.fits outfile=/scratch/kocevski/549576/ft1_filteredMKT_4FGL_J1428.9+5406_daily_bin1152.fits ra=217.229 dec=54.1114 rad=12.0 tmin=537926401.0 tmax=538185601.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 6.57
user 6.19
sys 0.28

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/549576/ft2_4FGL_J1428.9+5406_daily_bin1152.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/549576/ft2_4FGL_J1428.9+5406_daily_bin1152.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/549576/ft1_filteredMKT_4FGL_J1428.9+5406_daily_bin1152.fits evtable="EVENTS" outfile="/scratch/kocevski/549576/ft1_filtered_4FGL_J1428.9+5406_daily_bin1152.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/549576/ft1_filtered_4FGL_J1428.9+5406_daily_bin1152.fits" evtable="EVENTS" scfile=/scratch/kocevski/549576/ft2_4FGL_J1428.9+5406_daily_bin1152.fits sctable="SC_DATA" outfile=/scratch/kocevski/549576/ltcube_537926401_538185601_4FGL_J1428.9+5406_daily_bin1152.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/549576/ft2_4FGL_J1428.9+5406_daily_bin1152.fits
.....................!
real 12.01
user 11.62
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/549576/ft1_filtered_4FGL_J1428.9+5406_daily_bin1152.fits evtable="EVENTS" scfile=/scratch/kocevski/549576/ft2_4FGL_J1428.9+5406_daily_bin1152.fits sctable="SC_DATA" expcube=/scratch/kocevski/549576/ltcube_537926401_538185601_4FGL_J1428.9+5406_daily_bin1152.fits outfile=/scratch/kocevski/549576/expmap_537926401_538185601_4FGL_J1428.9+5406_daily_bin1152.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/549576/ltcube_537926401_538185601_4FGL_J1428.9+5406_daily_bin1152.fits
.....................!
real 192.63
user 186.89
sys 5.24

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 215 point sources and 0 extended sources

Setting source of interest to:
4FGL J1428.9+5406 @ 217.229 54.1114

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/549576/ft1_filtered_4FGL_J1428.9+5406_daily_bin1152.fits scfile=/scratch/kocevski/549576/ft2_4FGL_J1428.9+5406_daily_bin1152.fits outfile=/scratch/kocevski/549576/cmap_537926401_538185601_4FGL_J1428.9+5406_daily_bin1152.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=217.229 yref=54.1114 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/549576/ft1_filtered_4FGL_J1428.9+5406_daily_bin1152.fits scfile=/scratch/kocevski/549576/ft2_4FGL_J1428.9+5406_daily_bin1152.fits outfile=/scratch/kocevski/549576/cmap_HighResolution_537926401_538185601_4FGL_J1428.9+5406_daily_bin1152.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=217.229 yref=54.1114 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/549576/ft1_filtered_4FGL_J1428.9+5406_daily_bin1152.fits evtable="EVENTS" scfile=/scratch/kocevski/549576/ft2_4FGL_J1428.9+5406_daily_bin1152.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/549576/Model_4FGL_J1428.9+5406_daily_bin1152.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/549576/ft1_filtered_4FGL_J1428.9+5406_daily_bin1152.fits......................!
real 24.98
user 23.59
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/549576/ft1_filtered_4FGL_J1428.9+5406_daily_bin1152.fits', '/scratch/kocevski/549576/ft2_4FGL_J1428.9+5406_daily_bin1152.fits', expMap='/scratch/kocevski/549576/expmap_537926401_538185601_4FGL_J1428.9+5406_daily_bin1152.fits', expCube='/scratch/kocevski/549576/ltcube_537926401_538185601_4FGL_J1428.9+5406_daily_bin1152.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/549576/Model_4FGL_J1428.9+5406_daily_bin1152.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1428.9+5406'

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  4.001e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
347        Index:  2.574e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
348        Scale:  8.154e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/549576/ft1_filtered_4FGL_J1428.9+5406_daily_bin1152.fits
Spacecraft file(s): /scratch/kocevski/549576/ft2_4FGL_J1428.9+5406_daily_bin1152.fits
Exposure map: /scratch/kocevski/549576/expmap_537926401_538185601_4FGL_J1428.9+5406_daily_bin1152.fits
Exposure cube: /scratch/kocevski/549576/ltcube_537926401_538185601_4FGL_J1428.9+5406_daily_bin1152.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/549576/Model_4FGL_J1428.9+5406_daily_bin1152.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) = 1845.55891616

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.043       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    144.60       1.0000         .10000E-03   10000.    
     4 'norm      '    1.7678       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.2476       1.0000         .10000E-03   10000.    
     8 'norm      '    .10137E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12587E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10348E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    78.093       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.7092       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    72.070       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10311E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    37.531       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10478E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    18.141       1.0000         .10000E-03   10000.    
    24 'Prefactor '    26.782       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.3639       1.0000         .10000E-03   10000.    
    27 'norm      '    .10566E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .78767       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1197       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1845.455     FROM MIGRAD    STATUS=CONVERGED    690 CALLS     3631 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.138        119.50        .17047E-03    .20422E-04
   2  Prefactor     .10000E-03    18.150        .10555E-05** at limit **
   3  Prefactor     144.48        117.21       -.88295E-04   -.48846E-04
   4  norm          1.7662        4.6731       -.12572E-05   -.24890E-03
   5  Prefactor     .10000E-03    40.148        .10443E-04** at limit **
   6  Prefactor     .10000E-03    22.742       -.23417E-05** at limit **
   7  norm          2.2465        3.8622        .45633E-05    .35376E-03
   8  norm          .10000E-03    57.959       -.44403E-04** at limit **
   9  norm          .10000E-03    3.1070       -.51708E-07** at limit **
  10  Prefactor     .10000E-03    321.37       -.12793E-03** at limit **
  11  Prefactor     .10000E-03    115.41        .54953E-04** at limit **
  12  Prefactor     .10000E-03    67.746       -.15202E-04** at limit **
  13  Prefactor     .10000E-03    4.1835        .48400E-07** at limit **
  14  Prefactor     78.060        67.421       -.25167E-04   -.33597E-05
  15  Prefactor     2.7134        5.6568        .70159E-05   -.13225E-03
  16  Prefactor     .10000E-03    14.104        .69390E-05** at limit **
  17  Prefactor     72.021        64.366       -.38530E-04   -.92182E-04
  18  Prefactor     .10000E-03    94.144        .55539E-04** at limit **
  19  Prefactor     .10000E-03    39.596        .16037E-04** at limit **
  20  Prefactor     .10000E-03    42.834       -.11922E-04** at limit **
  21  Prefactor     37.534        28.366       -.95639E-06    .96612E-05
  22  Prefactor     .10000E-03    76.116        .13555E-04** at limit **
  23  norm          18.144        9.5549        .79365E-06    .46017E-05
  24  Prefactor     26.785        42.493        .96551E-06   -.97347E-05
  25  Prefactor     .10000E-03    14.062       -.66638E-05** at limit **
  26  Prefactor     9.3683        29.608       -.20428E-05   -.16509E-04
  27  norm          .10000E-03    165.93       -.82872E-04** at limit **
  28  Normalizat    .78678        .31954        .12102E-04   -.14195E-04
  29  Prefactor     1.1207        .36854        .13876E-05    .19247E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.1379
  Prefactor  = 0.0001
  Prefactor  = 144.481
  norm       = 1.7662
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.24652
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 78.0602
  Prefactor  = 2.71338
  Prefactor  = 0.0001
  Prefactor  = 72.0212
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.5342
  Prefactor  = 0.0001
  norm       = 18.1445
  Prefactor  = 26.7848
  Prefactor  = 0.0001
  Prefactor  = 9.36826
  norm       = 0.000100003
  Normalizat = 0.786783
  Prefactor  = 1.12066
 **********
 **   18 **HESSE 
 **********

 FCN=   1845.455     FROM HESSE     STATUS=OK           543 CALLS     4174 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.138        119.37        .77036E-04   -1.4666    
   2  Prefactor     .10000E-03    18.169        .17850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     144.48        117.07        .16754E-03   -1.3298    
   4  norm          1.7662        4.6181        .14492E-03   -1.5442    
   5  Prefactor     .10000E-03    40.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.2465        3.8314        .10358E-03   -1.5408    
   8  norm          .10000E-03    57.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.1270        .73931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    321.25        .20603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    115.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    67.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.1856        .85817E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     78.060        67.880        .45443E-04   -1.3939    
  15  Prefactor     2.7134        5.6008        .12627E-03   -1.5379    
  16  Prefactor     .10000E-03    14.107        .15761E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     72.021        64.053        .23645E-03   -1.4009    
  18  Prefactor     .10000E-03    94.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    39.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    42.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     37.534        28.383        .65422E-04   -1.4482    
  22  Prefactor     .10000E-03    76.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          18.144        9.5500        .91897E-04   -1.4856    
  24  Prefactor     26.785        42.360        .77409E-04   -1.4672    
  25  Prefactor     .10000E-03    14.067        .15736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     9.3683        29.531        .13097E-03   -1.5096    
  27  norm          .10000E-03    169.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .78678        .38550        .25843E-03   -1.0056    
  29  Prefactor     1.1207        .44537        .26612E-03   -.88809    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22504e-09
Minuit parameter uncertainties:
  1  114.217
  2  4.25772e-05
  3  117.258
  4  4.61901
  5  0.00012225
  6  6.83846e-05
  7  3.83177
  8  5.65764e-06
  9  1.98197e-05
  10  0.000125582
  11  0.000296072
  12  0.000469309
  13  3.85571e-05
  14  67.9472
  15  5.6019
  16  2.12581e-05
  17  64.1145
  18  0.000470824
  19  6.50226e-05
  20  0.000256304
  21  28.3927
  22  0.000204851
  23  9.55082
  24  42.4078
  25  1.46866e-05
  26  29.5769
  27  0.00140142
  28  0.386847
  29  0.446865
Done.

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

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  7.202e+01  6.411e+01  1.000e-04  1.000e+04 ( 1.000e-13)
347        Index:  2.574e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
348        Scale:  8.154e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  1.121e+00  4.469e-01  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  7.868e-01  3.868e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.66
Ra Dec: 217.229 54.111
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 1.02e-07 +/- 9.03e-08
Energy Flux (Fixed Index): 2.73e-05 +/- 2.43e-05

TS (Fixed Index): 2.66
Ra Dec: 217.229 54.111
Photon Flux Upper Limit: 2.88e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.25e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/549576/likelihoodResults_537926401_538185601_4FGL_J1428.9+5406_daily_bin1152.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): 0
logL (Free Index) = 1845.37754583
delta logL = 0.0772357820254

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1845.37466536
delta logL = 0.0801162525647

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    92.846       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2751       1.0000          .0000       10.000    
     3 'Normalizat'    .80762       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1011       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1845.375     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      266 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     93.076        5846.1        .10427E-02   -.16440E-04
   2  Index         2.2771        5.3854        .13469        .29544E-04
   3  Normalizat    .80748        .24928        .43710E-01   -.15751E-03
   4  Prefactor     1.1009        .24953        .60619E-01   -.14349E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 93.0763
  Index      = 2.27709
  Normalizat = 0.807482
  Prefactor  = 1.1009
 **********
 **   18 **HESSE 
 **********

 FCN=   1845.375     FROM HESSE     STATUS=OK            27 CALLS      293 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     93.076        86.517        .41707E-04   -1.3775    
   2  Index         2.2771        .70436        .53606E-02   -.57589    
   3  Normalizat    .80748        .36474        .25550E-03   -.99792    
   4  Prefactor     1.1009        .43887        .26809E-03   -.89438    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15722e-10
Minuit parameter uncertainties:
  1  86.634
  2  0.707715
  3  0.365855
  4  0.440322
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/549576': 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) = 1845.37464983
delta logL = 0.0801317883568

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  9.308e+01  8.663e+01  1.000e-04  1.000e+04 ( 1.000e-13)
347        Index:  2.277e+00  7.077e-01  0.000e+00  1.000e+01 (-1.000e+00)
348        Scale:  8.154e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  1.101e+00  4.403e-01  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  8.075e-01  3.659e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.84
Ra Dec: 217.229 54.111
Photon Index (Free Index): 2.28 +/- 0.71
Photon Flux (Free Index): 8.67e-08 +/- 8.00e-08
Energy Flux (Free Index): 3.41e-05 +/- 3.62e-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/549576/cmap_HighResolution_537926401_538185601_4FGL_J1428.9+5406_daily_bin1152.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.25e-02', comment='SUCCESS', photon_flux='1.02e-07', energy_flux2='3.41e-05', photon_flux_error='9.03e-08', dlogl='8.01e-02', energy_flux='2.73e-05', photon_flux2='8.67e-08', job_status='DONE', time_completed='2021-09-09 21:03:07.460832', photon_index_error2='0.71', photon_index2='2.28', ts='2.66', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='2.88e-07', energy_flux_error2='3.62e-05', EG='0.79', time_epoch_completed='1631246587.46', return_code='0', job_id='549576', GAL2='1.10', EG2='0.81', return_code2='0', energy_flux_error='2.43e-05', photon_flux_error2='8.00e-08', ts2='2.84', photon_index='2.57' WHERE bin_id='1152' AND source_name='4FGL J1428.9+5406' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 21:03:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 549576: <4FGL_J1428.9+5406_daily_bin1152> in cluster <slac> Done

Job <4FGL_J1428.9+5406_daily_bin1152> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  9 20:51:09 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 20:51:11 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 20:51:11 2021
Terminated at Thu Sep  9 21:03:08 2021
Results reported at Thu Sep  9 21:03:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1428.9+5406_daily_bin1152 217.229 54.1114 537926401 538185601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1428.9+5406 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   516.03 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             258.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   716 sec.
    Turnaround time :                            719 sec.

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

