/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 64 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 = 7553
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1106.5-3646_daily_bin749
RA = 166.627, Dec = -36.7723
tmin = 433468801, tmax = 433728001
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='528399', job_status='RUN', time_executed='2021-09-03 08:40:55.120643', time_epoch_executed='1630683655.12' WHERE source_name='4FGL J1106.5-3646' and cadence='daily' and bin_id='749'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/528399

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/528399/ft1_4FGL_J1106.5-3646_daily_bin749.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/528399/ft2_4FGL_J1106.5-3646_daily_bin749.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/528399/ft1_4FGL_J1106.5-3646_daily_bin749.fits outfile=/scratch/kocevski/528399/ft1_filteredMKT_4FGL_J1106.5-3646_daily_bin749.fits ra=166.627 dec=-36.7723 rad=12.0 tmin=433468801.0 tmax=433728001.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 6.12
user 5.80
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/528399/ft2_4FGL_J1106.5-3646_daily_bin749.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/528399/ft2_4FGL_J1106.5-3646_daily_bin749.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/528399/ft1_filteredMKT_4FGL_J1106.5-3646_daily_bin749.fits evtable="EVENTS" outfile="/scratch/kocevski/528399/ft1_filtered_4FGL_J1106.5-3646_daily_bin749.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.54
user 0.36
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/528399/ft1_filtered_4FGL_J1106.5-3646_daily_bin749.fits" evtable="EVENTS" scfile=/scratch/kocevski/528399/ft2_4FGL_J1106.5-3646_daily_bin749.fits sctable="SC_DATA" outfile=/scratch/kocevski/528399/ltcube_433468801_433728001_4FGL_J1106.5-3646_daily_bin749.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/528399/ft2_4FGL_J1106.5-3646_daily_bin749.fits
.....................!
real 18.02
user 17.62
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/528399/ft1_filtered_4FGL_J1106.5-3646_daily_bin749.fits evtable="EVENTS" scfile=/scratch/kocevski/528399/ft2_4FGL_J1106.5-3646_daily_bin749.fits sctable="SC_DATA" expcube=/scratch/kocevski/528399/ltcube_433468801_433728001_4FGL_J1106.5-3646_daily_bin749.fits outfile=/scratch/kocevski/528399/expmap_433468801_433728001_4FGL_J1106.5-3646_daily_bin749.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/528399/ltcube_433468801_433728001_4FGL_J1106.5-3646_daily_bin749.fits
.....................!
real 192.94
user 186.98
sys 5.43

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
Extended source G296.5+10.0 in ROI with RadialDisk spatial model.
Added 191 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1106.5-3646 @ 166.627 -36.7723

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/528399/ft1_filtered_4FGL_J1106.5-3646_daily_bin749.fits scfile=/scratch/kocevski/528399/ft2_4FGL_J1106.5-3646_daily_bin749.fits outfile=/scratch/kocevski/528399/cmap_433468801_433728001_4FGL_J1106.5-3646_daily_bin749.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.627 yref=-36.7723 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.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/528399/ft1_filtered_4FGL_J1106.5-3646_daily_bin749.fits scfile=/scratch/kocevski/528399/ft2_4FGL_J1106.5-3646_daily_bin749.fits outfile=/scratch/kocevski/528399/cmap_HighResolution_433468801_433728001_4FGL_J1106.5-3646_daily_bin749.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.627 yref=-36.7723 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.42
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/528399/ft1_filtered_4FGL_J1106.5-3646_daily_bin749.fits evtable="EVENTS" scfile=/scratch/kocevski/528399/ft2_4FGL_J1106.5-3646_daily_bin749.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/528399/Model_4FGL_J1106.5-3646_daily_bin749.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 G296.5+10.0
adding source GAL_V02
Working on...
/scratch/kocevski/528399/ft1_filtered_4FGL_J1106.5-3646_daily_bin749.fits.....................!
real 59.31
user 57.68
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/528399/ft1_filtered_4FGL_J1106.5-3646_daily_bin749.fits', '/scratch/kocevski/528399/ft2_4FGL_J1106.5-3646_daily_bin749.fits', expMap='/scratch/kocevski/528399/expmap_433468801_433728001_4FGL_J1106.5-3646_daily_bin749.fits', expCube='/scratch/kocevski/528399/ltcube_433468801_433728001_4FGL_J1106.5-3646_daily_bin749.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/528399/Model_4FGL_J1106.5-3646_daily_bin749.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1106.5-3646'

4FGL J1106.5-3646
   Spectrum: PowerLaw
