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


Performing analysis on: 4FGL_J1128.0+5924_daily_bin1215
RA = 172.003, Dec = 59.4015
tmin = 554256001, tmax = 554515201
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='822796', job_status='RUN', time_executed='2021-09-03 22:39:40.375657', time_epoch_executed='1630733980.38' WHERE source_name='4FGL J1128.0+5924' and cadence='daily' and bin_id='1215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/822796

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/822796/ft1_4FGL_J1128.0+5924_daily_bin1215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/822796/ft2_4FGL_J1128.0+5924_daily_bin1215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/822796/ft1_4FGL_J1128.0+5924_daily_bin1215.fits outfile=/scratch/kocevski/822796/ft1_filteredMKT_4FGL_J1128.0+5924_daily_bin1215.fits ra=172.003 dec=59.4015 rad=12.0 tmin=554256001.0 tmax=554515201.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 4.08
user 3.86
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/822796/ft2_4FGL_J1128.0+5924_daily_bin1215.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/822796/ft1_filteredMKT_4FGL_J1128.0+5924_daily_bin1215.fits evtable="EVENTS" outfile="/scratch/kocevski/822796/ft1_filtered_4FGL_J1128.0+5924_daily_bin1215.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.51
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/822796/ft1_filtered_4FGL_J1128.0+5924_daily_bin1215.fits" evtable="EVENTS" scfile=/scratch/kocevski/822796/ft2_4FGL_J1128.0+5924_daily_bin1215.fits sctable="SC_DATA" outfile=/scratch/kocevski/822796/ltcube_554256001_554515201_4FGL_J1128.0+5924_daily_bin1215.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/822796/ft2_4FGL_J1128.0+5924_daily_bin1215.fits
.....................!
real 17.07
user 16.70
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/822796/ft1_filtered_4FGL_J1128.0+5924_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/822796/ft2_4FGL_J1128.0+5924_daily_bin1215.fits sctable="SC_DATA" expcube=/scratch/kocevski/822796/ltcube_554256001_554515201_4FGL_J1128.0+5924_daily_bin1215.fits outfile=/scratch/kocevski/822796/expmap_554256001_554515201_4FGL_J1128.0+5924_daily_bin1215.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/822796/ltcube_554256001_554515201_4FGL_J1128.0+5924_daily_bin1215.fits
.....................!
real 192.76
user 186.56
sys 4.74

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/822796/ft1_filtered_4FGL_J1128.0+5924_daily_bin1215.fits scfile=/scratch/kocevski/822796/ft2_4FGL_J1128.0+5924_daily_bin1215.fits outfile=/scratch/kocevski/822796/cmap_554256001_554515201_4FGL_J1128.0+5924_daily_bin1215.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.59
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/822796/ft1_filtered_4FGL_J1128.0+5924_daily_bin1215.fits scfile=/scratch/kocevski/822796/ft2_4FGL_J1128.0+5924_daily_bin1215.fits outfile=/scratch/kocevski/822796/cmap_HighResolution_554256001_554515201_4FGL_J1128.0+5924_daily_bin1215.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.58
user 0.38
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/822796/ft1_filtered_4FGL_J1128.0+5924_daily_bin1215.fits', '/scratch/kocevski/822796/ft2_4FGL_J1128.0+5924_daily_bin1215.fits', expMap='/scratch/kocevski/822796/expmap_554256001_554515201_4FGL_J1128.0+5924_daily_bin1215.fits', expCube='/scratch/kocevski/822796/ltcube_554256001_554515201_4FGL_J1128.0+5924_daily_bin1215.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/822796/Model_4FGL_J1128.0+5924_daily_bin1215.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/822796/ft1_filtered_4FGL_J1128.0+5924_daily_bin1215.fits
Spacecraft file(s): /scratch/kocevski/822796/ft2_4FGL_J1128.0+5924_daily_bin1215.fits
Exposure map: /scratch/kocevski/822796/expmap_554256001_554515201_4FGL_J1128.0+5924_daily_bin1215.fits
Exposure cube: /scratch/kocevski/822796/ltcube_554256001_554515201_4FGL_J1128.0+5924_daily_bin1215.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/822796/Model_4FGL_J1128.0+5924_daily_bin1215.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) = 24.141185378

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10533E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10632E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11112E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10566E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10891E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10278E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10365E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    1817.7       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10387E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .13934E-02   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    34 'Prefactor '    .10170E-08   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=   20.65718     FROM MIGRAD    STATUS=CONVERGED    844 CALLS     3970 TOTAL
                     EDM=   .62E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    44.879        .22030E-06** at limit **
   2  Prefactor     .10000E-03    6235.1       -.92136E-03** at limit **
   3  norm          .10000E-03    1147.7       -.16491E-03** at limit **
   4  Prefactor     .10000E-03    671.09        .23211E-03** at limit **
   5  norm          .10000E-03    106.05       -.10586E-04** at limit **
   6  norm          .10000E-03    125.55        .43467E-04** at limit **
   7  Prefactor     .10000E-03    7633.3       -.14740E-02** at limit **
   8  Prefactor     .10000E-03    8925.6       -.16762E-02** at limit **
   9  norm          .10000E-03    54.086       -.12733E-05** at limit **
  10  Prefactor     .10000E-03    8728.3       -.16522E-02** at limit **
  11  norm          .10000E-03    152.25       -.14584E-04** at limit **
  12  Prefactor     .10000E-03    126.55        .43449E-04** at limit **
  13  Prefactor     .10000E-03    6813.5       -.12334E-02** at limit **
  14  Prefactor     .10000E-03    1032.3       -.65231E-04** at limit **
  15  Prefactor     .10000E-03    2222.5       -.82441E-03** at limit **
  16  norm          .10000E-03    1432.1       -.38694E-03** at limit **
  17  Prefactor     .10000E-03    323.12        .57857E-04** at limit **
  18  Prefactor     .10000E-03    951.71        .63125E-05** at limit **
  19  Prefactor     .10000E-03    653.15        .24231E-03** at limit **
  20  Prefactor     .10000E-03    114.65        .26342E-04** at limit **
  21  norm          .10000E-03    600.28        .26565E-03** at limit **
  22  Prefactor     .10000E-03    33.092       -.38020E-08** at limit **
  23  norm          .10000E-03    147.12        .21833E-05** at limit **
  24  Prefactor     .10000E-03    151.45       -.11929E-04** at limit **
  25  Prefactor     .10000E-03    269.62       -.58390E-04** at limit **
  26  Prefactor     .10000E-03    833.21        .11046E-03** at limit **
  27  norm          .10000E-03    93.626       -.70476E-04** at limit **
  28  Prefactor     1817.4        1281.7       -.76465E-04    .66147E-05
  29  Prefactor     .10000E-03    2233.0       -.82842E-03** at limit **
  30  Prefactor     .10000E-03    231.14       -.12108E-03** at limit **
  31  norm          .10000E-03    79.517        .27904E-04** at limit **
  32  Prefactor     .10001E-03    6340.6       -.28911E-03** at limit **
  33  Normalizat    .10000E-01    .39208        .54208E-06** at limit **
  34  Prefactor     .16820E-11    .50451        .82045E-06** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1817.45
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100005
  Normalizat = 0.01
  Prefactor  = 1.68199e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   20.65718     FROM HESSE     STATUS=OK           698 CALLS     4668 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    44.879        .30115E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6235.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1147.7        .15525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    671.09        .11771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    106.05        .46339E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    125.55        .50436E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7633.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8925.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    54.086        .33065E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8728.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    152.25        .55567E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    126.55        .50639E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6813.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1032.3        .14693E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2222.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1432.1        .17433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    323.12        .81186E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    951.71        .14087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    653.17        .11609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    114.65        .48188E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    600.29        .11119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    33.092        .25854E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    147.12        .54618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    151.45        .55420E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    269.62        .74092E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    833.25        .13153E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    93.626        .43532E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1817.4        1281.5        .51859E-04   -.68997    
  29  Prefactor     .10000E-03    2232.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    231.13        .68556E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          .10000E-03    79.518        .40109E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10001E-03    6340.8        .20528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .10000E-01    .39206        .89580E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .16820E-11    .50445        .10176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25706e-11
