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


Performing analysis on: 4FGL_J1106.0+2813_daily_bin36
RA = 166.502, Dec = 28.2254
tmin = 248659201, tmax = 248918401
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='511540', job_status='RUN', time_executed='2021-09-03 07:49:42.716746', time_epoch_executed='1630680582.72' WHERE source_name='4FGL J1106.0+2813' and cadence='daily' and bin_id='36'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/511540

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/511540/ft1_4FGL_J1106.0+2813_daily_bin36.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/511540/ft2_4FGL_J1106.0+2813_daily_bin36.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/511540/ft1_4FGL_J1106.0+2813_daily_bin36.fits outfile=/scratch/kocevski/511540/ft1_filteredMKT_4FGL_J1106.0+2813_daily_bin36.fits ra=166.502 dec=28.2254 rad=12.0 tmin=248659201.0 tmax=248918401.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.48
user 1.28
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/511540/ft2_4FGL_J1106.0+2813_daily_bin36.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/511540/ft1_filteredMKT_4FGL_J1106.0+2813_daily_bin36.fits evtable="EVENTS" outfile="/scratch/kocevski/511540/ft1_filtered_4FGL_J1106.0+2813_daily_bin36.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.67
user 0.36
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/511540/ft1_filtered_4FGL_J1106.0+2813_daily_bin36.fits" evtable="EVENTS" scfile=/scratch/kocevski/511540/ft2_4FGL_J1106.0+2813_daily_bin36.fits sctable="SC_DATA" outfile=/scratch/kocevski/511540/ltcube_248659201_248918401_4FGL_J1106.0+2813_daily_bin36.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/511540/ft2_4FGL_J1106.0+2813_daily_bin36.fits
.....................!
real 18.34
user 17.91
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/511540/ft1_filtered_4FGL_J1106.0+2813_daily_bin36.fits evtable="EVENTS" scfile=/scratch/kocevski/511540/ft2_4FGL_J1106.0+2813_daily_bin36.fits sctable="SC_DATA" expcube=/scratch/kocevski/511540/ltcube_248659201_248918401_4FGL_J1106.0+2813_daily_bin36.fits outfile=/scratch/kocevski/511540/expmap_248659201_248918401_4FGL_J1106.0+2813_daily_bin36.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/511540/ltcube_248659201_248918401_4FGL_J1106.0+2813_daily_bin36.fits
.....................!
real 191.75
user 186.52
sys 4.67

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/511540/ft1_filtered_4FGL_J1106.0+2813_daily_bin36.fits scfile=/scratch/kocevski/511540/ft2_4FGL_J1106.0+2813_daily_bin36.fits outfile=/scratch/kocevski/511540/cmap_248659201_248918401_4FGL_J1106.0+2813_daily_bin36.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.72
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/511540/ft1_filtered_4FGL_J1106.0+2813_daily_bin36.fits scfile=/scratch/kocevski/511540/ft2_4FGL_J1106.0+2813_daily_bin36.fits outfile=/scratch/kocevski/511540/cmap_HighResolution_248659201_248918401_4FGL_J1106.0+2813_daily_bin36.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.67
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/511540/ft1_filtered_4FGL_J1106.0+2813_daily_bin36.fits', '/scratch/kocevski/511540/ft2_4FGL_J1106.0+2813_daily_bin36.fits', expMap='/scratch/kocevski/511540/expmap_248659201_248918401_4FGL_J1106.0+2813_daily_bin36.fits', expCube='/scratch/kocevski/511540/ltcube_248659201_248918401_4FGL_J1106.0+2813_daily_bin36.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/511540/Model_4FGL_J1106.0+2813_daily_bin36.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/511540/ft1_filtered_4FGL_J1106.0+2813_daily_bin36.fits
Spacecraft file(s): /scratch/kocevski/511540/ft2_4FGL_J1106.0+2813_daily_bin36.fits
Exposure map: /scratch/kocevski/511540/expmap_248659201_248918401_4FGL_J1106.0+2813_daily_bin36.fits
Exposure cube: /scratch/kocevski/511540/ltcube_248659201_248918401_4FGL_J1106.0+2813_daily_bin36.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/511540/Model_4FGL_J1106.0+2813_daily_bin36.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) = 6000.32826555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    55.103       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10391E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.238       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.5803       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .32573E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.912       1.0000         .10000E-03   10000.    
    11 'norm      '    1.0722       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.9483       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .26951       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.8173       1.0000         .10000E-03   10000.    
    15 'norm      '    12.354       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.4866       1.0000         .10000E-03   10000.    
    17 'norm      '    3.2460       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4553       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.8305       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10320E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .62658       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .45506       1.0000         .10000E-03   10000.    
    25 'Prefactor '    20.376       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .57181E-01   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .74408       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2158       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=   6000.230     FROM MIGRAD    STATUS=CONVERGED    806 CALLS     4118 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    183.93        .53202E-05** at limit **
   2  Prefactor     55.093        42.926       -.21286E-05   -.31804E-03
   3  Prefactor     .10000E-03    7.3414       -.78443E-07** at limit **
   4  Prefactor     .10000E-03    3.0592       -.10878E-06** at limit **
   5  Prefactor     .10000E-03    .77733       -.68623E-07** at limit **
   6  Prefactor     19.242        9.6579       -.12363E-06    .71280E-04
   7  Prefactor     8.5943        23.918        .55153E-06    .11528E-03
   8  Prefactor     .10000E-03    7.7170       -.46917E-07** at limit **
   9  Prefactor     .10004E-03    10.656       -.22438E-05** at limit **
  10  Prefactor     11.914        12.501       -.12263E-06    .22100E-04
  11  norm          1.0720        .30268        .39450E-07    .45387E-02
  12  Prefactor     1.9487        1.9192       -.18277E-07    .33648E-03
  13  Prefactor     .41142        34.655       -.66010E-05    .51864E-03
  14  Prefactor     6.7958        12.090        .11315E-05    .38074E-03
  15  norm          12.323        14.773        .13934E-05    .55907E-03
  16  Prefactor     5.4873        4.6577       -.74094E-07    .24917E-04
  17  norm          3.2480        7.4249       -.10408E-06    .83483E-04
  18  Prefactor     2.4569        6.1383        .74757E-06    .10787E-02
  19  Prefactor     1.8294        2.0276        .31443E-07    .52283E-03
  20  Prefactor     .10000E-03    17.778       -.21251E-06** at limit **
  21  Prefactor     .10000E-03    55.762       -.94289E-06** at limit **
  22  norm          .62624        1.8892       -.50094E-07    .23455E-03
  23  Prefactor     .10000E-03    26.798       -.34898E-07** at limit **
  24  Prefactor     .49175        2.8407       -.42836E-06    .65028E-04
  25  Prefactor     20.377        18.499       -.91240E-07    .33787E-04
  26  Prefactor     .62794E-01    .98046        .15816E-06   -.22037E-03
  27  Prefactor     .10000E-03    25.051       -.71867E-06** at limit **
  28  norm          .10000E-03    .45082       -.36375E-07** at limit **
  29  Normalizat    .74391        .17444        .11230E-05    .52671E-03
  30  Prefactor     1.2158        .19328        .26593E-06    .50222E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100017
  Prefactor  = 55.093
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.2418
  Prefactor  = 8.59432
  Prefactor  = 0.0001
  Prefactor  = 0.00010004
  Prefactor  = 11.9145
  norm       = 1.07201
  Prefactor  = 1.94869
  Prefactor  = 0.411423
  Prefactor  = 6.79577
  norm       = 12.3226
  Prefactor  = 5.4873
  norm       = 3.24801
  Prefactor  = 2.45693
  Prefactor  = 1.82939
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.626243
  Prefactor  = 0.0001
  Prefactor  = 0.491748
  Prefactor  = 20.3767
  Prefactor  = 0.0627939
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.743909
  Prefactor  = 1.21582
 **********
 **   18 **HESSE 
 **********

 FCN=   6000.230     FROM HESSE     STATUS=OK           598 CALLS     4716 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    184.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     55.093        37.177        .54037E-04   -1.4222    
   3  Prefactor     .10000E-03    19.416        .31287E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.0898        .13227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .78952        .66653E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     19.242        9.6418        .91316E-04   -1.4830    
   7  Prefactor     8.5943        23.925        .13685E-03   -1.5122    
   8  Prefactor     .10000E-03    7.7593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10004E-03    57.168        .41167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.914        12.488        .11607E-03   -1.5017    
  11  norm          1.0720        .30560        .21081E-04   -1.5501    
  12  Prefactor     1.9487        1.9064        .10135E-03   -1.5429    
  13  Prefactor     .41142        176.31        .45388E-02   -1.5580    
  14  Prefactor     6.7958        12.498        .15367E-03   -1.5187    
  15  norm          12.323        15.348        .11397E-03   -1.5006    
  16  Prefactor     5.4873        4.6566        .14952E-03   -1.5239    
  17  norm          3.2480        7.4103        .22480E-03   -1.5348    
  18  Prefactor     2.4569        6.6720        .13052E-02   -1.5394    
  19  Prefactor     1.8294        1.9892        .10720E-03   -1.5437    
  20  Prefactor     .10000E-03    17.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    57.528        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .62624        1.8490        .17615E-03   -1.5550    
  23  Prefactor     .10000E-03    27.925        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .49175        12.232        .23655E-02   -1.5568    
  25  Prefactor     20.377        18.403        .88732E-04   -1.4805    
  26  Prefactor     .62794E-01    9.1885        .13972E-02   -1.5658    
  27  Prefactor     .10000E-03    25.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    .45735        .50773E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .74391        .20551        .25865E-03   -1.0218    
  30  Prefactor     1.2158        .23121        .24583E-03   -.85846    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95265e-08
