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


Performing analysis on: 4FGL_J1102.6+5251_daily_bin10
RA = 165.673, Dec = 52.8569
tmin = 241920001, tmax = 242179201
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='425018', job_status='RUN', time_executed='2021-09-03 03:13:43.445447', time_epoch_executed='1630664023.45' WHERE source_name='4FGL J1102.6+5251' and cadence='daily' and bin_id='10'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/425018

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/425018/ft1_4FGL_J1102.6+5251_daily_bin10.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/425018/ft2_4FGL_J1102.6+5251_daily_bin10.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/425018/ft1_4FGL_J1102.6+5251_daily_bin10.fits outfile=/scratch/kocevski/425018/ft1_filteredMKT_4FGL_J1102.6+5251_daily_bin10.fits ra=165.673 dec=52.8569 rad=12.0 tmin=241920001.0 tmax=242179201.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.26
user 1.03
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/425018/ft2_4FGL_J1102.6+5251_daily_bin10.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/425018/ft2_4FGL_J1102.6+5251_daily_bin10.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/425018/ft1_filteredMKT_4FGL_J1102.6+5251_daily_bin10.fits evtable="EVENTS" outfile="/scratch/kocevski/425018/ft1_filtered_4FGL_J1102.6+5251_daily_bin10.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.46
user 0.31
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/425018/ft1_filtered_4FGL_J1102.6+5251_daily_bin10.fits" evtable="EVENTS" scfile=/scratch/kocevski/425018/ft2_4FGL_J1102.6+5251_daily_bin10.fits sctable="SC_DATA" outfile=/scratch/kocevski/425018/ltcube_241920001_242179201_4FGL_J1102.6+5251_daily_bin10.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/425018/ft2_4FGL_J1102.6+5251_daily_bin10.fits
.....................!
real 17.45
user 17.04
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/425018/ft1_filtered_4FGL_J1102.6+5251_daily_bin10.fits evtable="EVENTS" scfile=/scratch/kocevski/425018/ft2_4FGL_J1102.6+5251_daily_bin10.fits sctable="SC_DATA" expcube=/scratch/kocevski/425018/ltcube_241920001_242179201_4FGL_J1102.6+5251_daily_bin10.fits outfile=/scratch/kocevski/425018/expmap_241920001_242179201_4FGL_J1102.6+5251_daily_bin10.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/425018/ltcube_241920001_242179201_4FGL_J1102.6+5251_daily_bin10.fits
.....................!
real 157.07
user 152.57
sys 4.01

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

