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


Performing analysis on: 4FGL_J1428.9+5406_daily_bin577
RA = 217.229, Dec = 54.1114
tmin = 388886401, tmax = 389145601
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='544839', job_status='RUN', time_executed='2021-09-09 20:36:37.132001', time_epoch_executed='1631244997.13' WHERE source_name='4FGL J1428.9+5406' and cadence='daily' and bin_id='577'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/544839

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/544839/ft1_4FGL_J1428.9+5406_daily_bin577.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/544839/ft2_4FGL_J1428.9+5406_daily_bin577.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/544839/ft1_4FGL_J1428.9+5406_daily_bin577.fits outfile=/scratch/kocevski/544839/ft1_filteredMKT_4FGL_J1428.9+5406_daily_bin577.fits ra=217.229 dec=54.1114 rad=12.0 tmin=388886401.0 tmax=389145601.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.54
user 3.29
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/544839/ft2_4FGL_J1428.9+5406_daily_bin577.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/544839/ft1_filteredMKT_4FGL_J1428.9+5406_daily_bin577.fits evtable="EVENTS" outfile="/scratch/kocevski/544839/ft1_filtered_4FGL_J1428.9+5406_daily_bin577.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/544839/ft1_filtered_4FGL_J1428.9+5406_daily_bin577.fits" evtable="EVENTS" scfile=/scratch/kocevski/544839/ft2_4FGL_J1428.9+5406_daily_bin577.fits sctable="SC_DATA" outfile=/scratch/kocevski/544839/ltcube_388886401_389145601_4FGL_J1428.9+5406_daily_bin577.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/544839/ft2_4FGL_J1428.9+5406_daily_bin577.fits
.....................!
real 12.50
user 12.06
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/544839/ft1_filtered_4FGL_J1428.9+5406_daily_bin577.fits evtable="EVENTS" scfile=/scratch/kocevski/544839/ft2_4FGL_J1428.9+5406_daily_bin577.fits sctable="SC_DATA" expcube=/scratch/kocevski/544839/ltcube_388886401_389145601_4FGL_J1428.9+5406_daily_bin577.fits outfile=/scratch/kocevski/544839/expmap_388886401_389145601_4FGL_J1428.9+5406_daily_bin577.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/544839/ltcube_388886401_389145601_4FGL_J1428.9+5406_daily_bin577.fits
.....................!
real 190.75
user 185.65
sys 4.47

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/544839/ft1_filtered_4FGL_J1428.9+5406_daily_bin577.fits scfile=/scratch/kocevski/544839/ft2_4FGL_J1428.9+5406_daily_bin577.fits outfile=/scratch/kocevski/544839/cmap_388886401_389145601_4FGL_J1428.9+5406_daily_bin577.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/544839/ft1_filtered_4FGL_J1428.9+5406_daily_bin577.fits scfile=/scratch/kocevski/544839/ft2_4FGL_J1428.9+5406_daily_bin577.fits outfile=/scratch/kocevski/544839/cmap_HighResolution_388886401_389145601_4FGL_J1428.9+5406_daily_bin577.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=217.229 yref=54.1114 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    64.034       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    52.476       1.0000         .10000E-03   10000.    
     4 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    41.564       1.0000         .10000E-03   10000.    
     7 'norm      '    3.8091       1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.6587       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    66.159       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15356E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    35.092       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5148       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11668E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .75429       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.9618       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.8214       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.9276       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.1968       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.2818       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .88278       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1275       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=   6461.086     FROM MIGRAD    STATUS=CONVERGED    732 CALLS     3704 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     64.040        74.867        .46946E-06    .10231E-04
   2  Prefactor     .10000E-03    9.7679        .33387E-06** at limit **
   3  Prefactor     52.473        56.173        .45584E-08   -.16324E-04
   4  norm          .10000E-03    1.0760        .27820E-07** at limit **
   5  Prefactor     .10000E-03    36.078       -.89145E-06** at limit **
   6  Prefactor     41.567        37.009        .17096E-06   -.55047E-05
   7  norm          3.8095        2.0219        .41929E-07   -.49447E-04
   8  norm          .10000E-03    33.336        .92568E-06** at limit **
   9  norm          3.6586        3.5888        .15563E-06   -.17087E-04
  10  Prefactor     .10000E-03    151.50        .13807E-05** at limit **
  11  Prefactor     66.178        57.528       -.26634E-06    .37293E-04
  12  Prefactor     .10001E-03    193.16       -.12137E-05** at limit **
  13  Prefactor     .10000E-03    2.4281        .81212E-08** at limit **
  14  Prefactor     35.096        26.018       -.13786E-06   -.10806E-03
  15  Prefactor     3.5143        2.5836       -.87204E-09   -.17822E-03
  16  Prefactor     .10000E-03    13.269        .38184E-07** at limit **
  17  Prefactor     .10000E-03    10.163       -.18926E-06** at limit **
  18  Prefactor     .10000E-03    94.084        .50798E-06** at limit **
  19  Prefactor     .10000E-03    17.210       -.12362E-06** at limit **
  20  Prefactor     .86964        12.189        .24293E-05   -.43584E-03
  21  Prefactor     2.9352        14.989        .11427E-05    .32963E-04
  22  Prefactor     .10000E-03    8.5162       -.40070E-07** at limit **
  23  norm          1.8211        1.3171       -.17700E-07   -.45186E-03
  24  Prefactor     7.9292        8.2379        .27268E-05    .16830E-03
  25  Prefactor     3.1971        4.1362        .18884E-06   -.64559E-04
  26  Prefactor     .10000E-03    4.4056       -.38815E-06** at limit **
  27  norm          1.2818        2.8006        .44989E-06    .56878E-04
  28  Normalizat    .88272        .17157       -.11137E-05   -.22702E-03
  29  Prefactor     1.1275        .19129       -.12415E-06   -.22929E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 64.0405
  Prefactor  = 0.0001
  Prefactor  = 52.4734
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 41.5674
  norm       = 3.80951
  norm       = 0.000100002
  norm       = 3.65855
  Prefactor  = 0.000100005
  Prefactor  = 66.178
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 35.0963
  Prefactor  = 3.51434
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.869636
  Prefactor  = 2.93517
  Prefactor  = 0.0001
  norm       = 1.82113
  Prefactor  = 7.92916
  Prefactor  = 3.19714
  Prefactor  = 0.0001
  norm       = 1.28181
  Normalizat = 0.882717
  Prefactor  = 1.12751
 **********
 **   18 **HESSE 
 **********

 FCN=   6461.086     FROM HESSE     STATUS=OK           551 CALLS     4255 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     64.040        74.861        .50149E-04   -1.4106    
   2  Prefactor     .10000E-03    9.9617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     52.473        56.117        .55366E-04   -1.4258    
   4  norm          .10000E-03    1.0785        .81407E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    36.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     41.567        37.112        .62178E-04   -1.4418    
   7  norm          3.8095        2.0200        .79474E-04   -1.5318    
   8  norm          .10000E-03    33.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.6586        3.5787        .14325E-03   -1.5325    
  10  Prefactor     .10000E-03    151.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     66.178        57.420        .49342E-04   -1.4079    
  12  Prefactor     .10001E-03    195.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.4400        .12225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     35.096        26.206        .67649E-04   -1.4522    
  15  Prefactor     3.5143        2.5776        .10263E-03   -1.5333    
  16  Prefactor     .10000E-03    13.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    94.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .86964        63.896        .47438E-02   -1.5521    
  21  Prefactor     2.9352        14.993        .23595E-03   -1.5365    
  22  Prefactor     .10000E-03    8.5406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.8211        1.3073        .75321E-04   -1.5438    
  24  Prefactor     7.9292        8.2805        .71204E-03   -1.5145    
  25  Prefactor     3.1971        4.1226        .18010E-03   -1.5350    
  26  Prefactor     .10000E-03    4.4819        .16509E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.2818        2.7483        .19393E-03   -1.5482    
  28  Normalizat    .88272        .20805        .24269E-03   -.97070    
  29  Prefactor     1.1275        .23343        .25742E-03   -.88592    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.12861e-09
