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


Performing analysis on: 4FGL_J1428.9+5406_daily_bin1488
RA = 217.229, Dec = 54.1114
tmin = 625017601, tmax = 625276801
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='550142', job_status='RUN', time_executed='2021-09-09 20:52:06.215952', time_epoch_executed='1631245926.22' WHERE source_name='4FGL J1428.9+5406' and cadence='daily' and bin_id='1488'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/550142

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/550142/ft1_4FGL_J1428.9+5406_daily_bin1488.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/550142/ft2_4FGL_J1428.9+5406_daily_bin1488.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/550142/ft1_4FGL_J1428.9+5406_daily_bin1488.fits outfile=/scratch/kocevski/550142/ft1_filteredMKT_4FGL_J1428.9+5406_daily_bin1488.fits ra=217.229 dec=54.1114 rad=12.0 tmin=625017601.0 tmax=625276801.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 3.60
user 3.36
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/550142/ft2_4FGL_J1428.9+5406_daily_bin1488.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/550142/ft1_filteredMKT_4FGL_J1428.9+5406_daily_bin1488.fits evtable="EVENTS" outfile="/scratch/kocevski/550142/ft1_filtered_4FGL_J1428.9+5406_daily_bin1488.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.53
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/550142/ft1_filtered_4FGL_J1428.9+5406_daily_bin1488.fits" evtable="EVENTS" scfile=/scratch/kocevski/550142/ft2_4FGL_J1428.9+5406_daily_bin1488.fits sctable="SC_DATA" outfile=/scratch/kocevski/550142/ltcube_625017601_625276801_4FGL_J1428.9+5406_daily_bin1488.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/550142/ft2_4FGL_J1428.9+5406_daily_bin1488.fits
.....................!
real 12.02
user 11.63
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/550142/ft1_filtered_4FGL_J1428.9+5406_daily_bin1488.fits evtable="EVENTS" scfile=/scratch/kocevski/550142/ft2_4FGL_J1428.9+5406_daily_bin1488.fits sctable="SC_DATA" expcube=/scratch/kocevski/550142/ltcube_625017601_625276801_4FGL_J1428.9+5406_daily_bin1488.fits outfile=/scratch/kocevski/550142/expmap_625017601_625276801_4FGL_J1428.9+5406_daily_bin1488.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/550142/ltcube_625017601_625276801_4FGL_J1428.9+5406_daily_bin1488.fits
.....................!
real 190.76
user 185.08
sys 5.10

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/550142/ft1_filtered_4FGL_J1428.9+5406_daily_bin1488.fits scfile=/scratch/kocevski/550142/ft2_4FGL_J1428.9+5406_daily_bin1488.fits outfile=/scratch/kocevski/550142/cmap_625017601_625276801_4FGL_J1428.9+5406_daily_bin1488.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.57
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/550142/ft1_filtered_4FGL_J1428.9+5406_daily_bin1488.fits scfile=/scratch/kocevski/550142/ft2_4FGL_J1428.9+5406_daily_bin1488.fits outfile=/scratch/kocevski/550142/cmap_HighResolution_625017601_625276801_4FGL_J1428.9+5406_daily_bin1488.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.55
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/550142/ft1_filtered_4FGL_J1428.9+5406_daily_bin1488.fits', '/scratch/kocevski/550142/ft2_4FGL_J1428.9+5406_daily_bin1488.fits', expMap='/scratch/kocevski/550142/expmap_625017601_625276801_4FGL_J1428.9+5406_daily_bin1488.fits', expCube='/scratch/kocevski/550142/ltcube_625017601_625276801_4FGL_J1428.9+5406_daily_bin1488.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/550142/Model_4FGL_J1428.9+5406_daily_bin1488.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/550142/ft1_filtered_4FGL_J1428.9+5406_daily_bin1488.fits
Spacecraft file(s): /scratch/kocevski/550142/ft2_4FGL_J1428.9+5406_daily_bin1488.fits
Exposure map: /scratch/kocevski/550142/expmap_625017601_625276801_4FGL_J1428.9+5406_daily_bin1488.fits
Exposure cube: /scratch/kocevski/550142/ltcube_625017601_625276801_4FGL_J1428.9+5406_daily_bin1488.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/550142/Model_4FGL_J1428.9+5406_daily_bin1488.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) = 4958.41780327

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.8611       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .47444E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.7631       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .87972       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    37.837       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10923E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9345       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .47968E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.059       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.7260       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.604       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .84994       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.7739       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.4517       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .98487       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .81781       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=   4958.402     FROM MIGRAD    STATUS=CONVERGED    723 CALLS     3717 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.014        .70458E-06** at limit **
   2  Prefactor     .10000E-03    7.5766       -.70578E-06** at limit **
   3  Prefactor     .10000E-03    14.730       -.40825E-06** at limit **
   4  norm          6.8590        4.8961        .11241E-05   -.17316E-03
   5  Prefactor     .10000E-03    12.932        .17945E-06** at limit **
   6  Prefactor     .10001E-03    130.28        .76772E-05** at limit **
   7  norm          1.7629        1.4732        .36794E-07   -.59104E-04
   8  norm          .10000E-03    29.188       -.42744E-06** at limit **
   9  norm          .87852        4.4642        .17077E-05   -.29199E-04
  10  Prefactor     .10000E-03    210.80       -.49819E-05** at limit **
  11  Prefactor     37.809        55.996       -.30681E-05   -.71943E-04
  12  Prefactor     .10000E-03    41.691       -.10414E-05** at limit **
  13  Prefactor     .10000E-03    2.0632       -.14935E-07** at limit **
  14  Prefactor     1.9285        54.204        .33715E-05    .43387E-05
  15  Prefactor     .10000E-03    1.6425        .46104E-07** at limit **
  16  Prefactor     .10533E-03    17.882       -.50495E-06** at limit **
  17  Prefactor     32.041        25.877       -.28559E-06    .11059E-03
  18  Prefactor     .10000E-03    13.282        .15163E-06** at limit **
  19  Prefactor     2.6706        64.483       -.31762E-05    .77530E-04
  20  Prefactor     .10000E-03    9.3249       -.47872E-07** at limit **
  21  Prefactor     23.604        16.540        .78467E-07   -.16406E-05
  22  Prefactor     .10000E-03    17.099        .14850E-06** at limit **
  23  norm          .84992        .96149        .59974E-07    .59093E-04
  24  Prefactor     .10000E-03    7.6115        .68395E-06** at limit **
  25  Prefactor     5.7735        5.5302        .34074E-06    .32717E-04
  26  Prefactor     7.4465        7.2673        .26834E-06   -.48414E-04
  27  norm          .10000E-03    1.2280        .76635E-08** at limit **
  28  Normalizat    .98500        .17422       -.19328E-05   -.11141E-04
  29  Prefactor     .81765        .18949        .61076E-06   -.12629E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.85895
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 1.76285
  norm       = 0.0001
  norm       = 0.878522
  Prefactor  = 0.000100003
  Prefactor  = 37.8094
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.92854
  Prefactor  = 0.0001
  Prefactor  = 0.000105326
  Prefactor  = 32.0408
  Prefactor  = 0.0001
  Prefactor  = 2.67062
  Prefactor  = 0.0001
  Prefactor  = 23.6035
  Prefactor  = 0.0001
  norm       = 0.849917
  Prefactor  = 0.0001
  Prefactor  = 5.77353
  Prefactor  = 7.44655
  norm       = 0.0001
  Normalizat = 0.985003
  Prefactor  = 0.817645
 **********
 **   18 **HESSE 
 **********

 FCN=   4958.402     FROM HESSE     STATUS=OK           551 CALLS     4268 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.6209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.8590        4.8784        .62804E-03   -1.5184    
   5  Prefactor     .10000E-03    12.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    134.56        .21183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.7629        1.4635        .75678E-04   -1.5442    
   8  norm          .10000E-03    29.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .87852        4.4685        .27900E-03   -1.5521    
  10  Prefactor     .10000E-03    211.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     37.809        56.403        .65157E-04   -1.4477    
  12  Prefactor     .10000E-03    41.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.0741        .98724E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.9285        55.013        .29858E-03   -1.5430    
  15  Prefactor     .10000E-03    1.6649        .87719E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10533E-03    370.61        .52555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     32.041        25.766        .70767E-04   -1.4575    
  18  Prefactor     .10000E-03    13.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.6706        60.743        .24664E-03   -1.5381    
  20  Prefactor     .10000E-03    9.3984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     23.604        16.541        .82448E-04   -1.4736    
  22  Prefactor     .10000E-03    17.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .84992        .91890        .71332E-03   -1.5524    
  24  Prefactor     .10000E-03    7.6892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.7735        5.5236        .15597E-03   -1.5227    
  26  Prefactor     7.4465        7.2665        .14692E-03   -1.5162    
  27  norm          .10000E-03    1.2301        .76205E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .98500        .20555        .20528E-03   -.93535    
  29  Prefactor     .81765        .22564        .26014E-03   -.99081    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33554e-08
