/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 = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1428.9+5406_daily_bin213
RA = 217.229, Dec = 54.1114
tmin = 294537601, tmax = 294796801
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='542318', job_status='RUN', time_executed='2021-09-09 20:26:48.529125', time_epoch_executed='1631244408.53' WHERE source_name='4FGL J1428.9+5406' and cadence='daily' and bin_id='213'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/542318

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/542318/ft1_4FGL_J1428.9+5406_daily_bin213.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/542318/ft2_4FGL_J1428.9+5406_daily_bin213.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/542318/ft1_4FGL_J1428.9+5406_daily_bin213.fits outfile=/scratch/kocevski/542318/ft1_filteredMKT_4FGL_J1428.9+5406_daily_bin213.fits ra=217.229 dec=54.1114 rad=12.0 tmin=294537601.0 tmax=294796801.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 2.36
user 2.16
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/542318/ft2_4FGL_J1428.9+5406_daily_bin213.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/542318/ft1_filteredMKT_4FGL_J1428.9+5406_daily_bin213.fits evtable="EVENTS" outfile="/scratch/kocevski/542318/ft1_filtered_4FGL_J1428.9+5406_daily_bin213.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/542318/ft1_filtered_4FGL_J1428.9+5406_daily_bin213.fits" evtable="EVENTS" scfile=/scratch/kocevski/542318/ft2_4FGL_J1428.9+5406_daily_bin213.fits sctable="SC_DATA" outfile=/scratch/kocevski/542318/ltcube_294537601_294796801_4FGL_J1428.9+5406_daily_bin213.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/542318/ft2_4FGL_J1428.9+5406_daily_bin213.fits
.....................!
real 14.48
user 13.90
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/542318/ft1_filtered_4FGL_J1428.9+5406_daily_bin213.fits evtable="EVENTS" scfile=/scratch/kocevski/542318/ft2_4FGL_J1428.9+5406_daily_bin213.fits sctable="SC_DATA" expcube=/scratch/kocevski/542318/ltcube_294537601_294796801_4FGL_J1428.9+5406_daily_bin213.fits outfile=/scratch/kocevski/542318/expmap_294537601_294796801_4FGL_J1428.9+5406_daily_bin213.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/542318/ltcube_294537601_294796801_4FGL_J1428.9+5406_daily_bin213.fits
.....................!
real 190.48
user 185.39
sys 4.72

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/542318/ft1_filtered_4FGL_J1428.9+5406_daily_bin213.fits scfile=/scratch/kocevski/542318/ft2_4FGL_J1428.9+5406_daily_bin213.fits outfile=/scratch/kocevski/542318/cmap_294537601_294796801_4FGL_J1428.9+5406_daily_bin213.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=217.229 yref=54.1114 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.805       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.095       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.412       1.0000         .10000E-03   10000.    
     7 'norm      '    .16565E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.2621       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.2255       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.2817       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.368       1.0000         .10000E-03   10000.    
    26 'Prefactor '    14.071       1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .85205       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .90266       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=   4990.785     FROM MIGRAD    STATUS=CONVERGED    751 CALLS     3718 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.841        65.151        .34655E-04   -.95532E-04
   2  Prefactor     .10000E-03    7.6146       -.12220E-05** at limit **
   3  Prefactor     13.081        39.048       -.20480E-04    .10682E-04
   4  norm          .10000E-03    1.3188       -.10060E-06** at limit **
   5  Prefactor     .10000E-03    66.593        .17625E-06** at limit **
   6  Prefactor     17.436        35.635       -.41844E-05    .49965E-04
   7  norm          .10000E-03    .87058        .16089E-07** at limit **
   8  norm          .10000E-03    23.660       -.22619E-05** at limit **
   9  norm          .10000E-03    3.7351        .23100E-07** at limit **
  10  Prefactor     .10000E-03    365.41        .42706E-05** at limit **
  11  Prefactor     .10000E-03    24.274        .17873E-05** at limit **
  12  Prefactor     .10000E-03    15.524        .11119E-07** at limit **
  13  Prefactor     1.2617        3.4952       -.69256E-06   -.67917E-03
  14  Prefactor     .10000E-03    8.1596        .47396E-06** at limit **
  15  Prefactor     4.2261        2.9321        .19236E-06   -.18127E-03
  16  Prefactor     .10000E-03    21.684        .70304E-06** at limit **
  17  Prefactor     8.2811        18.163       -.25252E-05   -.63627E-03
  18  Prefactor     .10000E-03    126.32       -.82562E-06** at limit **
  19  Prefactor     .10000E-03    9.5838        .58092E-06** at limit **
  20  Prefactor     .10000E-03    11.195       -.23898E-08** at limit **
  21  Prefactor     .10000E-03    9.1979       -.64713E-06** at limit **
  22  Prefactor     .10000E-03    7.5663        .89098E-06** at limit **
  23  norm          .10000E-03    .60861        .13567E-07** at limit **
  24  Prefactor     .10000E-03    5.6823       -.19228E-07** at limit **
  25  Prefactor     10.369        7.0761       -.16062E-08   -.57913E-04
  26  Prefactor     14.074        9.9277       -.87516E-08   -.58576E-04
  27  norm          .10000E-03    5.7940       -.12762E-07** at limit **
  28  Normalizat    .85187        .16206       -.83751E-06    .51122E-04
  29  Prefactor     .90284        .18357        .89848E-06   -.56883E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.8407
  Prefactor  = 0.0001
  Prefactor  = 13.0811
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.4356
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.26169
  Prefactor  = 0.0001
  Prefactor  = 4.22611
  Prefactor  = 0.0001
  Prefactor  = 8.28108
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.3685
  Prefactor  = 14.0736
  norm       = 0.0001
  Normalizat = 0.851874
  Prefactor  = 0.902843
 **********
 **   18 **HESSE 
 **********

 FCN=   4990.785     FROM HESSE     STATUS=OK           545 CALLS     4263 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.841        63.346        .94918E-04   -1.4863    
   2  Prefactor     .10000E-03    7.6501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.081        38.370        .11069E-03   -1.4984    
   4  norm          .10000E-03    1.3272        .79225E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    67.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.436        35.749        .95983E-04   -1.4873    
   7  norm          .10000E-03    4.3328        .12808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    23.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.8961        .26617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    365.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    24.288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    15.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.2617        3.4956        .21416E-03   -1.5483    
  14  Prefactor     .10000E-03    8.1810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.2261        2.9380        .90637E-04   -1.5297    
  16  Prefactor     .10000E-03    21.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.2811        18.834        .69654E-03   -1.5132    
  18  Prefactor     .10000E-03    128.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.5851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.2162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.5794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .62708        .10759E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    5.7002        .16432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     10.369        7.0818        .12444E-03   -1.5064    
  26  Prefactor     14.074        9.9630        .10678E-03   -1.4957    
  27  norm          .10000E-03    5.8688        .16595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .85187        .19500        .21095E-03   -.98172    
  29  Prefactor     .90284        .21981        .24229E-03   -.96042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50211e-09
