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


Performing analysis on: 4FGL_J1128.0+5924_daily_bin680
RA = 172.003, Dec = 59.4015
tmin = 415584001, tmax = 415843201
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='818581', job_status='RUN', time_executed='2021-09-03 22:21:36.741941', time_epoch_executed='1630732896.74' WHERE source_name='4FGL J1128.0+5924' and cadence='daily' and bin_id='680'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/818581

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/818581/ft1_4FGL_J1128.0+5924_daily_bin680.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/818581/ft2_4FGL_J1128.0+5924_daily_bin680.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/818581/ft1_4FGL_J1128.0+5924_daily_bin680.fits outfile=/scratch/kocevski/818581/ft1_filteredMKT_4FGL_J1128.0+5924_daily_bin680.fits ra=172.003 dec=59.4015 rad=12.0 tmin=415584001.0 tmax=415843201.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 6.36
user 6.13
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/818581/ft2_4FGL_J1128.0+5924_daily_bin680.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/818581/ft2_4FGL_J1128.0+5924_daily_bin680.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/818581/ft1_filteredMKT_4FGL_J1128.0+5924_daily_bin680.fits evtable="EVENTS" outfile="/scratch/kocevski/818581/ft1_filtered_4FGL_J1128.0+5924_daily_bin680.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.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/818581/ft1_filtered_4FGL_J1128.0+5924_daily_bin680.fits" evtable="EVENTS" scfile=/scratch/kocevski/818581/ft2_4FGL_J1128.0+5924_daily_bin680.fits sctable="SC_DATA" outfile=/scratch/kocevski/818581/ltcube_415584001_415843201_4FGL_J1128.0+5924_daily_bin680.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/818581/ft2_4FGL_J1128.0+5924_daily_bin680.fits
.....................!
real 14.84
user 14.47
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/818581/ft1_filtered_4FGL_J1128.0+5924_daily_bin680.fits evtable="EVENTS" scfile=/scratch/kocevski/818581/ft2_4FGL_J1128.0+5924_daily_bin680.fits sctable="SC_DATA" expcube=/scratch/kocevski/818581/ltcube_415584001_415843201_4FGL_J1128.0+5924_daily_bin680.fits outfile=/scratch/kocevski/818581/expmap_415584001_415843201_4FGL_J1128.0+5924_daily_bin680.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/818581/ltcube_415584001_415843201_4FGL_J1128.0+5924_daily_bin680.fits
.....................!
real 193.51
user 188.53
sys 4.52

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

Setting source of interest to:
4FGL J1128.0+5924 @ 172.003 59.4015

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/818581/ft1_filtered_4FGL_J1128.0+5924_daily_bin680.fits scfile=/scratch/kocevski/818581/ft2_4FGL_J1128.0+5924_daily_bin680.fits outfile=/scratch/kocevski/818581/cmap_415584001_415843201_4FGL_J1128.0+5924_daily_bin680.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=172.003 yref=59.4015 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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/818581/ft1_filtered_4FGL_J1128.0+5924_daily_bin680.fits scfile=/scratch/kocevski/818581/ft2_4FGL_J1128.0+5924_daily_bin680.fits outfile=/scratch/kocevski/818581/cmap_HighResolution_415584001_415843201_4FGL_J1128.0+5924_daily_bin680.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=172.003 yref=59.4015 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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/818581/ft1_filtered_4FGL_J1128.0+5924_daily_bin680.fits evtable="EVENTS" scfile=/scratch/kocevski/818581/ft2_4FGL_J1128.0+5924_daily_bin680.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/818581/Model_4FGL_J1128.0+5924_daily_bin680.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/818581/ft1_filtered_4FGL_J1128.0+5924_daily_bin680.fits.....................!
real 29.95
user 28.70
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/818581/ft1_filtered_4FGL_J1128.0+5924_daily_bin680.fits', '/scratch/kocevski/818581/ft2_4FGL_J1128.0+5924_daily_bin680.fits', expMap='/scratch/kocevski/818581/expmap_415584001_415843201_4FGL_J1128.0+5924_daily_bin680.fits', expCube='/scratch/kocevski/818581/ltcube_415584001_415843201_4FGL_J1128.0+5924_daily_bin680.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/818581/Model_4FGL_J1128.0+5924_daily_bin680.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1128.0+5924'

