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


Performing analysis on: 4FGL_J1128.0+5924_daily_bin1278
RA = 172.003, Dec = 59.4015
tmin = 570585601, tmax = 570844801
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='822867', job_status='RUN', time_executed='2021-09-03 22:40:27.267716', time_epoch_executed='1630734027.27' WHERE source_name='4FGL J1128.0+5924' and cadence='daily' and bin_id='1278'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/822867

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/822867/ft1_4FGL_J1128.0+5924_daily_bin1278.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/822867/ft2_4FGL_J1128.0+5924_daily_bin1278.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/822867/ft1_4FGL_J1128.0+5924_daily_bin1278.fits outfile=/scratch/kocevski/822867/ft1_filteredMKT_4FGL_J1128.0+5924_daily_bin1278.fits ra=172.003 dec=59.4015 rad=12.0 tmin=570585601.0 tmax=570844801.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 3.04
user 2.83
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/822867/ft2_4FGL_J1128.0+5924_daily_bin1278.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/822867/ft1_filteredMKT_4FGL_J1128.0+5924_daily_bin1278.fits evtable="EVENTS" outfile="/scratch/kocevski/822867/ft1_filtered_4FGL_J1128.0+5924_daily_bin1278.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/822867/ft1_filtered_4FGL_J1128.0+5924_daily_bin1278.fits" evtable="EVENTS" scfile=/scratch/kocevski/822867/ft2_4FGL_J1128.0+5924_daily_bin1278.fits sctable="SC_DATA" outfile=/scratch/kocevski/822867/ltcube_570585601_570844801_4FGL_J1128.0+5924_daily_bin1278.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/822867/ft2_4FGL_J1128.0+5924_daily_bin1278.fits
.....................!
real 16.64
user 16.16
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/822867/ft1_filtered_4FGL_J1128.0+5924_daily_bin1278.fits evtable="EVENTS" scfile=/scratch/kocevski/822867/ft2_4FGL_J1128.0+5924_daily_bin1278.fits sctable="SC_DATA" expcube=/scratch/kocevski/822867/ltcube_570585601_570844801_4FGL_J1128.0+5924_daily_bin1278.fits outfile=/scratch/kocevski/822867/expmap_570585601_570844801_4FGL_J1128.0+5924_daily_bin1278.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/822867/ltcube_570585601_570844801_4FGL_J1128.0+5924_daily_bin1278.fits
.....................!
real 193.88
user 188.07
sys 4.64

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/822867/ft1_filtered_4FGL_J1128.0+5924_daily_bin1278.fits scfile=/scratch/kocevski/822867/ft2_4FGL_J1128.0+5924_daily_bin1278.fits outfile=/scratch/kocevski/822867/cmap_570585601_570844801_4FGL_J1128.0+5924_daily_bin1278.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.54
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/822867/ft1_filtered_4FGL_J1128.0+5924_daily_bin1278.fits scfile=/scratch/kocevski/822867/ft2_4FGL_J1128.0+5924_daily_bin1278.fits outfile=/scratch/kocevski/822867/cmap_HighResolution_570585601_570844801_4FGL_J1128.0+5924_daily_bin1278.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .14338E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    10000.       1.0000         .10000E-03   10000.    
     7 'Prefactor '    222.64       1.0000         .10000E-03   10000.    
     8 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    11 'norm      '    10000.       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    14 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .33815E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .52853E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.7012       1.0000         .10000E-03   10000.    
    21 'norm      '    10000.       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10197E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10178E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'norm      '    4.0100       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    33 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    34 'Prefactor '    .27692       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=   974.0815     FROM MIGRAD    STATUS=CONVERGED    910 CALLS     6464 TOTAL
                     EDM=   .53E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .66072        .27802E-08** at limit **
   2  Prefactor     .10000E-03    1800.5       -.12767E-02** at limit **
   3  norm          .10000E-03    30.788       -.51605E-05** at limit **
   4  Prefactor     .10000E-03    109.52       -.61636E-04** at limit **
   5  norm          .10000E-03    13.229       -.13368E-04** at limit **
   6  norm          10000.        387.23       -.83319E-04** at limit **
   7  Prefactor     222.61        340.38       -.16459E-04    .12034E-05
   8  Prefactor    10000.0        5203.4        .31906E-02** at limit **
   9  norm          .10000E-03    1.8871        .53963E-07** at limit **
  10  Prefactor     10000.        8578.1        .14904E-02** at limit **
  11  norm          10000.        472.54        .92519E-04** at limit **
  12  Prefactor     .10000E-03    3.7005        .35117E-07** at limit **
  13  Prefactor    10000.0        9368.3        .18541E-02** at limit **
  14  Prefactor     10000.        1326.9        .10831E-03** at limit **
  15  Prefactor     .10000E-03    7922.0       -.26801E-03** at limit **
  16  norm          .10000E-03    961.36       -.10695E-03** at limit **
  17  Prefactor     10000.        325.20       -.20733E-03** at limit **
  18  Prefactor     10000.        609.49        .34377E-03** at limit **
  19  Prefactor     .10000E-03    11.292       -.62846E-05** at limit **
  20  Prefactor     4.7015        4.2671       -.75603E-09    .43124E-04
  21  norm          10000.        463.22        .73747E-04** at limit **
  22  Prefactor     .10000E-03    7.3891       -.27666E-08** at limit **
  23  norm          .10000E-03    73.877       -.65017E-04** at limit **
  24  Prefactor     .10000E-03    121.09        .25365E-05** at limit **
  25  Prefactor     .10000E-03    27.421        .27813E-05** at limit **
  26  Prefactor     .10000E-03    136.35        .88150E-04** at limit **
  27  norm          .10000E-03    2.0511       -.16994E-08** at limit **
  28  Prefactor     .10000E-03    11.679        .89493E-05** at limit **
  29  Prefactor     .10000E-03    63.843        .54548E-04** at limit **
  30  Prefactor     .10000E-03    9.9844        .31637E-06** at limit **
  31  norm          4.0099        3.1419       -.35312E-07   -.35020E-04
  32  Prefactor     .10000E-03    13.529        .10426E-04** at limit **
  33  Normalizat    .10000E-01    .49343E-01   -.81484E-07** at limit **
  34  Prefactor     .27688        .15768        .12088E-05   -.21338E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10000
  Prefactor  = 222.613
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 4.70149
  norm       = 10000
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.00994
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.27688
 **********
 **   18 **HESSE 
 **********

 FCN=   974.0815     FROM HESSE     STATUS=OK           704 CALLS     7168 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .66155        .24781E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    1800.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    30.788        .16925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    109.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    13.229        .11091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          10000.        387.26        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     222.61        340.75        .13556E-03   -1.2713    
   8  Prefactor    10000.0        5203.5        .18305E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.9342        .83598E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10000.        8578.2        .18976E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          10000.        472.58        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.7181        .58629E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor    10000.0        9368.4        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10000.        1327.0        .21421E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7922.0        .21339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    961.36        .21130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10000.        325.20        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     10000.        609.49        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.295        .10246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.7015        4.2736        .59261E-04   -1.5274    
  21  norm          10000.        463.25        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.3942        .82881E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    73.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    121.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    27.422        .15972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    136.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    2.0513        .43664E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    11.680        .10421E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    63.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    10.114        .96033E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  norm          4.0099        3.1332        .47271E-04   -1.5307    
  32  Prefactor     .10000E-03    13.533        .11216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Normalizat    .10000E-01    .49749E-01    .42264E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .27688        .15510        .27730E-03   -1.2364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07107e-11