327    Prefactor:  1.758e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
328        Index:  2.104e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
329        Scale:  1.833e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/528399/ft1_filtered_4FGL_J1106.5-3646_daily_bin749.fits
Spacecraft file(s): /scratch/kocevski/528399/ft2_4FGL_J1106.5-3646_daily_bin749.fits
Exposure map: /scratch/kocevski/528399/expmap_433468801_433728001_4FGL_J1106.5-3646_daily_bin749.fits
Exposure cube: /scratch/kocevski/528399/ltcube_433468801_433728001_4FGL_J1106.5-3646_daily_bin749.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/528399/Model_4FGL_J1106.5-3646_daily_bin749.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) = 4997.56282887

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    27.787       1.0000         .10000E-03   10000.    
     2 'norm      '    .10337E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11906E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.031       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.894       1.0000         .10000E-03   10000.    
     9 'norm      '    1.4806       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10852E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    53.606       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.547       1.0000         .10000E-03   10000.    
    15 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.4529       1.0000         .10000E-03   10000.    
    17 'norm      '    .10177E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .18883E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10224E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2958       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .91431       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4997.526     FROM MIGRAD    STATUS=CONVERGED    464 CALLS     2191 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          27.810        17.617       -.17442E-05   -.36171E-04
   2  norm          .10000E-03    5.3512        .30786E-07** at limit **
   3  norm          .10000E-03    3.5858        .44368E-06** at limit **
   4  Prefactor     .10000E-03    14.298        .18766E-04** at limit **
   5  norm          .10000E-03    2.7162       -.33661E-06** at limit **
   6  Prefactor     .10000E-03    2.1682       -.24847E-06** at limit **
   7  Prefactor     15.030        16.098       -.12336E-05   -.55009E-04
   8  Prefactor     17.903        16.127        .16677E-05    .20662E-04
   9  norm          1.4806        2.9678       -.10750E-05   -.76112E-03
  10  Prefactor     .10000E-03    8.2141       -.92197E-06** at limit **
  11  norm          .10000E-03    11.578       -.16586E-05** at limit **
  12  Prefactor     53.641        44.162       -.28868E-04    .61240E-05
  13  Prefactor     .10000E-03    8.4986        .15371E-05** at limit **
  14  Prefactor     18.380        67.894       -.61561E-04    .93373E-05
  15  norm          .10000E-03    23.641        .47548E-05** at limit **
  16  Prefactor     9.4690        20.278       -.69406E-05    .34892E-04
  17  norm          .10000E-03    6.8668        .11961E-06** at limit **
  18  Prefactor     .10000E-03    29.146       -.23391E-05** at limit **
  19  norm          .10000E-03    14.839       -.18465E-04** at limit **
  20  Normalizat    1.2957        .30834        .63825E-05   -.28030E-04
  21  Prefactor     .91431        .11718        .80750E-06    .16767E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 27.8102
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.0297
  Prefactor  = 17.9035
  norm       = 1.48064
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 53.6408
  Prefactor  = 0.0001
  Prefactor  = 18.38
  norm       = 0.0001
  Prefactor  = 9.46898
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.29569
  Prefactor  = 0.914311
 **********
 **   18 **HESSE 
 **********

 FCN=   4997.526     FROM HESSE     STATUS=OK           311 CALLS     2502 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          27.810        17.625        .76000E-04   -1.4653    
   2  norm          .10000E-03    5.3823        .15971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.5894        .13072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.7451        .11376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.1742        .10161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.030        16.173        .10331E-03   -1.4932    
   8  Prefactor     17.903        16.132        .94683E-04   -1.4861    
   9  norm          1.4806        2.9511        .16411E-03   -1.5465    
  10  Prefactor     .10000E-03    8.2328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    11.593        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     53.641        44.156        .27391E-03   -1.4242    
  13  Prefactor     .10000E-03    8.5098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.380        67.863        .93001E-04   -1.4850    
  15  norm          .10000E-03    23.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.4690        20.253        .13035E-03   -1.5092    
  17  norm          .10000E-03    6.9192        .18084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    29.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    14.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.2957        .36216        .37451E-03   -.83695    
  21  Prefactor     .91431        .13829        .16905E-03   -.95643    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.3295e-10
Minuit parameter uncertainties:
  1  17.6278
  2  1.08938e-05
  3  3.47614e-06
  4  4.15516e-05
  5  1.4806e-05
  6  4.79353e-06
  7  16.1778
  8  16.1363
  9  2.95134
  10  1.37063e-05
  11  7.87886e-06
  12  44.1828
  13  7.40981e-05
  14  68.1507
  15  1.61054e-05
  16  20.2677
  17  2.87493e-05
  18  3.25353e-05
  19  3.9317e-06
  20  0.362875
  21  0.138343
