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


Performing analysis on: 4FGL_J1428.9+5406_daily_bin1202
RA = 217.229, Dec = 54.1114
tmin = 550886401, tmax = 551145601
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='549652', job_status='RUN', time_executed='2021-09-09 20:54:18.881300', time_epoch_executed='1631246058.88' WHERE source_name='4FGL J1428.9+5406' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/549652

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/549652/ft1_4FGL_J1428.9+5406_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/549652/ft2_4FGL_J1428.9+5406_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/549652/ft1_4FGL_J1428.9+5406_daily_bin1202.fits outfile=/scratch/kocevski/549652/ft1_filteredMKT_4FGL_J1428.9+5406_daily_bin1202.fits ra=217.229 dec=54.1114 rad=12.0 tmin=550886401.0 tmax=551145601.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.77
user 3.53
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/549652/ft1_filtered_4FGL_J1428.9+5406_daily_bin1202.fits" evtable="EVENTS" scfile=/scratch/kocevski/549652/ft2_4FGL_J1428.9+5406_daily_bin1202.fits sctable="SC_DATA" outfile=/scratch/kocevski/549652/ltcube_550886401_551145601_4FGL_J1428.9+5406_daily_bin1202.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/549652/ft2_4FGL_J1428.9+5406_daily_bin1202.fits
.....................!
real 11.69
user 11.30
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/549652/ft1_filtered_4FGL_J1428.9+5406_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/549652/ft2_4FGL_J1428.9+5406_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/549652/ltcube_550886401_551145601_4FGL_J1428.9+5406_daily_bin1202.fits outfile=/scratch/kocevski/549652/expmap_550886401_551145601_4FGL_J1428.9+5406_daily_bin1202.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/549652/ltcube_550886401_551145601_4FGL_J1428.9+5406_daily_bin1202.fits
.....................!
real 191.54
user 186.62
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/549652/ft1_filtered_4FGL_J1428.9+5406_daily_bin1202.fits scfile=/scratch/kocevski/549652/ft2_4FGL_J1428.9+5406_daily_bin1202.fits outfile=/scratch/kocevski/549652/cmap_550886401_551145601_4FGL_J1428.9+5406_daily_bin1202.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/549652/ft1_filtered_4FGL_J1428.9+5406_daily_bin1202.fits scfile=/scratch/kocevski/549652/ft2_4FGL_J1428.9+5406_daily_bin1202.fits outfile=/scratch/kocevski/549652/cmap_HighResolution_550886401_551145601_4FGL_J1428.9+5406_daily_bin1202.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.514       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    93.891       1.0000         .10000E-03   10000.    
     4 'norm      '    19.959       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10769E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    55.899       1.0000         .10000E-03   10000.    
     7 'norm      '    9.7875       1.0000         .10000E-03   10000.    
     8 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    13.408       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .21412E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    88.749       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.2397       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.8361       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    74.684       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    46.850       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .36372       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    19.685       1.0000         .10000E-03   10000.    
    27 'norm      '    .94683       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .77162       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3736       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=   2034.872     FROM MIGRAD    STATUS=CONVERGED    760 CALLS     3753 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.739        670.34        .25808E-03    .28948E-04
   2  Prefactor     .10000E-03    24.617        .46555E-05** at limit **
   3  Prefactor     93.937        228.98       -.51492E-04   -.49330E-05
   4  norm          19.961        11.265       -.36151E-05    .24992E-04
   5  Prefactor     .10000E-03    165.06       -.56523E-04** at limit **
   6  Prefactor     55.901        90.105        .91134E-05    .39677E-04
   7  norm          9.7881        5.7557       -.55403E-07    .21854E-03
   8  norm          .10000E-03    135.03        .29077E-04** at limit **
   9  norm          13.409        10.324       -.12806E-05    .77450E-04
  10  Prefactor     .10000E-03    1085.0       -.14111E-03** at limit **
  11  Prefactor     88.778        111.39        .17691E-04    .26113E-04
  12  Prefactor     .10000E-03    44.126       -.26524E-06** at limit **
  13  Prefactor     .10000E-03    4.5682        .43058E-06** at limit **
  14  Prefactor     3.3401        146.79       -.15479E-03    .11579E-04
  15  Prefactor     2.8365        4.6677       -.95919E-06   -.69653E-04
  16  Prefactor     .10000E-03    14.544        .18979E-06** at limit **
  17  Prefactor     .10000E-03    20.019        .53529E-05** at limit **
  18  Prefactor     74.629        164.93       -.47297E-04    .50670E-04
  19  Prefactor     .10000E-03    22.035       -.70702E-05** at limit **
  20  Prefactor     46.858        48.789        .13974E-04    .17461E-03
  21  Prefactor     .10000E-03    11.058        .22266E-08** at limit **
  22  Prefactor     .10000E-03    17.930       -.14735E-05** at limit **
  23  norm          .36742        3.2697       -.14994E-05   -.39685E-04
  24  Prefactor     .10000E-03    9.3581        .14648E-06** at limit **
  25  Prefactor     .10000E-03    25.701       -.16201E-05** at limit **
  26  Prefactor     19.692        16.540       -.44437E-05    .58719E-04
  27  norm          .94624        14.036       -.57144E-05    .21808E-03
  28  Normalizat    .77110        .34161        .40690E-05    .38119E-03
  29  Prefactor     1.3740        .37169        .70144E-05    .27249E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.739
  Prefactor  = 0.000100001
  Prefactor  = 93.9367
  norm       = 19.961
  Prefactor  = 0.000100002
  Prefactor  = 55.901
  norm       = 9.78812
  norm       = 0.0001
  norm       = 13.4092
  Prefactor  = 0.0001
  Prefactor  = 88.7776
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.34006
  Prefactor  = 2.83654
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 74.6292
  Prefactor  = 0.0001
  Prefactor  = 46.8576
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.367415
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.6924
  norm       = 0.946243
  Normalizat = 0.771102
  Prefactor  = 1.37402
 **********
 **   18 **HESSE 
 **********

 FCN=   2034.872     FROM HESSE     STATUS=OK           543 CALLS     4296 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.739        650.79        .75027E-04   -1.4635    
   2  Prefactor     .10000E-03    24.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     93.937        225.72        .20738E-03   -1.3766    
   4  norm          19.961        11.270        .89652E-04   -1.4814    
   5  Prefactor     .10000E-03    165.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     55.901        90.814        .53653E-04   -1.4211    
   7  norm          9.7881        5.7527        .76125E-04   -1.5082    
   8  norm          .10000E-03    135.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          13.409        10.324        .10939E-03   -1.4975    
  10  Prefactor     .10000E-03    1084.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     88.778        111.32        .42650E-04   -1.3821    
  12  Prefactor     .10000E-03    44.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.5712        .94169E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.3401        148.32        .22503E-03   -1.5342    
  15  Prefactor     2.8365        4.6477        .11673E-03   -1.5371    
  16  Prefactor     .10000E-03    14.546        .16806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    20.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     74.629        165.01        .46460E-04   -1.3978    
  19  Prefactor     .10000E-03    22.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     46.858        48.699        .58580E-04   -1.4338    
  21  Prefactor     .10000E-03    11.058        .14653E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    17.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .36742        5.2006        .15333E-02   -1.5587    
  24  Prefactor     .10000E-03    9.3714        .13474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    26.340        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     19.692        16.627        .90274E-04   -1.4820    
  27  norm          .94624        27.442        .32177E-02   -1.5513    
  28  Normalizat    .77110        .41144        .29046E-03   -1.0115    
  29  Prefactor     1.3740        .44904        .26699E-03   -.81132    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.22744e-09