Minuit parameter uncertainties:
  1  8.27494e-05
  2  5.20895e-05
  3  3.73487e-05
  4  4.8787
  5  1.55456e-05
  6  0.00182479
  7  1.4635
  8  5.65925e-05
  9  3.96289
  10  0.00169475
  11  56.4822
  12  2.65863e-05
  13  5.60735e-07
  14  20.6209
  15  1.26498e-05
  16  0.0894142
  17  25.7746
  18  1.64964e-05
  19  25.5021
  20  2.62012e-06
  21  16.5443
  22  1.7684e-05
  23  0.918912
  24  4.69576e-05
  25  5.52412
  26  7.26736
  27  3.7705e-07
  28  0.205716
  29  0.225896
Done.

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

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  3.204e+01  2.577e+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:  8.176e-01  2.259e-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:  9.850e-01  2.057e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.69
Ra Dec: 217.229 54.111
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 4.52e-08 +/- 3.63e-08
Energy Flux (Fixed Index): 1.21e-05 +/- 9.77e-06

TS (Fixed Index): 2.69
Ra Dec: 217.229 54.111
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/550142/likelihoodResults_625017601_625276801_4FGL_J1428.9+5406_daily_bin1488.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) = 4958.33699902
delta logL = 0.0648581936948

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4958.33419048
delta logL = 0.0676667415391

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    38.515       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2712       1.0000          .0000       10.000    
     3 'Normalizat'    .99944       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80579       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=   4958.334     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      259 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     38.590        1035.5        .16146E-02    .12970E-04
   2  Index         2.2735        5.3571        .17305        .40165E-04
   3  Normalizat    .99933        .12848        .46160E-01   -.17083E-04
   4  Prefactor     .80575        .94809E-01    .43793E-01   -.12302E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 38.5898
  Index      = 2.27346
  Normalizat = 0.999325
  Prefactor  = 0.805747
 **********
 **   18 **HESSE 
 **********

 FCN=   4958.334     FROM HESSE     STATUS=OK            33 CALLS      292 TOTAL
                     EDM=   .52E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     38.590        33.813        .64584E-04   -1.4465    
   2  Index         2.2735        .78275        .93163E-02   -.57676    
   3  Normalizat    .99933        .19469        .20398E-03   -.93053    
   4  Prefactor     .80575        .22433        .26179E-03   -.99517    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.19957e-12
