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


Performing analysis on: 4FGL_J1106.0+2813_daily_bin6
RA = 166.502, Dec = 28.2254
tmin = 240883201, tmax = 241142401
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='511503', job_status='RUN', time_executed='2021-09-03 07:47:53.093395', time_epoch_executed='1630680473.09' WHERE source_name='4FGL J1106.0+2813' and cadence='daily' and bin_id='6'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/511503

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/511503/ft1_4FGL_J1106.0+2813_daily_bin6.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/511503/ft2_4FGL_J1106.0+2813_daily_bin6.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/511503/ft1_4FGL_J1106.0+2813_daily_bin6.fits outfile=/scratch/kocevski/511503/ft1_filteredMKT_4FGL_J1106.0+2813_daily_bin6.fits ra=166.502 dec=28.2254 rad=12.0 tmin=240883201.0 tmax=241142401.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 1.53
user 1.32
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/511503/ft2_4FGL_J1106.0+2813_daily_bin6.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/511503/ft2_4FGL_J1106.0+2813_daily_bin6.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/511503/ft1_filteredMKT_4FGL_J1106.0+2813_daily_bin6.fits evtable="EVENTS" outfile="/scratch/kocevski/511503/ft1_filtered_4FGL_J1106.0+2813_daily_bin6.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.53
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/511503/ft1_filtered_4FGL_J1106.0+2813_daily_bin6.fits" evtable="EVENTS" scfile=/scratch/kocevski/511503/ft2_4FGL_J1106.0+2813_daily_bin6.fits sctable="SC_DATA" outfile=/scratch/kocevski/511503/ltcube_240883201_241142401_4FGL_J1106.0+2813_daily_bin6.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/511503/ft2_4FGL_J1106.0+2813_daily_bin6.fits
.....................!
real 15.37
user 15.01
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/511503/ft1_filtered_4FGL_J1106.0+2813_daily_bin6.fits evtable="EVENTS" scfile=/scratch/kocevski/511503/ft2_4FGL_J1106.0+2813_daily_bin6.fits sctable="SC_DATA" expcube=/scratch/kocevski/511503/ltcube_240883201_241142401_4FGL_J1106.0+2813_daily_bin6.fits outfile=/scratch/kocevski/511503/expmap_240883201_241142401_4FGL_J1106.0+2813_daily_bin6.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/511503/ltcube_240883201_241142401_4FGL_J1106.0+2813_daily_bin6.fits
.....................!
real 192.94
user 188.19
sys 4.31

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 178 point sources and 0 extended sources

Setting source of interest to:
4FGL J1106.0+2813 @ 166.502 28.2254

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/511503/ft1_filtered_4FGL_J1106.0+2813_daily_bin6.fits scfile=/scratch/kocevski/511503/ft2_4FGL_J1106.0+2813_daily_bin6.fits outfile=/scratch/kocevski/511503/cmap_240883201_241142401_4FGL_J1106.0+2813_daily_bin6.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.502 yref=28.2254 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.58
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/511503/ft1_filtered_4FGL_J1106.0+2813_daily_bin6.fits scfile=/scratch/kocevski/511503/ft2_4FGL_J1106.0+2813_daily_bin6.fits outfile=/scratch/kocevski/511503/cmap_HighResolution_240883201_241142401_4FGL_J1106.0+2813_daily_bin6.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.502 yref=28.2254 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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/511503/ft1_filtered_4FGL_J1106.0+2813_daily_bin6.fits evtable="EVENTS" scfile=/scratch/kocevski/511503/ft2_4FGL_J1106.0+2813_daily_bin6.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/511503/Model_4FGL_J1106.0+2813_daily_bin6.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/511503/ft1_filtered_4FGL_J1106.0+2813_daily_bin6.fits....................!
real 55.55
user 53.53
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/511503/ft1_filtered_4FGL_J1106.0+2813_daily_bin6.fits', '/scratch/kocevski/511503/ft2_4FGL_J1106.0+2813_daily_bin6.fits', expMap='/scratch/kocevski/511503/expmap_240883201_241142401_4FGL_J1106.0+2813_daily_bin6.fits', expCube='/scratch/kocevski/511503/ltcube_240883201_241142401_4FGL_J1106.0+2813_daily_bin6.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/511503/Model_4FGL_J1106.0+2813_daily_bin6.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1106.0+2813'

4FGL J1106.0+2813
   Spectrum: PowerLaw