4FGL J1128.0+5924
   Spectrum: PowerLaw
393    Prefactor:  9.727e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
394        Index:  2.472e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
395        Scale:  8.136e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/818581/ft1_filtered_4FGL_J1128.0+5924_daily_bin680.fits
Spacecraft file(s): /scratch/kocevski/818581/ft2_4FGL_J1128.0+5924_daily_bin680.fits
Exposure map: /scratch/kocevski/818581/expmap_415584001_415843201_4FGL_J1128.0+5924_daily_bin680.fits
Exposure cube: /scratch/kocevski/818581/ltcube_415584001_415843201_4FGL_J1128.0+5924_daily_bin680.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/818581/Model_4FGL_J1128.0+5924_daily_bin680.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) = 2302.18512259

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3518       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10245E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    42.400       1.0000         .10000E-03   10000.    
     5 'norm      '    3.0666       1.0000         .10000E-03   10000.    
     6 'norm      '    .15473E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    178.87       1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13078E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    84.930       1.0000         .10000E-03   10000.    
    15 'Prefactor '    106.72       1.0000         .10000E-03   10000.    
    16 'norm      '    120.43       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    46.744       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11585E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.7452       1.0000         .10000E-03   10000.    
    23 'norm      '    4.5532       1.0000         .10000E-03   10000.    
    24 'Prefactor '    43.134       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .38796E-01   1.0000         .10000E-03   10000.    
    28 'Prefactor '    96.367       1.0000         .10000E-03   10000.    
    29 'Prefactor '    116.43       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    4.5642       1.0000         .10000E-03   10000.    
    32 'Prefactor '    64.309       1.0000         .10000E-03   10000.    
    33 'Normalizat'    .43575       1.0000         .10000E-01   10.000    
    34 'Prefactor '    1.1416       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2302.139     FROM MIGRAD    STATUS=CONVERGED    932 CALLS     4895 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3513        1.5194        .10127E-06    .43019E-04
   2  Prefactor     .10000E-03    36.928       -.56005E-06** at limit **
   3  norm          .10000E-03    121.65       -.40461E-05** at limit **
   4  Prefactor     42.506        64.994        .81938E-05    .47380E-04
   5  norm          3.0578        8.6628       -.26119E-05   -.91182E-04
   6  norm          .10000E-03    2.4335        .68077E-06** at limit **
   7  Prefactor     .10000E-03    236.40        .64167E-05** at limit **
   8  Prefactor     178.89        173.72        .44878E-05   -.21796E-05
   9  norm          .10000E-03    4.3732        .63555E-07** at limit **
  10  Prefactor     .10000E-03    216.93        .10309E-04** at limit **
  11  norm          .10000E-03    2.2950        .18075E-06** at limit **
  12  Prefactor     .10000E-03    8.0731       -.11733E-07** at limit **
  13  Prefactor     .10000E-03    39.129        .19229E-05** at limit **
  14  Prefactor     84.952        60.610        .11152E-05   -.10512E-04
  15  Prefactor     106.71        115.42       -.56244E-06   -.32872E-05
  16  norm          120.44        121.44        .79078E-06    .14352E-05
  17  Prefactor     .10000E-03    4.6807        .27108E-07** at limit **
  18  Prefactor     46.741        54.010       -.12894E-07   -.15123E-04
  19  Prefactor     .10000E-03    281.25       -.90268E-05** at limit **
  20  Prefactor     .10000E-03    3.5780       -.40833E-08** at limit **
  21  norm          .10000E-03    44.643       -.43344E-06** at limit **
  22  Prefactor     1.7356        13.922        .95139E-05   -.49299E-04
  23  norm          4.5523        7.4436        .99277E-06   -.33342E-04
  24  Prefactor     43.201        66.993       -.10542E-04   -.93248E-04
  25  Prefactor     .10000E-03    8.9560        .17034E-08** at limit **
  26  Prefactor     .10000E-03    23.231       -.66190E-09** at limit **
  27  norm          .43585E-01    1.9979        .10118E-05   -.10965E-02
  28  Prefactor     96.350        73.489        .41425E-06   -.18456E-04
  29  Prefactor     116.41        148.27       -.50817E-06   -.29940E-04
  30  Prefactor     .10000E-03    3.3220       -.23388E-07** at limit **
  31  norm          4.5640        2.9434        .10765E-06   -.34106E-04
  32  Prefactor     64.337        63.020        .28902E-05    .24034E-05
  33  Normalizat    .43537        .28997       -.10260E-04   -.10943E-03
  34  Prefactor     1.1421        .32251        .26689E-05   -.25159E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.35125
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 42.5062
  norm       = 3.05785
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 178.894
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 84.9519
  Prefactor  = 106.713
  norm       = 120.44
  Prefactor  = 0.0001
  Prefactor  = 46.741
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.73557
  norm       = 4.55232
  Prefactor  = 43.201
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0435846
  Prefactor  = 96.3503
  Prefactor  = 116.407
  Prefactor  = 0.0001
  norm       = 4.56396
  Prefactor  = 64.3367
  Normalizat = 0.435371
  Prefactor  = 1.14212
 **********
 **   18 **HESSE 
 **********

 FCN=   2302.139     FROM HESSE     STATUS=OK           726 CALLS     5621 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3513        1.5030        .60054E-04   -1.5475    
   2  Prefactor     .10000E-03    37.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    123.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     42.506        65.291        .61565E-04   -1.4403    
   5  norm          3.0578        8.6532        .13602E-03   -1.5358    
   6  norm          .10000E-03    5.0123        .14367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    236.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     178.89        173.96        .15090E-03   -1.3025    
   9  norm          .10000E-03    4.5630        .19591E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    216.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.3022        .70882E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.1588        .13311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    39.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     84.952        60.577        .43590E-04   -1.3862    
  15  Prefactor     106.71        115.43        .38929E-04   -1.3638    
  16  norm          120.44        121.60        .18336E-03   -1.3509    
  17  Prefactor     .10000E-03    4.6875        .10136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     46.741        53.979        .58646E-04   -1.4340    
  19  Prefactor     .10000E-03    291.12        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.5810        .88644E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    45.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.7356        14.184        .22329E-03   -1.5444    
  23  norm          4.5523        7.4197        .15967E-03   -1.5281    
  24  Prefactor     43.201        67.172        .61041E-04   -1.4392    
  25  Prefactor     .10000E-03    8.9603        .14018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    23.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .43585E-01    35.485        .12493E-02   -1.5666    
  28  Prefactor     96.350        73.650        .40945E-04   -1.3742    
  29  Prefactor     116.41        148.44        .18644E-03   -1.3546    
  30  Prefactor     .10000E-03    3.3280        .85389E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          4.5640        2.9435        .63990E-04   -1.5281    
  32  Prefactor     64.337        63.003        .25021E-03   -1.4102    
  33  Normalizat    .43537        .32255        .31318E-03   -1.1551    
  34  Prefactor     1.1421        .36594        .24825E-03   -.88131    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65709e-08
