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


Performing analysis on: 4FGL_J1428.8+7429_daily_bin1019
RA = 217.203, Dec = 74.485
tmin = 503452801, tmax = 503712001
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='537160', job_status='RUN', time_executed='2021-09-09 20:11:34.666332', time_epoch_executed='1631243494.67' WHERE source_name='4FGL J1428.8+7429' and cadence='daily' and bin_id='1019'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/537160

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/537160/ft1_4FGL_J1428.8+7429_daily_bin1019.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/537160/ft2_4FGL_J1428.8+7429_daily_bin1019.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/537160/ft1_4FGL_J1428.8+7429_daily_bin1019.fits outfile=/scratch/kocevski/537160/ft1_filteredMKT_4FGL_J1428.8+7429_daily_bin1019.fits ra=217.203 dec=74.485 rad=12.0 tmin=503452801.0 tmax=503712001.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 7.76
user 7.49
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/537160/ft2_4FGL_J1428.8+7429_daily_bin1019.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/537160/ft2_4FGL_J1428.8+7429_daily_bin1019.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/537160/ft1_filteredMKT_4FGL_J1428.8+7429_daily_bin1019.fits evtable="EVENTS" outfile="/scratch/kocevski/537160/ft1_filtered_4FGL_J1428.8+7429_daily_bin1019.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/537160/ft1_filtered_4FGL_J1428.8+7429_daily_bin1019.fits" evtable="EVENTS" scfile=/scratch/kocevski/537160/ft2_4FGL_J1428.8+7429_daily_bin1019.fits sctable="SC_DATA" outfile=/scratch/kocevski/537160/ltcube_503452801_503712001_4FGL_J1428.8+7429_daily_bin1019.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/537160/ft2_4FGL_J1428.8+7429_daily_bin1019.fits
.....................!
real 11.78
user 11.42
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/537160/ft1_filtered_4FGL_J1428.8+7429_daily_bin1019.fits evtable="EVENTS" scfile=/scratch/kocevski/537160/ft2_4FGL_J1428.8+7429_daily_bin1019.fits sctable="SC_DATA" expcube=/scratch/kocevski/537160/ltcube_503452801_503712001_4FGL_J1428.8+7429_daily_bin1019.fits outfile=/scratch/kocevski/537160/expmap_503452801_503712001_4FGL_J1428.8+7429_daily_bin1019.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/537160/ltcube_503452801_503712001_4FGL_J1428.8+7429_daily_bin1019.fits
.....................!
real 189.75
user 184.55
sys 4.74

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 218 point sources and 0 extended sources

Setting source of interest to:
4FGL J1428.8+7429 @ 217.203 74.485

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/537160/ft1_filtered_4FGL_J1428.8+7429_daily_bin1019.fits scfile=/scratch/kocevski/537160/ft2_4FGL_J1428.8+7429_daily_bin1019.fits outfile=/scratch/kocevski/537160/cmap_503452801_503712001_4FGL_J1428.8+7429_daily_bin1019.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.203 yref=74.485 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/537160/ft1_filtered_4FGL_J1428.8+7429_daily_bin1019.fits scfile=/scratch/kocevski/537160/ft2_4FGL_J1428.8+7429_daily_bin1019.fits outfile=/scratch/kocevski/537160/cmap_HighResolution_503452801_503712001_4FGL_J1428.8+7429_daily_bin1019.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.203 yref=74.485 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/537160/ft1_filtered_4FGL_J1428.8+7429_daily_bin1019.fits evtable="EVENTS" scfile=/scratch/kocevski/537160/ft2_4FGL_J1428.8+7429_daily_bin1019.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/537160/Model_4FGL_J1428.8+7429_daily_bin1019.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/537160/ft1_filtered_4FGL_J1428.8+7429_daily_bin1019.fits.....................!
real 77.04
user 75.63
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/537160/ft1_filtered_4FGL_J1428.8+7429_daily_bin1019.fits', '/scratch/kocevski/537160/ft2_4FGL_J1428.8+7429_daily_bin1019.fits', expMap='/scratch/kocevski/537160/expmap_503452801_503712001_4FGL_J1428.8+7429_daily_bin1019.fits', expCube='/scratch/kocevski/537160/ltcube_503452801_503712001_4FGL_J1428.8+7429_daily_bin1019.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/537160/Model_4FGL_J1428.8+7429_daily_bin1019.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1428.8+7429'

4FGL J1428.8+7429
   Spectrum: PowerLaw