Minuit parameter uncertainties:
  1  74.9712
  2  6.98981e-05
  3  56.1738
  4  8.35989e-07
  5  0.000519773
  6  37.1326
  7  2.02001
  8  0.000541221
  9  3.57889
  10  0.00170896
  11  57.4678
  12  0.0029061
  13  2.03603e-06
  14  26.215
  15  2.57768
  16  2.64275e-05
  17  6.56191e-05
  18  0.000293248
  19  3.83603e-05
  20  14.9243
  21  13.2725
  22  1.22814e-05
  23  1.30735
  24  8.28169
  25  4.12299
  26  3.92866e-05
  27  2.74856
  28  0.208239
  29  0.233643
Done.

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

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  1.000e-04  6.562e-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.128e+00  2.336e-01  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  8.827e-01  2.082e-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.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.46e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/544839/likelihoodResults_388886401_389145601_4FGL_J1428.9+5406_daily_bin577.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) = 6461.0868601
delta logL = -0.000468012474812

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6461.0863922
delta logL = -1.18948264571e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5661       1.0000          .0000       10.000    
     3 'Normalizat'    .88268       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1276       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=   6461.086     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      241 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10056E-03    184.45        .18142E-02** at limit **
   2  Index         2.5161        8.1483        .50000        .52879E-05
   3  Normalizat    .88272        .16805E-01    .24269E-03    .12723E-03
   4  Prefactor     1.1275        .19984E-01    .25742E-03    .89387E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100557
  Index      = 2.51609
  Normalizat = 0.882718
  Prefactor  = 1.12751
 **********
 **   18 **HESSE 
 **********

 FCN=   6461.086     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10056E-03    755.94        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5161        6.7851        .50000       -.51989    
   3  Normalizat    .88272        .37027E-01    .97075E-05   -.97070    
   4  Prefactor     1.1275        .44027E-01    .10297E-04   -.88592    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.71797e-09
Minuit parameter uncertainties:
  1  0.0415923
  2  1659.97
  3  0.0370278
  4  0.0440283
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/544839': 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) = 6461.08639203
delta logL = 5.12682163389e-08

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  1.006e-04  4.159e-02  1.000e-04  1.000e+04 ( 1.000e-13)
347        Index:  2.516e+00  1.660e+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:  1.128e+00  4.403e-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:  8.827e-01  3.703e-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/544839/cmap_HighResolution_388886401_389145601_4FGL_J1428.9+5406_daily_bin577.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.46e-03', job_status='DONE', photon_flux_upper_limit='5.70e-08', time_completed='2021-09-09 20:52:15.239164', job_id='544839', GAL2='1.13', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1631245935.24', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='5.13e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='577' AND source_name='4FGL J1428.9+5406' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 20:52:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 544839: <4FGL_J1428.9+5406_daily_bin577> in cluster <slac> Done

Job <4FGL_J1428.9+5406_daily_bin577> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  9 20:36:25 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 20:36: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:36:27 2021
Terminated at Thu Sep  9 20:52:16 2021
Results reported at Thu Sep  9 20:52:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1428.9+5406_daily_bin577 217.229 54.1114 388886401 389145601 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 :                                   934.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             363.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            951 sec.

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