Minuit parameter uncertainties:
  1  0.0035069
  2  37.1928
  3  0.000494891
  4  7.70654e-06
  5  2.44879e-06
  6  9.64253
  7  23.9516
  8  2.43246e-06
  9  0.00302939
  10  12.491
  11  0.305602
  12  1.9065
  13  17.0824
  14  12.5025
  15  15.3524
  16  4.6569
  17  7.41235
  18  6.67398
  19  1.98927
  20  5.32068e-05
  21  0.000337193
  22  1.84919
  23  2.75732e-05
  24  4.90576
  25  18.4079
  26  1.51821
  27  0.000191128
  28  1.11817e-06
  29  0.20572
  30  0.231401
Done.

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

Extracting fit parameters...

4FGL J1106.0+2813
   Spectrum: PowerLaw
253    Prefactor:  1.949e+00  1.907e+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.216e+00  2.314e-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:  7.439e-01  2.057e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.01
Ra Dec: 166.502 28.225
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 2.30e-08 +/- 2.25e-08
Energy Flux (Fixed Index): 7.80e-06 +/- 7.63e-06

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) = 5999.91341581
delta logL = 0.316952989986

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5999.89786386
delta logL = 0.332504941431

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6179       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6285       1.0000          .0000       10.000    
     3 'Normalizat'    .76409       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2028       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=   5999.898     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6173        1.6627        .83201E-02   -.28103E-03
   2  Index         1.6286        .54253        .28491       -.49249E-04
   3  Normalizat    .76409        .16177        .43140E-01    .18799E-04
   4  Prefactor     1.2028        .19212        .55843E-01    .44992E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.61733
  Index      = 1.62865
  Normalizat = 0.764087
  Prefactor  = 1.20278
 **********
 **   18 **HESSE 
 **********

 FCN=   5999.898     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6173        1.9224        .97847E-04   -1.5454    
   2  Index         1.6286        .76815        .10977E-01   -.73998    
   3  Normalizat    .76409        .19194        .25539E-03   -1.0141    
   4  Prefactor     1.2028        .22842        .24692E-03   -.86246    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90071e-12