Minuit parameter uncertainties:
  1  63.5868
  2  8.01396e-06
  3  38.4426
  4  1.08951e-05
  5  5.51641e-05
  6  35.7934
  7  1.00603e-05
  8  0.000105727
  9  1.14668e-05
  10  0.000769611
  11  7.95803e-05
  12  6.45674e-06
  13  3.49613
  14  9.88085e-06
  15  2.93809
  16  3.61879e-07
  17  18.8476
  18  0.000210435
  19  1.46035e-05
  20  8.18456e-06
  21  2.01457e-05
  22  2.04047e-05
  23  2.7743e-07
  24  3.88606e-06
  25  7.08235
  26  9.96419
  27  2.53789e-06
  28  0.195161
  29  0.220027
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
679   Normalization:  8.519e-01  1.952e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.27
Ra Dec: 217.229 54.111
Photon Flux Upper Limit: 7.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/542318/likelihoodResults_294537601_294796801_4FGL_J1428.9+5406_daily_bin213.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): 0
logL (Free Index) = 4990.78298166
delta logL = 0.00219326927709

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4990.78247768
delta logL = 0.00269725008911

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7321       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6913       1.0000          .0000       10.000    
     3 'Normalizat'    .85011       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90420       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=   4990.782     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      219 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7321        806.00        .36053E-02    .49811E-03
   2  Index         2.6913        5.2369        .22916        .92912E-04
   3  Normalizat    .85026        .48922E-01    .44261E-01    .85750E-05
   4  Prefactor     .90403        .51902E-01    .45058E-01    .91758E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.73206
  Index      = 2.69128
  Normalizat = 0.850257
  Prefactor  = 0.904026
 **********
 **   18 **HESSE 
 **********

 FCN=   4990.782     FROM HESSE     STATUS=OK            33 CALLS      252 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7321        20.044        .14421E-03   -1.5152    
   2  Index         2.6913        1.6915        .14312E-01   -.47996    
   3  Normalizat    .85026        .18509        .21112E-03   -.98231    
   4  Prefactor     .90403        .21721        .24215E-03   -.96001    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.51845e-10
Minuit parameter uncertainties:
  1  20.0617
  2  1.73543
  3  0.18523
  4  0.217418
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/542318': 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) = 4990.78247736
delta logL = 0.00269757196111

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  7.732e+00  2.006e+01  1.000e-04  1.000e+04 ( 1.000e-13)
347        Index:  2.691e+00  1.735e+00  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.040e-01  2.174e-01  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  8.503e-01  1.852e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.27
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/542318/cmap_HighResolution_294537601_294796801_4FGL_J1428.9+5406_daily_bin213.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.25e-03', job_status='DONE', photon_flux_upper_limit='7.99e-08', time_completed='2021-09-09 20:39:47.836262', job_id='542318', GAL2='0.90', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1631245187.84', return_code2='0', ts='0.27', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='2.70e-03', ts2='0.28', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='213' AND source_name='4FGL J1428.9+5406' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 20:39:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0181>
Subject: Job 542318: <4FGL_J1428.9+5406_daily_bin213> in cluster <slac> Done

Job <4FGL_J1428.9+5406_daily_bin213> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  9 20:26:36 2021
Job was executed on host(s) <bullet0181>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 20:26: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:26:37 2021
Terminated at Thu Sep  9 20:39:48 2021
Results reported at Thu Sep  9 20:39:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1428.9+5406_daily_bin213 217.229 54.1114 294537601 294796801 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 :                                   776.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             341.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   791 sec.
    Turnaround time :                            792 sec.

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

