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


Performing analysis on: 4FGL_J1106.7+3623_daily_bin1224
RA = 166.688, Dec = 36.3995
tmin = 556588801, tmax = 556848001
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='544733', job_status='RUN', time_executed='2021-09-03 09:28:52.540937', time_epoch_executed='1630686532.54' WHERE source_name='4FGL J1106.7+3623' and cadence='daily' and bin_id='1224'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/544733

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/544733/ft1_4FGL_J1106.7+3623_daily_bin1224.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/544733/ft2_4FGL_J1106.7+3623_daily_bin1224.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/544733/ft1_4FGL_J1106.7+3623_daily_bin1224.fits outfile=/scratch/kocevski/544733/ft1_filteredMKT_4FGL_J1106.7+3623_daily_bin1224.fits ra=166.688 dec=36.3995 rad=12.0 tmin=556588801.0 tmax=556848001.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 3.62
user 3.39
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/544733/ft2_4FGL_J1106.7+3623_daily_bin1224.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/544733/ft1_filteredMKT_4FGL_J1106.7+3623_daily_bin1224.fits evtable="EVENTS" outfile="/scratch/kocevski/544733/ft1_filtered_4FGL_J1106.7+3623_daily_bin1224.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.58
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/544733/ft1_filtered_4FGL_J1106.7+3623_daily_bin1224.fits" evtable="EVENTS" scfile=/scratch/kocevski/544733/ft2_4FGL_J1106.7+3623_daily_bin1224.fits sctable="SC_DATA" outfile=/scratch/kocevski/544733/ltcube_556588801_556848001_4FGL_J1106.7+3623_daily_bin1224.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/544733/ft2_4FGL_J1106.7+3623_daily_bin1224.fits
.....................!
real 13.88
user 13.41
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/544733/ft1_filtered_4FGL_J1106.7+3623_daily_bin1224.fits evtable="EVENTS" scfile=/scratch/kocevski/544733/ft2_4FGL_J1106.7+3623_daily_bin1224.fits sctable="SC_DATA" expcube=/scratch/kocevski/544733/ltcube_556588801_556848001_4FGL_J1106.7+3623_daily_bin1224.fits outfile=/scratch/kocevski/544733/expmap_556588801_556848001_4FGL_J1106.7+3623_daily_bin1224.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/544733/ltcube_556588801_556848001_4FGL_J1106.7+3623_daily_bin1224.fits
.....................!
real 192.28
user 186.36
sys 5.27

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/544733/ft1_filtered_4FGL_J1106.7+3623_daily_bin1224.fits scfile=/scratch/kocevski/544733/ft2_4FGL_J1106.7+3623_daily_bin1224.fits outfile=/scratch/kocevski/544733/cmap_556588801_556848001_4FGL_J1106.7+3623_daily_bin1224.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/544733/ft1_filtered_4FGL_J1106.7+3623_daily_bin1224.fits scfile=/scratch/kocevski/544733/ft2_4FGL_J1106.7+3623_daily_bin1224.fits outfile=/scratch/kocevski/544733/cmap_HighResolution_556588801_556848001_4FGL_J1106.7+3623_daily_bin1224.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/544733/ft1_filtered_4FGL_J1106.7+3623_daily_bin1224.fits evtable="EVENTS" scfile=/scratch/kocevski/544733/ft2_4FGL_J1106.7+3623_daily_bin1224.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/544733/Model_4FGL_J1106.7+3623_daily_bin1224.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/544733/ft1_filtered_4FGL_J1106.7+3623_daily_bin1224.fits...!
real 13.81
user 12.59
sys 1.08

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/544733/ft1_filtered_4FGL_J1106.7+3623_daily_bin1224.fits', '/scratch/kocevski/544733/ft2_4FGL_J1106.7+3623_daily_bin1224.fits', expMap='/scratch/kocevski/544733/expmap_556588801_556848001_4FGL_J1106.7+3623_daily_bin1224.fits', expCube='/scratch/kocevski/544733/ltcube_556588801_556848001_4FGL_J1106.7+3623_daily_bin1224.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/544733/Model_4FGL_J1106.7+3623_daily_bin1224.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/544733/ft1_filtered_4FGL_J1106.7+3623_daily_bin1224.fits
Spacecraft file(s): /scratch/kocevski/544733/ft2_4FGL_J1106.7+3623_daily_bin1224.fits
Exposure map: /scratch/kocevski/544733/expmap_556588801_556848001_4FGL_J1106.7+3623_daily_bin1224.fits
Exposure cube: /scratch/kocevski/544733/ltcube_556588801_556848001_4FGL_J1106.7+3623_daily_bin1224.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/544733/Model_4FGL_J1106.7+3623_daily_bin1224.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) = 27.2315532361

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .40054E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10285E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18630E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .21383E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16283       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .66137E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .33143E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .48111E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.8061       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .33417E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.3901       1.0000         .10000E-03   10000.    
    13 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .28359E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.9776       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.5769       1.0000         .10000E-03   10000.    
    17 'norm      '    10.787       1.0000         .10000E-03   10000.    
    18 'norm      '    .10979E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .29334E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .57617E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .32308E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13759E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .15979E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .29058E-01   1.0000         .10000E-03   10000.    
    26 'norm      '    .11329E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10586E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .58400E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    31 'Prefactor '    .63805E-09   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=   27.02241     FROM MIGRAD    STATUS=CONVERGED   1452 CALLS     5415 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    51.835        .37409E-03** at limit **
   2  Prefactor     .10000E-03    140.51        .61077E-03** at limit **
   3  Prefactor     .10000E-03    48.268        .35896E-03** at limit **
   4  norm          .10000E-03    83.226        .47002E-03** at limit **
   5  Prefactor     .10000E-03    8693.4        .19613E-01** at limit **
   6  Prefactor     .10002E-03    858.79        .15307E-02** at limit **
   7  Prefactor     .10000E-03    38.401        .31957E-03** at limit **
   8  Prefactor     .10000E-03    135.01        .59946E-03** at limit **
   9  Prefactor     .10000E-03    1009.1        .16631E-02** at limit **
  10  Prefactor    10000.0        5084.3        .15548E-01** at limit **
  11  Prefactor     .10001E-03    7027.5        .18378E-02** at limit **
  12  Prefactor    10000.0        7113.8        .10987E-01** at limit **
  13  norm         10000.0        1688.3        .18142E-01** at limit **
  14  Prefactor     .10000E-03    6224.2        .19889E-02** at limit **
  15  Prefactor    10000.0        5459.0        .10112E-01** at limit **
  16  Prefactor    10000.0        5230.1        .16916E-01** at limit **
  17  norm         10000.0        9160.3        .60993E-01** at limit **
  18  norm          .10000E-03    337.40        .94916E-03** at limit **
  19  Prefactor     .10000E-03    518.26        .11982E-02** at limit **
  20  Prefactor     .10000E-03    8307.5        .18614E-02** at limit **
  21  Prefactor     .10000E-03    304.64        .90150E-03** at limit **
  22  norm          .10000E-03    302.62        .91204E-03** at limit **
  23  Prefactor     .10000E-03    170.12        .67215E-03** at limit **
  24  Prefactor     .10000E-03    125.38        .57823E-03** at limit **
  25  Prefactor     .10000E-03    6253.7        .18335E-02** at limit **
  26  norm          .10000E-03    26.640        .26770E-03** at limit **
  27  norm          .10000E-03    323.89        .93161E-03** at limit **
  28  Prefactor     .10000E-03    149.22        .62975E-03** at limit **
  29  Prefactor     .10001E-03    780.96        .14601E-02** at limit **
  30  Normalizat    .10000E-01    .27501        .85892E-03** at limit **
  31  Prefactor      .0000        .38653        .10232E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.000100009
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Normalizat = 0.01
  Prefactor  = 0
 **********
 **   18 **HESSE 
 **********

 FCN=   27.02241     FROM HESSE     STATUS=OK           590 CALLS     6005 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    51.835        .74819E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    140.51        .12215E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    48.268        .71791E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    83.226        .94004E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8693.3        .39227E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10002E-03    858.79        .30614E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    38.401        .63913E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    135.01        .11989E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1009.1        .33262E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor    10000.0        5084.2        .31096E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    7027.5        .36755E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor    10000.0        7114.1        .21975E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm         10000.0        1688.3        .21693E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6224.2        .39777E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor    10000.0        5459.0        .20224E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor    10000.0        5230.0        .33833E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm         10000.0        9406.3        .12199E-01    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    337.40        .18983E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    518.26        .23965E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8307.5        .37229E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    304.64        .18030E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    302.62        .18241E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    170.12        .13443E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    125.38        .11565E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6253.7        .36669E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    26.640        .53541E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    323.89        .18632E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    149.22        .12595E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10001E-03    780.96        .29203E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .10000E-01    .27501        .17178E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor      .0000        .38653        .20464E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.837e-11
