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


Performing analysis on: 4FGL_J1106.0+2813_daily_bin20
RA = 166.502, Dec = 28.2254
tmin = 244512001, tmax = 244771201
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='511524', job_status='RUN', time_executed='2021-09-03 07:51:05.815470', time_epoch_executed='1630680665.82' WHERE source_name='4FGL J1106.0+2813' and cadence='daily' and bin_id='20'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/511524

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/511524/ft1_4FGL_J1106.0+2813_daily_bin20.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/511524/ft2_4FGL_J1106.0+2813_daily_bin20.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/511524/ft1_4FGL_J1106.0+2813_daily_bin20.fits outfile=/scratch/kocevski/511524/ft1_filteredMKT_4FGL_J1106.0+2813_daily_bin20.fits ra=166.502 dec=28.2254 rad=12.0 tmin=244512001.0 tmax=244771201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.49
user 1.28
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/511524/ft2_4FGL_J1106.0+2813_daily_bin20.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/511524/ft2_4FGL_J1106.0+2813_daily_bin20.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/511524/ft1_filteredMKT_4FGL_J1106.0+2813_daily_bin20.fits evtable="EVENTS" outfile="/scratch/kocevski/511524/ft1_filtered_4FGL_J1106.0+2813_daily_bin20.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.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/511524/ft1_filtered_4FGL_J1106.0+2813_daily_bin20.fits" evtable="EVENTS" scfile=/scratch/kocevski/511524/ft2_4FGL_J1106.0+2813_daily_bin20.fits sctable="SC_DATA" outfile=/scratch/kocevski/511524/ltcube_244512001_244771201_4FGL_J1106.0+2813_daily_bin20.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/511524/ft2_4FGL_J1106.0+2813_daily_bin20.fits
.....................!
real 19.77
user 19.37
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/511524/ft1_filtered_4FGL_J1106.0+2813_daily_bin20.fits evtable="EVENTS" scfile=/scratch/kocevski/511524/ft2_4FGL_J1106.0+2813_daily_bin20.fits sctable="SC_DATA" expcube=/scratch/kocevski/511524/ltcube_244512001_244771201_4FGL_J1106.0+2813_daily_bin20.fits outfile=/scratch/kocevski/511524/expmap_244512001_244771201_4FGL_J1106.0+2813_daily_bin20.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/511524/ltcube_244512001_244771201_4FGL_J1106.0+2813_daily_bin20.fits
.....................!
real 194.52
user 188.73
sys 5.30

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

Setting source of interest to:
4FGL J1106.0+2813 @ 166.502 28.2254

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/511524/ft1_filtered_4FGL_J1106.0+2813_daily_bin20.fits scfile=/scratch/kocevski/511524/ft2_4FGL_J1106.0+2813_daily_bin20.fits outfile=/scratch/kocevski/511524/cmap_244512001_244771201_4FGL_J1106.0+2813_daily_bin20.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=166.502 yref=28.2254 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/511524/ft1_filtered_4FGL_J1106.0+2813_daily_bin20.fits scfile=/scratch/kocevski/511524/ft2_4FGL_J1106.0+2813_daily_bin20.fits outfile=/scratch/kocevski/511524/cmap_HighResolution_244512001_244771201_4FGL_J1106.0+2813_daily_bin20.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=166.502 yref=28.2254 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.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/511524/ft1_filtered_4FGL_J1106.0+2813_daily_bin20.fits evtable="EVENTS" scfile=/scratch/kocevski/511524/ft2_4FGL_J1106.0+2813_daily_bin20.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/511524/Model_4FGL_J1106.0+2813_daily_bin20.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/511524/ft1_filtered_4FGL_J1106.0+2813_daily_bin20.fits.....................!
real 49.31
user 47.52
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/511524/ft1_filtered_4FGL_J1106.0+2813_daily_bin20.fits', '/scratch/kocevski/511524/ft2_4FGL_J1106.0+2813_daily_bin20.fits', expMap='/scratch/kocevski/511524/expmap_244512001_244771201_4FGL_J1106.0+2813_daily_bin20.fits', expCube='/scratch/kocevski/511524/ltcube_244512001_244771201_4FGL_J1106.0+2813_daily_bin20.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/511524/Model_4FGL_J1106.0+2813_daily_bin20.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1106.0+2813'

4FGL J1106.0+2813
   Spectrum: PowerLaw