Minuit parameter uncertainties:
  1  6.02891e-06
  2  1.24907e-05
  3  7.41323e-06
  4  2.47055e-05
  5  5.26794e-06
  6  2.41973e-06
  7  6.61969e-05
  8  0.00012987
  9  2.30455e-05
  10  9.04565e-05
  11  3.7057e-06
  12  5.10435e-05
  13  3.45254e-05
  14  3.27983e-05
  15  2.6269e-05
  16  9.49442e-06
  17  2.73999e-05
  18  8.32189e-05
  19  0.000144196
  20  4.58516e-05
  21  5.45631e-05
  22  1.96069e-08
  23  9.08615e-05
  24  7.51766e-08
  25  0.000159417
  26  0.000530771
  27  1.33951e-05
  28  1306.32
  29  0.00162516
  30  7.23337e-05
  31  4.18085e-05
  32  0.00792098
  33  1.08404e-06
  34  1.85811e-06
Done.

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

Extracting fit parameters...

4FGL J1128.0+5924
   Spectrum: PowerLaw
393    Prefactor:  1.000e-04  8.322e-05  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.682e-12  1.858e-06  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:  1.000e-02  1.084e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 172.003 59.401
Photon Flux Upper Limit: 6.86e-06 ph cm-2 s-1
Energy Flux Upper Limit: 5.33e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/822796/likelihoodResults_554256001_554515201_4FGL_J1128.0+5924_daily_bin1215.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) = 20.6571884386
delta logL = -5.16823788033e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 20.6571881222
delta logL = -4.85177277199e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96238E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4724       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .10499E-07   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=   20.65718     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      224 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10022E-03    712.85        .14126E-01** at limit **
   2  Index         3.0011        5.8950        .50000        .58414E-06
   3  Normalizat    .10000E-01    .11115E-02    .89581E-03** at limit **
   4  Prefactor     .62972E-11    .14356E-02    .10176E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100217
  Index      = 3.0011
  Normalizat = 0.01
  Prefactor  = 6.29718e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   20.65718     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      253 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10022E-03    8435.2        .10271E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0011        6.3201        .50000       -.41128    
   3  Normalizat    .10000E-01    .15028E-01    .17916E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .62972E-11    .19408E-01    .20352E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.33074e-07
