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


Performing analysis on: 4FGL_J1102.6+5251_daily_bin1279
RA = 165.673, Dec = 52.8569
tmin = 570844801, tmax = 571104001
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='433761', job_status='RUN', time_executed='2021-09-03 03:36:54.759991', time_epoch_executed='1630665414.76' WHERE source_name='4FGL J1102.6+5251' and cadence='daily' and bin_id='1279'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433761

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433761/ft1_4FGL_J1102.6+5251_daily_bin1279.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433761/ft2_4FGL_J1102.6+5251_daily_bin1279.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/433761/ft1_4FGL_J1102.6+5251_daily_bin1279.fits outfile=/scratch/kocevski/433761/ft1_filteredMKT_4FGL_J1102.6+5251_daily_bin1279.fits ra=165.673 dec=52.8569 rad=12.0 tmin=570844801.0 tmax=571104001.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.30
user 2.81
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/433761/ft2_4FGL_J1102.6+5251_daily_bin1279.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/433761/ft1_filteredMKT_4FGL_J1102.6+5251_daily_bin1279.fits evtable="EVENTS" outfile="/scratch/kocevski/433761/ft1_filtered_4FGL_J1102.6+5251_daily_bin1279.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.58
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/433761/ft1_filtered_4FGL_J1102.6+5251_daily_bin1279.fits" evtable="EVENTS" scfile=/scratch/kocevski/433761/ft2_4FGL_J1102.6+5251_daily_bin1279.fits sctable="SC_DATA" outfile=/scratch/kocevski/433761/ltcube_570844801_571104001_4FGL_J1102.6+5251_daily_bin1279.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/433761/ft2_4FGL_J1102.6+5251_daily_bin1279.fits
.....................!
real 12.94
user 12.53
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433761/ft1_filtered_4FGL_J1102.6+5251_daily_bin1279.fits evtable="EVENTS" scfile=/scratch/kocevski/433761/ft2_4FGL_J1102.6+5251_daily_bin1279.fits sctable="SC_DATA" expcube=/scratch/kocevski/433761/ltcube_570844801_571104001_4FGL_J1102.6+5251_daily_bin1279.fits outfile=/scratch/kocevski/433761/expmap_570844801_571104001_4FGL_J1102.6+5251_daily_bin1279.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/433761/ltcube_570844801_571104001_4FGL_J1102.6+5251_daily_bin1279.fits
.....................!
real 190.19
user 185.40
sys 3.98

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/433761/ft1_filtered_4FGL_J1102.6+5251_daily_bin1279.fits scfile=/scratch/kocevski/433761/ft2_4FGL_J1102.6+5251_daily_bin1279.fits outfile=/scratch/kocevski/433761/cmap_570844801_571104001_4FGL_J1102.6+5251_daily_bin1279.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/433761/ft1_filtered_4FGL_J1102.6+5251_daily_bin1279.fits scfile=/scratch/kocevski/433761/ft2_4FGL_J1102.6+5251_daily_bin1279.fits outfile=/scratch/kocevski/433761/cmap_HighResolution_570844801_571104001_4FGL_J1102.6+5251_daily_bin1279.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.54
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .37526E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     5 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     6 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     7 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     8 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .20609E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9306.0       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .16116       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .63523E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .46458E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .24100E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13218E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .28792E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .56107E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .14031E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.7652       1.0000         .10000E-03   10000.    
    27 'norm      '    1.9742       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    .80896       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=   973.6552     FROM MIGRAD    STATUS=CONVERGED    766 CALLS     4500 TOTAL
                     EDM=   .29E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    255.52       -.22799E-05** at limit **
   2  Prefactor     .10000E-03    252.74        .26720E-06** at limit **
   3  norm          .10000E-03    6.6659        .13987E-06** at limit **
   4  norm         10000.0        9551.7       -.24524E-04** at limit **
   5  Prefactor    10000.0        6375.1        .83725E-05** at limit **
   6  norm         10000.0        1715.1        .29853E-04** at limit **
   7  Prefactor    10000.0        7566.4       -.70270E-04** at limit **
   8  norm          .10000E-03    48.498        .50920E-06** at limit **
   9  Prefactor     .10000E-03    1825.9       -.28557E-04** at limit **
  10  norm          .10000E-03    77.348        .30393E-05** at limit **
  11  norm          9301.6        1690.9       -.84814E-04    .37118E-05
  12  Prefactor     .10001E-03    7061.8        .12567E-03** at limit **
  13  Prefactor     .10000E-03    1041.8       -.43026E-04** at limit **
  14  Prefactor     .10000E-03    1049.4       -.35709E-04** at limit **
  15  norm          .10000E-03    8.2273        .23350E-06** at limit **
  16  Prefactor     .10000E-03    257.28       -.37641E-06** at limit **
  17  Prefactor     .10000E-03    44.659        .45579E-06** at limit **
  18  Prefactor     .10000E-03    492.56        .20301E-04** at limit **
  19  norm          .10000E-03    130.73       -.28630E-05** at limit **
  20  Prefactor     .10000E-03    209.37       -.22696E-04** at limit **
  21  Prefactor     .10000E-03    18.021        .97815E-06** at limit **
  22  norm          .10000E-03    52.301        .76092E-06** at limit **
  23  Prefactor     .10000E-03    1.5675       -.10293E-06** at limit **
  24  norm          .10000E-03    1.7204        .41543E-06** at limit **
  25  Prefactor     .10000E-03    17.295       -.36692E-06** at limit **
  26  Prefactor     1.7664        6.2300        .11489E-05    .26998E-04
  27  norm          1.9773        3.2720        .76406E-06    .19621E-03
  28  Normalizat    .10000E-01    .12023       -.11307E-04** at limit **
  29  Prefactor     .80903        .22479        .44899E-05    .79206E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10000
  Prefactor  = 10000
  norm       = 10000
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 9301.58
  Prefactor  = 0.000100006
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.76639
  norm       = 1.97731
  Normalizat = 0.01
  Prefactor  = 0.809027
 **********
 **   18 **HESSE 
 **********

 FCN=   973.6552     FROM HESSE     STATUS=OK           533 CALLS     5033 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    255.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    252.93        .21293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.6663        .78703E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm         10000.0        9551.4        .21069E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        6375.0        .19992E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm         10000.0        1714.7        .19792E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor    10000.0        7565.0        .18149E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    48.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1831.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    77.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9301.6        1690.9        .78700E-04    1.0359    
  12  Prefactor     .10001E-03    7062.1        .19598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1041.8        .18853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1049.2        .19302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    8.2281        .87439E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    257.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    44.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    492.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    130.73        .21407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    207.07        .39546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.033        .12944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    54.526        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.5693        .38158E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.7228        .39960E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    17.325        .12678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     1.7664        6.1967        .13879E-03   -1.5442    
  27  norm          1.9773        3.2736        .64980E-04   -1.5427    
  28  Normalizat    .10000E-01    .16853        .66994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .80903        .23441        .22773E-03   -.99396    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.08376e-11
