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


Performing analysis on: 4FGL_J1106.7+3623_daily_bin1282
RA = 166.688, Dec = 36.3995
tmin = 571622401, tmax = 571881601
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='544819', job_status='RUN', time_executed='2021-09-03 09:29:02.382353', time_epoch_executed='1630686542.38' WHERE source_name='4FGL J1106.7+3623' and cadence='daily' and bin_id='1282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/544819

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/544819/ft1_4FGL_J1106.7+3623_daily_bin1282.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/544819/ft2_4FGL_J1106.7+3623_daily_bin1282.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/544819/ft1_4FGL_J1106.7+3623_daily_bin1282.fits outfile=/scratch/kocevski/544819/ft1_filteredMKT_4FGL_J1106.7+3623_daily_bin1282.fits ra=166.688 dec=36.3995 rad=12.0 tmin=571622401.0 tmax=571881601.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.82
user 2.54
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/544819/ft2_4FGL_J1106.7+3623_daily_bin1282.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/544819/ft1_filteredMKT_4FGL_J1106.7+3623_daily_bin1282.fits evtable="EVENTS" outfile="/scratch/kocevski/544819/ft1_filtered_4FGL_J1106.7+3623_daily_bin1282.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 1.16
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/544819/ft1_filtered_4FGL_J1106.7+3623_daily_bin1282.fits" evtable="EVENTS" scfile=/scratch/kocevski/544819/ft2_4FGL_J1106.7+3623_daily_bin1282.fits sctable="SC_DATA" outfile=/scratch/kocevski/544819/ltcube_571622401_571881601_4FGL_J1106.7+3623_daily_bin1282.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/544819/ft2_4FGL_J1106.7+3623_daily_bin1282.fits
.....................!
real 16.01
user 15.53
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/544819/ft1_filtered_4FGL_J1106.7+3623_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/544819/ft2_4FGL_J1106.7+3623_daily_bin1282.fits sctable="SC_DATA" expcube=/scratch/kocevski/544819/ltcube_571622401_571881601_4FGL_J1106.7+3623_daily_bin1282.fits outfile=/scratch/kocevski/544819/expmap_571622401_571881601_4FGL_J1106.7+3623_daily_bin1282.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/544819/ltcube_571622401_571881601_4FGL_J1106.7+3623_daily_bin1282.fits
.....................!
real 192.75
user 188.13
sys 4.08

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/544819/ft1_filtered_4FGL_J1106.7+3623_daily_bin1282.fits scfile=/scratch/kocevski/544819/ft2_4FGL_J1106.7+3623_daily_bin1282.fits outfile=/scratch/kocevski/544819/cmap_571622401_571881601_4FGL_J1106.7+3623_daily_bin1282.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.42
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/544819/ft1_filtered_4FGL_J1106.7+3623_daily_bin1282.fits scfile=/scratch/kocevski/544819/ft2_4FGL_J1106.7+3623_daily_bin1282.fits outfile=/scratch/kocevski/544819/cmap_HighResolution_571622401_571881601_4FGL_J1106.7+3623_daily_bin1282.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/544819/ft1_filtered_4FGL_J1106.7+3623_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/544819/ft2_4FGL_J1106.7+3623_daily_bin1282.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/544819/Model_4FGL_J1106.7+3623_daily_bin1282.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/544819/ft1_filtered_4FGL_J1106.7+3623_daily_bin1282.fits......................!
real 22.98
user 21.72
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37667E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10353E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    76.575       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    384.07       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10349E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10758E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    192.50       1.0000         .10000E-03   10000.    
    12 'Prefactor '    134.20       1.0000         .10000E-03   10000.    
    13 'norm      '    .32090       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    75.805       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    44.476       1.0000         .10000E-03   10000.    
    18 'norm      '    22.300       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.093       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.667       1.0000         .10000E-03   10000.    
    25 'Prefactor '    103.23       1.0000         .10000E-03   10000.    
    26 'norm      '    5.0973       1.0000         .10000E-03   10000.    
    27 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    58.835       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .19343E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .23692       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.6345       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=   1313.162     FROM MIGRAD    STATUS=CONVERGED    788 CALLS     5433 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10016E-03    144.73       -.62697E-05** at limit **
   2  Prefactor     .10000E-03    177.51        .14718E-04** at limit **
   3  Prefactor     76.496        121.07       -.12019E-04   -.13633E-04
   4  norm          .10000E-03    35.825       -.14017E-05** at limit **
   5  Prefactor     381.89        1228.8       -.26945E-03   -.98149E-06
   6  Prefactor     .10000E-03    133.01       -.97949E-05** at limit **
   7  Prefactor     .10000E-03    9.5224       -.45161E-07** at limit **
   8  Prefactor     .10000E-03    20.926       -.44882E-06** at limit **
   9  Prefactor     .10000E-03    59.364        .42005E-05** at limit **
  10  Prefactor     .10000E-03    64.751       -.49265E-05** at limit **
  11  Prefactor     192.68        241.28       -.20683E-05    .16673E-05
  12  Prefactor     134.25        103.29        .41010E-05    .19749E-04
  13  norm          .32146        .54781       -.21940E-06   -.48443E-03
  14  Prefactor     .10001E-03    36.080       -.45700E-06** at limit **
  15  Prefactor     75.772        67.921       -.55071E-05   -.21065E-04
  16  Prefactor     .10000E-03    31.695        .10157E-05** at limit **
  17  norm          44.447        81.593       -.12800E-04   -.13736E-04
  18  norm          22.328        48.830       -.23007E-04   -.35973E-05
  19  Prefactor     11.100        9.7870       -.11773E-05   -.62891E-04
  20  Prefactor     .10000E-03    60.914        .17465E-05** at limit **
  21  Prefactor     .10000E-03    16.743       -.37876E-07** at limit **
  22  norm          .10000E-03    5.3365        .17817E-06** at limit **
  23  Prefactor     .10000E-03    14.697       -.15498E-06** at limit **
  24  Prefactor     13.681        25.612       -.12437E-04   -.84075E-04
  25  Prefactor     103.38        154.32       -.21955E-04   -.43491E-04
  26  norm          5.1003        3.2831       -.25132E-05   -.62209E-04
  27  norm          .10000E-03    9.0604       -.68884E-08** at limit **
  28  Prefactor     58.944        87.800       -.10300E-04    .11488E-04
  29  Prefactor     .10000E-03    289.07        .71211E-05** at limit **
  30  Normalizat    .23678        .58311        .27047E-03   -.16140E-04
  31  Prefactor     1.6344        .63026       -.91962E-04   -.23870E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010016
  Prefactor  = 0.0001
  Prefactor  = 76.4965
  norm       = 0.0001
  Prefactor  = 381.89
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 192.679
  Prefactor  = 134.25
  norm       = 0.321465
  Prefactor  = 0.000100007
  Prefactor  = 75.7719
  Prefactor  = 0.0001
  norm       = 44.4465
  norm       = 22.3275
  Prefactor  = 11.1
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 13.6807
  Prefactor  = 103.384
  norm       = 5.10035
  norm       = 0.0001
  Prefactor  = 58.944
  Prefactor  = 0.000100003
  Normalizat = 0.23678
  Prefactor  = 1.63439
 **********
 **   18 **HESSE 
 **********

 FCN=   1313.162     FROM HESSE     STATUS=OK           612 CALLS     6045 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10016E-03    144.98        .21291E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    177.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     76.496        121.18        .22944E-03   -1.3956    
   4  norm          .10000E-03    35.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     381.89        1233.4        .10407E-03   -1.1774    
   6  Prefactor     .10000E-03    133.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.5255        .10924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    20.938        .16195E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    59.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    64.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     192.68        242.09        .14556E-03   -1.2923    
  12  Prefactor     134.25        103.09        .17382E-03   -1.3385    
  13  norm          .32146        .52142        .33235E-03   -1.5595    
  14  Prefactor     .10001E-03    36.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     75.772        67.892        .46118E-04   -1.3965    
  16  Prefactor     .10000E-03    31.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          44.447        81.689        .60116E-04   -1.4374    
  18  norm          22.328        48.853        .84820E-04   -1.4763    
  19  Prefactor     11.100        9.7685        .93989E-04   -1.5042    
  20  Prefactor     .10000E-03    60.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.744        .14487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.3750        .81601E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    14.699        .13572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     13.681        25.653        .10835E-03   -1.4968    
  25  Prefactor     103.38        155.78        .19787E-03   -1.3671    
  26  norm          5.1003        3.3028        .43764E-04   -1.5256    
  27  norm          .10000E-03    9.0661        .10655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     58.944        87.627        .52305E-04   -1.4171    
  29  Prefactor     .10000E-03    291.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .23678        .58712        .58347E-03   -1.2683    
  31  Prefactor     1.6344        .64393        .27809E-03   -.73842    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64394e-09