Setting source of interest to:
4FGL J1102.6+5251 @ 165.673 52.8569

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/425018/ft1_filtered_4FGL_J1102.6+5251_daily_bin10.fits scfile=/scratch/kocevski/425018/ft2_4FGL_J1102.6+5251_daily_bin10.fits outfile=/scratch/kocevski/425018/cmap_241920001_242179201_4FGL_J1102.6+5251_daily_bin10.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=165.673 yref=52.8569 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.50
user 0.33
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/425018/ft1_filtered_4FGL_J1102.6+5251_daily_bin10.fits scfile=/scratch/kocevski/425018/ft2_4FGL_J1102.6+5251_daily_bin10.fits outfile=/scratch/kocevski/425018/cmap_HighResolution_241920001_242179201_4FGL_J1102.6+5251_daily_bin10.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=165.673 yref=52.8569 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.49
user 0.34
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/425018/ft1_filtered_4FGL_J1102.6+5251_daily_bin10.fits evtable="EVENTS" scfile=/scratch/kocevski/425018/ft2_4FGL_J1102.6+5251_daily_bin10.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/425018/Model_4FGL_J1102.6+5251_daily_bin10.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/425018/ft1_filtered_4FGL_J1102.6+5251_daily_bin10.fits.....................!
real 44.51
user 43.16
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/425018/ft1_filtered_4FGL_J1102.6+5251_daily_bin10.fits', '/scratch/kocevski/425018/ft2_4FGL_J1102.6+5251_daily_bin10.fits', expMap='/scratch/kocevski/425018/expmap_241920001_242179201_4FGL_J1102.6+5251_daily_bin10.fits', expCube='/scratch/kocevski/425018/ltcube_241920001_242179201_4FGL_J1102.6+5251_daily_bin10.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/425018/Model_4FGL_J1102.6+5251_daily_bin10.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1102.6+5251'

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  9.377e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
395        Index:  2.669e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
396        Scale:  5.635e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/425018/ft1_filtered_4FGL_J1102.6+5251_daily_bin10.fits
Spacecraft file(s): /scratch/kocevski/425018/ft2_4FGL_J1102.6+5251_daily_bin10.fits
Exposure map: /scratch/kocevski/425018/expmap_241920001_242179201_4FGL_J1102.6+5251_daily_bin10.fits
Exposure cube: /scratch/kocevski/425018/ltcube_241920001_242179201_4FGL_J1102.6+5251_daily_bin10.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/425018/Model_4FGL_J1102.6+5251_daily_bin10.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) = 5998.32138738

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.9545       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    12.872       1.0000         .10000E-03   10000.    
     7 'Prefactor '    27.858       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.244       1.0000         .10000E-03   10000.    
    10 'norm      '    4.6476       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    39.148       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11743E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .24508E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10301E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    21.528       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.4002       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.3424       1.0000         .10000E-03   10000.    
    24 'norm      '    .10640E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.9967       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.6488       1.0000         .10000E-03   10000.    
    27 'norm      '    7.1008       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .89705       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .78663       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5998.319     FROM MIGRAD    STATUS=CONVERGED    767 CALLS     3702 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9809        .21658E-06** at limit **
   2  Prefactor     .10000E-03    30.675       -.18729E-04** at limit **
   3  norm          1.9544        .56567        .15607E-07    .44131E-03
   4  norm          .10000E-03    3.7639        .90717E-07** at limit **
   5  Prefactor     .10000E-03    5.1707        .99735E-07** at limit **
   6  norm          12.872        3.8747       -.74155E-07    .14355E-04
   7  Prefactor     27.856        21.441       -.10987E-05    .17017E-04
   8  norm          .10000E-03    8.4269       -.13035E-06** at limit **
   9  Prefactor     18.248        21.391        .17573E-05   -.47217E-04
  10  norm          4.6467        3.2315       -.40896E-06   -.13296E-03
  11  norm          .10000E-03    .33382       -.12732E-06** at limit **
  12  Prefactor     39.127        61.737       -.13199E-04    .14956E-05
  13  Prefactor     .10000E-03    45.059       -.16236E-04** at limit **
  14  Prefactor     .10000E-03    364.95       -.50844E-04** at limit **
  15  norm          .10113E-03    .89247       -.18686E-06** at limit **
  16  Prefactor     .10000E-03    15.522       -.27796E-06** at limit **
  17  Prefactor     .10000E-03    34.697        .28453E-04** at limit **
  18  Prefactor     .10000E-03    26.393        .13161E-04** at limit **
  19  norm          21.528        23.071        .21983E-06    .98336E-04
  20  Prefactor     .10000E-03    2.3412       -.11067E-06** at limit **
  21  Prefactor     .10000E-03    27.232       -.13757E-04** at limit **
  22  norm          5.4000        6.8505       -.70132E-05    .77791E-05
  23  Prefactor     1.3401        3.0182       -.12679E-05   -.10409E-02
  24  norm          .10000E-03    3.4990       -.66164E-07** at limit **
  25  Prefactor     5.0038        22.925        .51231E-05   -.82499E-05
  26  Prefactor     7.6495        7.4884        .49960E-06    .33837E-04
  27  norm          7.1003        2.7526       -.81733E-07   -.69455E-04
  28  Normalizat    .89706        .14889        .32978E-06    .10685E-03
  29  Prefactor     .78679        .18877        .88296E-06    .26402E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.95442
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 12.8717
  Prefactor  = 27.8556
  norm       = 0.0001
  Prefactor  = 18.2479
  norm       = 4.64674
  norm       = 0.0001
  Prefactor  = 39.1274
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000101132
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 21.5278
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.39997
  Prefactor  = 1.34014
  norm       = 0.0001
  Prefactor  = 5.00377
  Prefactor  = 7.64947
  norm       = 7.10026
  Normalizat = 0.897056
  Prefactor  = 0.786794
 **********
 **   18 **HESSE 
 **********

 FCN=   5998.319     FROM HESSE     STATUS=OK           561 CALLS     4263 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9919        .13058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    30.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.9544        .56675        .30322E-04   -1.5428    
   4  norm          .10000E-03    3.7693        .14674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.3456        .34359E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          12.872        3.8754        .80659E-04   -1.4990    
   7  Prefactor     27.856        21.442        .75903E-04   -1.4652    
   8  norm          .10000E-03    8.4298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.248        21.788        .93770E-04   -1.4853    
  10  norm          4.6467        3.2870        .83798E-04   -1.5277    
  11  norm          .10000E-03    .33610        .43695E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     39.127        61.781        .64061E-04   -1.4456    
  13  Prefactor     .10000E-03    45.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    369.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10113E-03    2.5659        .25376E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    35.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    26.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          21.528        23.075        .43164E-03   -1.4780    
  20  Prefactor     .10000E-03    2.3538        .11570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    27.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.4000        6.8427        .17293E-03   -1.5243    
  23  Prefactor     1.3401        2.8754        .16336E-03   -1.5476    
  24  norm          .10000E-03    6.6631        .26776E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.0038        21.256        .17990E-03   -1.5261    
  26  Prefactor     7.6495        7.1760        .14500E-03   -1.5155    
  27  norm          7.1003        2.7579        .76073E-04   -1.5175    
  28  Normalizat    .89706        .17948        .21169E-03   -.96564    
  29  Prefactor     .78679        .22693        .29062E-03   -1.0022    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.37005e-10
