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


Performing analysis on: 4FGL_J1428.9+5406_daily_bin1032
RA = 217.229, Dec = 54.1114
tmin = 506822401, tmax = 507081601
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='548141', job_status='RUN', time_executed='2021-09-09 20:49:11.249270', time_epoch_executed='1631245751.25' WHERE source_name='4FGL J1428.9+5406' and cadence='daily' and bin_id='1032'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/548141

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/548141/ft1_4FGL_J1428.9+5406_daily_bin1032.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/548141/ft2_4FGL_J1428.9+5406_daily_bin1032.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/548141/ft1_4FGL_J1428.9+5406_daily_bin1032.fits outfile=/scratch/kocevski/548141/ft1_filteredMKT_4FGL_J1428.9+5406_daily_bin1032.fits ra=217.229 dec=54.1114 rad=12.0 tmin=506822401.0 tmax=507081601.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.68
user 2.44
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/548141/ft2_4FGL_J1428.9+5406_daily_bin1032.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/548141/ft1_filteredMKT_4FGL_J1428.9+5406_daily_bin1032.fits evtable="EVENTS" outfile="/scratch/kocevski/548141/ft1_filtered_4FGL_J1428.9+5406_daily_bin1032.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.42
user 0.27
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/548141/ft1_filtered_4FGL_J1428.9+5406_daily_bin1032.fits" evtable="EVENTS" scfile=/scratch/kocevski/548141/ft2_4FGL_J1428.9+5406_daily_bin1032.fits sctable="SC_DATA" outfile=/scratch/kocevski/548141/ltcube_506822401_507081601_4FGL_J1428.9+5406_daily_bin1032.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/548141/ft2_4FGL_J1428.9+5406_daily_bin1032.fits
.....................!
real 8.97
user 8.61
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/548141/ft1_filtered_4FGL_J1428.9+5406_daily_bin1032.fits evtable="EVENTS" scfile=/scratch/kocevski/548141/ft2_4FGL_J1428.9+5406_daily_bin1032.fits sctable="SC_DATA" expcube=/scratch/kocevski/548141/ltcube_506822401_507081601_4FGL_J1428.9+5406_daily_bin1032.fits outfile=/scratch/kocevski/548141/expmap_506822401_507081601_4FGL_J1428.9+5406_daily_bin1032.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/548141/ltcube_506822401_507081601_4FGL_J1428.9+5406_daily_bin1032.fits
.....................!
real 140.06
user 136.92
sys 2.88

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/548141/ft1_filtered_4FGL_J1428.9+5406_daily_bin1032.fits scfile=/scratch/kocevski/548141/ft2_4FGL_J1428.9+5406_daily_bin1032.fits outfile=/scratch/kocevski/548141/cmap_506822401_507081601_4FGL_J1428.9+5406_daily_bin1032.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.30
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/548141/ft1_filtered_4FGL_J1428.9+5406_daily_bin1032.fits scfile=/scratch/kocevski/548141/ft2_4FGL_J1428.9+5406_daily_bin1032.fits outfile=/scratch/kocevski/548141/cmap_HighResolution_506822401_507081601_4FGL_J1428.9+5406_daily_bin1032.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.49
user 0.29
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.750       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.966       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.2804       1.0000         .10000E-03   10000.    
     4 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.965       1.0000         .10000E-03   10000.    
     6 'Prefactor '    54.471       1.0000         .10000E-03   10000.    
     7 'norm      '    11.396       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0101       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.439       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.7228       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.3425       1.0000         .10000E-03   10000.    
    23 'norm      '    .56085       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.1446       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.6547       1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.0562       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .98886       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0271       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=   6524.941     FROM MIGRAD    STATUS=CONVERGED    709 CALLS     3672 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.773        51.528        .10107E-05    .52873E-04
   2  Prefactor     19.973        16.318        .27008E-06   -.20793E-04
   3  Prefactor     6.2471        94.907       -.12551E-05   -.34075E-04
   4  norm          .10000E-03    1.7516       -.77343E-07** at limit **
   5  Prefactor     32.890        52.658       -.78468E-05   -.24010E-03
   6  Prefactor     54.483        38.442        .12077E-05    .50637E-04
   7  norm          11.396        2.7652       -.22013E-07    .19647E-04
   8  norm          .10000E-03    24.032        .15486E-05** at limit **
   9  norm          .10000E-03    1.0668       -.16272E-06** at limit **
  10  Prefactor     .10000E-03    156.95        .10308E-05** at limit **
  11  Prefactor     .10000E-03    12.547       -.21847E-06** at limit **
  12  Prefactor     .10000E-03    10.878        .45563E-06** at limit **
  13  Prefactor     .10000E-03    2.7654        .93532E-07** at limit **
  14  Prefactor     .10000E-03    21.324       -.16283E-05** at limit **
  15  Prefactor     1.0119        2.0041        .32803E-06    .20747E-03
  16  Prefactor     10.435        22.395       -.45446E-06   -.13738E-04
  17  Prefactor     .10000E-03    11.484       -.74702E-06** at limit **
  18  Prefactor     .10000E-03    14.058        .86348E-06** at limit **
  19  Prefactor     3.7284        95.158        .21141E-05    .74083E-05
  20  Prefactor     .10000E-03    3.4011       -.35339E-07** at limit **
  21  Prefactor     .10000E-03    4.1437        .33291E-07** at limit **
  22  Prefactor     4.3417        9.5925        .73154E-05   -.83875E-04
  23  norm          .56099        .98109       -.11170E-06   -.78057E-03
  24  Prefactor     4.1444        7.1375       -.12333E-06   -.84681E-04
  25  Prefactor     3.6546        4.7272       -.34211E-06   -.55615E-04
  26  Prefactor     5.0573        8.6482       -.52753E-07   -.54125E-04
  27  norm          .10000E-03    1.1811        .25947E-07** at limit **
  28  Normalizat    .98862        .16549        .13992E-05   -.16694E-03
  29  Prefactor     1.0273        .18619       -.24659E-05    .75406E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.7731
  Prefactor  = 19.9728
  Prefactor  = 6.24714
  norm       = 0.0001
  Prefactor  = 32.8903
  Prefactor  = 54.4833
  norm       = 11.3964
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.01187
  Prefactor  = 10.4349
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.72845
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.34174
  norm       = 0.560992
  Prefactor  = 4.14444
  Prefactor  = 3.65461
  Prefactor  = 5.0573
  norm       = 0.0001
  Normalizat = 0.988622
  Prefactor  = 1.02732
 **********
 **   18 **HESSE 
 **********

 FCN=   6524.941     FROM HESSE     STATUS=OK           555 CALLS     4227 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.773        50.566        .10092E-03   -1.4913    
   2  Prefactor     19.973        16.339        .89636E-04   -1.4814    
   3  Prefactor     6.2471        91.731        .16017E-03   -1.5208    
   4  norm          .10000E-03    1.7595        .10424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     32.890        54.501        .69791E-04   -1.4560    
   6  Prefactor     54.483        38.587        .54348E-04   -1.4230    
   7  norm          11.396        2.7639        .62828E-04   -1.5033    
   8  norm          .10000E-03    24.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.0698        .81433E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    156.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.7975        .13115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.0119        1.7756        .15078E-02   -1.5507    
  16  Prefactor     10.435        21.867        .12401E-03   -1.5062    
  17  Prefactor     .10000E-03    11.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.7284        91.845        .20928E-03   -1.5322    
  20  Prefactor     .10000E-03    3.4057        .14549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.1445        .16059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.3417        9.7493        .96649E-03   -1.5291    
  23  norm          .56099        .84855        .10192E-02   -1.5558    
  24  Prefactor     4.1444        7.0760        .19799E-03   -1.5301    
  25  Prefactor     3.6546        4.7140        .19046E-03   -1.5326    
  26  Prefactor     5.0573        8.6398        .17882E-03   -1.5258    
  27  norm          .10000E-03    1.1829        .85729E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .98862        .19954        .22781E-03   -.93413    
  29  Prefactor     1.0273        .22363        .26511E-03   -.91824    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06037e-09
