/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 191 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 = 7394
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1428.9+5406_daily_bin61
RA = 217.229, Dec = 54.1114
tmin = 255139201, tmax = 255398401
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='542159', job_status='RUN', time_executed='2021-09-09 20:29:38.382818', time_epoch_executed='1631244578.38' WHERE source_name='4FGL J1428.9+5406' and cadence='daily' and bin_id='61'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/542159

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/542159/ft1_4FGL_J1428.9+5406_daily_bin61.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/542159/ft2_4FGL_J1428.9+5406_daily_bin61.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/542159/ft1_4FGL_J1428.9+5406_daily_bin61.fits outfile=/scratch/kocevski/542159/ft1_filteredMKT_4FGL_J1428.9+5406_daily_bin61.fits ra=217.229 dec=54.1114 rad=12.0 tmin=255139201.0 tmax=255398401.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.63
user 7.33
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/542159/ft1_filtered_4FGL_J1428.9+5406_daily_bin61.fits" evtable="EVENTS" scfile=/scratch/kocevski/542159/ft2_4FGL_J1428.9+5406_daily_bin61.fits sctable="SC_DATA" outfile=/scratch/kocevski/542159/ltcube_255139201_255398401_4FGL_J1428.9+5406_daily_bin61.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/542159/ft2_4FGL_J1428.9+5406_daily_bin61.fits
.....................!
real 11.93
user 11.55
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/542159/ft1_filtered_4FGL_J1428.9+5406_daily_bin61.fits evtable="EVENTS" scfile=/scratch/kocevski/542159/ft2_4FGL_J1428.9+5406_daily_bin61.fits sctable="SC_DATA" expcube=/scratch/kocevski/542159/ltcube_255139201_255398401_4FGL_J1428.9+5406_daily_bin61.fits outfile=/scratch/kocevski/542159/expmap_255139201_255398401_4FGL_J1428.9+5406_daily_bin61.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/542159/ltcube_255139201_255398401_4FGL_J1428.9+5406_daily_bin61.fits
.....................!
real 190.53
user 185.04
sys 5.09

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/542159/ft1_filtered_4FGL_J1428.9+5406_daily_bin61.fits scfile=/scratch/kocevski/542159/ft2_4FGL_J1428.9+5406_daily_bin61.fits outfile=/scratch/kocevski/542159/cmap_255139201_255398401_4FGL_J1428.9+5406_daily_bin61.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/542159/ft1_filtered_4FGL_J1428.9+5406_daily_bin61.fits scfile=/scratch/kocevski/542159/ft2_4FGL_J1428.9+5406_daily_bin61.fits outfile=/scratch/kocevski/542159/cmap_HighResolution_255139201_255398401_4FGL_J1428.9+5406_daily_bin61.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.57
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    48.614       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.651       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .17252E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    42.539       1.0000         .10000E-03   10000.    
     7 'norm      '    .60995       1.0000         .10000E-03   10000.    
     8 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.7674       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.945       1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.493       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.0592       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.0667       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10621E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.044       1.0000         .10000E-03   10000.    
    23 'norm      '    1.8680       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10413E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.9527       1.0000         .10000E-03   10000.    
    26 'Prefactor '    12.282       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .97019       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .97914       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=   4614.243     FROM MIGRAD    STATUS=CONVERGED    737 CALLS     3778 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.630        58.050        .56936E-06    .33756E-04
   2  Prefactor     15.655        22.231       -.14593E-05    .83264E-04
   3  Prefactor     .10000E-03    17.454        .45572E-06** at limit **
   4  norm          .10024E-03    3.8290       -.10002E-05** at limit **
   5  Prefactor     .10001E-03    340.50       -.62255E-05** at limit **
   6  Prefactor     42.545        43.931       -.80932E-06   -.62480E-04
   7  norm          .61018        1.3322        .73639E-06    .12483E-02
   8  norm          .10000E-03    31.869        .19019E-06** at limit **
   9  norm          2.7678        2.9127       -.13859E-06   -.11795E-03
  10  Prefactor     .10000E-03    214.14        .14047E-05** at limit **
  11  Prefactor     21.932        107.09       -.66129E-06   -.18324E-04
  12  Prefactor     23.515        49.660        .13444E-06   -.17240E-04
  13  Prefactor     .10000E-03    2.9823        .12168E-06** at limit **
  14  Prefactor     6.0656        21.893        .10800E-05   -.22757E-04
  15  Prefactor     3.0682        4.1038        .22728E-06   -.37295E-04
  16  Prefactor     .10000E-03    28.583        .53700E-06** at limit **
  17  Prefactor     .10000E-03    22.248       -.49319E-07** at limit **
  18  Prefactor     .10000E-03    43.102       -.20814E-06** at limit **
  19  Prefactor     .10000E-03    12.375        .45896E-07** at limit **
  20  Prefactor     .10000E-03    10.182        .53825E-07** at limit **
  21  Prefactor     .10018E-03    13.990        .26950E-05** at limit **
  22  Prefactor     13.045        19.212        .25901E-06   -.23924E-04
  23  norm          1.8682        1.4506       -.10352E-08   -.59674E-04
  24  Prefactor     .10000E-03    14.535       -.79283E-06** at limit **
  25  Prefactor     3.9532        6.2449        .54940E-06    .56797E-04
  26  Prefactor     12.283        10.306        .17508E-05    .29302E-03
  27  norm          .10000E-03    3.3912        .29922E-07** at limit **
  28  Normalizat    .97008        .20459       -.24391E-05   -.17546E-03
  29  Prefactor     .97929        .21181        .33449E-06   -.22733E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.63
  Prefactor  = 15.6552
  Prefactor  = 0.0001
  norm       = 0.000100243
  Prefactor  = 0.000100012
  Prefactor  = 42.5449
  norm       = 0.610176
  norm       = 0.0001
  norm       = 2.76777
  Prefactor  = 0.000100005
  Prefactor  = 21.9323
  Prefactor  = 23.5146
  Prefactor  = 0.0001
  Prefactor  = 6.06559
  Prefactor  = 3.0682
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100176
  Prefactor  = 13.045
  norm       = 1.86816
  Prefactor  = 0.0001
  Prefactor  = 3.95316
  Prefactor  = 12.2831
  norm       = 0.0001
  Normalizat = 0.970077
  Prefactor  = 0.979285
 **********
 **   18 **HESSE 
 **********

 FCN=   4614.243     FROM HESSE     STATUS=OK           551 CALLS     4329 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.630        57.811        .57513E-04   -1.4312    
   2  Prefactor     15.655        20.093        .10124E-03   -1.4916    
   3  Prefactor     .10000E-03    17.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10024E-03    21.522        .21990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    343.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     42.545        44.116        .61464E-04   -1.4403    
   7  norm          .61018        1.2164        .11905E-02   -1.5552    
   8  norm          .10000E-03    31.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.7678        2.9117        .11469E-03   -1.5375    
  10  Prefactor     .10000E-03    214.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     21.932        105.16        .85502E-04   -1.4771    
  12  Prefactor     23.515        49.620        .82642E-04   -1.4738    
  13  Prefactor     .10000E-03    3.0027        .11449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.0656        22.017        .16311E-03   -1.5215    
  15  Prefactor     3.0682        4.0586        .12464E-03   -1.5358    
  16  Prefactor     .10000E-03    28.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    22.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    43.201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10018E-03    66.641        .46366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.045        19.155        .11091E-03   -1.4985    
  23  norm          1.8682        1.4489        .68249E-04   -1.5435    
  24  Prefactor     .10000E-03    14.931        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.9532        6.2204        .20163E-03   -1.5310    
  26  Prefactor     12.283        10.227        .57151E-03   -1.5007    
  27  norm          .10000E-03    3.4181        .12214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .97008        .24133        .22695E-03   -.94040    
  29  Prefactor     .97929        .25167        .26121E-03   -.93423    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44814e-08
