/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 25 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 = 7427
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1102.6+5251_daily_bin1381
RA = 165.673, Dec = 52.8569
tmin = 597283201, tmax = 597542401
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='433939', job_status='RUN', time_executed='2021-09-03 03:37:47.273043', time_epoch_executed='1630665467.27' WHERE source_name='4FGL J1102.6+5251' and cadence='daily' and bin_id='1381'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433939

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433939/ft1_4FGL_J1102.6+5251_daily_bin1381.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433939/ft2_4FGL_J1102.6+5251_daily_bin1381.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/433939/ft1_4FGL_J1102.6+5251_daily_bin1381.fits outfile=/scratch/kocevski/433939/ft1_filteredMKT_4FGL_J1102.6+5251_daily_bin1381.fits ra=165.673 dec=52.8569 rad=12.0 tmin=597283201.0 tmax=597542401.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.63
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/433939/ft1_filtered_4FGL_J1102.6+5251_daily_bin1381.fits" evtable="EVENTS" scfile=/scratch/kocevski/433939/ft2_4FGL_J1102.6+5251_daily_bin1381.fits sctable="SC_DATA" outfile=/scratch/kocevski/433939/ltcube_597283201_597542401_4FGL_J1102.6+5251_daily_bin1381.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/433939/ft2_4FGL_J1102.6+5251_daily_bin1381.fits
.....................!
real 9.79
user 9.48
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433939/ft1_filtered_4FGL_J1102.6+5251_daily_bin1381.fits evtable="EVENTS" scfile=/scratch/kocevski/433939/ft2_4FGL_J1102.6+5251_daily_bin1381.fits sctable="SC_DATA" expcube=/scratch/kocevski/433939/ltcube_597283201_597542401_4FGL_J1102.6+5251_daily_bin1381.fits outfile=/scratch/kocevski/433939/expmap_597283201_597542401_4FGL_J1102.6+5251_daily_bin1381.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/433939/ltcube_597283201_597542401_4FGL_J1102.6+5251_daily_bin1381.fits
.....................!
real 145.51
user 141.86
sys 3.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 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/433939/ft1_filtered_4FGL_J1102.6+5251_daily_bin1381.fits scfile=/scratch/kocevski/433939/ft2_4FGL_J1102.6+5251_daily_bin1381.fits outfile=/scratch/kocevski/433939/cmap_597283201_597542401_4FGL_J1102.6+5251_daily_bin1381.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.44
user 0.29
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/433939/ft1_filtered_4FGL_J1102.6+5251_daily_bin1381.fits scfile=/scratch/kocevski/433939/ft2_4FGL_J1102.6+5251_daily_bin1381.fits outfile=/scratch/kocevski/433939/cmap_HighResolution_597283201_597542401_4FGL_J1102.6+5251_daily_bin1381.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.44
user 0.31
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/433939/ft1_filtered_4FGL_J1102.6+5251_daily_bin1381.fits', '/scratch/kocevski/433939/ft2_4FGL_J1102.6+5251_daily_bin1381.fits', expMap='/scratch/kocevski/433939/expmap_597283201_597542401_4FGL_J1102.6+5251_daily_bin1381.fits', expCube='/scratch/kocevski/433939/ltcube_597283201_597542401_4FGL_J1102.6+5251_daily_bin1381.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/433939/Model_4FGL_J1102.6+5251_daily_bin1381.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/433939/ft1_filtered_4FGL_J1102.6+5251_daily_bin1381.fits
Spacecraft file(s): /scratch/kocevski/433939/ft2_4FGL_J1102.6+5251_daily_bin1381.fits
Exposure map: /scratch/kocevski/433939/expmap_597283201_597542401_4FGL_J1102.6+5251_daily_bin1381.fits
Exposure cube: /scratch/kocevski/433939/ltcube_597283201_597542401_4FGL_J1102.6+5251_daily_bin1381.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/433939/Model_4FGL_J1102.6+5251_daily_bin1381.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) = 6829.52028621

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10595E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.978       1.0000         .10000E-03   10000.    
     3 'norm      '    2.6985       1.0000         .10000E-03   10000.    
     4 'norm      '    13.175       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .27974E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.8975       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12439E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .22490E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    39.822       1.0000         .10000E-03   10000.    
    10 'norm      '    10.568       1.0000         .10000E-03   10000.    
    11 'norm      '    4.1584       1.0000         .10000E-03   10000.    
    12 'Prefactor '    72.024       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12560E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    98.676       1.0000         .10000E-03   10000.    
    15 'norm      '    2.4853       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .88104E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .17572E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12683E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    23.861       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .50474E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    32.220       1.0000         .10000E-03   10000.    
    22 'norm      '    9.6094       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.2022       1.0000         .10000E-03   10000.    
    24 'norm      '    .10827E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    35.444       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.2862       1.0000         .10000E-03   10000.    
    27 'norm      '    3.0903       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .94675       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .72924       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6829.414     FROM MIGRAD    STATUS=CONVERGED    206 CALLS     2662 TOTAL
                     EDM=   .57E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.8397       -.85813E-06** at limit **
   2  Prefactor     19.201        5.7226        .97581E-07   -.52990E-03
   3  norm          2.7023        .64627       -.12506E-07    .26482E-05
   4  norm          13.723        15.922        .65323E-07    .10758E-03
   5  Prefactor     .10000E-03    6.3283       -.64148E-06** at limit **
   6  norm          3.9015        2.4802       -.82958E-07    .13712E-05
   7  Prefactor     .10000E-03    8.7400        .48611E-06** at limit **
   8  norm          .10000E-03    6.0009       -.10294E-06** at limit **
   9  Prefactor     39.818        11.325        .10594E-06    .55228E-02
  10  norm          10.584        3.2033        .98946E-07   -.28099E-03
  11  norm          4.1651        1.6119        .41513E-07   -.67061E-05
  12  Prefactor     74.263        66.864       -.53687E-07    .55665E-04
  13  Prefactor     .10000E-03    23.299       -.68595E-06** at limit **
  14  Prefactor     114.07        90.838        .21076E-07   -.85252E-04
  15  norm          2.4923        1.5370        .91377E-08   -.13027E-04
  16  Prefactor     .10000E-03    30.444        .31996E-06** at limit **
  17  Prefactor     .10000E-03    14.719       -.20687E-05** at limit **
  18  Prefactor     .10000E-03    24.471        .37305E-06** at limit **
  19  norm          23.885        25.581       -.42828E-06    .17127E-02
  20  Prefactor     .10000E-03    40.201        .36935E-06** at limit **
  21  Prefactor     32.653        21.764        .13150E-06    .33083E-03
  22  norm          9.6983        11.187        .63232E-07   -.84057E-04
  23  Prefactor     2.2916        3.7001        .14499E-06    .16418E-04
  24  norm          .10000E-03    1.8124       -.49237E-06** at limit **
  25  Prefactor     34.735        24.166       -.15575E-06   -.79544E-03
  26  Prefactor     4.3237        4.3122        .24773E-08   -.69812E-06
  27  norm          3.1108        2.1083       -.33440E-06    .35419E-05
  28  Normalizat    .94181        .17624       -.13572E-05   -.11104E-05
  29  Prefactor     .72995        .21879        .27433E-05    .11588E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 19.2006
  norm       = 2.70232
  norm       = 13.7228
  Prefactor  = 0.0001
  norm       = 3.90148
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 39.8175
  norm       = 10.5835
  norm       = 4.16514
  Prefactor  = 74.2631
  Prefactor  = 0.0001
  Prefactor  = 114.07
  norm       = 2.49228
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 23.8855
  Prefactor  = 0.0001
  Prefactor  = 32.6533
  norm       = 9.69833
  Prefactor  = 2.29155
  norm       = 0.0001
  Prefactor  = 34.7351
  Prefactor  = 4.32375
  norm       = 3.11076
  Normalizat = 0.941808
  Prefactor  = 0.72995
 **********
 **   18 **HESSE 
 **********

 FCN=   6829.414     FROM HESSE     STATUS=OK           629 CALLS     3291 TOTAL
                     EDM=   .56E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.8069        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.201        32.424        .22985E-02   -1.4831    
   3  norm          2.7023        .65070        .61997E-02   -1.5379    
   4  norm          13.723        16.006        .27589E-02   -1.4967    
   5  Prefactor     .10000E-03    3.3116        .49399E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.9015        2.4873        .51093E-02   -1.5313    
   7  Prefactor     .10000E-03    8.7457        .10306E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.0032        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     39.818        22.902        .15880E-02   -1.4445    
  10  norm          10.584        3.7238        .30812E-02   -1.5057    
  11  norm          4.1651        1.6122        .49413E-02   -1.5300    
  12  Prefactor     74.263        66.870        .11826E-02   -1.3982    
  13  Prefactor     .10000E-03    23.238        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     114.07        90.643        .10117E-02   -1.3568    
  15  norm          2.4923        1.5360        .64826E-02   -1.5392    
  16  Prefactor     .10000E-03    30.351        .10422E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.650        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    24.483        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          23.885        29.493        .20501E-02   -1.4730    
  20  Prefactor     .10000E-03    3.1172        .79491E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     32.653        22.161        .17648E-02   -1.4564    
  22  norm          9.6983        11.178        .32319E-02   -1.5085    
  23  Prefactor     2.2916        3.7894        .69312E-02   -1.5405    
  24  norm          .10000E-03    1.8039        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     34.735        24.745        .16828E-02   -1.4529    
  26  Prefactor     4.3237        4.3082        .48649E-02   -1.5292    
  27  norm          3.1108        2.1080        .57676E-02   -1.5355    
  28  Normalizat    .94181        .15249        .45496E-01   -.95006    
  29  Prefactor     .72995        .18712        .72518E-01   -1.0236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.63642e-08