Minuit parameter uncertainties:
  1  6.95147e-05
  2  0.000329681
  3  3.18488e-05
  4  0.000129053
  5  0.0116653
  6  0.00855767
  7  3.49589e-05
  8  0.000171586
  9  0.000924216
  10  0.0515423
  11  0.0132448
  12  0.380992
  13  0.000406199
  14  0.000400747
  15  0.170058
  16  0.0099613
  17  73.7315
  18  0.000456283
  19  0.000983675
  20  0.0100522
  21  1.45654e-05
  22  3.0692e-05
  23  0.000194946
  24  0.000186325
  25  0.00697092
  26  2.64324e-06
  27  0.000336961
  28  0.000439839
  29  0.00493074
  30  5.58914e-09
  31  2.59998e-09
Done.

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

Extracting fit parameters...

4FGL J1106.7+3623
   Spectrum: PowerLaw
331    Prefactor:  1.000e+04  1.701e-01  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:  0.000e+00  2.600e-09  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.589e-09  1.000e-02  1.000e+01 ( 1.000e+00)

calc_int error: parameter max 10000.0 is not large enough
delta logLike = 4.00740276518e-08

TS (Fixed Index): 0.08
Ra Dec: 166.688 36.400
Photon Flux Upper Limit: -1.00e+00 ph cm-2 s-1
Energy Flux Upper Limit: -7.78e+04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/544733/likelihoodResults_556588801_556848001_4FGL_J1106.7+3623_daily_bin1224.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) = 15.9678776005
delta logL = 11.0545322769

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15.9538193575
delta logL = 11.0685905199

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Index     '    10.000       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.

 FCN=   15.95382     FROM MIGRAD    STATUS=CONVERGED      9 CALLS       49 TOTAL
                     EDM=   .11E-17    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1    Index       10.000        .18897        .32078E-01** at limit **
                               ERR DEF=  .500    
