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


Performing analysis on: 4FGL_J1106.7+3623_daily_bin1171
RA = 166.688, Dec = 36.3995
tmin = 542851201, tmax = 543110401
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='542869', job_status='RUN', time_executed='2021-09-03 09:25:20.290925', time_epoch_executed='1630686320.29' WHERE source_name='4FGL J1106.7+3623' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/542869

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

Retrieving the FT1 file...

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

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

Retrieving 4 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/542869/ft1_4FGL_J1106.7+3623_daily_bin1171.fits


Retrieving the FT1 file...

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

Retrieving 4 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/542869/ft2_4FGL_J1106.7+3623_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/542869/ft1_4FGL_J1106.7+3623_daily_bin1171.fits outfile=/scratch/kocevski/542869/ft1_filteredMKT_4FGL_J1106.7+3623_daily_bin1171.fits ra=166.688 dec=36.3995 rad=12.0 tmin=542851201.0 tmax=543110401.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 0.90
user 0.60
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/542869/ft2_4FGL_J1106.7+3623_daily_bin1171.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/542869/ft2_4FGL_J1106.7+3623_daily_bin1171.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/542869/ft1_filteredMKT_4FGL_J1106.7+3623_daily_bin1171.fits evtable="EVENTS" outfile="/scratch/kocevski/542869/ft1_filtered_4FGL_J1106.7+3623_daily_bin1171.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.32
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/542869/ft1_filtered_4FGL_J1106.7+3623_daily_bin1171.fits" evtable="EVENTS" scfile=/scratch/kocevski/542869/ft2_4FGL_J1106.7+3623_daily_bin1171.fits sctable="SC_DATA" outfile=/scratch/kocevski/542869/ltcube_542851201_543110401_4FGL_J1106.7+3623_daily_bin1171.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/542869/ft2_4FGL_J1106.7+3623_daily_bin1171.fits
.....................!
real 2.13
user 1.62
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/542869/ft1_filtered_4FGL_J1106.7+3623_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/542869/ft2_4FGL_J1106.7+3623_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/542869/ltcube_542851201_543110401_4FGL_J1106.7+3623_daily_bin1171.fits outfile=/scratch/kocevski/542869/expmap_542851201_543110401_4FGL_J1106.7+3623_daily_bin1171.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/542869/ltcube_542851201_543110401_4FGL_J1106.7+3623_daily_bin1171.fits
.....................!
real 191.33
user 185.97
sys 4.56

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

Setting source of interest to:
4FGL J1106.7+3623 @ 166.688 36.3995

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/542869/ft1_filtered_4FGL_J1106.7+3623_daily_bin1171.fits scfile=/scratch/kocevski/542869/ft2_4FGL_J1106.7+3623_daily_bin1171.fits outfile=/scratch/kocevski/542869/cmap_542851201_543110401_4FGL_J1106.7+3623_daily_bin1171.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.688 yref=36.3995 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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/542869/ft1_filtered_4FGL_J1106.7+3623_daily_bin1171.fits scfile=/scratch/kocevski/542869/ft2_4FGL_J1106.7+3623_daily_bin1171.fits outfile=/scratch/kocevski/542869/cmap_HighResolution_542851201_543110401_4FGL_J1106.7+3623_daily_bin1171.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.688 yref=36.3995 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.60
user 0.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/542869/ft1_filtered_4FGL_J1106.7+3623_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/542869/ft2_4FGL_J1106.7+3623_daily_bin1171.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/542869/Model_4FGL_J1106.7+3623_daily_bin1171.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/542869/ft1_filtered_4FGL_J1106.7+3623_daily_bin1171.fits.......!
real 14.58
user 12.78
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/542869/ft1_filtered_4FGL_J1106.7+3623_daily_bin1171.fits', '/scratch/kocevski/542869/ft2_4FGL_J1106.7+3623_daily_bin1171.fits', expMap='/scratch/kocevski/542869/expmap_542851201_543110401_4FGL_J1106.7+3623_daily_bin1171.fits', expCube='/scratch/kocevski/542869/ltcube_542851201_543110401_4FGL_J1106.7+3623_daily_bin1171.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/542869/Model_4FGL_J1106.7+3623_daily_bin1171.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1106.7+3623'

4FGL J1106.7+3623
   Spectrum: PowerLaw
