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


Performing analysis on: 4FGL_J1106.7+3623_daily_bin57
RA = 166.688, Dec = 36.3995
tmin = 254102401, tmax = 254361601
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='534931', job_status='RUN', time_executed='2021-09-03 08:57:00.019999', time_epoch_executed='1630684620.02' WHERE source_name='4FGL J1106.7+3623' and cadence='daily' and bin_id='57'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/534931

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/534931/ft1_4FGL_J1106.7+3623_daily_bin57.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/534931/ft2_4FGL_J1106.7+3623_daily_bin57.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/534931/ft1_4FGL_J1106.7+3623_daily_bin57.fits outfile=/scratch/kocevski/534931/ft1_filteredMKT_4FGL_J1106.7+3623_daily_bin57.fits ra=166.688 dec=36.3995 rad=12.0 tmin=254102401.0 tmax=254361601.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 2.07
user 1.88
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/534931/ft1_filtered_4FGL_J1106.7+3623_daily_bin57.fits" evtable="EVENTS" scfile=/scratch/kocevski/534931/ft2_4FGL_J1106.7+3623_daily_bin57.fits sctable="SC_DATA" outfile=/scratch/kocevski/534931/ltcube_254102401_254361601_4FGL_J1106.7+3623_daily_bin57.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/534931/ft2_4FGL_J1106.7+3623_daily_bin57.fits
.....................!
real 19.88
user 19.46
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/534931/ft1_filtered_4FGL_J1106.7+3623_daily_bin57.fits evtable="EVENTS" scfile=/scratch/kocevski/534931/ft2_4FGL_J1106.7+3623_daily_bin57.fits sctable="SC_DATA" expcube=/scratch/kocevski/534931/ltcube_254102401_254361601_4FGL_J1106.7+3623_daily_bin57.fits outfile=/scratch/kocevski/534931/expmap_254102401_254361601_4FGL_J1106.7+3623_daily_bin57.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/534931/ltcube_254102401_254361601_4FGL_J1106.7+3623_daily_bin57.fits
.....................!
real 193.25
user 188.26
sys 4.18

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/534931/ft1_filtered_4FGL_J1106.7+3623_daily_bin57.fits scfile=/scratch/kocevski/534931/ft2_4FGL_J1106.7+3623_daily_bin57.fits outfile=/scratch/kocevski/534931/cmap_254102401_254361601_4FGL_J1106.7+3623_daily_bin57.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.78
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/534931/ft1_filtered_4FGL_J1106.7+3623_daily_bin57.fits scfile=/scratch/kocevski/534931/ft2_4FGL_J1106.7+3623_daily_bin57.fits outfile=/scratch/kocevski/534931/cmap_HighResolution_254102401_254361601_4FGL_J1106.7+3623_daily_bin57.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.83
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/534931/ft1_filtered_4FGL_J1106.7+3623_daily_bin57.fits evtable="EVENTS" scfile=/scratch/kocevski/534931/ft2_4FGL_J1106.7+3623_daily_bin57.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/534931/Model_4FGL_J1106.7+3623_daily_bin57.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/534931/ft1_filtered_4FGL_J1106.7+3623_daily_bin57.fits.....................!
real 43.31
user 40.41
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9184       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .59944E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.927       1.0000         .10000E-03   10000.    
     4 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    17.408       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.9874       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .32621E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.2131       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.446       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.6873       1.0000         .10000E-03   10000.    
    17 'norm      '    36.515       1.0000         .10000E-03   10000.    
    18 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10789E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    28.917       1.0000         .10000E-03   10000.    
    22 'norm      '    .40105       1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.990       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.8870       1.0000         .10000E-03   10000.    
    25 'Prefactor '    166.26       1.0000         .10000E-03   10000.    
    26 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    9.4757       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10672E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .89545       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .85084       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=   4114.508     FROM MIGRAD    STATUS=CONVERGED    841 CALLS     4877 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9215        5.4222        .11483E-05    .19735E-03
   2  Prefactor     .11217E-03    48.981       -.44027E-05** at limit **
   3  Prefactor     16.926        8.3927       -.24659E-06    .12230E-03
   4  norm          .10000E-03    5.2703        .47210E-07** at limit **
   5  Prefactor     .10000E-03    48.044        .54958E-07** at limit **
   6  Prefactor     17.401        24.644        .17819E-06    .48032E-04
   7  Prefactor     4.9843        5.0717        .12760E-06    .19025E-03
   8  Prefactor     .10000E-03    2.0748        .23526E-06** at limit **
   9  Prefactor     .10000E-03    39.263       -.12220E-06** at limit **
  10  Prefactor     .10000E-03    24.371       -.60411E-07** at limit **
  11  Prefactor     .10000E-03    69.320       -.15667E-06** at limit **
  12  Prefactor     .10004E-03    10.517       -.17650E-05** at limit **
  13  norm          1.2131        .39612        .61549E-08   -.16847E-03
  14  Prefactor     .10000E-03    1.0774        .24702E-07** at limit **
  15  Prefactor     24.461        28.198       -.34551E-06   -.12273E-03
  16  Prefactor     4.6874        16.696        .22155E-06   -.10250E-05
  17  norm          36.504        26.183        .27839E-06    .66417E-04
  18  norm          .10000E-03    6.4393        .44801E-07** at limit **
  19  Prefactor     .10000E-03    .93878        .22821E-07** at limit **
  20  Prefactor     .10000E-03    16.692       -.76230E-07** at limit **
  21  Prefactor     28.908        28.562        .31508E-06    .95350E-04
  22  norm          .40107        2.2076        .16017E-05    .36254E-03
  23  Prefactor     12.001        18.946        .38731E-08   -.30383E-04
  24  Prefactor     5.8882        5.5204        .77083E-08   -.70552E-04
  25  Prefactor     166.29        68.669       -.15687E-05   -.31335E-03
  26  norm          .10000E-03    1.1222        .56223E-06** at limit **
  27  norm          9.4859        10.324       -.88377E-07   -.12864E-03
  28  Prefactor     .10000E-03    48.760       -.92554E-07** at limit **
  29  Prefactor     .10000E-03    41.103        .19223E-06** at limit **
  30  Normalizat    .89484        .20764       -.66326E-06   -.46850E-04
  31  Prefactor     .85135        .22891       -.27252E-06   -.26937E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.92147
  Prefactor  = 0.000112173
  Prefactor  = 16.926
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.4008
  Prefactor  = 4.9843
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100043
  norm       = 1.21309
  Prefactor  = 0.0001
  Prefactor  = 24.4613
  Prefactor  = 4.68736
  norm       = 36.5042
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.9083
  norm       = 0.401072
  Prefactor  = 12.0008
  Prefactor  = 5.88824
  Prefactor  = 166.287
  norm       = 0.0001
  norm       = 9.48587
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.89484
  Prefactor  = 0.851354
 **********
 **   18 **HESSE 
 **********

 FCN=   4114.508     FROM HESSE     STATUS=OK           634 CALLS     5511 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9215        5.2945        .21184E-03   -1.5431    
   2  Prefactor     .11217E-03    44.444        .11928       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.926        8.2794        .97347E-04   -1.4885    
   4  norm          .10000E-03    5.2788        .14376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    48.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     17.401        24.593        .95994E-04   -1.4873    
   7  Prefactor     4.9843        5.0730        .13799E-03   -1.5261    
   8  Prefactor     .10000E-03    2.0749        .90014E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    39.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    24.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    69.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10004E-03    35.333        .37348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2131        .39736        .21508E-04   -1.5488    
  14  Prefactor     .10000E-03    1.0845        .64983E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     24.461        28.293        .81018E-04   -1.4718    
  16  Prefactor     4.6874        16.668        .18587E-03   -1.5275    
  17  norm          36.504        26.204        .66323E-04   -1.4499    
  18  norm          .10000E-03    6.4638        .15897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .94334        .60637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     28.908        28.570        .74504E-04   -1.4632    
  22  norm          .40107        2.1840        .18348E-03   -1.5581    
  23  Prefactor     12.001        18.919        .11569E-03   -1.5015    
  24  Prefactor     5.8882        5.5119        .13948E-03   -1.5223    
  25  Prefactor     166.29        68.338        .31283E-04   -1.3122    
  26  norm          .10000E-03    1.9402        .12261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          9.4859        10.324        .13019E-03   -1.5092    
  28  Prefactor     .10000E-03    49.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    41.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .89484        .24317        .24381E-03   -.96642    
  31  Prefactor     .85135        .26699        .29190E-03   -.97862    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6374e-09
