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


Performing analysis on: 4FGL_J1102.6+5251_daily_bin1288
RA = 165.673, Dec = 52.8569
tmin = 573177601, tmax = 573436801
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='433776', job_status='RUN', time_executed='2021-09-03 03:37:22.407064', time_epoch_executed='1630665442.41' WHERE source_name='4FGL J1102.6+5251' and cadence='daily' and bin_id='1288'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433776

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433776/ft1_4FGL_J1102.6+5251_daily_bin1288.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433776/ft2_4FGL_J1102.6+5251_daily_bin1288.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/433776/ft1_4FGL_J1102.6+5251_daily_bin1288.fits outfile=/scratch/kocevski/433776/ft1_filteredMKT_4FGL_J1102.6+5251_daily_bin1288.fits ra=165.673 dec=52.8569 rad=12.0 tmin=573177601.0 tmax=573436801.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 4.29
user 4.02
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/433776/ft2_4FGL_J1102.6+5251_daily_bin1288.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/433776/ft1_filteredMKT_4FGL_J1102.6+5251_daily_bin1288.fits evtable="EVENTS" outfile="/scratch/kocevski/433776/ft1_filtered_4FGL_J1102.6+5251_daily_bin1288.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.43
user 0.25
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/433776/ft1_filtered_4FGL_J1102.6+5251_daily_bin1288.fits" evtable="EVENTS" scfile=/scratch/kocevski/433776/ft2_4FGL_J1102.6+5251_daily_bin1288.fits sctable="SC_DATA" outfile=/scratch/kocevski/433776/ltcube_573177601_573436801_4FGL_J1102.6+5251_daily_bin1288.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/433776/ft2_4FGL_J1102.6+5251_daily_bin1288.fits
.....................!
real 9.73
user 9.40
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433776/ft1_filtered_4FGL_J1102.6+5251_daily_bin1288.fits evtable="EVENTS" scfile=/scratch/kocevski/433776/ft2_4FGL_J1102.6+5251_daily_bin1288.fits sctable="SC_DATA" expcube=/scratch/kocevski/433776/ltcube_573177601_573436801_4FGL_J1102.6+5251_daily_bin1288.fits outfile=/scratch/kocevski/433776/expmap_573177601_573436801_4FGL_J1102.6+5251_daily_bin1288.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/433776/ltcube_573177601_573436801_4FGL_J1102.6+5251_daily_bin1288.fits
.....................!
real 146.81
user 142.58
sys 3.92

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/433776/ft1_filtered_4FGL_J1102.6+5251_daily_bin1288.fits scfile=/scratch/kocevski/433776/ft2_4FGL_J1102.6+5251_daily_bin1288.fits outfile=/scratch/kocevski/433776/cmap_573177601_573436801_4FGL_J1102.6+5251_daily_bin1288.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.46
user 0.29
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.445       1.0000         .10000E-03   10000.    
     3 'norm      '    .55426       1.0000         .10000E-03   10000.    
     4 'norm      '    3.8355       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.8770       1.0000         .10000E-03   10000.    
     6 'norm      '    6.6287       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    35.430       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    34.118       1.0000         .10000E-03   10000.    
    11 'norm      '    3.4821       1.0000         .10000E-03   10000.    
    12 'Prefactor '    32.548       1.0000         .10000E-03   10000.    
    13 'Prefactor '    44.937       1.0000         .10000E-03   10000.    
    14 'Prefactor '    276.12       1.0000         .10000E-03   10000.    
    15 'norm      '    1.4605       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11436E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.8711       1.0000         .10000E-03   10000.    
    21 'Prefactor '    29.448       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.2253       1.0000         .10000E-03   10000.    
    24 'norm      '    1.0550       1.0000         .10000E-03   10000.    
    25 'Prefactor '    66.515       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.3926       1.0000         .10000E-03   10000.    
    27 'norm      '    .10078E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2475       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .72079       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=   6782.426     FROM MIGRAD    STATUS=CONVERGED    700 CALLS     3730 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7197        .45308E-06** at limit **
   2  Prefactor     25.408        43.166       -.75518E-06   -.34539E-04
   3  norm          .55421        .35806       -.41385E-07   -.27806E-03
   4  norm          3.8201        22.654        .76504E-06    .26847E-04
   5  Prefactor     3.8723        7.4259       -.14484E-06    .77981E-04
   6  norm          6.6283        3.0531       -.36395E-07   -.60947E-05
   7  Prefactor     .10000E-03    31.003       -.24241E-07** at limit **
   8  norm          35.431        24.017        .29273E-07    .42043E-05
   9  Prefactor     .10000E-03    29.332       -.77952E-06** at limit **
  10  norm          34.112        4.7902       -.44340E-07    .15954E-04
  11  norm          3.4817        1.7628       -.57996E-08   -.19985E-05
  12  Prefactor     32.538        46.809       -.18692E-06   -.89154E-05
  13  Prefactor     44.934        58.521       -.91445E-08   -.18158E-05
  14  Prefactor     276.00        162.38       -.86190E-06   -.37230E-04
  15  norm          1.4601        1.5141        .11710E-07   -.17443E-04
  16  Prefactor     .10000E-03    34.988        .39898E-06** at limit **
  17  Prefactor     .10000E-03    35.594        .30473E-06** at limit **
  18  Prefactor     .10000E-03    34.606        .11530E-06** at limit **
  19  norm          .10000E-03    15.589        .29850E-07** at limit **
  20  Prefactor     4.8679        4.8862       -.11936E-06   -.13183E-04
  21  Prefactor     29.428        23.938       -.60108E-06   -.64521E-04
  22  norm          .10000E-03    3.8110       -.40630E-08** at limit **
  23  Prefactor     3.2269        4.1579        .32924E-06    .75557E-04
  24  norm          1.0532        3.7605        .20782E-05    .26336E-03
  25  Prefactor     66.500        31.717       -.31331E-06   -.37712E-04
  26  Prefactor     4.3935        7.6757       -.76160E-06   -.90401E-04
  27  norm          .10000E-03    1.1520        .31629E-06** at limit **
  28  Normalizat    1.2484        .21161        .35967E-05   -.22925E-03
  29  Prefactor     .71974        .25069       -.61290E-05   -.18189E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 25.4075
  norm       = 0.554206
  norm       = 3.82008
  Prefactor  = 3.87226
  norm       = 6.62831
  Prefactor  = 0.0001
  norm       = 35.431
  Prefactor  = 0.0001
  norm       = 34.1119
  norm       = 3.48172
  Prefactor  = 32.538
  Prefactor  = 44.9338
  Prefactor  = 275.998
  norm       = 1.46008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.86794
  Prefactor  = 29.4283
  norm       = 0.0001
  Prefactor  = 3.22691
  norm       = 1.05321
  Prefactor  = 66.4995
  Prefactor  = 4.39348
  norm       = 0.0001
  Normalizat = 1.24841
  Prefactor  = 0.719737
 **********
 **   18 **HESSE 
 **********

 FCN=   6782.426     FROM HESSE     STATUS=OK           553 CALLS     4283 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7362        .17461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.408        43.221        .79414E-04   -1.4699    
   3  norm          .55421        .36195        .38263E-04   -1.5559    
   4  norm          3.8201        22.496        .20607E-03   -1.5317    
   5  Prefactor     3.8723        7.3773        .20493E-03   -1.5314    
   6  norm          6.6283        3.0514        .94269E-04   -1.5193    
   7  Prefactor     .10000E-03    31.098        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          35.431        24.017        .67327E-04   -1.4517    
   9  Prefactor     .10000E-03    29.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          34.112        4.7789        .64404E-04   -1.4539    
  11  norm          3.4817        1.7632        .75398E-04   -1.5335    
  12  Prefactor     32.538        46.815        .70236E-04   -1.4567    
  13  Prefactor     44.934        58.510        .29904E-03   -1.4366    
  14  Prefactor     276.00        162.68        .12206E-03   -1.2370    
  15  norm          1.4601        1.5089        .10004E-03   -1.5466    
  16  Prefactor     .10000E-03    35.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    36.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    34.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    15.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.8679        4.8830        .17437E-03   -1.5267    
  21  Prefactor     29.428        23.943        .73830E-04   -1.4622    
  22  norm          .10000E-03    3.8134        .15701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.2269        4.1340        .16644E-03   -1.5349    
  24  norm          1.0532        3.8084        .27220E-03   -1.5503    
  25  Prefactor     66.500        31.577        .49211E-04   -1.4075    
  26  Prefactor     4.3935        7.5605        .19216E-03   -1.5289    
  27  norm          .10000E-03    1.1803        .17246E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2484        .21817        .23781E-03   -.85120    
  29  Prefactor     .71974        .25670        .37975E-03   -1.0276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84074e-10
