/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 4 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 = 7572
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1106.0+2813_daily_bin412
RA = 166.502, Dec = 28.2254
tmin = 346118401, tmax = 346377601
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='513048', job_status='RUN', time_executed='2021-09-03 07:51:59.797739', time_epoch_executed='1630680719.8' WHERE source_name='4FGL J1106.0+2813' and cadence='daily' and bin_id='412'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/513048

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/513048/ft1_4FGL_J1106.0+2813_daily_bin412.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/513048/ft2_4FGL_J1106.0+2813_daily_bin412.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/513048/ft1_4FGL_J1106.0+2813_daily_bin412.fits outfile=/scratch/kocevski/513048/ft1_filteredMKT_4FGL_J1106.0+2813_daily_bin412.fits ra=166.502 dec=28.2254 rad=12.0 tmin=346118401.0 tmax=346377601.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 4.12
user 3.83
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/513048/ft1_filtered_4FGL_J1106.0+2813_daily_bin412.fits" evtable="EVENTS" scfile=/scratch/kocevski/513048/ft2_4FGL_J1106.0+2813_daily_bin412.fits sctable="SC_DATA" outfile=/scratch/kocevski/513048/ltcube_346118401_346377601_4FGL_J1106.0+2813_daily_bin412.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/513048/ft2_4FGL_J1106.0+2813_daily_bin412.fits
.....................!
real 12.83
user 12.47
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/513048/ft1_filtered_4FGL_J1106.0+2813_daily_bin412.fits evtable="EVENTS" scfile=/scratch/kocevski/513048/ft2_4FGL_J1106.0+2813_daily_bin412.fits sctable="SC_DATA" expcube=/scratch/kocevski/513048/ltcube_346118401_346377601_4FGL_J1106.0+2813_daily_bin412.fits outfile=/scratch/kocevski/513048/expmap_346118401_346377601_4FGL_J1106.0+2813_daily_bin412.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/513048/ltcube_346118401_346377601_4FGL_J1106.0+2813_daily_bin412.fits
.....................!
real 191.17
user 186.94
sys 3.86

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/513048/ft1_filtered_4FGL_J1106.0+2813_daily_bin412.fits scfile=/scratch/kocevski/513048/ft2_4FGL_J1106.0+2813_daily_bin412.fits outfile=/scratch/kocevski/513048/cmap_346118401_346377601_4FGL_J1106.0+2813_daily_bin412.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.60
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/513048/ft1_filtered_4FGL_J1106.0+2813_daily_bin412.fits scfile=/scratch/kocevski/513048/ft2_4FGL_J1106.0+2813_daily_bin412.fits outfile=/scratch/kocevski/513048/cmap_HighResolution_346118401_346377601_4FGL_J1106.0+2813_daily_bin412.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=166.502 yref=28.2254 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.58
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.6187       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6963       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7311       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.6800       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.222       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.6689       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.4485       1.0000         .10000E-03   10000.    
    11 'norm      '    .72049       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.8084       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8461       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.7884       1.0000         .10000E-03   10000.    
    15 'norm      '    .49257       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .47999E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4280       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.4470       1.0000         .10000E-03   10000.    
    20 'Prefactor '    75.954       1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.687       1.0000         .10000E-03   10000.    
    22 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.7665       1.0000         .10000E-03   10000.    
    25 'Prefactor '    67.009       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .49059       1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.2341       1.0000         .10000E-03   10000.    
    28 'norm      '    .22058       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .81125       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0870       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=   5688.366     FROM MIGRAD    STATUS=CONVERGED    763 CALLS     3394 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    72.692        .21938E-05** at limit **
   2  Prefactor     .10000E-03    34.329        .15918E-05** at limit **
   3  Prefactor     4.6197        5.7277       -.71688E-06   -.30676E-03
   4  Prefactor     2.6969        6.9365       -.68145E-06   -.17580E-03
   5  Prefactor     2.7312        2.0493       -.65769E-07   -.13049E-03
   6  Prefactor     8.6810        7.4008        .13883E-06    .71231E-04
   7  Prefactor     14.223        20.262       -.16165E-06    .19310E-04
   8  Prefactor     5.6691        6.1578        .11734E-06    .67634E-04
   9  Prefactor     .10000E-03    5.4070        .90681E-07** at limit **
  10  Prefactor     6.4487        11.175       -.39567E-06    .90281E-05
  11  norm          .72046        .27432       -.11305E-07    .58491E-03
  12  Prefactor     2.8085        2.2579       -.37303E-07    .23865E-04
  13  Prefactor     2.8567        30.029        .10498E-05    .14343E-03
  14  Prefactor     6.7874        8.5014       -.17337E-06    .73643E-05
  15  norm          .53158        41.650        .21914E-05    .43347E-03
  16  Prefactor     .10134E-03    30.504       -.50282E-05** at limit **
  17  norm          .10000E-03    4.1402        .86105E-07** at limit **
  18  Prefactor     2.4272        6.8504        .12836E-06    .94178E-04
  19  Prefactor     1.4480        2.4084        .32118E-06    .22554E-03
  20  Prefactor     75.933        51.492       -.19510E-05   -.87301E-04
  21  Prefactor     13.688        15.523       -.34085E-06   -.19257E-04
  22  norm          .10000E-03    .75518        .33620E-06** at limit **
  23  Prefactor     .10000E-03    6.0782        .18379E-06** at limit **
  24  Prefactor     8.7662        5.0837       -.51294E-07   -.46706E-04
  25  Prefactor     67.011        22.157       -.26751E-06   -.55701E-04
  26  Prefactor     .49057        1.5556       -.76006E-06   -.64534E-03
  27  Prefactor     9.2355        20.387       -.72525E-06   -.40430E-04
  28  norm          .22061        .55938        .47196E-06    .10331E-02
  29  Normalizat    .81114        .18401        .80424E-06    .24332E-03
  30  Prefactor     1.0870        .19697       -.60500E-06    .20787E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.61974
  Prefactor  = 2.69686
  Prefactor  = 2.73125
  Prefactor  = 8.68098
  Prefactor  = 14.2228
  Prefactor  = 5.66906
  Prefactor  = 0.0001
  Prefactor  = 6.44874
  norm       = 0.720459
  Prefactor  = 2.80846
  Prefactor  = 2.85666
  Prefactor  = 6.78739
  norm       = 0.531579
  Prefactor  = 0.000101342
  norm       = 0.0001
  Prefactor  = 2.42718
  Prefactor  = 1.44803
  Prefactor  = 75.9328
  Prefactor  = 13.6883
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.76623
  Prefactor  = 67.0113
  Prefactor  = 0.490572
  Prefactor  = 9.23546
  norm       = 0.220611
  Normalizat = 0.811137
  Prefactor  = 1.08703
 **********
 **   18 **HESSE 
 **********

 FCN=   5688.366     FROM HESSE     STATUS=OK           610 CALLS     4004 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    72.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    34.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.6197        5.7494        .18728E-03   -1.5278    
   4  Prefactor     2.6969        6.8767        .24810E-03   -1.5380    
   5  Prefactor     2.7312        2.0370        .88504E-04   -1.5377    
   6  Prefactor     8.6810        7.3866        .13606E-03   -1.5119    
   7  Prefactor     14.223        20.273        .10621E-03   -1.4954    
   8  Prefactor     5.6691        6.1540        .16871E-03   -1.5232    
   9  Prefactor     .10000E-03    5.4193        .17123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.4487        11.146        .15805E-03   -1.5200    
  11  norm          .72046        .27425        .22474E-04   -1.5538    
  12  Prefactor     2.8085        2.2562        .97576E-04   -1.5373    
  13  Prefactor     2.8567        28.010        .24101E-03   -1.5370    
  14  Prefactor     6.7874        8.4809        .15400E-03   -1.5187    
  15  norm          .53158        49.732        .43080E-02   -1.5562    
  16  Prefactor     .10134E-03    7.3455        .54864E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.1553        .14985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.4272        6.7633        .26264E-03   -1.5396    
  19  Prefactor     1.4480        2.3431        .12698E-03   -1.5467    
  20  Prefactor     75.933        50.687        .46073E-04   -1.3963    
  21  Prefactor     13.688        15.519        .10827E-03   -1.4968    
  22  norm          .10000E-03    .76056        .64075E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.0997        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.7662        5.0707        .12260E-03   -1.5116    
  25  Prefactor     67.011        22.088        .49031E-04   -1.4069    
  26  Prefactor     .49057        1.5465        .15907E-03   -1.5568    
  27  Prefactor     9.2355        20.398        .13189E-03   -1.5100    
  28  norm          .22061        .55309        .99668E-03   -1.5614    
  29  Normalizat    .81114        .21455        .25329E-03   -.99657    
  30  Prefactor     1.0870        .23116        .25853E-03   -.89882    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.02557e-09