253    Prefactor:  1.558e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.375e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  8.523e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/511524/ft1_filtered_4FGL_J1106.0+2813_daily_bin20.fits
Spacecraft file(s): /scratch/kocevski/511524/ft2_4FGL_J1106.0+2813_daily_bin20.fits
Exposure map: /scratch/kocevski/511524/expmap_244512001_244771201_4FGL_J1106.0+2813_daily_bin20.fits
Exposure cube: /scratch/kocevski/511524/ltcube_244512001_244771201_4FGL_J1106.0+2813_daily_bin20.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/511524/Model_4FGL_J1106.0+2813_daily_bin20.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) = 5098.68752869

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10696E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0121       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10211E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .29351       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.666       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.983       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.3648       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.3869       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.2505       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    25.206       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4045       1.0000         .10000E-03   10000.    
    17 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .81546       1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.381       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.6342       1.0000         .10000E-03   10000.    
    25 'Prefactor '    16.795       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.5609       1.0000         .10000E-03   10000.    
    28 'norm      '    1.0326       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .92075       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0144       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5098.653     FROM MIGRAD    STATUS=CONVERGED    753 CALLS     3982 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.912        .22797E-04** at limit **
   2  Prefactor     .10000E-03    50.505       -.15731E-04** at limit **
   3  Prefactor     1.0101        1.8852        .85895E-06   -.26814E-02
   4  Prefactor     .10000E-03    6.2745        .45417E-05** at limit **
   5  Prefactor     .29254        1.7662        .26021E-08   -.34523E-03
   6  Prefactor     15.666        12.138       -.41959E-06    .52562E-04
   7  Prefactor     .10000E-03    13.966        .11139E-04** at limit **
   8  Prefactor     29.984        15.464       -.12070E-07    .86176E-04
   9  Prefactor     2.3656        18.874       -.82655E-06   -.56812E-05
  10  Prefactor     .10000E-03    16.073       -.87547E-05** at limit **
  11  norm          1.3869        .35126       -.11345E-08    .13093E-02
  12  Prefactor     6.2506        4.1049       -.63023E-06    .17581E-03
  13  Prefactor     .10000E-03    5.7703       -.17822E-05** at limit **
  14  Prefactor     .10000E-03    22.018       -.78873E-05** at limit **
  15  norm          25.206        14.253       -.26665E-06    .55674E-04
  16  Prefactor     3.4029        7.5972       -.53928E-06   -.72100E-03
  17  norm          .10000E-03    17.126       -.14541E-04** at limit **
  18  Prefactor     .10000E-03    14.389        .52860E-05** at limit **
  19  Prefactor     .10000E-03    1.3637        .42844E-07** at limit **
  20  Prefactor     .10000E-03    24.762        .52516E-05** at limit **
  21  Prefactor     .10000E-03    7.2326       -.41367E-05** at limit **
  22  norm          .81553        2.1237       -.37028E-06   -.19687E-03
  23  Prefactor     11.380        9.7917        .18952E-06    .10288E-03
  24  Prefactor     1.6367        5.2037        .17570E-05    .72204E-04
  25  Prefactor     16.792        21.079       -.15699E-05    .69674E-04
  26  Prefactor     .10000E-03    .78642       -.31211E-07** at limit **
  27  Prefactor     9.5437        27.810       -.22438E-04   -.37850E-04
  28  norm          1.0345        1.5429        .56326E-06    .98260E-03
  29  Normalizat    .92054        .19029        .36702E-05   -.41062E-05
  30  Prefactor     1.0146        .20767       -.18526E-05    .21737E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.01012
  Prefactor  = 0.0001
  Prefactor  = 0.29254
  Prefactor  = 15.6662
  Prefactor  = 0.0001
  Prefactor  = 29.9842
  Prefactor  = 2.36559
  Prefactor  = 0.0001
  norm       = 1.38691
  Prefactor  = 6.25064
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 25.2061
  Prefactor  = 3.40294
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.815534
  Prefactor  = 11.3799
  Prefactor  = 1.63672
  Prefactor  = 16.7916
  Prefactor  = 0.0001
  Prefactor  = 9.54372
  norm       = 1.03454
  Normalizat = 0.920537
  Prefactor  = 1.01465
 **********
 **   18 **HESSE 
 **********

 FCN=   5098.653     FROM HESSE     STATUS=OK           588 CALLS     4570 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    50.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.0101        7.5246        .18413E-02   -1.5507    
   4  Prefactor     .10000E-03    6.3409        .17426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .29254        1.7258        .18127E-03   -1.5600    
   6  Prefactor     15.666        12.149        .10119E-03   -1.4916    
   7  Prefactor     .10000E-03    13.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     29.984        15.455        .73170E-04   -1.4612    
   9  Prefactor     2.3656        18.246        .26648E-03   -1.5400    
  10  Prefactor     .10000E-03    16.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.3869        .35171        .20638E-04   -1.5472    
  12  Prefactor     6.2506        4.0408        .98677E-04   -1.5208    
  13  Prefactor     .10000E-03    5.7816        .16749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    22.372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          25.206        14.244        .79789E-04   -1.4703    
  16  Prefactor     3.4029        7.7975        .10963E-02   -1.5339    
  17  norm          .10000E-03    17.302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.1691        .15836E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    24.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.2409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .81553        2.0529        .16038E-03   -1.5527    
  23  Prefactor     11.380        9.7902        .11875E-03   -1.5033    
  24  Prefactor     1.6367        5.1457        .27013E-03   -1.5452    
  25  Prefactor     16.792        21.073        .97729E-04   -1.4888    
  26  Prefactor     .10000E-03    .79558        .61719E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     9.5437        27.850        .12960E-03   -1.5090    
  28  norm          1.0345        1.4086        .10289E-02   -1.5505    
  29  Normalizat    .92054        .22653        .24616E-03   -.95742    
  30  Prefactor     1.0146        .24426        .27280E-03   -.92243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28122e-08
