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


Performing analysis on: 4FGL_J1428.9+5406_daily_bin89
RA = 217.229, Dec = 54.1114
tmin = 262396801, tmax = 262656001
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='542188', job_status='RUN', time_executed='2021-09-09 20:26:38.931794', time_epoch_executed='1631244398.93' WHERE source_name='4FGL J1428.9+5406' and cadence='daily' and bin_id='89'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/542188

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/542188/ft1_4FGL_J1428.9+5406_daily_bin89.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/542188/ft2_4FGL_J1428.9+5406_daily_bin89.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/542188/ft1_4FGL_J1428.9+5406_daily_bin89.fits outfile=/scratch/kocevski/542188/ft1_filteredMKT_4FGL_J1428.9+5406_daily_bin89.fits ra=217.229 dec=54.1114 rad=12.0 tmin=262396801.0 tmax=262656001.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 1.40
user 1.23
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/542188/ft2_4FGL_J1428.9+5406_daily_bin89.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/542188/ft1_filteredMKT_4FGL_J1428.9+5406_daily_bin89.fits evtable="EVENTS" outfile="/scratch/kocevski/542188/ft1_filtered_4FGL_J1428.9+5406_daily_bin89.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.35
sys 0.12

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/542188/ft1_filtered_4FGL_J1428.9+5406_daily_bin89.fits evtable="EVENTS" scfile=/scratch/kocevski/542188/ft2_4FGL_J1428.9+5406_daily_bin89.fits sctable="SC_DATA" expcube=/scratch/kocevski/542188/ltcube_262396801_262656001_4FGL_J1428.9+5406_daily_bin89.fits outfile=/scratch/kocevski/542188/expmap_262396801_262656001_4FGL_J1428.9+5406_daily_bin89.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/542188/ltcube_262396801_262656001_4FGL_J1428.9+5406_daily_bin89.fits
.....................!
real 190.70
user 186.20
sys 4.07

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/542188/ft1_filtered_4FGL_J1428.9+5406_daily_bin89.fits scfile=/scratch/kocevski/542188/ft2_4FGL_J1428.9+5406_daily_bin89.fits outfile=/scratch/kocevski/542188/cmap_262396801_262656001_4FGL_J1428.9+5406_daily_bin89.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/542188/ft1_filtered_4FGL_J1428.9+5406_daily_bin89.fits scfile=/scratch/kocevski/542188/ft2_4FGL_J1428.9+5406_daily_bin89.fits outfile=/scratch/kocevski/542188/cmap_HighResolution_262396801_262656001_4FGL_J1428.9+5406_daily_bin89.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.56
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11300E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .42440E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    107.45       1.0000         .10000E-03   10000.    
     6 'Prefactor '    32.094       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .11630E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10391E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    62.992       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.075       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    49.833       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.622       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.548       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.9811       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    33.672       1.0000         .10000E-03   10000.    
    23 'norm      '    2.2151       1.0000         .10000E-03   10000.    
    24 'Prefactor '    2.4041       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3429       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .73388       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=   4736.974     FROM MIGRAD    STATUS=CONVERGED    758 CALLS     3786 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.292        .98040E-06** at limit **
   2  Prefactor     .10000E-03    12.616       -.18452E-06** at limit **
   3  Prefactor     .10059E-03    23.909        .18934E-05** at limit **
   4  norm          .10000E-03    2.3620       -.16148E-06** at limit **
   5  Prefactor     107.46        68.856        .14989E-05    .59241E-04
   6  Prefactor     32.080        46.797        .39393E-05    .74929E-04
   7  norm          .10000E-03    .50002        .12311E-06** at limit **
   8  norm          .10000E-03    33.978        .12980E-05** at limit **
   9  norm          .10000E-03    4.0631       -.38251E-06** at limit **
  10  Prefactor     .10000E-03    739.78       -.16258E-05** at limit **
  11  Prefactor     .10000E-03    21.212        .58387E-06** at limit **
  12  Prefactor     62.982        43.092        .15567E-05    .48533E-04
  13  Prefactor     .10000E-03    1.8026        .57573E-07** at limit **
  14  Prefactor     13.073        23.869        .44406E-05    .93398E-04
  15  Prefactor     .10000E-03    3.5119        .26760E-06** at limit **
  16  Prefactor     49.817        56.725        .54853E-05   -.10575E-04
  17  Prefactor     21.544        37.449       -.73213E-05   -.13701E-03
  18  Prefactor     .10000E-03    44.854        .26772E-07** at limit **
  19  Prefactor     10.479        80.214       -.16493E-04   -.67049E-04
  20  Prefactor     9.9817        18.710       -.10319E-05   -.41492E-04
  21  Prefactor     .10000E-03    6.8914        .40129E-06** at limit **
  22  Prefactor     33.673        23.617        .21601E-05    .11923E-03
  23  norm          2.2152        1.8543       -.10491E-06   -.60041E-04
  24  Prefactor     2.4064        7.3944        .30202E-05   -.10139E-02
  25  Prefactor     .10000E-03    2.5237        .45796E-07** at limit **
  26  Prefactor     .10000E-03    7.5142       -.42635E-07** at limit **
  27  norm          .10000E-03    2.6551       -.11829E-07** at limit **
  28  Normalizat    1.3430        .21683       -.15913E-05    .40073E-04
  29  Prefactor     .73361        .22663        .26599E-06   -.93505E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100594
  norm       = 0.0001
  Prefactor  = 107.461
  Prefactor  = 32.0798
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.9819
  Prefactor  = 0.0001
  Prefactor  = 13.0726
  Prefactor  = 0.0001
  Prefactor  = 49.8173
  Prefactor  = 21.5439
  Prefactor  = 0.0001
  Prefactor  = 10.4786
  Prefactor  = 9.98167
  Prefactor  = 0.0001
  Prefactor  = 33.6734
  norm       = 2.21515
  Prefactor  = 2.40639
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.34303
  Prefactor  = 0.733614
 **********
 **   18 **HESSE 
 **********

 FCN=   4736.974     FROM HESSE     STATUS=OK           543 CALLS     4329 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    96.568        .46377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10059E-03    226.35        .64764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.3764        .10313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     107.46        68.291        .38797E-04   -1.3631    
   6  Prefactor     32.080        46.789        .70729E-04   -1.4575    
   7  norm          .10000E-03    .50318        .47514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    33.982        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    9.1033        .26506E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    740.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    21.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     62.982        43.099        .50560E-04   -1.4119    
  13  Prefactor     .10000E-03    1.8038        .90220E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.073        24.090        .11078E-03   -1.4985    
  15  Prefactor     .10000E-03    3.6127        .25070E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     49.817        56.687        .56808E-04   -1.4295    
  17  Prefactor     21.544        37.644        .86140E-04   -1.4779    
  18  Prefactor     .10000E-03    44.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.479        79.721        .12336E-03   -1.5060    
  20  Prefactor     9.9817        18.684        .12683E-03   -1.5076    
  21  Prefactor     .10000E-03    6.8938        .17648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     33.673        23.587        .69057E-04   -1.4547    
  23  norm          2.2152        1.8544        .81539E-04   -1.5410    
  24  Prefactor     2.4064        20.278        .13203E-02   -1.5398    
  25  Prefactor     .10000E-03    2.5273        .10676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    7.5600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    2.6722        .10952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.3430        .26503        .21877E-03   -.82291    
  29  Prefactor     .73361        .27432        .32087E-03   -1.0222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10851e-08