Minuit parameter uncertainties:
  1  1.20471e-06
  2  32.4536
  3  0.6507
  4  16.0111
  5  6.84934e-08
  6  2.48737
  7  1.73645e-06
  8  2.6242e-07
  9  22.9069
  10  3.72384
  11  1.61222
  12  66.9375
  13  9.47847e-05
  14  90.7532
  15  1.53607
  16  0.000290226
  17  2.81069e-06
  18  7.3812e-05
  19  29.5108
  20  1.45919e-06
  21  22.1663
  22  11.18
  23  3.78984
  24  1.20542e-07
  25  24.7525
  26  4.30846
  27  2.10805
  28  0.152561
  29  0.187283
Done.

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

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  1.000e-04  2.902e-04  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.299e-01  1.873e-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:  9.418e-01  1.526e-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: 5.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.06e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/433939/likelihoodResults_597283201_597542401_4FGL_J1102.6+5251_daily_bin1381.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) = 6829.41429145
delta logL = -0.000156454329954

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6829.41413614
delta logL = -1.14397971629e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1719       1.0000          .0000       10.000    
     3 'Normalizat'    .94181       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72995       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=   6829.414     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      291 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    95.798        .18142E-01** at limit **
   2  Index         2.3089        5.6026        .50000        .25057E-07
   3  Normalizat    .94181        .59340E-02    .22137E-03    .10099E-02
   4  Prefactor     .72995        .76921E-02    .32095E-03    .70436E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Index      = 2.3089
  Normalizat = 0.94181
  Prefactor  = 0.729952
 **********
 **   18 **HESSE 
 **********

 FCN=   6829.414     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      320 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    496.17        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3089        6.4883        .50000       -.56832    
   3  Normalizat    .94181        .13712E-01    .44273E-04   -.95006    
   4  Prefactor     .72995        .17774E-01    .64190E-04   -1.0236    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.80327e-09