Minuit parameter uncertainties:
  1  0.00964119
  2  0.000298903
  3  121.569
  4  0.000148418
  5  1339.87
  6  0.000823406
  7  6.13237e-06
  8  0.000353026
  9  8.71068e-05
  10  0.000212898
  11  243.358
  12  103.227
  13  0.521429
  14  0.00104503
  15  67.9618
  16  0.000122914
  17  81.8955
  18  48.9409
  19  9.76993
  20  2.61893e-05
  21  3.77187e-06
  22  0.000131711
  23  2.40744e-05
  24  25.6739
  25  156.404
  26  3.30296
  27  2.90206e-06
  28  87.8195
  29  0.00178765
  30  0.603529
  31  0.647225
Done.

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

Extracting fit parameters...

4FGL J1106.7+3623
   Spectrum: PowerLaw
331    Prefactor:  7.577e+01  6.796e+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:  1.634e+00  6.472e-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:  2.368e-01  6.035e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.04
Ra Dec: 166.688 36.400
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 2.01e-07 +/- 1.80e-07
Energy Flux (Fixed Index): 5.77e-05 +/- 5.18e-05

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

Saving results to:
/scratch/kocevski/544819/likelihoodResults_571622401_571881601_4FGL_J1106.7+3623_daily_bin1282.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) = 1312.7519905
delta logL = 0.409638194015

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1312.57138661
delta logL = 0.590242089757

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    127.43       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8869       1.0000          .0000       10.000    
     3 'Normalizat'    .29302       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5820       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=   1312.571     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      227 TOTAL
                     EDM=   .15E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     127.41        97.099       -.26276E-05    .37361E-05
   2  Index         1.8871        .51624       -.84895E-05    .87190E-05
   3  Normalizat    .29329        .53564        .29786E-05    .29149E-04
   4  Prefactor     1.5817        .63909       -.10574E-06    .33352E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 127.407
  Index      = 1.88715
  Normalizat = 0.293289
  Prefactor  = 1.58174
 **********
 **   18 **HESSE 
 **********

 FCN=   1312.571     FROM HESSE     STATUS=OK            31 CALLS      258 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     127.41        97.233        .17832E-03   -1.3446    
   2  Index         1.8871        .51673        .44075E-02   -.67202    
   3  Normalizat    .29329        .51791        .52682E-03   -1.2324    
   4  Prefactor     1.5817        .61670        .28126E-03   -.75276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56285e-11