Minuit parameter uncertainties:
  1  4.14133e-05
  2  7.95592e-06
  3  2.73492e-07
  4  0.00336088
  5  0.000531611
  6  0.00141323
  7  0.0056569
  8  2.48043e-06
  9  0.00216699
  10  2.2526e-05
  11  1848.87
  12  0.0106229
  13  0.00161687
  14  0.00138172
  15  4.91151e-07
  16  1.53194e-05
  17  2.59496e-06
  18  0.000471135
  19  4.61702e-05
  20  0.00178569
  21  3.31379e-06
  22  1.60763e-05
  23  6.96618e-07
  24  2.69358e-06
  25  9.149e-06
  26  6.19899
  27  3.27391
  28  3.35144e-07
  29  0.234697
Done.

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

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  1.000e-04  1.532e-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:  8.090e-01  2.347e-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.000e-02  3.351e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 165.673 52.857
Photon Flux Upper Limit: 7.92e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.22e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/433761/likelihoodResults_570844801_571104001_4FGL_J1102.6+5251_daily_bin1279.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) = 973.655201086
delta logL = -1.90828214954e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 973.655182273
delta logL = -2.70403688774e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13962E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.4460       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80903       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=   973.6552     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      284 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10877E-03    340.84        .18142E-01** at limit **
   2  Index         3.2117        8.1113        .50000        .11022E-05
   3  Normalizat    .10000E-01    .63420E-03    .67001E-02** at limit **
   4  Prefactor     .80903        .12460E-01    .22772E-03   -.53792E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010877
  Index      = 3.21173
  Normalizat = 0.01
  Prefactor  = 0.809026
 **********
 **   18 **HESSE 
 **********

 FCN=   973.6552     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      313 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10877E-03    1573.4        .36285E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2117        6.6057        .50000       -.36575    
   3  Normalizat    .10000E-01    .31055E-02    .13400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .80903        .27564E-01    .91089E-05   -.99396    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.4977e-09
Minuit parameter uncertainties:
  1  0.241579
  2  2939.37
  3  2.99246e-08
  4  0.0275644
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433761': 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) = 973.655182105
delta logL = -1.01914679362e-07

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  1.088e-04  2.416e-01  1.000e-04  1.000e+04 ( 1.000e-13)
395        Index:  3.212e+00  2.939e+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:  8.090e-01  2.756e-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:  1.000e-02  2.992e-08  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/433761/cmap_HighResolution_570844801_571104001_4FGL_J1102.6+5251_daily_bin1279.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.22e-02', job_status='DONE', photon_flux_upper_limit='7.92e-07', time_completed='2021-09-03 03:44:32.228874', job_id='433761', GAL2='0.81', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630665872.23', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='-1.02e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='1279' AND source_name='4FGL J1102.6+5251' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 03:44:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0006>
Subject: Job 433761: <4FGL_J1102.6+5251_daily_bin1279> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1102.6+5251_daily_bin1279 165.673 52.8569 570844801 571104001 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 :                                   446.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             272.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   489 sec.
    Turnaround time :                            498 sec.

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