Minuit parameter uncertainties:
  1  1.23612e-05
  2  43.274
  3  0.361951
  4  18.5508
  5  7.379
  6  3.05147
  7  4.3261e-06
  8  24.024
  9  7.66571e-05
  10  4.77891
  11  1.7632
  12  46.8674
  13  58.5849
  14  162.952
  15  1.50894
  16  3.86466e-05
  17  8.29983e-06
  18  2.43667e-05
  19  8.86141e-07
  20  4.88338
  21  23.9512
  22  1.47199e-06
  23  4.13441
  24  3.80924
  25  31.585
  26  7.56215
  27  2.4793e-06
  28  0.218331
  29  0.257121
Done.

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

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  1.000e-04  3.865e-05  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.197e-01  2.571e-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:  1.248e+00  2.183e-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.80e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/433776/likelihoodResults_573177601_573436801_4FGL_J1102.6+5251_daily_bin1288.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) = 6782.42575081
delta logL = -0.000135719976242

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6782.42561558
delta logL = -4.86625140184e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8225       1.0000          .0000       10.000    
     3 'Normalizat'    1.2484       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71974       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=   6782.146     FROM MIGRAD    STATUS=CONVERGED    198 CALLS      393 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.558        23.425        .18142E-01    .12737E-03
   2  Index         1.3490        .52347        .20000       -.10030E-03
   3  Normalizat    1.2530        .20135        .23780E-03    .19362E-04
   4  Prefactor     .70728        .25175        .37976E-03    .18022E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.5576
  Index      = 1.34899
  Normalizat = 1.25296
  Prefactor  = 0.70728
 **********
 **   18 **HESSE 
 **********

 FCN=   6782.146     FROM HESSE     STATUS=OK            29 CALLS      422 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.558        28.299        .51114E-03   -1.4971    
   2  Index         1.3490        .74715        .12365E-01   -.81862    
   3  Normalizat    1.2530        .20149        .95122E-05   -.84982    
   4  Prefactor     .70728        .25192        .15190E-04   -1.0324    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33851e-11
Minuit parameter uncertainties:
  1  28.3265
  2  0.75324
  3  0.201619
  4  0.252323
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433776': 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) = 6782.14586701
delta logL = 0.279748081321

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  1.356e+01  2.833e+01  1.000e-04  1.000e+04 ( 1.000e-13)
395        Index:  1.349e+00  7.532e-01  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.073e-01  2.523e-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:  1.253e+00  2.016e-01  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/433776/cmap_HighResolution_573177601_573436801_4FGL_J1102.6+5251_daily_bin1288.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.56e-03', job_status='DONE', photon_flux_upper_limit='5.80e-08', time_completed='2021-09-03 03:50:33.145120', job_id='433776', GAL2='0.71', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1630666233.15', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='2.80e-01', ts2='0.56', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='1288' AND source_name='4FGL J1102.6+5251' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 03:50:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 433776: <4FGL_J1102.6+5251_daily_bin1288> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1102.6+5251_daily_bin1288 165.673 52.8569 573177601 573436801 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 :                                   780.53 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             350.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   847 sec.
    Turnaround time :                            858 sec.

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

