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


Performing analysis on: 4FGL_J1106.0+2813_daily_bin18
RA = 166.502, Dec = 28.2254
tmin = 243993601, tmax = 244252801
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='511522', job_status='RUN', time_executed='2021-09-03 07:47:18.252570', time_epoch_executed='1630680438.25' WHERE source_name='4FGL J1106.0+2813' and cadence='daily' and bin_id='18'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/511522

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/511522/ft1_4FGL_J1106.0+2813_daily_bin18.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/511522/ft2_4FGL_J1106.0+2813_daily_bin18.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/511522/ft1_4FGL_J1106.0+2813_daily_bin18.fits outfile=/scratch/kocevski/511522/ft1_filteredMKT_4FGL_J1106.0+2813_daily_bin18.fits ra=166.502 dec=28.2254 rad=12.0 tmin=243993601.0 tmax=244252801.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.40
user 1.21
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/511522/ft2_4FGL_J1106.0+2813_daily_bin18.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/511522/ft1_filteredMKT_4FGL_J1106.0+2813_daily_bin18.fits evtable="EVENTS" outfile="/scratch/kocevski/511522/ft1_filtered_4FGL_J1106.0+2813_daily_bin18.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.52
user 0.33
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/511522/ft1_filtered_4FGL_J1106.0+2813_daily_bin18.fits evtable="EVENTS" scfile=/scratch/kocevski/511522/ft2_4FGL_J1106.0+2813_daily_bin18.fits sctable="SC_DATA" expcube=/scratch/kocevski/511522/ltcube_243993601_244252801_4FGL_J1106.0+2813_daily_bin18.fits outfile=/scratch/kocevski/511522/expmap_243993601_244252801_4FGL_J1106.0+2813_daily_bin18.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/511522/ltcube_243993601_244252801_4FGL_J1106.0+2813_daily_bin18.fits
.....................!
real 193.46
user 187.08
sys 5.84

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/511522/ft1_filtered_4FGL_J1106.0+2813_daily_bin18.fits scfile=/scratch/kocevski/511522/ft2_4FGL_J1106.0+2813_daily_bin18.fits outfile=/scratch/kocevski/511522/cmap_243993601_244252801_4FGL_J1106.0+2813_daily_bin18.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.71
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/511522/ft1_filtered_4FGL_J1106.0+2813_daily_bin18.fits scfile=/scratch/kocevski/511522/ft2_4FGL_J1106.0+2813_daily_bin18.fits outfile=/scratch/kocevski/511522/cmap_HighResolution_243993601_244252801_4FGL_J1106.0+2813_daily_bin18.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.74
user 0.40
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.8720       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .26121E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1528       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .22031       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.329       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.137       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    25.220       1.0000         .10000E-03   10000.    
    11 'norm      '    1.6480       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    22.104       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.2492       1.0000         .10000E-03   10000.    
    17 'norm      '    1.8108       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.7466       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.105       1.0000         .10000E-03   10000.    
    22 'norm      '    .62308E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .59079       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.0966       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.0230       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.3001       1.0000         .10000E-03   10000.    
    28 'norm      '    3.9198       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .78176       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0873       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=   5839.582     FROM MIGRAD    STATUS=CONVERGED    781 CALLS     3445 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    47.181       -.47918E-05** at limit **
   2  Prefactor     8.8013        51.127        .26040E-05    .86534E-04
   3  Prefactor     .10045E-03    5.0228       -.81165E-06** at limit **
   4  Prefactor     3.1464        5.9059        .42160E-06   -.11770E-03
   5  Prefactor     .10000E-03    1.1472        .10163E-06** at limit **
   6  Prefactor     .21454        7.9769        .24421E-06    .27168E-04
   7  Prefactor     10.316        16.591        .13191E-06    .98745E-05
   8  Prefactor     16.137        11.441        .22603E-07   -.18546E-03
   9  Prefactor     .10000E-03    2.5210        .44383E-07** at limit **
  10  Prefactor     25.224        15.060        .23272E-06   -.11993E-03
  11  norm          1.6481        .35589        .49104E-09   -.15663E-03
  12  Prefactor     .10000E-03    .73022        .66256E-07** at limit **
  13  Prefactor     .10000E-03    8.5189       -.24745E-06** at limit **
  14  Prefactor     .10000E-03    10.956        .42182E-06** at limit **
  15  norm          22.113        14.171        .30976E-06   -.34326E-04
  16  Prefactor     7.2484        6.5233        .31286E-07   -.23993E-04
  17  norm          1.8102        6.3448        .24068E-05   -.95514E-05
  18  Prefactor     1.7488        14.554        .36837E-05    .74562E-05
  19  Prefactor     .10000E-03    .71666        .23358E-07** at limit **
  20  Prefactor     .10000E-03    35.562        .33153E-05** at limit **
  21  Prefactor     14.103        13.322        .20940E-06   -.36491E-04
  22  norm          .10004E-03    1.0084        .22788E-06** at limit **
  23  Prefactor     .10000E-03    12.835       -.30374E-06** at limit **
  24  Prefactor     .57887        4.1295        .19881E-06   -.92424E-04
  25  Prefactor     1.0967        32.420        .16413E-05    .10599E-04
  26  Prefactor     3.0229        1.9683        .84230E-07   -.89896E-04
  27  Prefactor     2.2325        51.081        .55869E-05   -.11227E-04
  28  norm          3.9197        1.6945        .25826E-07   -.19397E-03
  29  Normalizat    .78141        .17588       -.21105E-05   -.59992E-04
  30  Prefactor     1.0877        .19309       -.12253E-05   -.24395E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.80132
  Prefactor  = 0.00010045
  Prefactor  = 3.14641
  Prefactor  = 0.000100004
  Prefactor  = 0.214539
  Prefactor  = 10.3158
  Prefactor  = 16.1367
  Prefactor  = 0.0001
  Prefactor  = 25.2239
  norm       = 1.64814
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.1126
  Prefactor  = 7.24837
  norm       = 1.81018
  Prefactor  = 1.74878
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.1033
  norm       = 0.000100042
  Prefactor  = 0.0001
  Prefactor  = 0.578873
  Prefactor  = 1.09666
  Prefactor  = 3.02295
  Prefactor  = 2.23252
  norm       = 3.91968
  Normalizat = 0.781413
  Prefactor  = 1.08768
 **********
 **   18 **HESSE 
 **********

 FCN=   5839.582     FROM HESSE     STATUS=OK           612 CALLS     4057 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    46.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.8013        53.554        .13457E-03   -1.5115    
   3  Prefactor     .10045E-03    67.866        .27291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.1464        5.7577        .22828E-03   -1.5353    
   5  Prefactor     .10000E-03    8.6810        .15056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .21454        61.535        .36360E-02   -1.5615    
   7  Prefactor     10.316        16.587        .12467E-03   -1.5065    
   8  Prefactor     16.137        11.613        .99703E-04   -1.4904    
   9  Prefactor     .10000E-03    2.5236        .11850E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     25.224        15.040        .79767E-04   -1.4703    
  11  norm          1.6481        .35614        .20469E-04   -1.5451    
  12  Prefactor     .10000E-03    .73999        .63789E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.5436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          22.113        14.152        .85195E-04   -1.4767    
  16  Prefactor     7.2484        6.5087        .14898E-03   -1.5169    
  17  norm          1.8102        6.3517        .15524E-02   -1.5439    
  18  Prefactor     1.7488        14.647        .15866E-02   -1.5443    
  19  Prefactor     .10000E-03    .72733        .63095E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    35.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.103        13.263        .10665E-03   -1.4957    
  22  norm          .10004E-03    2.3614        .27624E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .57887        7.9995        .28060E-02   -1.5556    
  25  Prefactor     1.0967        32.963        .45494E-03   -1.5499    
  26  Prefactor     3.0229        1.9520        .82015E-04   -1.5360    
  27  Prefactor     2.2325        49.756        .27059E-03   -1.5409    
  28  norm          3.9197        1.6894        .62925E-04   -1.5312    
  29  Normalizat    .78141        .20168        .25270E-03   -1.0076    
  30  Prefactor     1.0877        .22698        .25570E-03   -.89861    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00762e-08