368    Prefactor:  2.627e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-15)
369        Index:  1.859e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
370        Scale:  6.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/537160/ft1_filtered_4FGL_J1428.8+7429_daily_bin1019.fits
Spacecraft file(s): /scratch/kocevski/537160/ft2_4FGL_J1428.8+7429_daily_bin1019.fits
Exposure map: /scratch/kocevski/537160/expmap_503452801_503712001_4FGL_J1428.8+7429_daily_bin1019.fits
Exposure cube: /scratch/kocevski/537160/ltcube_503452801_503712001_4FGL_J1428.8+7429_daily_bin1019.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/537160/Model_4FGL_J1428.8+7429_daily_bin1019.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) = 6793.09140291

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .54375       1.0000         .10000E-03   10000.    
     2 'Prefactor '    22.385       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    83.610       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11621E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.8206       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.474       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.129       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.8943       1.0000         .10000E-03   10000.    
    22 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    25.199       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.1628       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.9687       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3564       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .79880       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6793.062     FROM MIGRAD    STATUS=CONVERGED    687 CALLS     3452 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .56283        7.3157       -.15445E-06   -.66752E-04
   2  Prefactor     22.283        74.697       -.38415E-04    .14979E-05
   3  norm          .10000E-03    2.6416       -.59149E-08** at limit **
   4  norm          .10000E-03    2.0784        .71223E-07** at limit **
   5  Prefactor     83.621        65.600       -.43013E-05    .37547E-05
   6  Prefactor     .10000E-03    19.487        .33208E-05** at limit **
   7  Prefactor     .10000E-03    4.0697       -.21141E-07** at limit **
   8  Prefactor     .10000E-03    10.113        .13348E-06** at limit **
   9  Prefactor     .10000E-03    5.3916        .16454E-07** at limit **
  10  Prefactor     .10000E-03    5.9048       -.43714E-07** at limit **
  11  Prefactor     8.8182        10.767       -.21819E-06   -.75487E-04
  12  Prefactor     11.478        10.480        .32626E-07   -.50476E-04
  13  Prefactor     .10000E-03    15.017        .24042E-05** at limit **
  14  Prefactor     .10000E-03    19.533        .36267E-05** at limit **
  15  Prefactor     .10000E-03    37.859       -.12963E-05** at limit **
  16  Prefactor     .10000E-03    27.998        .95962E-06** at limit **
  17  Prefactor     .10000E-03    13.383       -.28703E-05** at limit **
  18  Prefactor     17.130        19.724       -.45758E-05    .44637E-05
  19  Prefactor     .10000E-03    18.717       -.31089E-05** at limit **
  20  Prefactor     .10000E-03    8.8896       -.27266E-06** at limit **
  21  Prefactor     3.8915        31.701        .61006E-05   -.34205E-04
  22  norm          .10000E-03    17.662       -.73298E-05** at limit **
  23  Prefactor     25.001        70.361       -.27639E-04   -.69386E-05
  24  Prefactor     2.1451        146.46        .15907E-03   -.26380E-04
  25  Prefactor     2.9688        2.4493       -.47714E-07   -.33189E-03
  26  Prefactor     .10000E-03    14.835        .36070E-05** at limit **
  27  Normalizat    1.3562        .16858        .14929E-05   -.36851E-03
  28  Prefactor     .79895        .13500       -.17138E-05   -.14003E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.562825
  Prefactor  = 22.2827
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 83.6212
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.81824
  Prefactor  = 11.4775
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.1297
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.89149
  norm       = 0.0001
  Prefactor  = 25.0005
  Prefactor  = 2.14513
  Prefactor  = 2.96881
  Prefactor  = 0.0001
  Normalizat = 1.35622
  Prefactor  = 0.798946
 **********
 **   18 **HESSE 
 **********

 FCN=   6793.062     FROM HESSE     STATUS=OK           513 CALLS     3965 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .56283        32.119        .42029E-02   -1.5558    
   2  Prefactor     22.283        74.784        .84660E-04   -1.4764    
   3  norm          .10000E-03    2.7051        .13080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.1182        .23082E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     83.621        65.705        .43930E-04   -1.3877    
   6  Prefactor     .10000E-03    19.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.0755        .16238E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.4962        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.9133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.8182        10.720        .13496E-03   -1.5114    
  12  Prefactor     11.478        10.559        .11827E-03   -1.5030    
  13  Prefactor     .10000E-03    15.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    37.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    28.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.130        19.725        .96774E-04   -1.4880    
  19  Prefactor     .10000E-03    18.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.9238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.8915        31.691        .20446E-03   -1.5313    
  22  norm          .10000E-03    17.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     25.001        70.416        .79799E-04   -1.4708    
  24  Prefactor     2.1451        144.17        .28007E-03   -1.5415    
  25  Prefactor     2.9688        2.4430        .11308E-03   -1.5363    
  26  Prefactor     .10000E-03    14.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.3562        .19311        .23073E-03   -.81903    
  28  Prefactor     .79895        .15387        .24229E-03   -.99767    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07052e-08
