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


Performing analysis on: 4FGL_J0011.4+0057_daily_bin1595
RA = 2.8551, Dec = 0.9646
tmin = 652752001, tmax = 653011201
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='49492', job_status='RUN', time_executed='2021-09-11 00:03:32.197264', time_epoch_executed='1631343812.2' WHERE source_name='4FGL J0011.4+0057' and cadence='daily' and bin_id='1595'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/49492

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/49492/ft1_4FGL_J0011.4+0057_daily_bin1595.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/49492/ft2_4FGL_J0011.4+0057_daily_bin1595.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/49492/ft1_4FGL_J0011.4+0057_daily_bin1595.fits outfile=/scratch/kocevski/49492/ft1_filteredMKT_4FGL_J0011.4+0057_daily_bin1595.fits ra=2.8551 dec=0.9646 rad=12.0 tmin=652752001.0 tmax=653011201.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.23
user 3.01
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/49492/ft2_4FGL_J0011.4+0057_daily_bin1595.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/49492/ft2_4FGL_J0011.4+0057_daily_bin1595.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/49492/ft1_filteredMKT_4FGL_J0011.4+0057_daily_bin1595.fits evtable="EVENTS" outfile="/scratch/kocevski/49492/ft1_filtered_4FGL_J0011.4+0057_daily_bin1595.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.53
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/49492/ft1_filtered_4FGL_J0011.4+0057_daily_bin1595.fits" evtable="EVENTS" scfile=/scratch/kocevski/49492/ft2_4FGL_J0011.4+0057_daily_bin1595.fits sctable="SC_DATA" outfile=/scratch/kocevski/49492/ltcube_652752001_653011201_4FGL_J0011.4+0057_daily_bin1595.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/49492/ft2_4FGL_J0011.4+0057_daily_bin1595.fits
.....................!
real 14.75
user 14.35
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/49492/ft1_filtered_4FGL_J0011.4+0057_daily_bin1595.fits evtable="EVENTS" scfile=/scratch/kocevski/49492/ft2_4FGL_J0011.4+0057_daily_bin1595.fits sctable="SC_DATA" expcube=/scratch/kocevski/49492/ltcube_652752001_653011201_4FGL_J0011.4+0057_daily_bin1595.fits outfile=/scratch/kocevski/49492/expmap_652752001_653011201_4FGL_J0011.4+0057_daily_bin1595.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/49492/ltcube_652752001_653011201_4FGL_J0011.4+0057_daily_bin1595.fits
.....................!
real 190.07
user 185.32
sys 4.16

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

Setting source of interest to:
4FGL J0011.4+0057 @ 2.8551 0.9646

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/49492/ft1_filtered_4FGL_J0011.4+0057_daily_bin1595.fits scfile=/scratch/kocevski/49492/ft2_4FGL_J0011.4+0057_daily_bin1595.fits outfile=/scratch/kocevski/49492/cmap_652752001_653011201_4FGL_J0011.4+0057_daily_bin1595.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=2.8551 yref=0.9646 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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/49492/ft1_filtered_4FGL_J0011.4+0057_daily_bin1595.fits scfile=/scratch/kocevski/49492/ft2_4FGL_J0011.4+0057_daily_bin1595.fits outfile=/scratch/kocevski/49492/cmap_HighResolution_652752001_653011201_4FGL_J0011.4+0057_daily_bin1595.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=2.8551 yref=0.9646 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.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/49492/ft1_filtered_4FGL_J0011.4+0057_daily_bin1595.fits evtable="EVENTS" scfile=/scratch/kocevski/49492/ft2_4FGL_J0011.4+0057_daily_bin1595.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/49492/Model_4FGL_J0011.4+0057_daily_bin1595.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/49492/ft1_filtered_4FGL_J0011.4+0057_daily_bin1595.fits........................!
real 21.76
user 20.50
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/49492/ft1_filtered_4FGL_J0011.4+0057_daily_bin1595.fits', '/scratch/kocevski/49492/ft2_4FGL_J0011.4+0057_daily_bin1595.fits', expMap='/scratch/kocevski/49492/expmap_652752001_653011201_4FGL_J0011.4+0057_daily_bin1595.fits', expCube='/scratch/kocevski/49492/ltcube_652752001_653011201_4FGL_J0011.4+0057_daily_bin1595.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/49492/Model_4FGL_J0011.4+0057_daily_bin1595.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0011.4+0057'

4FGL J0011.4+0057
   Spectrum: PowerLaw
