/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 5 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 = 7304
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1428.9+5406_daily_bin384
RA = 217.229, Dec = 54.1114
tmin = 338860801, tmax = 339120001
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='543277', job_status='RUN', time_executed='2021-09-09 20:31:33.543765', time_epoch_executed='1631244693.54' WHERE source_name='4FGL J1428.9+5406' and cadence='daily' and bin_id='384'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/543277

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/543277/ft1_4FGL_J1428.9+5406_daily_bin384.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/543277/ft2_4FGL_J1428.9+5406_daily_bin384.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/543277/ft1_4FGL_J1428.9+5406_daily_bin384.fits outfile=/scratch/kocevski/543277/ft1_filteredMKT_4FGL_J1428.9+5406_daily_bin384.fits ra=217.229 dec=54.1114 rad=12.0 tmin=338860801.0 tmax=339120001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.69
user 4.47
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/543277/ft1_filtered_4FGL_J1428.9+5406_daily_bin384.fits" evtable="EVENTS" scfile=/scratch/kocevski/543277/ft2_4FGL_J1428.9+5406_daily_bin384.fits sctable="SC_DATA" outfile=/scratch/kocevski/543277/ltcube_338860801_339120001_4FGL_J1428.9+5406_daily_bin384.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/543277/ft2_4FGL_J1428.9+5406_daily_bin384.fits
.....................!
real 11.57
user 11.22
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/543277/ft1_filtered_4FGL_J1428.9+5406_daily_bin384.fits evtable="EVENTS" scfile=/scratch/kocevski/543277/ft2_4FGL_J1428.9+5406_daily_bin384.fits sctable="SC_DATA" expcube=/scratch/kocevski/543277/ltcube_338860801_339120001_4FGL_J1428.9+5406_daily_bin384.fits outfile=/scratch/kocevski/543277/expmap_338860801_339120001_4FGL_J1428.9+5406_daily_bin384.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/543277/ltcube_338860801_339120001_4FGL_J1428.9+5406_daily_bin384.fits
.....................!
real 190.90
user 186.45
sys 4.13

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/543277/ft1_filtered_4FGL_J1428.9+5406_daily_bin384.fits scfile=/scratch/kocevski/543277/ft2_4FGL_J1428.9+5406_daily_bin384.fits outfile=/scratch/kocevski/543277/cmap_338860801_339120001_4FGL_J1428.9+5406_daily_bin384.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/543277/ft1_filtered_4FGL_J1428.9+5406_daily_bin384.fits scfile=/scratch/kocevski/543277/ft2_4FGL_J1428.9+5406_daily_bin384.fits outfile=/scratch/kocevski/543277/cmap_HighResolution_338860801_339120001_4FGL_J1428.9+5406_daily_bin384.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.53
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .68762E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .86352E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.8123       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.7661       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    48.984       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10181E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.7779       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.4286       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.069       1.0000         .10000E-03   10000.    
    23 'norm      '    4.2546       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .15535       1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.1682       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2418       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .86730       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=   6569.568     FROM MIGRAD    STATUS=CONVERGED    742 CALLS     3732 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    298.72        .24816E-04** at limit **
   2  Prefactor     .10028E-03    72.121        .31479E-04** at limit **
   3  Prefactor     .10000E-03    20.454        .48304E-05** at limit **
   4  norm          .10000E-03    2.4460        .67966E-07** at limit **
   5  Prefactor     .10000E-03    45.278        .50344E-05** at limit **
   6  Prefactor     .10000E-03    29.499       -.10119E-05** at limit **
   7  norm          7.8115        2.5360        .87013E-07    .19682E-03
   8  norm          .10000E-03    25.113       -.21807E-05** at limit **
   9  norm          6.7666        3.7331       -.47893E-07    .19100E-03
  10  Prefactor     .10001E-03    198.70        .22076E-04** at limit **
  11  Prefactor     .10000E-03    31.626       -.44435E-06** at limit **
  12  Prefactor     49.006        49.036       -.46253E-05    .12858E-03
  13  Prefactor     .10000E-03    3.0625       -.18351E-05** at limit **
  14  Prefactor     2.7815        36.184       -.63170E-05    .75542E-05
  15  Prefactor     5.4286        2.8452       -.29059E-06    .33519E-03
  16  Prefactor     .10000E-03    10.294       -.78100E-06** at limit **
  17  Prefactor     .10000E-03    25.827       -.30874E-05** at limit **
  18  Prefactor     .10000E-03    15.306       -.17390E-05** at limit **
  19  Prefactor     .10000E-03    11.041        .87203E-06** at limit **
  20  Prefactor     .10000E-03    4.8686       -.11266E-06** at limit **
  21  Prefactor     .10000E-03    8.2288        .21897E-06** at limit **
  22  Prefactor     15.069        13.805       -.14227E-06    .74335E-04
  23  norm          4.2545        1.9339       -.24671E-07    .35285E-03
  24  Prefactor     .18298        77.910       -.36000E-04    .17082E-03
  25  Prefactor     8.1686        5.9311       -.69594E-06   -.48774E-04
  26  Prefactor     .10000E-03    3.1359        .97314E-07** at limit **
  27  norm          .10000E-03    4.3042        .20236E-06** at limit **
  28  Normalizat    1.2418        .17681        .23677E-05    .43909E-03
  29  Prefactor     .86710        .19509        .13492E-05    .61874E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 0.000100278
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.81152
  norm       = 0.0001
  norm       = 6.7666
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 49.0062
  Prefactor  = 0.0001
  Prefactor  = 2.78151
  Prefactor  = 5.42862
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.0693
  norm       = 4.25451
  Prefactor  = 0.182981
  Prefactor  = 8.16864
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.24183
  Prefactor  = 0.867096
 **********
 **   18 **HESSE 
 **********

 FCN=   6569.568     FROM HESSE     STATUS=OK           551 CALLS     4283 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    304.48        .41979E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10028E-03    16.091        .85445E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.4967        .24674E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    45.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    29.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.8115        2.5362        .71145E-04   -1.5149    
   8  norm          .10000E-03    25.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.7666        3.7338        .11228E-03   -1.5188    
  10  Prefactor     .10001E-03    200.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    31.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     49.006        49.014        .57296E-04   -1.4307    
  13  Prefactor     .10000E-03    3.0691        .13815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.7815        36.684        .24416E-03   -1.5374    
  15  Prefactor     5.4286        2.8461        .94433E-04   -1.5242    
  16  Prefactor     .10000E-03    10.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    25.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.8740        .17466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.2549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.069        13.808        .10318E-03   -1.4931    
  23  norm          4.2545        1.9317        .72327E-04   -1.5295    
  24  Prefactor     .18298        117.40        .36644E-02   -1.5622    
  25  Prefactor     8.1686        5.9315        .14028E-03   -1.5136    
  26  Prefactor     .10000E-03    3.1518        .14003E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    4.3664        .16415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2418        .21658        .22287E-03   -.85320    
  29  Prefactor     .86710        .23964        .30184E-03   -.97301    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81725e-09