Minuit parameter uncertainties:
  1  1.67458e-07
  2  3.07259e-05
  3  9.34217e-07
  4  1.69387e-06
  5  6.98953e-07
  6  2.36375e-06
  7  343.852
  8  0.000894988
  9  7.71692e-06
  10  0.000220345
  11  2.65976e-05
  12  5.49919e-06
  13  0.00278965
  14  4.62122e-05
  15  2.5498e-05
  16  3.39007e-06
  17  6.48355e-07
  18  5.00194e-06
  19  1.46888e-06
  20  4.27384
  21  2.99504e-06
  22  7.24859e-07
  23  6.78592e-06
  24  1.28123e-05
  25  1.88708e-06
  26  1.80457e-05
  27  1.7006e-07
  28  1.31777e-06
  29  7.70711e-06
  30  4.5302e-06
  31  3.1333
  32  3.57235e-06
  33  6.48577e-08
  34  0.155333
Done.

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

Extracting fit parameters...

4FGL J1128.0+5924
   Spectrum: PowerLaw
393    Prefactor:  1.000e+04  5.002e-06  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:  2.769e-01  1.553e-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:  1.000e-02  6.486e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.19
Ra Dec: 172.003 59.401
Photon Index (Fixed Index): 2.47 +/- 0.00
Photon Flux (Fixed Index): 1.21e-05 +/- 6.05e-15
Energy Flux (Fixed Index): 3.63e-03 +/- 1.81e-12

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) = 743.744627238
delta logL = 230.336859544

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 743.722554164
delta logL = 230.358932617