Minuit parameter uncertainties:
  1  5.29582
  2  0.0465546
  3  8.27992
  4  1.06756e-05
  5  5.90472e-05
  6  24.6073
  7  5.07347
  8  7.98882e-06
  9  6.35803e-05
  10  1.4262e-05
  11  8.13293e-05
  12  0.00247939
  13  0.397359
  14  2.92875e-06
  15  28.3085
  16  16.6843
  17  26.2124
  18  5.15404e-06
  19  9.78822e-07
  20  2.40521e-05
  21  28.5836
  22  1.87169
  23  18.9286
  24  5.51236
  25  68.3701
  26  2.05361e-06
  27  10.3258
  28  8.07011e-06
  29  0.000104069
  30  0.243465
  31  0.267403
Done.

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

Extracting fit parameters...

4FGL J1106.7+3623
   Spectrum: PowerLaw
331    Prefactor:  2.446e+01  2.831e+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:  8.514e-01  2.674e-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:  8.948e-01  2.435e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.33
Ra Dec: 166.688 36.400
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 6.48e-08 +/- 7.50e-08
Energy Flux (Fixed Index): 1.86e-05 +/- 2.16e-05

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

Saving results to:
/scratch/kocevski/534931/likelihoodResults_254102401_254361601_4FGL_J1106.7+3623_daily_bin57.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) = 4113.34449856
delta logL = 1.1639166557

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4113.27449409
delta logL = 1.23392112614

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0346       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1536       1.0000          .0000       10.000    
     3 'Normalizat'    .82190       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91240       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=   4113.274     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      261 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0346        22.177        .72495E-02    .81739E-03
   2  Index         4.1538        2.6927        .79042E-01    .10152E-03
   3  Normalizat    .82181        .69214E-01    .43895E-01    .19541E-04
   4  Prefactor     .91252        .80784E-01    .45163E-01    .11251E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.03462
  Index      = 4.15377
  Normalizat = 0.821815
  Prefactor  = 0.912522
 **********
 **   18 **HESSE 
 **********

 FCN=   4113.274     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      294 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0346        36.421        .52370E-04   -1.5423    
   2  Index         4.1538        3.5827        .32103E-02   -.17006    
   3  Normalizat    .82181        .21335        .25243E-03   -.99265    
   4  Prefactor     .91252        .24910        .28288E-03   -.95705    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.09058e-07
