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


Performing analysis on: 4FGL_J1428.9+5406_daily_bin1356
RA = 217.229, Dec = 54.1114
tmin = 590803201, tmax = 591062401
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='549939', job_status='RUN', time_executed='2021-09-09 20:51:46.219072', time_epoch_executed='1631245906.22' WHERE source_name='4FGL J1428.9+5406' and cadence='daily' and bin_id='1356'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/549939

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/549939/ft1_4FGL_J1428.9+5406_daily_bin1356.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/549939/ft2_4FGL_J1428.9+5406_daily_bin1356.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/549939/ft1_4FGL_J1428.9+5406_daily_bin1356.fits outfile=/scratch/kocevski/549939/ft1_filteredMKT_4FGL_J1428.9+5406_daily_bin1356.fits ra=217.229 dec=54.1114 rad=12.0 tmin=590803201.0 tmax=591062401.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 5.57
user 5.32
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/549939/ft2_4FGL_J1428.9+5406_daily_bin1356.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/549939/ft1_filteredMKT_4FGL_J1428.9+5406_daily_bin1356.fits evtable="EVENTS" outfile="/scratch/kocevski/549939/ft1_filtered_4FGL_J1428.9+5406_daily_bin1356.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.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/549939/ft1_filtered_4FGL_J1428.9+5406_daily_bin1356.fits" evtable="EVENTS" scfile=/scratch/kocevski/549939/ft2_4FGL_J1428.9+5406_daily_bin1356.fits sctable="SC_DATA" outfile=/scratch/kocevski/549939/ltcube_590803201_591062401_4FGL_J1428.9+5406_daily_bin1356.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/549939/ft2_4FGL_J1428.9+5406_daily_bin1356.fits
.....................!
real 11.45
user 11.10
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/549939/ft1_filtered_4FGL_J1428.9+5406_daily_bin1356.fits evtable="EVENTS" scfile=/scratch/kocevski/549939/ft2_4FGL_J1428.9+5406_daily_bin1356.fits sctable="SC_DATA" expcube=/scratch/kocevski/549939/ltcube_590803201_591062401_4FGL_J1428.9+5406_daily_bin1356.fits outfile=/scratch/kocevski/549939/expmap_590803201_591062401_4FGL_J1428.9+5406_daily_bin1356.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/549939/ltcube_590803201_591062401_4FGL_J1428.9+5406_daily_bin1356.fits
.....................!
real 190.84
user 185.12
sys 5.38

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/549939/ft1_filtered_4FGL_J1428.9+5406_daily_bin1356.fits scfile=/scratch/kocevski/549939/ft2_4FGL_J1428.9+5406_daily_bin1356.fits outfile=/scratch/kocevski/549939/cmap_590803201_591062401_4FGL_J1428.9+5406_daily_bin1356.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/549939/ft1_filtered_4FGL_J1428.9+5406_daily_bin1356.fits scfile=/scratch/kocevski/549939/ft2_4FGL_J1428.9+5406_daily_bin1356.fits outfile=/scratch/kocevski/549939/cmap_HighResolution_590803201_591062401_4FGL_J1428.9+5406_daily_bin1356.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.168       1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.789       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .68836E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.2784       1.0000         .10000E-03   10000.    
     8 'norm      '    .10343E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .65093       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10932E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    86.563       1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.187       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.4647       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .30875E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.899       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.898       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .92640E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.1661       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.124       1.0000         .10000E-03   10000.    
    23 'norm      '    .10147E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.5555       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0536       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0867       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6830E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6261.119     FROM MIGRAD    STATUS=CONVERGED    139 CALLS     3739 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.162        1.3841        .19451E-06   -.14390E-03
   2  Prefactor     24.781        8.2444       -.86758E-05   -.64264E-02
   3  Prefactor     .10000E-03    42.275       -.11440E-04** at limit **
   4  norm          .10000E-03    1.1646       -.94855E-06** at limit **
   5  Prefactor     .53164E-02    2.8270       -.46617E-05    .38586E-03
   6  Prefactor     .10000E-03    12.381        .99688E-05** at limit **
   7  norm          3.2786        1.9201        .40303E-06   -.60897E-04
   8  norm          .10000E-03    24.219        .45686E-05** at limit **
   9  norm          .64644        3.9928        .24006E-05   -.22530E-04
  10  Prefactor     .13737E-03    142.38       -.35929E-04** at limit **
  11  Prefactor     86.584        2.4487       -.29157E-07    .11281E-02
  12  Prefactor     28.206        3.4938       -.73950E-06    .10512E-02
  13  Prefactor     4.4667        4.8130       -.97563E-06   -.17156E-03
  14  Prefactor     .16453E-03    140.64       -.92752E-04** at limit **
  15  Prefactor     .10000E-03    .82301       -.10827E-05** at limit **
  16  Prefactor     .10000E-03    5.7545       -.32297E-05** at limit **
  17  Prefactor     .10000E-03    8.8424        .19487E-05** at limit **
  18  Prefactor     24.881        12.138        .57279E-06   -.66001E-02
  19  Prefactor     13.898        1.0966        .49191E-06    .42185E-03
  20  Prefactor     .11048E-03    783.76       -.46702E-04** at limit **
  21  Prefactor     7.1577        9.0756       -.17949E-04   -.30561E-02
  22  Prefactor     11.136        12.646       -.18833E-04   -.10321E-02
  23  norm          .10000E-03    1.5024       -.23376E-05** at limit **
  24  Prefactor     8.5623        8.1668       -.89343E-06   -.47529E-03
  25  Prefactor     .10000E-03    3.4565       -.16811E-06** at limit **
  26  Prefactor     .10000E-03    11.304       -.12593E-04** at limit **
  27  norm          .10000E-03    1.8625       -.33282E-06** at limit **
  28  Normalizat    1.0537        .19578       -.16401E-07   -.79810E-04
  29  Prefactor     1.0869        .22574       -.38310E-05   -.65107E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.1616
  Prefactor  = 24.781
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.00531638
  Prefactor  = 0.0001
  norm       = 3.2786
  norm       = 0.0001
  norm       = 0.646442
  Prefactor  = 0.000137366
  Prefactor  = 86.5839
  Prefactor  = 28.2064
  Prefactor  = 4.46668
  Prefactor  = 0.00016453
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.8807
  Prefactor  = 13.8979
  Prefactor  = 0.000110478
  Prefactor  = 7.15769
  Prefactor  = 11.1365
  norm       = 0.0001
  Prefactor  = 8.56231
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.05373
  Prefactor  = 1.08694
 **********
 **   18 **HESSE 
 **********

 FCN=   6261.119     FROM HESSE     STATUS=OK           639 CALLS     4378 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.162        48.314        .26603E-02   -1.4955    
   2  Prefactor     24.781        16.274        .20114E-02   -1.4712    
   3  Prefactor     .10000E-03    42.462        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.1627        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .53164E-02    59.428        .13594       -1.5694    
   6  Prefactor     .10000E-03    12.386        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.2786        1.9247        .55909E-02   -1.5346    
   8  norm          .10000E-03    24.263        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .64644        4.0611        .11872E-01   -1.5547    
  10  Prefactor     .13737E-03    279.15        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     86.584        51.919        .10795E-02   -1.3844    
  12  Prefactor     28.206        45.793        .18865E-02   -1.4645    
  13  Prefactor     4.4667        4.9995        .47641E-02   -1.5285    
  14  Prefactor     .16453E-03    20.805        .11675       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .81633        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.7478        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.8300        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.881        75.054        .20069E-02   -1.4710    
  19  Prefactor     13.898        20.344        .26860E-02   -1.4962    
  20  Prefactor     .11048E-03    22.690        .10668       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.1577        16.744        .37461E-02   -1.5173    
  22  Prefactor     11.136        20.016        .30029E-02   -1.5040    
  23  norm          .10000E-03    .99122        .29467E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.5623        8.2000        .34262E-02   -1.5123    
  25  Prefactor     .10000E-03    3.4261        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    10.886        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.8596        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0537        .17503        .40319E-01   -.91251    
  29  Prefactor     1.0869        .19255        .60189E-01   -.89885    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31529e-06
