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


Performing analysis on: 4FGL_J1428.9+5406_daily_bin471
RA = 217.229, Dec = 54.1114
tmin = 361411201, tmax = 361670401
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='543409', job_status='RUN', time_executed='2021-09-09 20:31:36.436722', time_epoch_executed='1631244696.44' WHERE source_name='4FGL J1428.9+5406' and cadence='daily' and bin_id='471'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/543409

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/543409/ft1_4FGL_J1428.9+5406_daily_bin471.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/543409/ft2_4FGL_J1428.9+5406_daily_bin471.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/543409/ft1_4FGL_J1428.9+5406_daily_bin471.fits outfile=/scratch/kocevski/543409/ft1_filteredMKT_4FGL_J1428.9+5406_daily_bin471.fits ra=217.229 dec=54.1114 rad=12.0 tmin=361411201.0 tmax=361670401.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.56
user 3.32
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/543409/ft1_filtered_4FGL_J1428.9+5406_daily_bin471.fits" evtable="EVENTS" scfile=/scratch/kocevski/543409/ft2_4FGL_J1428.9+5406_daily_bin471.fits sctable="SC_DATA" outfile=/scratch/kocevski/543409/ltcube_361411201_361670401_4FGL_J1428.9+5406_daily_bin471.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/543409/ft2_4FGL_J1428.9+5406_daily_bin471.fits
.....................!
real 11.83
user 11.47
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/543409/ft1_filtered_4FGL_J1428.9+5406_daily_bin471.fits evtable="EVENTS" scfile=/scratch/kocevski/543409/ft2_4FGL_J1428.9+5406_daily_bin471.fits sctable="SC_DATA" expcube=/scratch/kocevski/543409/ltcube_361411201_361670401_4FGL_J1428.9+5406_daily_bin471.fits outfile=/scratch/kocevski/543409/expmap_361411201_361670401_4FGL_J1428.9+5406_daily_bin471.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/543409/ltcube_361411201_361670401_4FGL_J1428.9+5406_daily_bin471.fits
.....................!
real 190.48
user 185.41
sys 4.71

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/543409/ft1_filtered_4FGL_J1428.9+5406_daily_bin471.fits scfile=/scratch/kocevski/543409/ft2_4FGL_J1428.9+5406_daily_bin471.fits outfile=/scratch/kocevski/543409/cmap_361411201_361670401_4FGL_J1428.9+5406_daily_bin471.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/543409/ft1_filtered_4FGL_J1428.9+5406_daily_bin471.fits scfile=/scratch/kocevski/543409/ft2_4FGL_J1428.9+5406_daily_bin471.fits outfile=/scratch/kocevski/543409/cmap_HighResolution_361411201_361670401_4FGL_J1428.9+5406_daily_bin471.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/543409/ft1_filtered_4FGL_J1428.9+5406_daily_bin471.fits evtable="EVENTS" scfile=/scratch/kocevski/543409/ft2_4FGL_J1428.9+5406_daily_bin471.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/543409/Model_4FGL_J1428.9+5406_daily_bin471.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/543409/ft1_filtered_4FGL_J1428.9+5406_daily_bin471.fits.....................!
real 53.97
user 52.68
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.721       1.0000         .10000E-03   10000.    
     3 'Prefactor '    80.249       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    11.701       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.7533       1.0000         .10000E-03   10000.    
    10 'Prefactor '    570.15       1.0000         .10000E-03   10000.    
    11 'Prefactor '    27.083       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.930       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10549E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.132       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    33.271       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    18.105       1.0000         .10000E-03   10000.    
    23 'norm      '    1.6703       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.7704       1.0000         .10000E-03   10000.    
    27 'norm      '    4.8806       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0636       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .88845       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=   6750.552     FROM MIGRAD    STATUS=CONVERGED    717 CALLS     3778 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.295        .51999E-08** at limit **
   2  Prefactor     25.719        17.686        .98582E-07    .39807E-04
   3  Prefactor     80.247        41.379        .12009E-06    .14549E-05
   4  norm          .10000E-03    1.9151       -.40733E-07** at limit **
   5  Prefactor     .10000E-03    17.977        .74134E-07** at limit **
   6  Prefactor     .10000E-03    66.877       -.12924E-06** at limit **
   7  norm          11.701        2.6978        .89574E-08    .58193E-04
   8  norm          .10000E-03    41.861        .33849E-06** at limit **
   9  norm          1.7518        3.6844        .13165E-05    .44362E-03
  10  Prefactor     570.72        475.12        .56081E-05    .11887E-03
  11  Prefactor     27.050        53.250        .44752E-05    .12315E-03
  12  Prefactor     .10000E-03    23.470       -.11197E-05** at limit **
  13  Prefactor     .10000E-03    2.2909       -.10303E-06** at limit **
  14  Prefactor     22.929        18.925        .45829E-07    .31138E-04
  15  Prefactor     .10000E-03    1.8957       -.19105E-05** at limit **
  16  Prefactor     .10000E-03    17.424        .42005E-06** at limit **
  17  Prefactor     .10000E-03    6.7602       -.86178E-07** at limit **
  18  Prefactor     12.134        36.327        .62723E-06    .30954E-04
  19  Prefactor     .10000E-03    9.6153        .11651E-06** at limit **
  20  Prefactor     33.271        17.799        .11272E-06    .83829E-04
  21  Prefactor     .10000E-03    4.6354        .19891E-07** at limit **
  22  Prefactor     18.105        19.289       -.56728E-06    .51046E-04
  23  norm          1.6703        1.3327        .57236E-07    .11160E-03
  24  Prefactor     .10000E-03    4.8694       -.71912E-08** at limit **
  25  Prefactor     .10000E-03    10.912       -.11318E-05** at limit **
  26  Prefactor     7.7700        6.1776        .20442E-06    .66126E-04
  27  norm          4.8809        6.4315        .49732E-05   -.72526E-05
  28  Normalizat    1.0637        .16670        .25575E-06    .44059E-03
  29  Prefactor     .88823        .18531       -.12237E-05    .32413E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 25.7188
  Prefactor  = 80.2466
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.7008
  norm       = 0.0001
  norm       = 1.75176
  Prefactor  = 570.72
  Prefactor  = 27.0502
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 22.9288
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.1338
  Prefactor  = 0.0001
  Prefactor  = 33.2714
  Prefactor  = 0.0001
  Prefactor  = 18.1051
  norm       = 1.67029
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 7.76997
  norm       = 4.88087
  Normalizat = 1.06371
  Prefactor  = 0.888229
 **********
 **   18 **HESSE 
 **********

 FCN=   6750.552     FROM HESSE     STATUS=OK           543 CALLS     4321 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.719        17.719        .78987E-04   -1.4693    
   3  Prefactor     80.247        41.390        .44833E-04   -1.3914    
   4  norm          .10000E-03    1.9243        .11080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    67.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.701        2.6983        .62632E-04   -1.5024    
   8  norm          .10000E-03    41.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.7518        3.6670        .21646E-03   -1.5443    
  10  Prefactor     570.72        473.64        .86255E-04   -1.0883    
  11  Prefactor     27.050        52.340        .76980E-04   -1.4667    
  12  Prefactor     .10000E-03    23.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.3054        .12141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.929        18.961        .83649E-04   -1.4750    
  15  Prefactor     .10000E-03    3.5487        .20231E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    17.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.7652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.134        36.314        .11501E-03   -1.5011    
  19  Prefactor     .10000E-03    9.6185        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     33.271        17.783        .69470E-04   -1.4554    
  21  Prefactor     .10000E-03    4.6383        .17277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     18.105        19.207        .94128E-04   -1.4857    
  23  norm          1.6703        1.3182        .80349E-04   -1.5449    
  24  Prefactor     .10000E-03    4.8888        .17685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    11.258        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     7.7700        6.1823        .14385E-03   -1.5150    
  27  norm          4.8809        6.3889        .91037E-03   -1.5266    
  28  Normalizat    1.0637        .19848        .22745E-03   -.90926    
  29  Prefactor     .88823        .22017        .28548E-03   -.96554    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11643e-09