Minuit parameter uncertainties:
  1  97.3551
  2  0.518245
  3  0.526722
  4  0.61967
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/544819': 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) = 1312.57138637
delta logL = 0.590242330602

Extracting fit parameters...

4FGL J1106.7+3623
   Spectrum: PowerLaw
331    Prefactor:  1.274e+02  9.736e+01  1.000e-04  1.000e+04 ( 1.000e-13)
332        Index:  1.887e+00  5.182e-01  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.582e+00  6.197e-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:  2.933e-01  5.267e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.28
Ra Dec: 166.688 36.400
Photon Index (Free Index): 1.89 +/- 0.52
Photon Flux (Free Index): 1.30e-07 +/- 1.22e-07
Energy Flux (Free Index): 1.21e-04 +/- 1.41e-04

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/544819/cmap_HighResolution_571622401_571881601_4FGL_J1106.7+3623_daily_bin1282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.53e-02', comment='SUCCESS', photon_flux='2.01e-07', energy_flux2='1.21e-04', photon_flux_error='1.80e-07', dlogl='5.90e-01', energy_flux='5.77e-05', photon_flux2='1.30e-07', job_status='DONE', time_completed='2021-09-03 09:37:35.345608', photon_index_error2='0.52', photon_index2='1.89', ts='3.04', fit_tolerance='1e-08', GAL='1.63', photon_index_error='0.00', photon_flux_upper_limit='5.82e-07', energy_flux_error2='1.41e-04', EG='0.24', time_epoch_completed='1630687055.35', return_code='0', job_id='544819', GAL2='1.58', EG2='0.29', return_code2='0', energy_flux_error='5.18e-05', photon_flux_error2='1.22e-07', ts2='4.28', photon_index='2.51' WHERE bin_id='1282' AND source_name='4FGL J1106.7+3623' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 09:37:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 544819: <4FGL_J1106.7+3623_daily_bin1282> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1106.7+3623_daily_bin1282 166.688 36.3995 571622401 571881601 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 :                                   488.10 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             251.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   685 sec.
    Turnaround time :                            882 sec.

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