Minuit parameter uncertainties:
  1  1.50307
  2  1.21512e-05
  3  0.000557552
  4  65.4009
  5  8.6567
  6  0.00023892
  7  0.000317142
  8  174.466
  9  2.78056e-05
  10  0.000407965
  11  5.26832e-06
  12  3.69732e-05
  13  3.65072e-05
  14  60.6213
  15  115.673
  16  121.858
  17  3.96361e-07
  18  54.0357
  19  0.00212164
  20  6.06201e-06
  21  1.77274e-05
  22  9.92613
  23  7.42124
  24  67.2896
  25  2.45973e-06
  26  1.94629e-05
  27  2.48587
  28  73.7199
  29  148.919
  30  8.03906e-06
  31  2.94355
  32  63.068
  33  0.323936
  34  0.366749
Done.

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

Extracting fit parameters...

4FGL J1128.0+5924
   Spectrum: PowerLaw
393    Prefactor:  4.674e+01  5.404e+01  1.000e-04  1.000e+04 ( 1.000e-13)
394        Index:  2.472e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
395        Scale:  8.136e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
750    Prefactor:  1.142e+00  3.667e-01  0.000e+00  1.000e+01 ( 1.000e+00)
751        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
752        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
749   Normalization:  4.354e-01  3.239e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.44
Ra Dec: 172.003 59.401
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 5.66e-08 +/- 6.54e-08
Energy Flux (Fixed Index): 1.70e-05 +/- 1.96e-05