51     Prefactor:  3.882e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
52         Index:  2.334e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
53         Scale:  1.182e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/49492/ft1_filtered_4FGL_J0011.4+0057_daily_bin1595.fits
Spacecraft file(s): /scratch/kocevski/49492/ft2_4FGL_J0011.4+0057_daily_bin1595.fits
Exposure map: /scratch/kocevski/49492/expmap_652752001_653011201_4FGL_J0011.4+0057_daily_bin1595.fits
Exposure cube: /scratch/kocevski/49492/ltcube_652752001_653011201_4FGL_J0011.4+0057_daily_bin1595.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/49492/Model_4FGL_J0011.4+0057_daily_bin1595.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 943.105783212

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 939.159500214

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9185       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.3746       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.4152       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .93622E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    6.4865       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .92385E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .14789E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .10777E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14080E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    40.560       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.4603       1.0000         .10000E-03   10000.    
    12 'Prefactor '    63.324       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .56100E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.1842       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .31742E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    61.390       1.0000         .10000E-03   10000.    
    17 'norm      '    5.7501       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .19621       1.0000         .10000E-03   10000.    
    19 'Prefactor '    514.83       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .79898E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .26535E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.0764       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .10003E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1743       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   939.1427     FROM MIGRAD    STATUS=CONVERGED    217 CALLS      791 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .35405        316.49        .45859E-04    .34744E-02
   2  Prefactor     .16872E-01    552.91        .67295E-04   -.12886E-02
   3  Prefactor     .13891E-03    591.41       -.12119E-03** at limit **
   4  Prefactor     .10180E-03    175.19        .12124E-04** at limit **
   5  norm          6.8226        20.920       -.62513E-04   -.18814E-03
   6  Prefactor     .10000E-03    371.00        .44494E-04** at limit **
   7  norm          .10000E-03    104.95       -.32496E-04** at limit **
   8  norm          .10000E-03    3.8686        .23479E-05** at limit **
   9  Prefactor     .10000E-03    19.679       -.60521E-05** at limit **
  10  norm          42.858        68.163        .31588E-04   -.11095E-02
  11  Prefactor     6.4743        8.3207       -.22448E-05   -.95845E-07
  12  Prefactor     61.156        39.460        .18792E-06    .81241E-04
  13  Prefactor     .10001E-03    164.71       -.30360E-04** at limit **
  14  Prefactor     .12946E-02    1448.6        .10982E-03** at limit **
  15  Prefactor     .10000E-03    125.41       -.11593E-04** at limit **
  16  Prefactor     62.461        23.269        .66697E-05    .33690E-02
  17  norm          .11361E-03    347.66       -.74911E-04** at limit **
  18  Prefactor     .10000E-03    54.728        .33797E-06** at limit **
  19  Prefactor     516.21        25.180       -.16603E-05   -.17712E-01
  20  Prefactor     .10000E-03    118.61        .33654E-04** at limit **
  21  Prefactor     .27199E-03    10.505       -.32369E-05** at limit **
  22  Prefactor     4.0764        1.0077         .0000         .0000    
  23  Normalizat    .10000E-01    1.7253        .49925E-03** at limit **
  24  Prefactor     1.1740        .19432       -.10238E-04   -.27268E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.354048
  Prefactor  = 0.0168718
  Prefactor  = 0.00013891
  Prefactor  = 0.000101805
  norm       = 6.82256
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 42.8578
  Prefactor  = 6.47433
  Prefactor  = 61.1562
  Prefactor  = 0.000100006
  Prefactor  = 0.00129461
  Prefactor  = 0.0001
  Prefactor  = 62.461
  norm       = 0.000113611
  Prefactor  = 0.0001
  Prefactor  = 516.215
  Prefactor  = 0.0001
  Prefactor  = 0.000271986
  Prefactor  = 4.0764
  Normalizat = 0.01
  Prefactor  = 1.17404
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   939.1427     FROM HESSE     STATUS=FAILED        95 CALLS      886 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .35405        8161.7        .59451E-02   -1.5589    
   2  Prefactor     .16872E-01    7125.2        .66467E-02   -1.5734    
   3  Prefactor     .13891E-03    652.50        .65850E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10180E-03    177.58        .90981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.8226        20.574        .39395E-02   -1.5186    
   6  Prefactor     .10000E-03    374.38        .91104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    105.12        .10241E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.8627        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.710        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          42.858        67.631        .15735E-02   -1.4398    
  11  Prefactor     6.4743        8.2046        .39476E-02   -1.5199    
  12  Prefactor     61.156        39.314        .12607E-02   -1.4142    
  13  Prefactor     .10001E-03    165.08        .92998E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .12946E-02    1691.8        .37413E-02   -1.5715    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    125.56        .98832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     62.461        73.733        .12803E-02   -1.4126    
  17  norm          .11361E-03    347.54        .41875E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    55.183        .99603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     516.21        280.93        .45253E-03   -1.1124    
  20  Prefactor     .10000E-03    117.61        .10451E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .27199E-03    251.42        .10720E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     541.29        537.15         .0000       -1.5304    
  23  Normalizat    .10000E-01    .25631        .49925E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.1740        1.1119       -.10238E-04   -.87134    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.63416e-09