Minuit parameter uncertainties:
  1  0.0910999
  2  4470.48
  3  1.56658e-07
  4  6.99431e-07
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/822796': 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) = 20.6571833154
delta logL = -4.50057484613e-08

Extracting fit parameters...

4FGL J1128.0+5924
   Spectrum: PowerLaw
393    Prefactor:  1.002e-04  9.110e-02  1.000e-04  1.000e+04 ( 1.000e-13)
394        Index:  3.001e+00  4.470e+03  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:  6.297e-12  6.994e-07  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:  1.000e-02  1.567e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 172.003 59.401

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/822796/cmap_HighResolution_554256001_554515201_4FGL_J1128.0+5924_daily_bin1215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.33e-01', job_status='DONE', photon_flux_upper_limit='6.86e-06', time_completed='2021-09-03 22:45:40.106068', job_id='822796', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630734340.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='-4.50e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.47' WHERE bin_id='1215' AND source_name='4FGL J1128.0+5924' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 22:45:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 822796: <4FGL_J1128.0+5924_daily_bin1215> in cluster <slac> Done

Job <4FGL_J1128.0+5924_daily_bin1215> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 22:35:58 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 22:36:24 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:36:24 2021
Terminated at Fri Sep  3 22:45:40 2021
Results reported at Fri Sep  3 22:45:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1128.0+5924_daily_bin1215 172.003 59.4015 554256001 554515201 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 :                                   355.61 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             192.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   567 sec.
    Turnaround time :                            582 sec.

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

