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


Performing analysis on: 4FGL_J1106.7+3623_daily_bin1215
RA = 166.688, Dec = 36.3995
tmin = 554256001, tmax = 554515201
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='544719', job_status='RUN', time_executed='2021-09-03 09:27:53.581564', time_epoch_executed='1630686473.58' WHERE source_name='4FGL J1106.7+3623' and cadence='daily' and bin_id='1215'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/544719

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/544719/ft1_4FGL_J1106.7+3623_daily_bin1215.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/544719/ft2_4FGL_J1106.7+3623_daily_bin1215.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/544719/ft1_4FGL_J1106.7+3623_daily_bin1215.fits outfile=/scratch/kocevski/544719/ft1_filteredMKT_4FGL_J1106.7+3623_daily_bin1215.fits ra=166.688 dec=36.3995 rad=12.0 tmin=554256001.0 tmax=554515201.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.10
user 3.84
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/544719/ft1_filtered_4FGL_J1106.7+3623_daily_bin1215.fits" evtable="EVENTS" scfile=/scratch/kocevski/544719/ft2_4FGL_J1106.7+3623_daily_bin1215.fits sctable="SC_DATA" outfile=/scratch/kocevski/544719/ltcube_554256001_554515201_4FGL_J1106.7+3623_daily_bin1215.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/544719/ft2_4FGL_J1106.7+3623_daily_bin1215.fits
.....................!
real 17.03
user 16.45
sys 0.47

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/544719/ft1_filtered_4FGL_J1106.7+3623_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/544719/ft2_4FGL_J1106.7+3623_daily_bin1215.fits sctable="SC_DATA" expcube=/scratch/kocevski/544719/ltcube_554256001_554515201_4FGL_J1106.7+3623_daily_bin1215.fits outfile=/scratch/kocevski/544719/expmap_554256001_554515201_4FGL_J1106.7+3623_daily_bin1215.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/544719/ltcube_554256001_554515201_4FGL_J1106.7+3623_daily_bin1215.fits
.....................!
real 193.18
user 187.57
sys 4.97

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/544719/ft1_filtered_4FGL_J1106.7+3623_daily_bin1215.fits scfile=/scratch/kocevski/544719/ft2_4FGL_J1106.7+3623_daily_bin1215.fits outfile=/scratch/kocevski/544719/cmap_554256001_554515201_4FGL_J1106.7+3623_daily_bin1215.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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/544719/ft1_filtered_4FGL_J1106.7+3623_daily_bin1215.fits scfile=/scratch/kocevski/544719/ft2_4FGL_J1106.7+3623_daily_bin1215.fits outfile=/scratch/kocevski/544719/cmap_HighResolution_554256001_554515201_4FGL_J1106.7+3623_daily_bin1215.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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/544719/ft1_filtered_4FGL_J1106.7+3623_daily_bin1215.fits evtable="EVENTS" scfile=/scratch/kocevski/544719/ft2_4FGL_J1106.7+3623_daily_bin1215.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/544719/Model_4FGL_J1106.7+3623_daily_bin1215.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/544719/ft1_filtered_4FGL_J1106.7+3623_daily_bin1215.fits......................!
real 25.53
user 24.23
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.425       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .17970E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.974       1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    210.62       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.0333       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10296E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .87073E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10596E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .57332E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    31.871       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.8054       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.803       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.2988       1.0000         .10000E-03   10000.    
    27 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .63516       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.2854       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6460E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1598.250     FROM MIGRAD    STATUS=CONVERGED    791 CALLS     4118 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.423        41.430        .19208E-07    .38598E-04
   2  Prefactor     .10000E-03    343.14       -.85999E-07** at limit **
   3  Prefactor     27.968        49.436       -.91042E-07    .42981E-04
   4  norm          .10000E-03    37.679        .19603E-06** at limit **
   5  Prefactor     211.16        238.90        .24538E-06    .52997E-04
   6  Prefactor     .10000E-03    87.425       -.92512E-08** at limit **
   7  Prefactor     4.0977        168.05       -.21460E-05    .23271E-04
   8  Prefactor     .10000E-03    30.760        .78034E-06** at limit **
   9  Prefactor     .10000E-03    126.18        .76099E-06** at limit **
  10  Prefactor     .10000E-03    159.53        .24232E-05** at limit **
  11  Prefactor     .10000E-03    2084.1        .60715E-05** at limit **
  12  Prefactor     .10000E-03    25.700       -.14292E-05** at limit **
  13  norm          .10000E-03    .75601       -.39934E-06** at limit **
  14  Prefactor     .10000E-03    7.8641       -.26346E-05** at limit **
  15  Prefactor     .10230E-03    83.901       -.63169E-05** at limit **
  16  Prefactor     .10000E-03    55.432       -.57723E-06** at limit **
  17  norm          .10000E-03    11.138       -.19835E-06** at limit **
  18  norm          31.896        27.057       -.32933E-06    .77245E-04
  19  Prefactor     .10000E-03    3.5069       -.58105E-06** at limit **
  20  Prefactor     .10000E-03    43.773       -.25913E-06** at limit **
  21  Prefactor     .10000E-03    23.182       -.11986E-05** at limit **
  22  norm          .10000E-03    1.9769       -.15884E-06** at limit **
  23  Prefactor     5.8112        16.782        .39585E-05    .31446E-04
  24  Prefactor     10.803        10.550       -.19382E-06    .10144E-03
  25  Prefactor     .10000E-03    48.053       -.12436E-06** at limit **
  26  norm          2.2997        3.2488       -.85136E-07    .89915E-04
  27  norm          .10000E-03    17.738       -.83336E-07** at limit **
  28  Prefactor     .10000E-03    31.340       -.11706E-05** at limit **
  29  Prefactor     .10000E-03    115.43       -.22010E-06** at limit **
  30  Normalizat    .63417        .40235       -.19059E-05    .27779E-03
  31  Prefactor     1.2858        .41215        .61257E-05    .26756E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.4225
  Prefactor  = 0.0001
  Prefactor  = 27.9677
  norm       = 0.0001
  Prefactor  = 211.164
  Prefactor  = 0.0001
  Prefactor  = 4.09766
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000102299
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 31.8956
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.81116
  Prefactor  = 10.8033
  Prefactor  = 0.0001
  norm       = 2.29965
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.634166
  Prefactor  = 1.28584
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.423        41.559        .70369E-04   -1.4569    
   2  Prefactor     .10000E-03    343.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     27.968        49.550        .75746E-04   -1.4650    
   4  norm          .10000E-03    37.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     211.16        238.35        .13928E-03   -1.2791    
   6  Prefactor     .10000E-03    87.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.0977        165.99        .20079E-03   -1.5303    
   8  Prefactor     .10000E-03    30.785        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    126.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    160.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2081.7        .20851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    25.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.1454        .61916E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.2799        .22003E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10230E-03    430.07        .62155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    55.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    11.143        .13033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          31.896        27.303        .70976E-04   -1.4578    
  19  Prefactor     .10000E-03    3.5554        .73135E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    43.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    23.380        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.9792        .54904E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     5.8112        16.512        .83344E-03   -1.5226    
  24  Prefactor     10.803        10.566        .12151E-03   -1.5050    
  25  Prefactor     .10000E-03    48.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.2997        3.2322        .81800E-04   -1.5405    
  27  norm          .10000E-03    17.740        .16450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    31.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    115.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .63417        .46936        .32618E-03   -1.0655    
  31  Prefactor     1.2858        .47707        .25683E-03   -.83729    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.96172e-09