Minuit parameter uncertainties:
  1  276.992
  2  0.000252819
  3  227.83
  4  11.2708
  5  0.00103276
  6  91.0399
  7  5.75306
  8  5.37254e-05
  9  10.3254
  10  0.000756625
  11  111.587
  12  0.000152134
  13  8.88179e-05
  14  44.6331
  15  4.6483
  16  5.05514e-06
  17  2.49655e-05
  18  166.033
  19  1.87764e-06
  20  48.7402
  21  4.26092e-06
  22  2.15571e-05
  23  2.76454
  24  4.61326e-05
  25  4.15869e-05
  26  16.6307
  27  10.1961
  28  0.413107
  29  0.450325
Done.

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

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  1.000e-04  2.497e-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.374e+00  4.503e-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:  7.711e-01  4.131e-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: 1.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.00e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/549652/likelihoodResults_550886401_551145601_4FGL_J1428.9+5406_daily_bin1202.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) = 2034.87215612
delta logL = -0.000236849884232

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2034.87192107
delta logL = -1.80846495823e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0761       1.0000          .0000       10.000    
     3 'Normalizat'    .77108       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3740       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=   2034.872     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      280 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10747E-03    14.576        .15312E-01** at limit **
   2  Index         2.9302        8.3888        .50000        .20798E-04
   3  Normalizat    .77109        .79985E-02    .29046E-03   -.76479E-04
   4  Prefactor     1.3740        .95603E-02    .26699E-03   -.86416E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000107472
  Index      = 2.93016
  Normalizat = 0.771093
  Prefactor  = 1.37403
 **********
 **   18 **HESSE 
 **********

 FCN=   2034.872     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      309 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10747E-03    153.98        .16411E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.9302        5.7836        .50000       -.42681    
   3  Normalizat    .77109        .26285E-01    .11619E-04   -1.0115    
   4  Prefactor     1.3740        .31417E-01    .53398E-04   -.81132    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.45317e-08
Minuit parameter uncertainties:
  1  0.0680137
  2  523.407
  3  0.0262853
  4  0.0314178
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/549652': 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) = 2034.87192063
delta logL = -1.36395715344e-06

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  1.075e-04  6.801e-02  1.000e-04  1.000e+04 ( 1.000e-13)
347        Index:  2.930e+00  5.234e+02  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.374e+00  3.142e-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:  7.711e-01  2.629e-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/549652/cmap_HighResolution_550886401_551145601_4FGL_J1428.9+5406_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.00e-02', job_status='DONE', photon_flux_upper_limit='1.29e-07', time_completed='2021-09-09 21:03:10.712731', job_id='549652', GAL2='1.37', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1631246590.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.37', dlogl='-1.36e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='1202' AND source_name='4FGL J1428.9+5406' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 21:03:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 549652: <4FGL_J1428.9+5406_daily_bin1202> in cluster <slac> Done

Job <4FGL_J1428.9+5406_daily_bin1202> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  9 20:51:16 2021
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 20:51:19 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:19 2021
Terminated at Thu Sep  9 21:03:11 2021
Results reported at Thu Sep  9 21:03:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1428.9+5406_daily_bin1202 217.229 54.1114 550886401 551145601 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 :                                   525.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             285.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            715 sec.

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