TS (Fixed Index): 1.44
Ra Dec: 172.003 59.401
Photon Flux Upper Limit: 2.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.74e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/818581/likelihoodResults_415584001_415843201_4FGL_J1128.0+5924_daily_bin680.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) = 2301.75035502
delta logL = 0.388695402884

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2301.71913747
delta logL = 0.41991295516

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7281       1.0000         .10000E-03   10000.    
     2 'Index     '    4.7018       1.0000          .0000       10.000    
     3 'Normalizat'    .35269       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2223       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7530E+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=   2301.719     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      297 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7301        89.588        .61107E-04    .46475E-02
   2  Index         4.7031        7.3173        .39104E-02    .71508E-03
   3  Normalizat    .35202        .27735        .34637E-03    .33504E-03
   4  Prefactor     1.2229        .33720        .24095E-03    .46800E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.73015
  Index      = 4.70307
  Normalizat = 0.352022
  Prefactor  = 1.22289
 **********
 **   18 **HESSE 
 **********

 FCN=   2301.719     FROM HESSE     STATUS=OK            23 CALLS      320 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7301        18.520        .12221E-04   -1.5377    
   2  Index         4.7031        2.8654        .15642E-03   -.59420E-01
   3  Normalizat    .35202        .29250        .13855E-04   -1.1986    
   4  Prefactor     1.2229        .36017        .48191E-04   -.85630    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.19398e-09
Minuit parameter uncertainties:
  1  14.2274
  2  3.05205
  3  0.293783
  4  0.360901
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/818581': 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) = 2301.71913042
delta logL = 0.419920002298

Extracting fit parameters...

4FGL J1128.0+5924
   Spectrum: PowerLaw
393    Prefactor:  2.730e+00  1.423e+01  1.000e-04  1.000e+04 ( 1.000e-13)
394        Index:  4.703e+00  3.052e+00  0.000e+00  1.000e+01 (-1.000e+00)
395        Scale:  8.136e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
750    Prefactor:  1.223e+00  3.609e-01  0.000e+00  1.000e+01 ( 1.000e+00)
751        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
752        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
749   Normalization:  3.520e-01  2.938e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.44
Ra Dec: 172.003 59.401
Photon Index (Free Index): 4.70 +/- 3.05
Photon Flux (Free Index): 1.42e-07 +/- 1.30e-07
Energy Flux (Free Index): 1.94e-05 +/- 1.60e-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/818581/cmap_HighResolution_415584001_415843201_4FGL_J1128.0+5924_daily_bin680.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.74e-02', comment='SUCCESS', photon_flux='5.66e-08', energy_flux2='1.94e-05', photon_flux_error='6.54e-08', dlogl='4.20e-01', energy_flux='1.70e-05', photon_flux2='1.42e-07', job_status='DONE', time_completed='2021-09-03 22:32:59.170216', photon_index_error2='3.05', photon_index2='4.70', ts='1.44', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='2.24e-07', energy_flux_error2='1.60e-05', EG='0.44', time_epoch_completed='1630733579.17', return_code='0', job_id='818581', GAL2='1.22', EG2='0.35', return_code2='0', energy_flux_error='1.96e-05', photon_flux_error2='1.30e-07', ts2='2.44', photon_index='2.47' WHERE bin_id='680' AND source_name='4FGL J1128.0+5924' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 22:32:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 818581: <4FGL_J1128.0+5924_daily_bin680> in cluster <slac> Done

Job <4FGL_J1128.0+5924_daily_bin680> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep  3 22:21:14 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 22:21:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 22:21:22 2021
Terminated at Fri Sep  3 22:32:59 2021
Results reported at Fri Sep  3 22:32:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1128.0+5924_daily_bin680 172.003 59.4015 415584001 415843201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1128.0+5924 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   675.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             319.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   697 sec.
    Turnaround time :                            705 sec.

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