Minuit parameter uncertainties:
  1  48.4476
  2  16.2767
  3  0.000538617
  4  2.31605e-06
  5  1.11466
  6  3.5081e-06
  7  1.92476
  8  6.65957e-05
  9  3.24063
  10  0.205223
  11  51.9463
  12  45.8505
  13  5
  14  0.0733065
  15  1.00338e-06
  16  2.31069e-05
  17  2.70385e-05
  18  75.3411
  19  20.3538
  20  0.0308497
  21  16.7551
  22  20.0281
  23  3.51808e-06
  24  8.20109
  25  8.77956e-06
  26  1.24809e-06
  27  5.38337e-07
  28  0.175124
  29  0.192674
Done.

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

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  1.000e-04  2.704e-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.087e+00  1.927e-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.054e+00  1.751e-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.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/549939/likelihoodResults_590803201_591062401_4FGL_J1428.9+5406_daily_bin1356.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) = 6261.11941827
delta logL = -0.000538211503226

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6261.1188812
delta logL = -1.14559315989e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12536E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5395       1.0000          .0000       10.000    
     3 'Normalizat'    1.0538       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0869       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6260.259     FROM MIGRAD    STATUS=FAILED       182 CALLS      331 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3309        224.42        .18142E-01   -.15317E-03
   2  Index         .80104        9.0232        .93594E-01    .90294E-04
   3  Normalizat    1.0454        .75858E-01    .23009E-03   -.12066E-03
   4  Prefactor     1.0921        .89477E-01    .26619E-03   -.96053E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6260.259     FROM SIMPLEX   STATUS=UNCHANGED     80 CALLS      411 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3309        224.42        .31864E-03   -.15317E-03
   2  Index         .80104        9.0232        .17173E-02    .90294E-04
   3  Normalizat    1.0454        .75858E-01    .74345E-04   -.12066E-03
   4  Prefactor     1.0921        .89477E-01    .16455E-03   -.96053E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6260.259     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      443 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3309        8.3389        .17547E-03   -.33042E-05
   2  Index         .80104        .77450        .10936E-02   -.31187E-06
   3  Normalizat    1.0454        .19155        .92037E-05   -.11809E-03
   4  Prefactor     1.0921        .22564        .10647E-04   -.93747E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.33091
  Index      = 0.801045
  Normalizat = 1.0454
  Prefactor  = 1.09207
 **********
 **   18 **HESSE 
 **********

 FCN=   6260.259     FROM HESSE     STATUS=OK            23 CALLS      466 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3309        8.0937        .70190E-05   -1.5343    
   2  Index         .80104        .75231        .43744E-04   -2.1447    
   3  Normalizat    1.0454        .19156        .18407E-05   -.91525    
   4  Prefactor     1.0921        .22560        .21295E-05   -.89721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25807e-11