Minuit parameter uncertainties:
  1  33.8296
  2  0.787373
  3  0.194824
  4  0.224582
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/550142': 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) = 4958.33418032
delta logL = 0.067676896746

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  3.859e+01  3.383e+01  1.000e-04  1.000e+04 ( 1.000e-13)
347        Index:  2.273e+00  7.874e-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:  8.057e-01  2.246e-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:  9.993e-01  1.948e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.82
Ra Dec: 217.229 54.111
Photon Index (Free Index): 2.27 +/- 0.79
Photon Flux (Free Index): 3.58e-08 +/- 3.86e-08
Energy Flux (Free Index): 1.41e-05 +/- 1.42e-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/550142/cmap_HighResolution_625017601_625276801_4FGL_J1428.9+5406_daily_bin1488.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.67e-03', comment='SUCCESS', photon_flux='4.52e-08', energy_flux2='1.41e-05', photon_flux_error='3.63e-08', dlogl='6.77e-02', energy_flux='1.21e-05', photon_flux2='3.58e-08', job_status='DONE', time_completed='2021-09-09 21:06:05.449021', photon_index_error2='0.79', photon_index2='2.27', ts='2.69', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.24e-07', energy_flux_error2='1.42e-05', EG='0.99', time_epoch_completed='1631246765.45', return_code='0', job_id='550142', GAL2='0.81', EG2='1.00', return_code2='0', energy_flux_error='9.77e-06', photon_flux_error2='3.86e-08', ts2='2.82', photon_index='2.57' WHERE bin_id='1488' AND source_name='4FGL J1428.9+5406' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 21:06:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 550142: <4FGL_J1428.9+5406_daily_bin1488> in cluster <slac> Done

Job <4FGL_J1428.9+5406_daily_bin1488> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  9 20:51:52 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 20:51:54 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:54 2021
Terminated at Thu Sep  9 21:06:08 2021
Results reported at Thu Sep  9 21:06:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1428.9+5406_daily_bin1488 217.229 54.1114 625017601 625276801 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 :                                   801.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             302.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            856 sec.

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

