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


Performing analysis on: 4FGL_J1106.0+2813_daily_bin621
RA = 166.502, Dec = 28.2254
tmin = 400291201, tmax = 400550401
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='514932', job_status='RUN', time_executed='2021-09-03 07:57:09.359779', time_epoch_executed='1630681029.36' WHERE source_name='4FGL J1106.0+2813' and cadence='daily' and bin_id='621'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/514932

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/514932/ft1_4FGL_J1106.0+2813_daily_bin621.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/514932/ft2_4FGL_J1106.0+2813_daily_bin621.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/514932/ft1_4FGL_J1106.0+2813_daily_bin621.fits outfile=/scratch/kocevski/514932/ft1_filteredMKT_4FGL_J1106.0+2813_daily_bin621.fits ra=166.502 dec=28.2254 rad=12.0 tmin=400291201.0 tmax=400550401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.40
user 3.17
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/514932/ft1_filtered_4FGL_J1106.0+2813_daily_bin621.fits" evtable="EVENTS" scfile=/scratch/kocevski/514932/ft2_4FGL_J1106.0+2813_daily_bin621.fits sctable="SC_DATA" outfile=/scratch/kocevski/514932/ltcube_400291201_400550401_4FGL_J1106.0+2813_daily_bin621.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/514932/ft2_4FGL_J1106.0+2813_daily_bin621.fits
.....................!
real 13.88
user 13.47
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/514932/ft1_filtered_4FGL_J1106.0+2813_daily_bin621.fits evtable="EVENTS" scfile=/scratch/kocevski/514932/ft2_4FGL_J1106.0+2813_daily_bin621.fits sctable="SC_DATA" expcube=/scratch/kocevski/514932/ltcube_400291201_400550401_4FGL_J1106.0+2813_daily_bin621.fits outfile=/scratch/kocevski/514932/expmap_400291201_400550401_4FGL_J1106.0+2813_daily_bin621.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/514932/ltcube_400291201_400550401_4FGL_J1106.0+2813_daily_bin621.fits
.....................!
real 191.85
user 186.84
sys 4.49

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/514932/ft1_filtered_4FGL_J1106.0+2813_daily_bin621.fits scfile=/scratch/kocevski/514932/ft2_4FGL_J1106.0+2813_daily_bin621.fits outfile=/scratch/kocevski/514932/cmap_400291201_400550401_4FGL_J1106.0+2813_daily_bin621.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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/514932/ft1_filtered_4FGL_J1106.0+2813_daily_bin621.fits scfile=/scratch/kocevski/514932/ft2_4FGL_J1106.0+2813_daily_bin621.fits outfile=/scratch/kocevski/514932/cmap_HighResolution_400291201_400550401_4FGL_J1106.0+2813_daily_bin621.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.57
user 0.41
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/514932/ft1_filtered_4FGL_J1106.0+2813_daily_bin621.fits', '/scratch/kocevski/514932/ft2_4FGL_J1106.0+2813_daily_bin621.fits', expMap='/scratch/kocevski/514932/expmap_400291201_400550401_4FGL_J1106.0+2813_daily_bin621.fits', expCube='/scratch/kocevski/514932/ltcube_400291201_400550401_4FGL_J1106.0+2813_daily_bin621.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/514932/Model_4FGL_J1106.0+2813_daily_bin621.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/514932/ft1_filtered_4FGL_J1106.0+2813_daily_bin621.fits
Spacecraft file(s): /scratch/kocevski/514932/ft2_4FGL_J1106.0+2813_daily_bin621.fits
Exposure map: /scratch/kocevski/514932/expmap_400291201_400550401_4FGL_J1106.0+2813_daily_bin621.fits
Exposure cube: /scratch/kocevski/514932/ltcube_400291201_400550401_4FGL_J1106.0+2813_daily_bin621.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/514932/Model_4FGL_J1106.0+2813_daily_bin621.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) = 6275.09482902

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.7644       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.0252       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.8814       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.549       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.585       1.0000         .10000E-03   10000.    
    11 'norm      '    2.0498       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .71886       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .34985       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.0942       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.9091       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.2554       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.4952       1.0000         .10000E-03   10000.    
    27 'Prefactor '    34.368       1.0000         .10000E-03   10000.    
    28 'norm      '    1.4848       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1150       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .95738       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.

 FCN=   6275.082     FROM MIGRAD    STATUS=CONVERGED    772 CALLS     3938 TOTAL
                     EDM=   .81E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.752        .80061E-06** at limit **
   2  Prefactor     .10000E-03    12.477       -.16343E-05** at limit **
   3  Prefactor     1.7643        3.2435       -.31725E-07    .36414E-05
   4  Prefactor     5.0212        8.8143       -.58138E-06   -.63125E-04
   5  Prefactor     .10000E-03    1.4519       -.12421E-06** at limit **
   6  Prefactor     4.8815        13.640        .26453E-05    .83058E-04
   7  Prefactor     .10000E-03    18.512        .33267E-07** at limit **
   8  Prefactor     .10000E-03    6.4379       -.83705E-06** at limit **
   9  Prefactor     22.537        14.900        .67575E-06    .13254E-03
  10  Prefactor     14.576        22.041       -.35905E-05    .11792E-04
  11  norm          2.0498        .37604       -.47507E-08    .19376E-03
  12  Prefactor     .72673        2.8708       -.50005E-06    .97778E-04
  13  Prefactor     .10000E-03    7.5242       -.52768E-06** at limit **
  14  Prefactor     .10000E-03    4.4859        .23612E-06** at limit **
  15  norm          .10000E-03    5.4320        .34875E-07** at limit **
  16  Prefactor     .10000E-03    2.9344       -.53590E-07** at limit **
  17  norm          .30050        6.9454       -.59260E-06    .19308E-03
  18  Prefactor     1.0945        2.4981        .41093E-06   -.13241E-03
  19  Prefactor     .10000E-03    1.1522        .68705E-07** at limit **
  20  Prefactor     .10000E-03    12.775        .11071E-05** at limit **
  21  Prefactor     .10000E-03    25.937       -.23304E-05** at limit **
  22  norm          .10000E-03    .64587        .12066E-07** at limit **
  23  Prefactor     .10000E-03    6.6540        .17674E-05** at limit **
  24  Prefactor     1.9074        4.6782       -.10326E-05    .32665E-04
  25  Prefactor     4.2526        19.241        .13364E-05    .15324E-04
  26  Prefactor     3.4954        1.9081       -.37726E-07    .34692E-04
  27  Prefactor     34.364        29.253       -.37105E-05    .18012E-04
  28  norm          1.4846        1.2932        .50297E-07    .87997E-04
  29  Normalizat    1.1152        .18267        .65388E-06    .15852E-03
  30  Prefactor     .95719        .19067        .32556E-06    .13531E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.76433
  Prefactor  = 5.02122
  Prefactor  = 0.0001
  Prefactor  = 4.88149
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.5366
  Prefactor  = 14.5762
  norm       = 2.04975
  Prefactor  = 0.726728
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.300502
  Prefactor  = 1.09453
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.90739
  Prefactor  = 4.25256
  Prefactor  = 3.49542
  Prefactor  = 34.3642
  norm       = 1.48465
  Normalizat = 1.11518
  Prefactor  = 0.957194
 **********
 **   18 **HESSE 
 **********

 FCN=   6275.082     FROM HESSE     STATUS=OK           590 CALLS     4528 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.7643        3.2135        .18782E-03   -1.5442    
   4  Prefactor     5.0212        8.9947        .89691E-03   -1.5260    
   5  Prefactor     .10000E-03    1.4859        .18591E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.8815        13.463        .18206E-03   -1.5266    
   7  Prefactor     .10000E-03    18.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.4475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.537        14.553        .84351E-04   -1.4758    
  10  Prefactor     14.576        21.833        .10488E-03   -1.4944    
  11  norm          2.0498        .37707        .20149E-04   -1.5422    
  12  Prefactor     .72673        4.3434        .22116E-02   -1.5537    
  13  Prefactor     .10000E-03    7.5553        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.4894        .16385E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.4490        .18030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.9407        .13251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .30050        102.07        .38863E-02   -1.5598    
  18  Prefactor     1.0945        28.368        .22807E-02   -1.5499    
  19  Prefactor     .10000E-03    1.1936        .16589E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    26.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .64965        .62162E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.6835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.9074        4.6580        .25192E-03   -1.5432    
  25  Prefactor     4.2526        19.150        .19532E-03   -1.5296    
  26  Prefactor     3.4954        1.9032        .76994E-04   -1.5334    
  27  Prefactor     34.364        29.141        .68356E-04   -1.4535    
  28  norm          1.4846        1.2821        .81024E-04   -1.5464    
  29  Normalizat    1.1152        .22277        .24034E-03   -.89266    
  30  Prefactor     .95719        .22912        .28994E-03   -.94170    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13073e-09