Minuit parameter uncertainties:
  1  0.000207305
  2  43.4787
  3  0.0110654
  4  5.75875
  5  0.000353117
  6  7.27269
  7  16.5943
  8  11.6142
  9  5.06586e-06
  10  15.0426
  11  0.356137
  12  3.8402e-06
  13  2.56197e-05
  14  1.47717e-05
  15  14.1541
  16  6.50931
  17  6.35409
  18  10.1251
  19  1.25173e-06
  20  2.4778e-05
  21  13.2659
  22  0.000627176
  23  3.8721e-05
  24  4.30414
  25  12.0316
  26  1.952
  27  21.0985
  28  1.68938
  29  0.201871
  30  0.227183
Done.

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

Extracting fit parameters...

4FGL J1106.0+2813
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  3.840e-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:  1.088e+00  2.272e-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.814e-01  2.019e-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: 4.22e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/511522/likelihoodResults_243993601_244252801_4FGL_J1106.0+2813_daily_bin18.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) = 5839.58835297
delta logL = -0.00621064635652

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5839.58214342
delta logL = -1.08980293589e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10301E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3559       1.0000          .0000       10.000    
     3 'Normalizat'    .78139       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0878       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=   5839.582     FROM MIGRAD    STATUS=CONVERGED     67 CALLS      215 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.8932        .90712E-02** at limit **
   2  Index         1.8703        8.2778        .50000       -.23688E-06
   3  Normalizat    .78141        .93263E-02    .43367E-01   -.25381E-03
   4  Prefactor     1.0877        .11019E-01    .57826E-01   -.24372E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 1.87026
  Normalizat = 0.781411
  Prefactor  = 1.08768
 **********
 **   18 **HESSE 
 **********

 FCN=   5839.582     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      246 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    64.328        .71812E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8703        5.3409        .50000       -.67635    
   3  Normalizat    .78141        .36457E-01    .25269E-03   -1.0076    
   4  Prefactor     1.0877        .43065E-01    .25570E-03   -.89861    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.31521e-07
Minuit parameter uncertainties:
  1  0.000724507
  2  422.736
  3  0.0364581
  4  0.043066
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/511522': 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) = 5839.58212835
delta logL = 1.39734374898e-05

Extracting fit parameters...

4FGL J1106.0+2813
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  7.245e-04  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  1.870e+00  4.227e+02  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.088e+00  4.307e-02  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.814e-01  3.646e-02  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/511522/cmap_HighResolution_243993601_244252801_4FGL_J1106.0+2813_daily_bin18.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.25e-03', job_status='DONE', photon_flux_upper_limit='4.22e-08', time_completed='2021-09-03 08:00:28.200737', job_id='511522', GAL2='1.09', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1630681228.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='1.40e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='18' AND source_name='4FGL J1106.0+2813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 08:00:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 511522: <4FGL_J1106.0+2813_daily_bin18> in cluster <slac> Done

Job <4FGL_J1106.0+2813_daily_bin18> 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) <bullet0242>, 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:00:28 2021
Results reported at Fri Sep  3 08:00:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1106.0+2813_daily_bin18 166.502 28.2254 243993601 244252801 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 :                                   785.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   808 sec.
    Turnaround time :                            813 sec.

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

