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


Performing analysis on: 4FGL_J1106.0+2813_daily_bin92
RA = 166.502, Dec = 28.2254
tmin = 263174401, tmax = 263433601
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='511614', job_status='RUN', time_executed='2021-09-03 07:50:25.007322', time_epoch_executed='1630680625.01' WHERE source_name='4FGL J1106.0+2813' and cadence='daily' and bin_id='92'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/511614

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/511614/ft1_4FGL_J1106.0+2813_daily_bin92.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/511614/ft2_4FGL_J1106.0+2813_daily_bin92.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/511614/ft1_4FGL_J1106.0+2813_daily_bin92.fits outfile=/scratch/kocevski/511614/ft1_filteredMKT_4FGL_J1106.0+2813_daily_bin92.fits ra=166.502 dec=28.2254 rad=12.0 tmin=263174401.0 tmax=263433601.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.35
user 1.19
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/511614/ft2_4FGL_J1106.0+2813_daily_bin92.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/511614/ft1_filteredMKT_4FGL_J1106.0+2813_daily_bin92.fits evtable="EVENTS" outfile="/scratch/kocevski/511614/ft1_filtered_4FGL_J1106.0+2813_daily_bin92.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.48
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/511614/ft1_filtered_4FGL_J1106.0+2813_daily_bin92.fits evtable="EVENTS" scfile=/scratch/kocevski/511614/ft2_4FGL_J1106.0+2813_daily_bin92.fits sctable="SC_DATA" expcube=/scratch/kocevski/511614/ltcube_263174401_263433601_4FGL_J1106.0+2813_daily_bin92.fits outfile=/scratch/kocevski/511614/expmap_263174401_263433601_4FGL_J1106.0+2813_daily_bin92.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/511614/ltcube_263174401_263433601_4FGL_J1106.0+2813_daily_bin92.fits
.....................!
real 191.07
user 185.99
sys 4.69

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/511614/ft1_filtered_4FGL_J1106.0+2813_daily_bin92.fits scfile=/scratch/kocevski/511614/ft2_4FGL_J1106.0+2813_daily_bin92.fits outfile=/scratch/kocevski/511614/cmap_263174401_263433601_4FGL_J1106.0+2813_daily_bin92.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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/511614/ft1_filtered_4FGL_J1106.0+2813_daily_bin92.fits scfile=/scratch/kocevski/511614/ft2_4FGL_J1106.0+2813_daily_bin92.fits outfile=/scratch/kocevski/511614/cmap_HighResolution_263174401_263433601_4FGL_J1106.0+2813_daily_bin92.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.57
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    57.311       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.034       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5456       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .36197E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.924       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13186E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    1.2723       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.489       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14696E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.5346       1.0000         .10000E-03   10000.    
    17 'norm      '    .10096E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4262       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.5321       1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.984       1.0000         .10000E-03   10000.    
    22 'norm      '    .12627E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.4651       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.7944       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10753E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    2.7152       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .90821       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .81889       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=   4238.982     FROM MIGRAD    STATUS=CONVERGED    784 CALLS     3945 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     57.244        63.280       -.33070E-04   -.68770E-04
   2  Prefactor     .10000E-03    15.852       -.16367E-06** at limit **
   3  Prefactor     .10000E-03    2.4027        .33625E-07** at limit **
   4  Prefactor     10.032        9.2295        .16148E-05   -.15626E-03
   5  Prefactor     1.5451        2.1704       -.49942E-06   -.63684E-03
   6  Prefactor     .10000E-03    5.6508       -.32634E-06** at limit **
   7  Prefactor     .10004E-03    122.89        .10309E-03** at limit **
   8  Prefactor     12.923        10.886       -.18686E-05   -.44395E-03
   9  Prefactor     .10000E-03    7.2716       -.17699E-05** at limit **
  10  Prefactor     .10046E-03    10.936        .30361E-05** at limit **
  11  norm          1.2720        .40064       -.32495E-07    .74150E-03
  12  Prefactor     .10000E-03    1.0810       -.44806E-07** at limit **
  13  Prefactor     11.475        15.170        .10416E-05   -.33927E-04
  14  Prefactor     .10000E-03    55.402       -.11932E-04** at limit **
  15  norm          .10000E-03    6.0779        .42086E-06** at limit **
  16  Prefactor     2.5340        5.2749       -.69331E-06   -.42615E-03
  17  norm          .10000E-03    7.4649        .13484E-05** at limit **
  18  Prefactor     .10000E-03    2.9297       -.25367E-07** at limit **
  19  Prefactor     1.4282        2.8773        .17484E-05   -.38237E-03
  20  Prefactor     4.4093        156.77       -.31675E-04   -.81722E-04
  21  Prefactor     25.984        19.494       -.13905E-05   -.19152E-04
  22  norm          .10000E-03    2.0481        .84029E-06** at limit **
  23  Prefactor     5.4671        10.904       -.86893E-05   -.99278E-04
  24  Prefactor     .10000E-03    2.1014        .77792E-07** at limit **
  25  Prefactor     .10000E-03    4.7652       -.63924E-07** at limit **
  26  Prefactor     4.7945        2.2456       -.70264E-07    .22377E-04
  27  Prefactor     .10000E-03    47.575       -.11646E-05** at limit **
  28  norm          2.7154        1.6338       -.18475E-07    .60849E-05
  29  Normalizat    .90851        .18643        .28223E-05   -.84622E-03
  30  Prefactor     .81848        .20639        .94466E-06   -.54402E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 57.244
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.0319
  Prefactor  = 1.54506
  Prefactor  = 0.0001
  Prefactor  = 0.000100044
  Prefactor  = 12.9228
  Prefactor  = 0.0001
  Prefactor  = 0.000100464
  norm       = 1.27197
  Prefactor  = 0.0001
  Prefactor  = 11.4748
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.53405
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.42817
  Prefactor  = 4.40928
  Prefactor  = 25.9836
  norm       = 0.000100002
  Prefactor  = 5.46714
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.79454
  Prefactor  = 0.0001
  norm       = 2.71543
  Normalizat = 0.908508
  Prefactor  = 0.818482
 **********
 **   18 **HESSE 
 **********

 FCN=   4238.982     FROM HESSE     STATUS=OK           580 CALLS     4525 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     57.244        63.486        .52991E-04   -1.4193    
   2  Prefactor     .10000E-03    15.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.4088        .98553E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.032        9.2219        .12650E-03   -1.5074    
   5  Prefactor     1.5451        2.1372        .10714E-03   -1.5459    
   6  Prefactor     .10000E-03    5.6899        .15092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10004E-03    123.82        .42617E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.923        10.551        .11142E-03   -1.4989    
   9  Prefactor     .10000E-03    7.3103        .17145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10046E-03    57.965        .40144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2720        .40215        .21655E-04   -1.5482    
  12  Prefactor     .10000E-03    1.0907        .66073E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     11.475        15.202        .11819E-03   -1.5030    
  14  Prefactor     .10000E-03    56.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.0937        .15674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.5340        5.2651        .20847E-03   -1.5390    
  17  norm          .10000E-03    7.5079        .17369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.9326        .10883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.4282        2.7421        .11371E-03   -1.5469    
  20  Prefactor     4.4093        137.80        .18911E-03   -1.5288    
  21  Prefactor     25.984        19.465        .78588E-04   -1.4688    
  22  norm          .10000E-03    3.7567        .17159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.4671        10.891        .17188E-03   -1.5240    
  24  Prefactor     .10000E-03    2.1173        .92144E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.7672        .13881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     4.7945        2.2454        .64686E-04   -1.5270    
  27  Prefactor     .10000E-03    48.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          2.7154        1.6311        .62573E-04   -1.5378    
  29  Normalizat    .90851        .21372        .22560E-03   -.96162    
  30  Prefactor     .81848        .23667        .27000E-03   -.99051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.80988e-09