Done.

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

Extracting fit parameters...

4FGL J1106.5-3646
   Spectrum: PowerLaw
327    Prefactor:  1.790e+01  1.614e+01  1.000e-04  1.000e+04 ( 1.000e-13)
328        Index:  2.104e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
329        Scale:  1.833e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
639    Prefactor:  9.143e-01  1.383e-01  0.000e+00  1.000e+01 ( 1.000e+00)
640        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
641        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
635   Normalization:  1.296e+00  3.629e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.66
Ra Dec: 166.627 -36.772
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 7.37e-08 +/- 6.64e-08
Energy Flux (Fixed Index): 4.01e-05 +/- 3.62e-05

TS (Fixed Index): 1.66
Ra Dec: 166.627 -36.772
Photon Flux Upper Limit: 2.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.64e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/528399/likelihoodResults_433468801_433728001_4FGL_J1106.5-3646_daily_bin749.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): 0
logL (Free Index) = 4996.92537337
delta logL = 0.600871480351

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4996.88119024
delta logL = 0.645054617831

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3635       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1651       1.0000          .0000       10.000    
     3 'Normalizat'    1.1978       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93939       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4996.881     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      261 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3256        44.062        .55163E-02    .27280E-03
   2  Index         3.1701        2.5347        .97746E-01    .14026E-03
   3  Normalizat    1.1971        .11632        .87409E-01    .52233E-05
   4  Prefactor     .93990        .41358E-01    .45505E-01   -.33811E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.32565
  Index      = 3.17015
  Normalizat = 1.19713
  Prefactor  = 0.939896
 **********
 **   18 **HESSE 
 **********

 FCN=   4996.881     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      292 TOTAL
                     EDM=   .27E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3256        75.368        .84411E-04   -1.5343    
   2  Index         3.1701        3.6702        .36501E-02   -.37468    
   3  Normalizat    1.1971        .39884        .38708E-03   -.86692    
   4  Prefactor     .93990        .14907        .16693E-03   -.94761    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.73747e-07
Minuit parameter uncertainties:
  1  31.7085
  2  4.22866
  3  0.399859
  4  0.149131
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/528399': 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) = 4996.88117735
delta logL = 0.645067500894

Extracting fit parameters...

4FGL J1106.5-3646
   Spectrum: PowerLaw
327    Prefactor:  3.326e+00  3.171e+01  1.000e-04  1.000e+04 ( 1.000e-13)
328        Index:  3.170e+00  4.229e+00  0.000e+00  1.000e+01 (-1.000e+00)
329        Scale:  1.833e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
639    Prefactor:  9.399e-01  1.491e-01  0.000e+00  1.000e+01 ( 1.000e+00)
640        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
641        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
635   Normalization:  1.197e+00  3.999e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.04
Ra Dec: 166.627 -36.772
Photon Index (Free Index): 3.17 +/- 4.23
Photon Flux (Free Index): 1.55e-07 +/- 1.68e-07
Energy Flux (Free Index): 2.87e-05 +/- 3.05e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/528399/cmap_HighResolution_433468801_433728001_4FGL_J1106.5-3646_daily_bin749.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.64e-02', comment='SUCCESS', photon_flux='7.37e-08', energy_flux2='2.87e-05', photon_flux_error='6.64e-08', dlogl='6.45e-01', energy_flux='4.01e-05', photon_flux2='1.55e-07', job_status='DONE', time_completed='2021-09-03 08:51:21.987247', photon_index_error2='4.23', photon_index2='3.17', ts='1.66', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='2.17e-07', energy_flux_error2='3.05e-05', EG='1.30', time_epoch_completed='1630684281.99', return_code='0', job_id='528399', GAL2='0.94', EG2='1.20', return_code2='102', energy_flux_error='3.62e-05', photon_flux_error2='1.68e-07', ts2='3.04', photon_index='2.10' WHERE bin_id='749' AND source_name='4FGL J1106.5-3646' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 08:51:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 528399: <4FGL_J1106.5-3646_daily_bin749> in cluster <slac> Done

Job <4FGL_J1106.5-3646_daily_bin749> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 08:36:59 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 08:39: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 08:39:00 2021
Terminated at Fri Sep  3 08:51:22 2021
Results reported at Fri Sep  3 08:51:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1106.5-3646_daily_bin749 166.627 -36.7723 433468801 433728001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1106.5-3646 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   611.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             289.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            863 sec.

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