331    Prefactor:  2.571e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.509e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  1.089e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/542869/ft1_filtered_4FGL_J1106.7+3623_daily_bin1171.fits
Spacecraft file(s): /scratch/kocevski/542869/ft2_4FGL_J1106.7+3623_daily_bin1171.fits
Exposure map: /scratch/kocevski/542869/expmap_542851201_543110401_4FGL_J1106.7+3623_daily_bin1171.fits
Exposure cube: /scratch/kocevski/542869/ltcube_542851201_543110401_4FGL_J1106.7+3623_daily_bin1171.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/542869/Model_4FGL_J1106.7+3623_daily_bin1171.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) = 78.1323948232

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    397.78       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10334E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11024E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.939       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    454.42       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .18323E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    83.674       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    95.628       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15819E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .11259E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10116E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12853E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    326.91       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10857E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .32650E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .11018E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .22945E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    1124.7       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    31 'Prefactor '    .77611E-07   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6460E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   76.38741     FROM MIGRAD    STATUS=CONVERGED    739 CALLS     4817 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.089       -.36309E-07** at limit **
   2  Prefactor     397.57        439.15       -.87128E-06   -.25175E-04
   3  Prefactor     .10000E-03    18.399       -.47726E-08** at limit **
   4  norm          .10000E-03    76.605       -.50536E-06** at limit **
   5  Prefactor     .10000E-03    607.48       -.14427E-05** at limit **
   6  Prefactor     .10000E-03    176.88        .29554E-06** at limit **
   7  Prefactor     21.991        48.162       -.76447E-06   -.69682E-04
   8  Prefactor     .10000E-03    28.001        .51182E-06** at limit **
   9  Prefactor     .10000E-03    303.34        .45833E-06** at limit **
  10  Prefactor     455.02        476.44       -.15194E-05   -.13568E-04
  11  Prefactor     .10000E-03    1114.3       -.91202E-06** at limit **
  12  Prefactor     82.436        894.71       -.19650E-04   -.11314E-04
  13  norm          .10000E-03    2.3988        .33588E-06** at limit **
  14  Prefactor     96.185        136.72        .17943E-05   -.23191E-04
  15  Prefactor     .10000E-03    162.44        .10149E-05** at limit **
  16  Prefactor     .10000E-03    163.58        .20463E-06** at limit **
  17  norm          .10000E-03    179.43        .40770E-06** at limit **
  18  norm          .10001E-03    550.90        .20124E-04** at limit **
  19  Prefactor     .10000E-03    31.120        .16566E-06** at limit **
  20  Prefactor     .10000E-03    548.23        .84240E-07** at limit **
  21  Prefactor     .10000E-03    345.80        .28215E-05** at limit **
  22  norm          .10000E-03    31.237        .22514E-06** at limit **
  23  Prefactor     327.00        327.67       -.37409E-06   -.78581E-05
  24  Prefactor     .10000E-03    61.566        .27387E-06** at limit **
  25  Prefactor     .10000E-03    495.35        .49872E-06** at limit **
  26  norm          .10000E-03    43.185        .86792E-05** at limit **
  27  norm          .10000E-03    235.67        .60307E-06** at limit **
  28  Prefactor     .10000E-03    266.04        .50415E-06** at limit **
  29  Prefactor     1125.5        1225.9       -.10375E-04   -.31448E-04
  30  Normalizat    .10000E-01    .68754        .37370E-04** at limit **
  31  Prefactor     .16204E-11    .42694        .16983E-04** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 397.568
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.9914
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 455.015
  Prefactor  = 0.000100002
  Prefactor  = 82.4365
  norm       = 0.0001
  Prefactor  = 96.1854
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 327.001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1125.49
  Normalizat = 0.01
  Prefactor  = 1.62037e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   76.38741     FROM HESSE     STATUS=OK           590 CALLS     5407 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.089        .36431E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     397.57        440.34        .10233E-03   -1.1693    
   3  Prefactor     .10000E-03    18.399        .36742E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    76.610        .75036E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    607.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    176.86        .11422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.991        48.318        .77907E-04   -1.4770    
   8  Prefactor     .10000E-03    27.996        .45331E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    303.34        .14991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     455.02        476.90        .96029E-04   -1.1409    
  11  Prefactor     .10000E-03    1114.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     82.436        917.45        .43913E-04   -1.3890    
  13  norm          .10000E-03    2.3973        .13259E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     96.185        136.76        .20551E-03   -1.3743    
  15  Prefactor     .10000E-03    162.40        .10943E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    163.57        .10982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    179.41        .11505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10001E-03    543.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    31.119        .47794E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    548.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    345.46        .16014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    31.235        .47883E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     327.00        327.70        .11247E-03   -1.2071    
  24  Prefactor     .10000E-03    61.561        .67258E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    495.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    43.079        .55912E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    235.65        .13198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    266.03        .14030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     1125.5        1247.4        .63301E-04   -.88656    
  30  Normalizat    .10000E-01    .70532        .22785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .16204E-11    .42706        .17806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.745e-10