Minuit parameter uncertainties:
  1  1.07011e-06
  2  2.96428e-05
  3  0.566753
  4  6.05743e-07
  5  5.95505e-06
  6  3.8755
  7  21.4481
  8  1.70451e-06
  9  21.7973
  10  3.28713
  11  2.95782e-07
  12  61.8824
  13  8.6807e-06
  14  0.00112856
  15  0.0034082
  16  7.96274e-06
  17  0.000378432
  18  3.71881e-06
  19  23.085
  20  2.51257e-06
  21  8.90606e-06
  22  6.8437
  23  2.87574
  24  3.94638e-05
  25  20.6383
  26  7.1768
  27  2.75791
  28  0.179599
  29  0.227199
Done.

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

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  1.000e-04  7.963e-06  1.000e-04  1.000e+04 ( 1.000e-13)
395        Index:  2.669e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
396        Scale:  5.635e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
724    Prefactor:  7.868e-01  2.272e-01  0.000e+00  1.000e+01 ( 1.000e+00)
725        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
726        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
723   Normalization:  8.971e-01  1.796e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 165.673 52.857
Photon Flux Upper Limit: 4.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/425018/likelihoodResults_241920001_242179201_4FGL_J1102.6+5251_daily_bin10.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) = 5998.31959315
delta logL = -0.000306730062221

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5998.31928942
delta logL = -3.00253304886e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2663       1.0000          .0000       10.000    
     3 'Normalizat'    .89705       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78680       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7270E+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=   5998.319     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      288 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10011E-03    66.413        .18142E-01** at limit **
   2  Index         2.1802        5.8812        .50000        .79508E-06
   3  Normalizat    .89705        .65784E-02    .21169E-03   -.44620E-02
   4  Prefactor     .78679        .85481E-02    .29062E-03   -.32119E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100114
  Index      = 2.18023
  Normalizat = 0.897049
  Prefactor  = 0.786789
 **********
 **   18 **HESSE 
 **********

 FCN=   5998.319     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      317 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10011E-03    350.64        .33427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1802        6.8216        .50000       -.59917    
   3  Normalizat    .89705        .15417E-01    .42338E-04   -.96564    
   4  Prefactor     .78679        .20033E-01    .58123E-04   -1.0022    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.76505e-08
Minuit parameter uncertainties:
  1  0.0127112
  2  1022.98
  3  0.0154171
  4  0.0200332
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/425018': 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) = 5998.31928577
delta logL = 6.50394213153e-07

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  1.001e-04  1.271e-02  1.000e-04  1.000e+04 ( 1.000e-13)
395        Index:  2.180e+00  1.023e+03  0.000e+00  1.000e+01 (-1.000e+00)
396        Scale:  5.635e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
724    Prefactor:  7.868e-01  2.003e-02  0.000e+00  1.000e+01 ( 1.000e+00)
725        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
726        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
723   Normalization:  8.970e-01  1.542e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 165.673 52.857

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/425018/cmap_HighResolution_241920001_242179201_4FGL_J1102.6+5251_daily_bin10.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.57e-03', job_status='DONE', photon_flux_upper_limit='4.54e-08', time_completed='2021-09-03 03:26:48.064340', job_id='425018', GAL2='0.79', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1630664808.06', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='6.50e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='10' AND source_name='4FGL J1102.6+5251' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 03:26:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 425018: <4FGL_J1102.6+5251_daily_bin10> in cluster <slac> Done

Job <4FGL_J1102.6+5251_daily_bin10> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 03:11:21 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 03:11:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 03:11:38 2021
Terminated at Fri Sep  3 03:26:48 2021
Results reported at Fri Sep  3 03:26:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1102.6+5251_daily_bin10 165.673 52.8569 241920001 242179201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1102.6+5251 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   782.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             301.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            927 sec.

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