Minuit parameter uncertainties:
  1  50.7041
  2  16.3425
  3  47.9653
  4  3.05297e-06
  5  54.5839
  6  38.6043
  7  2.76395
  8  0.000213474
  9  2.43051e-06
  10  0.000344922
  11  1.98255e-05
  12  3.86833e-05
  13  9.56625e-07
  14  0.000230586
  15  1.77568
  16  21.8842
  17  7.99064e-05
  18  8.13718e-05
  19  37.0737
  20  6.35268e-06
  21  2.33418e-07
  22  9.75283
  23  0.848573
  24  7.07742
  25  4.71451
  26  8.6419
  27  4.24908e-07
  28  0.199688
  29  0.223829
Done.

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

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  1.000e-04  7.991e-05  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.027e+00  2.238e-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.886e-01  1.997e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 217.229 54.111
Photon Flux Upper Limit: 5.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/548141/likelihoodResults_506822401_507081601_4FGL_J1428.9+5406_daily_bin1032.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) = 6524.94112989
delta logL = -0.000413381121689

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6524.94071663
delta logL = -1.19891410577e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5558       1.0000          .0000       10.000    
     3 'Normalizat'    .98859       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0274       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6524.941     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      243 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10138E-03    130.39        .18142E-02** at limit **
   2  Index         2.4938        8.3176        .50000        .10710E-04
   3  Normalizat    .98862        .12709E-01    .22781E-03    .16169E-04
   4  Prefactor     1.0273        .15115E-01    .26511E-03    .11021E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101376
  Index      = 2.49379
  Normalizat = 0.988625
  Prefactor  = 1.02731
 **********
 **   18 **HESSE 
 **********

 FCN=   6524.941     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10138E-03    544.36        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4938        6.0145        .50000       -.52503    
   3  Normalizat    .98862        .27236E-01    .91123E-05   -.93412    
   4  Prefactor     1.0273        .32391E-01    .10604E-04   -.91825    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.19399e-08
Minuit parameter uncertainties:
  1  0.0552523
  2  926.915
  3  0.027236
  4  0.0323911
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/548141': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6524.94071634
delta logL = 1.64919583767e-07

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  1.014e-04  5.525e-02  1.000e-04  1.000e+04 ( 1.000e-13)
347        Index:  2.494e+00  9.269e+02  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.027e+00  3.239e-02  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.886e-01  2.724e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 217.229 54.111

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/548141/cmap_HighResolution_506822401_507081601_4FGL_J1428.9+5406_daily_bin1032.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.25e-03', job_status='DONE', photon_flux_upper_limit='5.44e-08', time_completed='2021-09-09 21:00:56.140820', job_id='548141', GAL2='1.03', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1631246456.14', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.65e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='1032' AND source_name='4FGL J1428.9+5406' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 21:00:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 548141: <4FGL_J1428.9+5406_daily_bin1032> in cluster <slac> Done

Job <4FGL_J1428.9+5406_daily_bin1032> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  9 20:46:26 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 20:46:27 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:46:27 2021
Terminated at Thu Sep  9 21:00:56 2021
Results reported at Thu Sep  9 21:00:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1428.9+5406_daily_bin1032 217.229 54.1114 506822401 507081601 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 :                                   699.17 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             288.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   875 sec.
    Turnaround time :                            870 sec.

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