Minuit parameter uncertainties:
  1  57.8774
  2  20.1013
  3  0.000112104
  4  0.00457704
  5  0.00413912
  6  44.1495
  7  1.21648
  8  0.000111599
  9  2.91181
  10  0.00205117
  11  96.3276
  12  49.7073
  13  6.58409e-06
  14  22.0468
  15  4.05899
  16  0.000158286
  17  4.25115e-05
  18  0.000188072
  19  9.93119e-06
  20  1.12196e-05
  21  0.00685388
  22  19.1635
  23  1.44894
  24  0.000144234
  25  6.2214
  26  10.2286
  27  4.65615e-06
  28  0.241606
  29  0.251976
Done.

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

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  1.000e-04  4.251e-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:  9.793e-01  2.520e-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:  9.701e-01  2.416e-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: 8.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/542159/likelihoodResults_255139201_255398401_4FGL_J1428.9+5406_daily_bin61.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) = 4614.24274573
delta logL = -0.000213681348214

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4614.24253218
delta logL = -1.24893631437e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13792E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.3453       1.0000          .0000       10.000    
     3 'Normalizat'    .97007       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97929       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.

 FCN=   4614.243     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      237 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.020        .90712E-02** at limit **
   2  Index         3.3480        7.8443        .50000       -.86745E-06
   3  Normalizat    .97008        .31975E-02    .45791E-01    .34398E-03
   4  Prefactor     .97929        .37148E-02    .46008E-01    .20015E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 3.34797
  Normalizat = 0.970077
  Prefactor  = 0.979286
 **********
 **   18 **HESSE 
 **********

 FCN=   4614.243     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      266 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    919.20        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.3480        6.3834        .50000       -.33673    
   3  Normalizat    .97008        .26564E-01    .22695E-03   -.94040    
   4  Prefactor     .97929        .30860E-01    .26121E-03   -.93423    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.28952e-08
Minuit parameter uncertainties:
  1  0.00239006
  2  903.845
  3  0.0265641
  4  0.0308606
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/542159': 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) = 4614.24253152
delta logL = 5.28484633833e-07

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  1.000e-04  2.390e-03  1.000e-04  1.000e+04 ( 1.000e-13)
347        Index:  3.348e+00  9.038e+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:  9.793e-01  3.086e-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:  9.701e-01  2.656e-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/542159/cmap_HighResolution_255139201_255398401_4FGL_J1428.9+5406_daily_bin61.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.69e-03', job_status='DONE', photon_flux_upper_limit='8.56e-08', time_completed='2021-09-09 20:42:52.474563', job_id='542159', GAL2='0.98', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1631245372.47', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='5.28e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='61' AND source_name='4FGL J1428.9+5406' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 20:42:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 542159: <4FGL_J1428.9+5406_daily_bin61> in cluster <slac> Done

Job <4FGL_J1428.9+5406_daily_bin61> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  9 20:26:16 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 20:26:17 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:26:17 2021
Terminated at Thu Sep  9 20:42:52 2021
Results reported at Thu Sep  9 20:42:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1428.9+5406_daily_bin61 217.229 54.1114 255139201 255398401 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 :                                   791.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             279.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            996 sec.

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