Final values: 
  Index      = 10
 **********
 **   18 **HESSE 
 **********

 FCN=   15.95382     FROM HESSE     STATUS=OK             5 CALLS       54 TOTAL
                     EDM=   .11E-17    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1    Index       10.000        .18896        .54627E-03    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13322e-18
Minuit parameter uncertainties:
  1  4.04297e-10
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/544733': 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) = 15.9538193575
delta logL = 11.0685905199

Extracting fit parameters...

4FGL J1106.7+3623
   Spectrum: PowerLaw
331    Prefactor:  1.000e+04  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13) fixed
332        Index:  1.000e+01  4.043e-10  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:  1.124e-07  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
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  0.000e+00  1.000e-02  1.000e+01 ( 1.000e+00) fixed


TS (Free Index): 22.22
Ra Dec: 166.688 36.400
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 2.69e+02 +/- 2.40e-07
Energy Flux (Free Index): 3.00e+04 +/- 2.68e-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/544733/cmap_HighResolution_556588801_556848001_4FGL_J1106.7+3623_daily_bin1224.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='-7.78e+04', comment='SUCCESS', energy_flux2='3.00e+04', dlogl='1.11e+01', photon_flux2='2.69e+02', job_status='DONE', time_completed='2021-09-03 09:34:48.467449', photon_index_error2='0.00', photon_index2='10.00', ts='0.08', fit_tolerance='1e-08', GAL='0.00', photon_index_error='0.00', photon_flux_upper_limit='-1.00e+00', energy_flux_error2='2.68e-05', EG='0.01', time_epoch_completed='1630686888.47', return_code='0', job_id='544733', GAL2='0.00', EG2='0.01', return_code2='0', photon_flux_error2='2.40e-07', ts2='22.22', photon_index='2.51' WHERE bin_id='1224' AND source_name='4FGL J1106.7+3623' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 09:34:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0143>
Subject: Job 544733: <4FGL_J1106.7+3623_daily_bin1224> in cluster <slac> Done

Job <4FGL_J1106.7+3623_daily_bin1224> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep  3 09:22:47 2021
Job was executed on host(s) <bullet0143>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 09:25:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 09:25:34 2021
Terminated at Fri Sep  3 09:34:50 2021
Results reported at Fri Sep  3 09:34:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1106.7+3623_daily_bin1224 166.688 36.3995 556588801 556848001 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 :                                   343.33 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             341.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   561 sec.
    Turnaround time :                            723 sec.

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