Minuit parameter uncertainties:
  1  0.000304047
  2  0.00032705
  3  5.75013
  4  6.87876
  5  2.03706
  6  7.38738
  7  20.2826
  8  6.15467
  9  5.4279e-06
  10  11.15
  11  0.274253
  12  2.25624
  13  17.9007
  14  8.48235
  15  10.2911
  16  0.0062808
  17  5.51621e-06
  18  6.76546
  19  2.34324
  20  50.7161
  21  15.5234
  22  1.21773e-05
  23  1.94977e-05
  24  5.07091
  25  22.091
  26  1.54665
  27  20.4135
  28  0.553106
  29  0.214778
  30  0.231377
Done.

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

Extracting fit parameters...

4FGL J1106.0+2813
   Spectrum: PowerLaw
253    Prefactor:  2.808e+00  2.256e+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.087e+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:  8.111e-01  2.148e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.13
Ra Dec: 166.502 28.225
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 3.32e-08 +/- 2.66e-08
Energy Flux (Fixed Index): 1.12e-05 +/- 9.03e-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) = 5687.85229698
delta logL = 0.514022096794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5687.84761995
delta logL = 0.518699124695

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9790       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7407       1.0000          .0000       10.000    
     3 'Normalizat'    .83092       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0754       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=   5687.848     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9783        3.1097        .58807E-02   -.61998E-04
   2  Index         1.7405        .54788        .24170       -.32119E-04
   3  Normalizat    .83094        .16630        .44013E-01    .12124E-04
   4  Prefactor     1.0754        .19393        .58733E-01    .29152E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.97834
  Index      = 1.74047
  Normalizat = 0.830942
  Prefactor  = 1.07536
 **********
 **   18 **HESSE 
 **********

 FCN=   5687.848     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9783        2.8108        .10931E-03   -1.5363    
   2  Index         1.7405        .60117        .87502E-02   -.71010    
   3  Normalizat    .83094        .19446        .25047E-03   -.98931    
   4  Prefactor     1.0754        .22706        .25972E-03   -.90258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23423e-12