Minuit parameter uncertainties:
  1  3.18131e-06
  2  444.155
  3  2.32463e-06
  4  9.12794e-05
  5  4.72548e-05
  6  8.89788e-05
  7  48.4044
  8  1.81952e-05
  9  0.000379591
  10  481.166
  11  0.00268116
  12  561.291
  13  3.79914e-06
  14  137.214
  15  0.000238589
  16  0.000161595
  17  8.08218e-05
  18  0.00387176
  19  2.3209e-07
  20  0.000211413
  21  4.26274e-06
  22  1.14229e-05
  23  329.581
  24  3.09703e-05
  25  4.70914e-05
  26  0.000330732
  27  0.000198669
  28  0.000304208
  29  1282.26
  30  2.00821e-06
  31  1.67568e-06
Done.

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

Extracting fit parameters...

4FGL J1106.7+3623
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  2.386e-04  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.509e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  1.089e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
643    Prefactor:  1.620e-12  1.676e-06  0.000e+00  1.000e+01 ( 1.000e+00)
644        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
645        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
642   Normalization:  1.000e-02  2.008e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 166.688 36.400
Photon Flux Upper Limit: 2.38e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.85e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/542869/likelihoodResults_542851201_543110401_4FGL_J1106.7+3623_daily_bin1171.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) = 76.3874410996
delta logL = -2.99311703884e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 76.3874114953
delta logL = -3.26919462168e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9199       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .37668E-08   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6460E+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=   76.38741     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      265 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10723E-03    219.67        .85282E-02** at limit **
   2  Index         2.7884        8.1664        .50000        .29514E-05
   3  Normalizat    .10000E-01    .28180E-02    .22777E-02** at limit **
   4  Prefactor     .23759E-11    .16898E-02    .17802E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000107232
  Index      = 2.7884
  Normalizat = 0.01
  Prefactor  = 2.37588e-12
 **********
 **   18 **HESSE 
 **********

 FCN=   76.38741     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      294 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10723E-03    1718.4        .91327E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7884        5.9110        .50000       -.45818    
   3  Normalizat    .10000E-01    .23925E-01    .45554E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .23759E-11    .14351E-01    .35604E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.19275e-09
Minuit parameter uncertainties:
  1  0.229898
  2  1519.78
  3  5.00133e-07
  4  3.69411e-07
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/542869': 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) = 76.3874113335
delta logL = -1.65138203556e-07

Extracting fit parameters...

4FGL J1106.7+3623
   Spectrum: PowerLaw
331    Prefactor:  1.072e-04  2.299e-01  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.788e+00  1.520e+03  0.000e+00  1.000e+01 (-1.000e+00)
333        Scale:  1.089e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
643    Prefactor:  2.376e-12  3.694e-07  0.000e+00  1.000e+01 ( 1.000e+00)
644        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
645        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
642   Normalization:  1.000e-02  5.001e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 166.688 36.400

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/542869/cmap_HighResolution_542851201_543110401_4FGL_J1106.7+3623_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.85e-01', job_status='DONE', photon_flux_upper_limit='2.38e-06', time_completed='2021-09-03 09:30:39.864928', job_id='542869', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630686639.86', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.00', dlogl='-1.65e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1171' AND source_name='4FGL J1106.7+3623' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 09:30:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 542869: <4FGL_J1106.7+3623_daily_bin1171> in cluster <slac> Done

Job <4FGL_J1106.7+3623_daily_bin1171> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 09:16:22 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 09:24:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 09:24:52 2021
Terminated at Fri Sep  3 09:30:40 2021
Results reported at Fri Sep  3 09:30:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1106.7+3623_daily_bin1171 166.688 36.3995 542851201 543110401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1106.7+3623 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   315.75 sec.
    Max Memory :                                 1248 MB
    Average Memory :                             330.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   348 sec.
    Turnaround time :                            858 sec.

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