Minuit parameter uncertainties:
  1  63.5614
  2  6.10355e-07
  3  4.63463e-09
  4  9.22316
  5  2.13729
  6  2.1051e-05
  7  0.00470398
  8  10.5521
  9  1.55241e-05
  10  0.0103857
  11  0.402154
  12  3.19741e-06
  13  15.2072
  14  0.000127986
  15  1.28287e-05
  16  5.26608
  17  1.47691e-05
  18  3.26416e-06
  19  2.74231
  20  49.4228
  21  19.4694
  22  0.000161107
  23  10.8945
  24  5.02438e-06
  25  1.11264e-07
  26  2.24549
  27  1.88751e-05
  28  1.63116
  29  0.213921
  30  0.23696
Done.

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

Extracting fit parameters...

4FGL J1106.0+2813
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  3.197e-06  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:  8.185e-01  2.370e-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.085e-01  2.139e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 166.502 28.225
Photon Flux Upper Limit: 5.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/511614/likelihoodResults_263174401_263433601_4FGL_J1106.0+2813_daily_bin92.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) = 4238.98659138
delta logL = -0.00430143324866

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4238.9822901
delta logL = -1.55558154802e-07

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 'Index     '    2.3854       1.0000          .0000       10.000    
     3 'Normalizat'    .90848       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81858       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=   4238.982     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      229 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    70.059        .90712E-02** at limit **
   2  Index         2.3863        5.5017        .50000       -.82331E-05
   3  Normalizat    .90851        .39614E-01    .45010E-01    .18067E-04
   4  Prefactor     .81848        .45344E-01    .43959E-01    .19007E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.38632
  Normalizat = 0.908513
  Prefactor  = 0.81848
 **********
 **   18 **HESSE 
 **********

 FCN=   4238.982     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      262 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    262.19        .66073E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3863        7.3147        .50000       -.55006    
   3  Normalizat    .90851        .16938        .22560E-03   -.96162    
   4  Prefactor     .81848        .19415        .27000E-03   -.99051    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.80923e-08
Minuit parameter uncertainties:
  1  1.37232e-05
  2  66.3788
  3  0.169477
  4  0.194315
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/511614': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4238.98228992
delta logL = 2.04136085813e-08

Extracting fit parameters...

4FGL J1106.0+2813
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  1.372e-05  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.386e+00  6.638e+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:  8.185e-01  1.943e-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.085e-01  1.695e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 166.502 28.225

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/511614/cmap_HighResolution_263174401_263433601_4FGL_J1106.0+2813_daily_bin92.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.58e-03', job_status='DONE', photon_flux_upper_limit='5.94e-08', time_completed='2021-09-03 08:01:36.679884', job_id='511614', GAL2='0.82', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1630681296.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='2.04e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='92' AND source_name='4FGL J1106.0+2813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 08:01:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 511614: <4FGL_J1106.0+2813_daily_bin92> in cluster <slac> Done

Job <4FGL_J1106.0+2813_daily_bin92> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 07:47:04 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 07:47:34 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:34 2021
Terminated at Fri Sep  3 08:01:37 2021
Results reported at Fri Sep  3 08:01:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1106.0+2813_daily_bin92 166.502 28.2254 263174401 263433601 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 :                                   672.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             255.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            873 sec.

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