Minuit parameter uncertainties:
  1  41.5965
  2  0.000706593
  3  49.6229
  4  4.78767e-06
  5  239.457
  6  0.000180973
  7  52.3158
  8  3.13177e-05
  9  0.000116033
  10  7.55976e-06
  11  0.00428783
  12  1.99892e-05
  13  4.68768e-05
  14  4.41244e-05
  15  0.0633476
  16  7.25572e-05
  17  1.73554e-06
  18  27.3132
  19  2.34545e-06
  20  2.88173e-05
  21  0.000198827
  22  5.0676e-07
  23  16.5253
  24  10.5678
  25  2.55262e-05
  26  3.23241
  27  3.93029e-06
  28  5.77757e-05
  29  8.72801e-06
  30  0.472359
  31  0.478702
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
643    Prefactor:  1.286e+00  4.787e-01  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:  6.342e-01  4.724e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 166.688 36.400
Photon Flux Upper Limit: 3.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.40e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/544719/likelihoodResults_554256001_554515201_4FGL_J1106.7+3623_daily_bin1215.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) = 1598.25012641
delta logL = -1.06993011286e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1598.25012641
delta logL = -1.0698679489e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96361E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5088       1.0000          .0000       10.000    
     3 'Normalizat'    .63416       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2858       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=   1598.250     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      239 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10016E-03    4.4215        .11213    ** at limit **
   2  Index         2.3633        7.9209        .50000        .23524E-06
   3  Normalizat    .63415        .21185E-02    .73688E-01   -.14099E-03
   4  Prefactor     1.2858        .23090E-02    .58082E-01   -.12279E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100155
  Index      = 2.36334
  Normalizat = 0.634154
  Prefactor  = 1.28585
 **********
 **   18 **HESSE 
 **********

 FCN=   1598.250     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      274 TOTAL
                     EDM=   .71E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10016E-03    340.61        .69980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3633        5.1705        .50000       -.55546    
   3  Normalizat    .63415        .59851E-02    .32622E-03   -1.0655    
   4  Prefactor     1.2858        .65349E-02    .25682E-03   -.83729    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.09607e-12
Minuit parameter uncertainties:
  1  0.0146286
  2  115.048
  3  0.00598508
  4  0.00653487
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/544719': 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) = 1598.25011566
delta logL = 5.32772901352e-08

Extracting fit parameters...

4FGL J1106.7+3623
   Spectrum: PowerLaw
331    Prefactor:  1.002e-04  1.463e-02  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  2.363e+00  1.150e+02  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.286e+00  6.535e-03  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:  6.342e-01  5.985e-03  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/544719/cmap_HighResolution_554256001_554515201_4FGL_J1106.7+3623_daily_bin1215.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.40e-02', job_status='DONE', photon_flux_upper_limit='3.08e-07', time_completed='2021-09-03 09:36:07.352316', job_id='544719', GAL2='1.29', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1630686967.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='5.33e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1215' AND source_name='4FGL J1106.7+3623' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 09:36:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0164>
Subject: Job 544719: <4FGL_J1106.7+3623_daily_bin1215> in cluster <slac> Done

Job <4FGL_J1106.7+3623_daily_bin1215> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep  3 09:22:46 2021
Job was executed on host(s) <bullet0164>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 09:25:29 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:29 2021
Terminated at Fri Sep  3 09:36:08 2021
Results reported at Fri Sep  3 09:36:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1106.7+3623_daily_bin1215 166.688 36.3995 554256001 554515201 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 :                                   489.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             284.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   638 sec.
    Turnaround time :                            802 sec.

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