Minuit parameter uncertainties:
  1  1.92246
  2  0.773798
  3  0.192112
  4  0.228606
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/511540': 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) = 5999.89786374
delta logL = 0.332505068489

Extracting fit parameters...

4FGL J1106.0+2813
   Spectrum: PowerLaw
253    Prefactor:  1.617e+00  1.922e+00  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  1.629e+00  7.738e-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.203e+00  2.286e-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:  7.641e-01  1.921e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.67
Ra Dec: 166.502 28.225
Photon Index (Free Index): 1.63 +/- 0.77
Photon Flux (Free Index): 8.33e-09 +/- 1.25e-08
Energy Flux (Free Index): 1.71e-05 +/- 3.05e-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/511540/cmap_HighResolution_248659201_248918401_4FGL_J1106.0+2813_daily_bin36.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.30e-08', energy_flux2='1.71e-05', photon_flux_error='2.25e-08', dlogl='3.33e-01', energy_flux='7.80e-06', photon_flux2='8.33e-09', job_status='DONE', time_completed='2021-09-03 08:02:15.023860', photon_index_error2='0.77', photon_index2='1.63', ts='4.01', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', energy_flux_error2='3.05e-05', EG='0.74', time_epoch_completed='1630681335.02', return_code='0', job_id='511540', GAL2='1.20', EG2='0.76', return_code2='0', energy_flux_error='7.63e-06', photon_flux_error2='1.25e-08', ts2='4.67', photon_index='2.37' WHERE bin_id='36' AND source_name='4FGL J1106.0+2813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 08:02:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 511540: <4FGL_J1106.0+2813_daily_bin36> in cluster <slac> Done

Job <4FGL_J1106.0+2813_daily_bin36> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 07:46:58 2021
Job was executed on host(s) <bullet0075>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 07:47:10 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:10 2021
Terminated at Fri Sep  3 08:02:15 2021
Results reported at Fri Sep  3 08:02:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1106.0+2813_daily_bin36 166.502 28.2254 248659201 248918401 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 :                                   747.40 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             298.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            917 sec.

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