Minuit parameter uncertainties:
  1  17.2284
  2  4.01125
  3  0.213573
  4  0.249411
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/534931': 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) = 4113.27449377
delta logL = 1.23392145479

Extracting fit parameters...

4FGL J1106.7+3623
   Spectrum: PowerLaw
331    Prefactor:  2.035e+00  1.723e+01  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  4.154e+00  4.011e+00  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:  9.125e-01  2.494e-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:  8.218e-01  2.136e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.07
Ra Dec: 166.688 36.400
Photon Index (Free Index): 4.15 +/- 4.01
Photon Flux (Free Index): 1.31e-07 +/- 8.09e-08
Energy Flux (Free Index): 1.92e-05 +/- 1.81e-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/534931/cmap_HighResolution_254102401_254361601_4FGL_J1106.7+3623_daily_bin57.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.46e-02', comment='SUCCESS', photon_flux='6.48e-08', energy_flux2='1.92e-05', photon_flux_error='7.50e-08', dlogl='1.23e+00', energy_flux='1.86e-05', photon_flux2='1.31e-07', job_status='DONE', time_completed='2021-09-03 09:11:06.003243', photon_index_error2='4.01', photon_index2='4.15', ts='1.33', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.88e-07', energy_flux_error2='1.81e-05', EG='0.89', time_epoch_completed='1630685466.0', return_code='0', job_id='534931', GAL2='0.91', EG2='0.82', return_code2='102', energy_flux_error='2.16e-05', photon_flux_error2='8.09e-08', ts2='4.07', photon_index='2.51' WHERE bin_id='57' AND source_name='4FGL J1106.7+3623' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 09:11:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 534931: <4FGL_J1106.7+3623_daily_bin57> in cluster <slac> Done

Job <4FGL_J1106.7+3623_daily_bin57> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 08:56:29 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 08:56:39 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:56:39 2021
Terminated at Fri Sep  3 09:11:06 2021
Results reported at Fri Sep  3 09:11:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1106.7+3623_daily_bin57 166.688 36.3995 254102401 254361601 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 :                                   826.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             306.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            877 sec.

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