Minuit parameter uncertainties:
  1  7.56378e-05
  2  17.7223
  3  41.405
  4  7.53836e-07
  5  4.72243e-05
  6  0.000352699
  7  2.6983
  8  0.000223805
  9  3.66745
  10  476.989
  11  52.4285
  12  0.000238873
  13  5.03372e-07
  14  18.9659
  15  0.000240621
  16  0.000108059
  17  4.5576e-06
  18  36.3798
  19  2.91264e-05
  20  17.786
  21  4.99905e-07
  22  19.214
  23  1.31821
  24  7.22794e-07
  25  0.000160004
  26  6.18284
  27  6.3898
  28  0.19862
  29  0.220393
Done.

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

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  1.000e-04  4.558e-06  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.882e-01  2.204e-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:  1.064e+00  1.986e-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: 4.66e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/543409/likelihoodResults_361411201_361670401_4FGL_J1428.9+5406_daily_bin471.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) = 6750.55282535
delta logL = -0.000703526260622

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6750.5521218
delta logL = 2.36113919527e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5602       1.0000          .0000       10.000    
     3 'Normalizat'    1.0637       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88823       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=   6750.552     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      256 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.556        .18142E-01** at limit **
   2  Index         2.0071        8.9463        .50000        .68803E-07
   3  Normalizat    1.0637        .78456E-02    .22745E-03    .30189E-04
   4  Prefactor     .88823        .91195E-02    .28548E-03    .56031E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.00712
  Normalizat = 1.06371
  Prefactor  = 0.888229
 **********
 **   18 **HESSE 
 **********

 FCN=   6750.552     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      285 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    330.74        .22776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0071        5.8331        .50000       -.64172    
   3  Normalizat    1.0637        .26208E-01    .90981E-05   -.90926    
   4  Prefactor     .88823        .30463E-01    .11419E-04   -.96554    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.93413e-10
Minuit parameter uncertainties:
  1  7.40889e-05
  2  1263.52
  3  0.0262079
  4  0.0304634
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/543409': 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) = 6750.55212064
delta logL = 1.18916341307e-06

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  1.000e-04  7.409e-05  1.000e-04  1.000e+04 ( 1.000e-13)
347        Index:  2.007e+00  1.264e+03  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.882e-01  3.046e-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:  1.064e+00  2.621e-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/543409/cmap_HighResolution_361411201_361670401_4FGL_J1428.9+5406_daily_bin471.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.64e-03', job_status='DONE', photon_flux_upper_limit='4.66e-08', time_completed='2021-09-09 20:47:43.914664', job_id='543409', GAL2='0.89', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1631245663.91', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.19e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='471' AND source_name='4FGL J1428.9+5406' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 20:47:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 543409: <4FGL_J1428.9+5406_daily_bin471> in cluster <slac> Done

Job <4FGL_J1428.9+5406_daily_bin471> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  9 20:31:24 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 20:31:26 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:31:26 2021
Terminated at Thu Sep  9 20:47:45 2021
Results reported at Thu Sep  9 20:47:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1428.9+5406_daily_bin471 217.229 54.1114 361411201 361670401 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 :                                   962.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             346.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            981 sec.

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