Fit tolerance = 1e-08

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

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

 FCN=   743.7226     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      268 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        299.90        .90712E-02** at limit **
   2  Index         6.8535        .75006E-01    .97269E-02   -.38863E-03
   3  Normalizat    .10000E-01    .21086E-01    .55503E-01** at limit **
   4  Prefactor     .44020E-12    .11206        .11165    ** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Index      = 6.8535
  Normalizat = 0.01
  Prefactor  = 4.40203e-13
 **********
 **   18 **HESSE 
 **********

 FCN=   743.7226     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        299.90        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.8535        .75008E-01    .43024E-04    .37976    
   3  Normalizat    .10000E-01    .21223E-01    .12227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .44020E-12    .17680        .56424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.43133e-11
Minuit parameter uncertainties:
  1  0.000159712
  2  0.0750115
  3  3.1235e-08
  4  5.5965e-07
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/822867': 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) = 743.722554114
delta logL = 230.358932667

Extracting fit parameters...

4FGL J1128.0+5924
   Spectrum: PowerLaw
393    Prefactor:  1.000e+04  1.597e-04  1.000e-04  1.000e+04 ( 1.000e-13)
394        Index:  6.853e+00  7.501e-02  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:  4.402e-13  5.596e-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  3.124e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 484.53
Ra Dec: 172.003 59.401
Photon Index (Free Index): 6.85 +/- 0.08
Photon Flux (Free Index): 3.01e-02 +/- 4.28e-03
Energy Flux (Free Index): 3.61e+00 +/- 5.07e-01

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/822867/cmap_HighResolution_570585601_570844801_4FGL_J1128.0+5924_daily_bin1278.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.21e-05', energy_flux2='3.61e+00', photon_flux_error='6.05e-15', dlogl='2.30e+02', energy_flux='3.63e-03', photon_flux2='3.01e-02', job_status='DONE', time_completed='2021-09-03 22:49:00.183978', photon_index_error2='0.08', photon_index2='6.85', ts='17.19', fit_tolerance='1e-08', GAL='0.28', photon_index_error='0.00', energy_flux_error2='5.07e-01', EG='0.01', time_epoch_completed='1630734540.18', return_code='0', job_id='822867', GAL2='0.00', EG2='0.01', return_code2='0', energy_flux_error='1.81e-12', photon_flux_error2='4.28e-03', ts2='484.53', photon_index='2.47' WHERE bin_id='1278' AND source_name='4FGL J1128.0+5924' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 22:49:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0155>
Subject: Job 822867: <4FGL_J1128.0+5924_daily_bin1278> in cluster <slac> Done

Job <4FGL_J1128.0+5924_daily_bin1278> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 22:36:03 2021
Job was executed on host(s) <bullet0155>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 22:37:20 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:37:20 2021
Terminated at Fri Sep  3 22:49:00 2021
Results reported at Fri Sep  3 22:49:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1128.0+5924_daily_bin1278 172.003 59.4015 570585601 570844801 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 :                                   496.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             283.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   700 sec.
    Turnaround time :                            777 sec.

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