253    Prefactor:  1.558e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.375e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  8.523e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/511503/ft1_filtered_4FGL_J1106.0+2813_daily_bin6.fits
Spacecraft file(s): /scratch/kocevski/511503/ft2_4FGL_J1106.0+2813_daily_bin6.fits
Exposure map: /scratch/kocevski/511503/expmap_240883201_241142401_4FGL_J1106.0+2813_daily_bin6.fits
Exposure cube: /scratch/kocevski/511503/ltcube_240883201_241142401_4FGL_J1106.0+2813_daily_bin6.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/511503/Model_4FGL_J1106.0+2813_daily_bin6.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) = 5842.69292056

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    84.081       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.761       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1890       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9382       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .57610E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.124       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.6854       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.8446       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12176E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    13.074       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .85945E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.426       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.4055       1.0000         .10000E-03   10000.    
    22 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.3795       1.0000         .10000E-03   10000.    
    25 'Prefactor '    33.171       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.4868       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    4.6155       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .84548       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2104       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5590E+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=   5842.680     FROM MIGRAD    STATUS=CONVERGED   1386 CALLS     4551 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     84.087        59.564        .43808E-04   -.28027E-04
   2  Prefactor     10.756        23.698        .12213E-03    .42818E-05
   3  Prefactor     .10000E-03    2.4134        .11560E-02** at limit **
   4  Prefactor     4.1892        6.7725        .19691E-03    .10733E-03
   5  Prefactor     1.9383        2.7287        .13700E-03    .73190E-04
   6  Prefactor     .10000E-03    61.673        .41017E-02** at limit **
   7  Prefactor     .10000E-03    21.117        .18142E-02** at limit **
   8  Prefactor     20.124        12.122        .89284E-04   -.39982E-04
   9  Prefactor     .10000E-03    4.3369        .15524E-02** at limit **
  10  Prefactor     .10000E-03    17.547        .18142E-02** at limit **
  11  norm          1.6853        .41102        .22056E-04    .69822E-03
  12  Prefactor     .10000E-03    .94402        .72088E-03** at limit **
  13  Prefactor     9.8392        17.790        .12771E-03    .32046E-04
  14  Prefactor     .10000E-03    80.551        .47138E-02** at limit **
  15  norm          13.071        13.550        .11078E-03   -.19909E-04
  16  Prefactor     .10000E-03    2.1742        .10988E-02** at limit **
  17  norm          .69592E-01    10.062        .62492E-01    .22300E-03
  18  Prefactor     .10000E-03    4.2142        .15302E-02** at limit **
  19  Prefactor     .10000E-03    1.1943        .16099E-03** at limit **
  20  Prefactor     11.416        28.471        .11852E-03   -.79520E-04
  21  Prefactor     6.4099        16.061        .15859E-03    .34339E-04
  22  norm          .10000E-03    .90387        .70496E-03** at limit **
  23  Prefactor     .10000E-03    7.6867        .18142E-02** at limit **
  24  Prefactor     3.3793        3.4981        .14078E-03   -.11613E-03
  25  Prefactor     33.172        25.007        .69575E-04    .15196E-04
  26  Prefactor     2.4867        2.0827        .93320E-04    .63715E-04
  27  Prefactor     .10000E-03    9.4517        .18142E-02** at limit **
  28  norm          4.6155        1.8939        .64250E-04    .66708E-04
  29  Normalizat    .84569        .21768        .26516E-03    .43046E-04
  30  Prefactor     1.2101        .24086        .26527E-03   -.13547E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 84.0873
  Prefactor  = 10.7558
  Prefactor  = 0.0001
  Prefactor  = 4.18917
  Prefactor  = 1.93826
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.124
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.6853
  Prefactor  = 0.0001
  Prefactor  = 9.8392
  Prefactor  = 0.000100001
  norm       = 13.0711
  Prefactor  = 0.0001
  norm       = 0.0695918
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.4159
  Prefactor  = 6.4099
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.37934
  Prefactor  = 33.1721
  Prefactor  = 2.48667
  Prefactor  = 0.0001
  norm       = 4.61549
  Normalizat = 0.845689
  Prefactor  = 1.21015
 **********
 **   18 **HESSE 
 **********

 FCN=   5842.680     FROM HESSE     STATUS=OK           566 CALLS     5117 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     84.087        59.563        .87616E-05   -1.3871    
   2  Prefactor     10.756        23.698        .48854E-05   -1.5052    
   3  Prefactor     .10000E-03    2.4134        .23120E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.1892        6.7704        .78763E-05   -1.5299    
   5  Prefactor     1.9383        2.7278        .54801E-05   -1.5430    
   6  Prefactor     .10000E-03    63.006        .16407E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.119        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.124        12.089        .35713E-05   -1.4810    
   9  Prefactor     .10000E-03    4.3372        .31047E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.553        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.6853        .41065        .44112E-05   -1.5448    
  12  Prefactor     .10000E-03    .94409        .14418E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.8392        17.784        .51086E-05   -1.5081    
  14  Prefactor     .10000E-03    81.452        .94277E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          13.071        13.549        .44312E-05   -1.4985    
  16  Prefactor     .10000E-03    2.1743        .21976E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .69592E-01    8.9293        .68312E-01   -1.5655    
  18  Prefactor     .10000E-03    4.2145        .30605E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.1943        .32198E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.416        28.473        .47408E-05   -1.5032    
  21  Prefactor     6.4099        16.060        .63434E-05   -1.5202    
  22  norm          .10000E-03    .90393        .14099E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.6887        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.3793        3.4980        .56312E-05   -1.5340    
  25  Prefactor     33.172        25.004        .27830E-05   -1.4555    
  26  Prefactor     2.4867        2.0825        .37328E-05   -1.5393    
  27  Prefactor     .10000E-03    9.4521        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          4.6155        1.8939        .25700E-05   -1.5278    
  29  Normalizat    .84569        .21779        .10606E-04   -.98396    
  30  Prefactor     1.2101        .24107        .53055E-04   -.86020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80117e-10