Minuit parameter uncertainties:
  1  2.66981e-06
  2  2.18845e-06
  3  3.21381
  4  8.99717
  5  4.15783e-06
  6  13.4713
  7  1.34586e-05
  8  2.27492e-07
  9  14.5552
  10  21.8452
  11  0.377075
  12  3.55342
  13  1.90717e-06
  14  4.87651e-07
  15  7.41369e-07
  16  5.39118e-07
  17  11.0935
  18  11.1498
  19  2.40699e-06
  20  2.84103e-06
  21  5.52116e-05
  22  3.68544e-07
  23  6.17965e-06
  24  4.65886
  25  18.0579
  26  1.90328
  27  29.1529
  28  1.28209
  29  0.222954
  30  0.22935
Done.

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

Extracting fit parameters...

4FGL J1106.0+2813
   Spectrum: PowerLaw
253    Prefactor:  7.267e-01  3.553e+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

GAL_V02
   Spectrum: PowerLaw
556    Prefactor:  9.572e-01  2.293e-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:  1.115e+00  2.230e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/514932/likelihoodResults_400291201_400550401_4FGL_J1106.0+2813_daily_bin621.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) = 6274.82061902
delta logL = 0.261432461402

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6274.67039192
delta logL = 0.411659566266

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .50617E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    4.8809       1.0000          .0000       10.000    
     3 'Normalizat'    1.0660       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99542       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.

 FCN=   6274.670     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      244 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .50304E-01    .95673        .44671E-02    .36849E-02
   2  Index         4.8840        3.1930        .12880        .12877E-03
   3  Normalizat    1.0662        .34163E-01    .39595E-01   -.16337E-03
   4  Prefactor     .99527        .38729E-01    .46210E-01   -.65747E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0503035
  Index      = 4.88399
  Normalizat = 1.06617
  Prefactor  = 0.99527
 **********
 **   18 **HESSE 
 **********

 FCN=   6274.670     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      279 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     .50304E-01    3.3056        .20547E-03   -1.5663    
   2  Index         4.8840        7.4167        .72782E-02   -.23205E-01
   3  Normalizat    1.0662        .13749        .24485E-03   -.90846    
   4  Prefactor     .99527        .15369        .28480E-03   -.92887    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.14792e-07