Minuit parameter uncertainties:
  1  4.73078e-05
  2  0.00110075
  3  0.0232855
  4  1.84161e-06
  5  68.3414
  6  46.8427
  7  4.95997e-07
  8  8.60977e-05
  9  5.11791e-05
  10  0.00046841
  11  4.57695e-05
  12  43.1206
  13  3.45761e-06
  14  24.1081
  15  6.44273e-05
  16  56.7486
  17  37.6852
  18  4.92265e-05
  19  57.9127
  20  18.6946
  21  1.34526e-05
  22  23.593
  23  1.85442
  24  13.9771
  25  1.89708e-06
  26  1.5125e-05
  27  3.33702e-07
  28  0.265296
  29  0.274829
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
679   Normalization:  1.343e+00  2.653e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.46
Ra Dec: 217.229 54.111
Photon Flux Upper Limit: 1.39e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.08e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/542188/likelihoodResults_262396801_262656001_4FGL_J1428.9+5406_daily_bin89.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) = 4736.63744563
delta logL = 0.336066114425

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4736.62608672
delta logL = 0.347425023782

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.361       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4902       1.0000          .0000       10.000    
     3 'Normalizat'    1.3070       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75961       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=   4736.626     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      252 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.361        313.18        .31120E-02   -.84918E-04
   2  Index         3.4911        6.7143        .12864        .95055E-04
   3  Normalizat    1.3067        .69926E-01    .50004E-01   -.33982E-05
   4  Prefactor     .75979        .76544E-01    .71331E-01    .12991E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.3608
  Index      = 3.49109
  Normalizat = 1.30674
  Prefactor  = 0.75979
 **********
 **   18 **HESSE 
 **********

 FCN=   4736.626     FROM HESSE     STATUS=OK            33 CALLS      285 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.361        32.063        .12448E-03   -1.5064    
   2  Index         3.4911        1.7415        .66318E-02   -.30656    
   3  Normalizat    1.3067        .24473        .22107E-03   -.83365    
   4  Prefactor     .75979        .26947        .31567E-03   -1.0123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75106e-08
Minuit parameter uncertainties:
  1  32.1168
  2  1.7828
  3  0.244948
  4  0.269932
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/542188': 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) = 4736.62608537
delta logL = 0.347426371717

Extracting fit parameters...

4FGL J1428.9+5406
   Spectrum: PowerLaw
346    Prefactor:  1.036e+01  3.212e+01  1.000e-04  1.000e+04 ( 1.000e-13)
347        Index:  3.491e+00  1.783e+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:  7.598e-01  2.699e-01  0.000e+00  1.000e+01 ( 1.000e+00)
681        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
682        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
679   Normalization:  1.307e+00  2.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.19
Ra Dec: 217.229 54.111
Photon Index (Free Index): 3.49 +/- 1.78
Photon Flux (Free Index): 6.33e-08 +/- 6.58e-08
Energy Flux (Free Index): 1.06e-05 +/- 1.16e-05

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/542188/cmap_HighResolution_262396801_262656001_4FGL_J1428.9+5406_daily_bin89.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', comment='SUCCESS', energy_flux2='1.06e-05', dlogl='3.47e-01', photon_flux2='6.33e-08', job_status='DONE', time_completed='2021-09-09 20:39:25.228172', photon_index_error2='1.78', photon_index2='3.49', ts='0.46', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', photon_flux_upper_limit='1.39e-07', energy_flux_error2='1.16e-05', EG='1.34', time_epoch_completed='1631245165.23', return_code='0', job_id='542188', GAL2='0.76', EG2='1.31', return_code2='0', photon_flux_error2='6.58e-08', ts2='1.19', photon_index='2.57' WHERE bin_id='89' AND source_name='4FGL J1428.9+5406' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 20:39:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 542188: <4FGL_J1428.9+5406_daily_bin89> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1428.9+5406_daily_bin89 217.229 54.1114 262396801 262656001 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 :                                   763.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             370.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            788 sec.

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