Minuit parameter uncertainties:
  1  59.6054
  2  23.7185
  3  9.86437e-06
  4  6.7716
  5  2.72793
  6  8.20477e-05
  7  7.35894e-05
  8  12.0901
  9  1.49371e-06
  10  5.5579e-05
  11  0.410649
  12  4.40455e-08
  13  17.7932
  14  0.000528002
  15  13.5523
  16  2.43468e-06
  17  1.57569
  18  7.03483e-06
  19  2.32493e-06
  20  28.5067
  21  16.0712
  22  1.53475e-06
  23  5.8586e-06
  24  3.49823
  25  25.0121
  26  2.08256
  27  1.47898e-05
  28  1.89396
  29  0.218019
  30  0.241287
Done.

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

Extracting fit parameters...

4FGL J1106.0+2813
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  4.405e-08  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.375e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  8.523e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  1.210e+00  2.413e-01  0.000e+00  1.000e+01 ( 1.000e+00)
557        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
558        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
555   Normalization:  8.457e-01  2.180e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 166.502 28.225
Photon Flux Upper Limit: 5.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/511503/likelihoodResults_240883201_241142401_4FGL_J1106.0+2813_daily_bin6.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) = 5842.68499255
delta logL = -0.0049392749761

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5842.6800534
delta logL = -1.24430698634e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3701       1.0000          .0000       10.000    
     3 'Normalizat'    .84572       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2102       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5590E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5842.680     FROM MIGRAD    STATUS=FAILED        87 CALLS      237 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10042E-03    84.531        .72168E-03** at limit **
   2  Index         2.3090        8.8069        .50000        .32574E-04
   3  Normalizat    .84569        .46453E-01    .26516E-03   -.10805E-04
   4  Prefactor     1.2101        .54731E-01    .26527E-03   -.14443E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5842.680     FROM SIMPLEX   STATUS=PROGRESS     140 CALLS      377 TOTAL
                     EDM=   .69E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10038E-03    84.531        .13879E-03** at limit **
   2  Index         2.3088        8.8069        .89513E-04    .32574E-04
   3  Normalizat    .84568        .46453E-01    .21534E-05   -.10805E-04
   4  Prefactor     1.2101        .54731E-01    .15894E-05   -.14443E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5842.680     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      418 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6728        .14434E-03** at limit **
   2  Index         2.1492        5.2573        .50000       -.26042E-05
   3  Normalizat    .84569        .20287        .10606E-04   -.17150E-05
   4  Prefactor     1.2101        .23927        .10611E-04    .12214E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.14916
  Normalizat = 0.845687
  Prefactor  = 1.21015
 **********
 **   18 **HESSE 
 **********

 FCN=   5842.680     FROM HESSE     STATUS=OK            27 CALLS      445 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .98293        .28867E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1492        5.8284        .50000       -.60671    
   3  Normalizat    .84569        .20298        .21213E-05   -.98396    
   4  Prefactor     1.2101        .23944        .21222E-05   -.86020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50179e-09
Minuit parameter uncertainties:
  1  1.36626e-05
  2  79.549
  3  0.20316
  4  0.239657
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/511503': 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) = 5842.68005205
delta logL = 1.23360587168e-06

Extracting fit parameters...

4FGL J1106.0+2813
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  1.366e-05  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.149e+00  7.955e+01  0.000e+00  1.000e+01 (-1.000e+00)
255        Scale:  8.523e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  1.210e+00  2.397e-01  0.000e+00  1.000e+01 ( 1.000e+00)
557        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
558        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
555   Normalization:  8.457e-01  2.032e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 166.502 28.225

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/511503/cmap_HighResolution_240883201_241142401_4FGL_J1106.0+2813_daily_bin6.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.99e-03', job_status='DONE', photon_flux_upper_limit='5.17e-08', time_completed='2021-09-03 08:02:49.422454', job_id='511503', GAL2='1.21', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1630681369.42', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='1.23e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='6' AND source_name='4FGL J1106.0+2813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 08:02:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 511503: <4FGL_J1106.0+2813_daily_bin6> in cluster <slac> Done

Job <4FGL_J1106.0+2813_daily_bin6> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 07:46:53 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 07:46:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 07:46:55 2021
Terminated at Fri Sep  3 08:02:50 2021
Results reported at Fri Sep  3 08:02:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1106.0+2813_daily_bin6 166.502 28.2254 240883201 241142401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1106.0+2813 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   891.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   954 sec.
    Turnaround time :                            957 sec.

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