Minuit parameter uncertainties:
  1  8.09634
  2  0.762291
  3  0.191688
  4  0.225801
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/549939': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6260.25926987
delta logL = 0.859610182714

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  3.331e+00  8.096e+00  1.000e-04  1.000e+04 ( 1.000e-13)
347        Index:  8.010e-01  7.623e-01  0.000e+00  1.000e+01 (-1.000e+00)
348        Scale:  8.154e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
680    Prefactor:  1.092e+00  2.258e-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.045e+00  1.917e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.72
Ra Dec: 217.229 54.111
Photon Index (Free Index): 0.80 +/- 0.76
Photon Flux (Free Index): 2.65e-09 +/- 1.04e-08
Energy Flux (Free Index): 5.90e-05 +/- 3.11e-04

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/549939/cmap_HighResolution_590803201_591062401_4FGL_J1428.9+5406_daily_bin1356.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.13e-03', comment='SUCCESS', energy_flux2='5.90e-05', dlogl='8.60e-01', photon_flux2='2.65e-09', job_status='DONE', time_completed='2021-09-09 21:07:48.065438', photon_index_error2='0.76', photon_index2='0.80', ts='-0.00', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='5.28e-08', energy_flux_error2='3.11e-04', EG='1.05', time_epoch_completed='1631246868.07', return_code='0', job_id='549939', GAL2='1.09', EG2='1.05', return_code2='0', photon_flux_error2='1.04e-08', ts2='1.72', photon_index='2.57' WHERE bin_id='1356' AND source_name='4FGL J1428.9+5406' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 21:07:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 549939: <4FGL_J1428.9+5406_daily_bin1356> in cluster <slac> Done

Job <4FGL_J1428.9+5406_daily_bin1356> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  9 20:51:35 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 20:51:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 20:51:37 2021
Terminated at Thu Sep  9 21:07:48 2021
Results reported at Thu Sep  9 21:07:48 2021

Your job looked like:

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

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