Minuit parameter uncertainties:
  1  0.814799
  2  8.44774
  3  0.137533
  4  0.15376
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/514932': 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) = 6274.670391
delta logL = 0.411660480578

Extracting fit parameters...

4FGL J1106.0+2813
   Spectrum: PowerLaw
253    Prefactor:  5.030e-02  8.148e-01  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  4.884e+00  8.448e+00  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:  9.953e-01  1.538e-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:  1.066e+00  1.375e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
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/514932/cmap_HighResolution_400291201_400550401_4FGL_J1106.0+2813_daily_bin621.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.61e-03', job_status='DONE', photon_flux_upper_limit='9.87e-08', time_completed='2021-09-03 08:11:37.617557', job_id='514932', GAL2='1.00', fit_tolerance='1e-08', EG2='1.07', EG='1.12', time_epoch_completed='1630681897.62', return_code2='102', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='4.12e-01', ts2='0.94', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='621' AND source_name='4FGL J1106.0+2813' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 08:11:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 514932: <4FGL_J1106.0+2813_daily_bin621> in cluster <slac> Done

Job <4FGL_J1106.0+2813_daily_bin621> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Fri Sep  3 07:56:37 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 07:56:59 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:56:59 2021
Terminated at Fri Sep  3 08:11:38 2021
Results reported at Fri Sep  3 08:11:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1106.0+2813_daily_bin621 166.502 28.2254 400291201 400550401 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 :                                   862.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             326.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            901 sec.

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