Minuit parameter uncertainties:
  1  110.099
  2  18.3604
  3  0.322249
  4  0.0359096
  5  20.5952
  6  0.00127817
  7  7.13275e-05
  8  2.75621e-07
  9  3.3307e-06
  10  67.7526
  11  8.20597
  12  39.3304
  13  0.00197075
  14  2.93026
  15  4.11643e-05
  16  73.8409
  17  0.138364
  18  4.75647e-05
  19  281.688
  20  0.000186909
  21  0.417648
  22  1.00773
  23  2.95142e-06
  24  1.13533
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 939.142743223

Extracting fit parameters...

4FGL J0011.4+0057
   Spectrum: PowerLaw
51     Prefactor:  1.389e-04  3.222e-01  1.000e-04  1.000e+04 ( 1.000e-13)
52         Index:  2.334e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
53         Scale:  1.182e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  1.174e+00  1.135e+00  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  1.000e-02  2.951e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 2.855 0.965
Photon Flux Upper Limit: 8.63e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.64e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/49492/likelihoodResults_652752001_653011201_4FGL_J0011.4+0057_daily_bin1595.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) = 939.142752746
delta logL = -9.52228401729e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 939.142745871
delta logL = -2.64749439793e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .41843E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3195       1.0000          .0000       10.000    
     3 'Normalizat'    .10009E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1741       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5490E+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=   939.1427     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      276 TOTAL
                     EDM=   .97E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5065.9        .21243E-02** at limit **
   2  Index         2.3161        6.6206        .50000       -.34850E-05
   3  Normalizat    .10000E-01    .89392        .13050E-01** at limit **
   4  Prefactor     1.1740        .17575        .17541E-03   -.27675E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.31608
  Normalizat = 0.01
  Prefactor  = 1.17404
 **********
 **   18 **HESSE 
 **********

 FCN=   939.1427     FROM HESSE     STATUS=OK            29 CALLS      305 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    474.49        .42486E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3161        6.1573        .50000       -.56662    
   3  Normalizat    .10000E-01    1.0281        .26101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1740        .18821        .70164E-05   -.87134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.95187e-11
Minuit parameter uncertainties:
  1  0.00174298
  2  4.33795
  3  3.19421e-05
  4  0.188322
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/49492': 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) = 939.142743209
delta logL = 1.38242057801e-08

Extracting fit parameters...

4FGL J0011.4+0057
   Spectrum: PowerLaw
51     Prefactor:  1.000e-04  1.743e-03  1.000e-04  1.000e+04 ( 1.000e-13)
52         Index:  2.316e+00  4.338e+00  0.000e+00  1.000e+01 (-1.000e+00)
53         Scale:  1.182e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
546    Prefactor:  1.174e+00  1.883e-01  0.000e+00  1.000e+01 ( 1.000e+00)
547        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
548        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
545   Normalization:  1.000e-02  3.194e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 2.855 0.965

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/49492/cmap_HighResolution_652752001_653011201_4FGL_J0011.4+0057_daily_bin1595.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.64e-02', job_status='DONE', photon_flux_upper_limit='8.63e-07', time_completed='2021-09-11 00:09:07.968995', job_id='49492', GAL2='1.17', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631344147.97', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.17', dlogl='1.38e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1595' AND source_name='4FGL J0011.4+0057' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 11 00:09:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 49492: <4FGL_J0011.4+0057_daily_bin1595> in cluster <slac> Done

Job <4FGL_J0011.4+0057_daily_bin1595> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 11 00:01:13 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 11 00:01:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 11 00:01:15 2021
Terminated at Sat Sep 11 00:09:08 2021
Results reported at Sat Sep 11 00:09:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0011.4+0057_daily_bin1595 2.8551 0.9646 652752001 653011201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0011.4+0057 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   338.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             213.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   473 sec.
    Turnaround time :                            475 sec.

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