Minuit parameter uncertainties:
  1  0.00210382
  2  0.00422863
  3  9.33634e-05
  4  6.26354e-06
  5  0.00011725
  6  0.000129731
  7  2.53623
  8  7.88293e-05
  9  3.73391
  10  0.00215619
  11  5.48083e-05
  12  49.0544
  13  2.22196e-05
  14  20.2174
  15  2.84619
  16  2.55423e-05
  17  3.24628e-05
  18  3.84211e-05
  19  1.5435e-05
  20  1.53309e-06
  21  1.4772e-05
  22  13.8113
  23  1.93176
  24  9.28551
  25  5.93193
  26  1.05529e-05
  27  1.20882e-05
  28  0.216736
  29  0.239932
Done.

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

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  1.000e-04  3.246e-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:  8.671e-01  2.399e-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.242e+00  2.167e-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: 7.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.93e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/543277/likelihoodResults_338860801_339120001_4FGL_J1428.9+5406_daily_bin384.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) = 6569.56796603
delta logL = -0.000183413611012

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6569.56778306
delta logL = -4.44223587692e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10565E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0892       1.0000          .0000       10.000    
     3 'Normalizat'    1.2418       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86710       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=   6569.568     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      292 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10079E-03    817.58        .36285E-03** at limit **
   2  Index         3.0452        5.9967        .50000        .53411E-05
   3  Normalizat    1.2418        .26087E-01    .22287E-03    .60040E-04
   4  Prefactor     .86709        .30234E-01    .30184E-03    .27307E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100788
  Index      = 3.04519
  Normalizat = 1.24184
  Prefactor  = 0.867089
 **********
 **   18 **HESSE 
 **********

 FCN=   6569.568     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      321 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10079E-03    6187.8        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0452        5.5225        .50000       -.40168    
   3  Normalizat    1.2418        .51835E-01    .89147E-05   -.85320    
   4  Prefactor     .86709        .60033E-01    .12074E-04   -.97301    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.71332e-08
Minuit parameter uncertainties:
  1  0.0903929
  2  1773.49
  3  0.0518376
  4  0.0600372
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/543277': 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) = 6569.5677829
delta logL = -2.80972017208e-07

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  1.008e-04  9.039e-02  1.000e-04  1.000e+04 ( 1.000e-13)
347        Index:  3.045e+00  1.773e+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.671e-01  6.004e-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.242e+00  5.184e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/543277/cmap_HighResolution_338860801_339120001_4FGL_J1428.9+5406_daily_bin384.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.93e-03', job_status='DONE', photon_flux_upper_limit='7.59e-08', time_completed='2021-09-09 20:47:24.800777', job_id='543277', GAL2='0.87', fit_tolerance='1e-08', EG2='1.24', EG='1.24', time_epoch_completed='1631245644.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='-2.81e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='384' AND source_name='4FGL J1428.9+5406' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 20:47:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 543277: <4FGL_J1428.9+5406_daily_bin384> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1428.9+5406_daily_bin384 217.229 54.1114 338860801 339120001 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 :                                   947.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             299.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            973 sec.

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