Minuit parameter uncertainties:
  1  8.50756
  2  75.101
  3  1.04308e-05
  4  1.44718e-05
  5  65.7621
  6  2.70233e-05
  7  3.15463e-06
  8  5.04245e-06
  9  2.20297e-05
  10  6.64428e-06
  11  10.7221
  12  10.5603
  13  2.21822e-05
  14  3.49825e-06
  15  7.65687e-06
  16  3.00051e-05
  17  5.22442e-06
  18  19.7324
  19  6.47089e-06
  20  4.15733e-05
  21  22.226
  22  5.34877e-05
  23  70.6516
  24  35.2595
  25  2.44305
  26  1.93298e-06
  27  0.193211
  28  0.153957
Done.

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

Extracting fit parameters...

4FGL J1428.8+7429
   Spectrum: PowerLaw
368    Prefactor:  1.000e-04  7.657e-06  1.000e-04  1.000e+04 ( 1.000e-15)
369        Index:  1.859e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
370        Scale:  6.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
694    Prefactor:  7.989e-01  1.540e-01  0.000e+00  1.000e+01 ( 1.000e+00)
695        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
696        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
693   Normalization:  1.356e+00  1.932e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 217.203 74.485
Photon Flux Upper Limit: 4.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/537160/likelihoodResults_503452801_503712001_4FGL_J1428.8+7429_daily_bin1019.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) = 6793.06194038
delta logL = -0.000125573704281

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6793.06194022
delta logL = -0.000125410494547

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96122E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8594       1.0000          .0000       10.000    
     3 'Normalizat'    1.3562       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79894       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6793.062     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      199 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.3107        .90736E-02** at limit **
   2  Index         1.8355        5.8242        .50000        .46417E-05
   3  Normalizat    1.3562        .17635E-02    .52187E-01    .98051E-05
   4  Prefactor     .79895        .14719E-02    .43703E-01    .20632E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.83548
  Normalizat = 1.35623
  Prefactor  = 0.798945
 **********
 **   18 **HESSE 
 **********

 FCN=   6793.062     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      232 TOTAL
                     EDM=   .92E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    165.17        .18147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8355        8.4581        .50000       -.68530    
   3  Normalizat    1.3562        .90757E-02    .23073E-03   -.81903    
   4  Prefactor     .79895        .75742E-02    .24230E-03   -.99767    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.24211e-08
Minuit parameter uncertainties:
  1  0.000751644
  2  261.617
  3  0.00907566
  4  0.0075742
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/537160': 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) = 6793.06181478
delta logL = 2.93994162348e-08

Extracting fit parameters...

4FGL J1428.8+7429
   Spectrum: PowerLaw
368    Prefactor:  1.000e-04  7.516e-04  1.000e-04  1.000e+04 ( 1.000e-15)
369        Index:  1.835e+00  2.616e+02  0.000e+00  1.000e+01 (-1.000e+00)
370        Scale:  6.277e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
694    Prefactor:  7.989e-01  7.574e-03  0.000e+00  1.000e+01 ( 1.000e+00)
695        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
696        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
693   Normalization:  1.356e+00  9.076e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 217.203 74.485

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/537160/cmap_HighResolution_503452801_503712001_4FGL_J1428.8+7429_daily_bin1019.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.05e-03', job_status='DONE', photon_flux_upper_limit='4.11e-08', time_completed='2021-09-09 20:27:59.804157', job_id='537160', GAL2='0.80', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1631244479.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='2.94e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.86' WHERE bin_id='1019' AND source_name='4FGL J1428.8+7429' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 20:27:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 537160: <4FGL_J1428.8+7429_daily_bin1019> in cluster <slac> Done

Job <4FGL_J1428.8+7429_daily_bin1019> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Thu Sep  9 20:11:23 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 20:11:25 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:11:25 2021
Terminated at Thu Sep  9 20:28:00 2021
Results reported at Thu Sep  9 20:28:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1428.8+7429_daily_bin1019 217.203 74.485 503452801 503712001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1428.8+7429 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   978.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             324.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            997 sec.

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