Minuit parameter uncertainties:
  1  0.00411443
  2  1043.71
  3  0.0137119
  4  0.0177745
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433939': 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) = 6829.41413478
delta logL = 2.1233336156e-07

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  1.000e-04  4.114e-03  1.000e-04  1.000e+04 ( 1.000e-13)
395        Index:  2.309e+00  1.044e+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.300e-01  1.777e-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:  9.418e-01  1.371e-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 -9.398e-02 [aplpy.core]
INFO: Auto-setting vmax to  1.043e+00 [aplpy.core]
Saving /scratch/kocevski/433939/cmap_HighResolution_597283201_597542401_4FGL_J1102.6+5251_daily_bin1381.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.06e-03', job_status='DONE', photon_flux_upper_limit='5.16e-08', time_completed='2021-09-03 03:49:27.685798', job_id='433939', GAL2='0.73', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1630666167.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='2.12e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='1381' AND source_name='4FGL J1102.6+5251' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 03:49:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 433939: <4FGL_J1102.6+5251_daily_bin1381> in cluster <slac> Done

Job <4FGL_J1102.6+5251_daily_bin1381> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 03:36:28 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 03:36:57 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:36:57 2021
Terminated at Fri Sep  3 03:49:28 2021
Results reported at Fri Sep  3 03:49:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1102.6+5251_daily_bin1381 165.673 52.8569 597283201 597542401 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 :                                   689.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             332.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            780 sec.

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