Minuit parameter uncertainties:
  1  2.81097
  2  0.603716
  3  0.194625
  4  0.227264
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/513048': 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) = 5687.84761985
delta logL = 0.518699225335

Extracting fit parameters...

4FGL J1106.0+2813
   Spectrum: PowerLaw
253    Prefactor:  2.978e+00  2.811e+00  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  1.740e+00  6.037e-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.075e+00  2.273e-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:  8.309e-01  1.946e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.17
Ra Dec: 166.502 28.225
Photon Index (Free Index): 1.74 +/- 0.60
Photon Flux (Free Index): 1.67e-08 +/- 2.06e-08
Energy Flux (Free Index): 2.39e-05 +/- 3.17e-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/513048/cmap_HighResolution_346118401_346377601_4FGL_J1106.0+2813_daily_bin412.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.32e-08', energy_flux2='2.39e-05', photon_flux_error='2.66e-08', dlogl='5.19e-01', energy_flux='1.12e-05', photon_flux2='1.67e-08', job_status='DONE', time_completed='2021-09-03 08:03:27.161716', photon_index_error2='0.60', photon_index2='1.74', ts='4.13', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='3.17e-05', EG='0.81', time_epoch_completed='1630681407.16', return_code='0', job_id='513048', GAL2='1.08', EG2='0.83', return_code2='0', energy_flux_error='9.03e-06', photon_flux_error2='2.06e-08', ts2='5.17', photon_index='2.37' WHERE bin_id='412' AND source_name='4FGL J1106.0+2813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 08:03:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 513048: <4FGL_J1106.0+2813_daily_bin412> in cluster <slac> Done

Job <4FGL_J1106.0+2813_daily_bin412> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Sep  3 07:51:13 2021
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 07:51:43 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:51:43 2021
Terminated at Fri Sep  3 08:03:28 2021
Results reported at Fri Sep  3 08:03:28 2021

Your job looked like:

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

Successfully completed.

Resource usage summary:

    CPU time :                                   683.43 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             351.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   704 sec.
    Turnaround time :                            735 sec.

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