Minuit parameter uncertainties:
  1  8.01652e-05
  2  0.000146547
  3  5.51461
  4  2.54254e-05
  5  1.42089
  6  12.1504
  7  1.47599e-05
  8  15.4566
  9  13.1449
  10  2.25756e-05
  11  0.351713
  12  4.04094
  13  4.78845e-06
  14  2.06729e-05
  15  14.2456
  16  7.7998
  17  5.37735e-07
  18  3.03591e-05
  19  1.25436e-05
  20  2.59906e-05
  21  6.67611e-06
  22  2.05312
  23  9.79156
  24  5.14705
  25  21.0826
  26  1.31222e-06
  27  27.8878
  28  1.40869
  29  0.226765
  30  0.244524
Done.

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

Extracting fit parameters...

4FGL J1106.0+2813
   Spectrum: PowerLaw
253    Prefactor:  6.251e+00  4.041e+00  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.375e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  8.523e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  1.015e+00  2.445e-01  0.000e+00  1.000e+01 ( 1.000e+00)
557        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
558        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
555   Normalization:  9.205e-01  2.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.00
Ra Dec: 166.502 28.225
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 7.38e-08 +/- 4.77e-08
Energy Flux (Fixed Index): 2.50e-05 +/- 1.62e-05

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) = 5098.59672014
delta logL = 0.0558417237062

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5098.59282136
delta logL = 0.0597405078224

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3340       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5796       1.0000          .0000       10.000    
     3 'Normalizat'    .90423       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0278       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5590E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5098.593     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      256 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3354        55.145        .43504E-02    .93670E-03
   2  Index         2.5799        3.4362        .14468        .24292E-03
   3  Normalizat    .90419        .83670E-01    .44956E-01   -.17221E-04
   4  Prefactor     1.0276        .81745E-01    .61353E-01   -.11176E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.33537
  Index      = 2.5799
  Normalizat = 0.904194
  Prefactor  = 1.02761
 **********
 **   18 **HESSE 
 **********

 FCN=   5098.593     FROM HESSE     STATUS=OK            33 CALLS      289 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3354        4.6191        .87291E-04   -1.5246    
   2  Index         2.5799        .65602        .52798E-02   -.50524    
   3  Normalizat    .90419        .21548        .24807E-03   -.96313    
   4  Prefactor     1.0276        .24500        .27133E-03   -.91815    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06166e-10
Minuit parameter uncertainties:
  1  4.61936
  2  0.658506
  3  0.215682
  4  0.245267
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/511524': 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) = 5098.59281969
delta logL = 0.0597421710254

Extracting fit parameters...

4FGL J1106.0+2813
   Spectrum: PowerLaw
253    Prefactor:  5.335e+00  4.619e+00  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.580e+00  6.585e-01  0.000e+00  1.000e+01 (-1.000e+00)
255        Scale:  8.523e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  1.028e+00  2.453e-01  0.000e+00  1.000e+01 ( 1.000e+00)
557        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
558        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
555   Normalization:  9.042e-01  2.157e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.10
Ra Dec: 166.502 28.225
Photon Index (Free Index): 2.58 +/- 0.66
Photon Flux (Free Index): 8.51e-08 +/- 5.54e-08
Energy Flux (Free Index): 2.27e-05 +/- 1.44e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/511524/cmap_HighResolution_244512001_244771201_4FGL_J1106.0+2813_daily_bin20.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.38e-08', energy_flux2='2.27e-05', photon_flux_error='4.77e-08', dlogl='5.97e-02', energy_flux='2.50e-05', photon_flux2='8.51e-08', job_status='DONE', time_completed='2021-09-03 08:02:36.175514', photon_index_error2='0.66', photon_index2='2.58', ts='5.00', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='1.44e-05', EG='0.92', time_epoch_completed='1630681356.18', return_code='0', job_id='511524', GAL2='1.03', EG2='0.90', return_code2='0', energy_flux_error='1.62e-05', photon_flux_error2='5.54e-08', ts2='5.10', photon_index='2.37' WHERE bin_id='20' AND source_name='4FGL J1106.0+2813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 08:02:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 511524: <4FGL_J1106.0+2813_daily_bin20> in cluster <slac> Done

Job <4FGL_J1106.0+2813_daily_bin20> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 07:46:55 2021
Job was executed on host(s) <bullet0035>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 07:47:00 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 07:47:00 2021
Terminated at Fri Sep  3 08:02:36 2021
Results reported at Fri Sep  3 08:02:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1106.0+2813_daily_bin20 166.502 28.2254 244512001 244771201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1106.0+2813 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   683.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             254.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            941 sec.

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

