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


Performing analysis on: 4FGL_J1102.6+5251_daily_bin1350
RA = 165.673, Dec = 52.8569
tmin = 589248001, tmax = 589507201
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='433885', job_status='RUN', time_executed='2021-09-03 03:37:12.615517', time_epoch_executed='1630665432.62' WHERE source_name='4FGL J1102.6+5251' and cadence='daily' and bin_id='1350'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433885

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433885/ft1_4FGL_J1102.6+5251_daily_bin1350.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433885/ft2_4FGL_J1102.6+5251_daily_bin1350.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/433885/ft1_4FGL_J1102.6+5251_daily_bin1350.fits outfile=/scratch/kocevski/433885/ft1_filteredMKT_4FGL_J1102.6+5251_daily_bin1350.fits ra=165.673 dec=52.8569 rad=12.0 tmin=589248001.0 tmax=589507201.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.17
user 2.95
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/433885/ft1_filtered_4FGL_J1102.6+5251_daily_bin1350.fits" evtable="EVENTS" scfile=/scratch/kocevski/433885/ft2_4FGL_J1102.6+5251_daily_bin1350.fits sctable="SC_DATA" outfile=/scratch/kocevski/433885/ltcube_589248001_589507201_4FGL_J1102.6+5251_daily_bin1350.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/433885/ft2_4FGL_J1102.6+5251_daily_bin1350.fits
.....................!
real 14.05
user 13.63
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433885/ft1_filtered_4FGL_J1102.6+5251_daily_bin1350.fits evtable="EVENTS" scfile=/scratch/kocevski/433885/ft2_4FGL_J1102.6+5251_daily_bin1350.fits sctable="SC_DATA" expcube=/scratch/kocevski/433885/ltcube_589248001_589507201_4FGL_J1102.6+5251_daily_bin1350.fits outfile=/scratch/kocevski/433885/expmap_589248001_589507201_4FGL_J1102.6+5251_daily_bin1350.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/433885/ltcube_589248001_589507201_4FGL_J1102.6+5251_daily_bin1350.fits
.....................!
real 191.19
user 185.47
sys 5.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/433885/ft1_filtered_4FGL_J1102.6+5251_daily_bin1350.fits scfile=/scratch/kocevski/433885/ft2_4FGL_J1102.6+5251_daily_bin1350.fits outfile=/scratch/kocevski/433885/cmap_589248001_589507201_4FGL_J1102.6+5251_daily_bin1350.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/433885/ft1_filtered_4FGL_J1102.6+5251_daily_bin1350.fits scfile=/scratch/kocevski/433885/ft2_4FGL_J1102.6+5251_daily_bin1350.fits outfile=/scratch/kocevski/433885/cmap_HighResolution_589248001_589507201_4FGL_J1102.6+5251_daily_bin1350.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .88240       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    210.98       1.0000         .10000E-03   10000.    
    10 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3370.3       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11432E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2469.9       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.639       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.8270       1.0000         .10000E-03   10000.    
    21 'Prefactor '    90.445       1.0000         .10000E-03   10000.    
    22 'norm      '    2.9821       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .87174       1.0000         .10000E-03   10000.    
    24 'norm      '    10.011       1.0000         .10000E-03   10000.    
    25 'Prefactor '    80.319       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    6.3095       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .32935       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .82761       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=   1719.620     FROM MIGRAD    STATUS=CONVERGED    745 CALLS     4621 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.3742        .26149E-07** at limit **
   2  Prefactor     .10000E-03    20.082        .13868E-05** at limit **
   3  norm          .88241        .68966        .31829E-07   -.37034E-04
   4  norm          .10000E-03    13.297        .38185E-07** at limit **
   5  Prefactor     .10000E-03    4.2866        .18522E-07** at limit **
   6  norm          .10000E-03    8.2110        .20920E-07** at limit **
   7  Prefactor     .10001E-03    49.384        .61726E-05** at limit **
   8  norm          .10000E-03    19.685       -.12337E-05** at limit **
   9  Prefactor     210.98        87.069        .13601E-05    .17349E-04
  10  norm          .10000E-03    6.1251        .11343E-06** at limit **
  11  norm          .10000E-03    11.127       -.25452E-07** at limit **
  12  Prefactor     3370.1        2869.3       -.11062E-04   -.22878E-05
  13  Prefactor     .10025E-03    772.70       -.31228E-04** at limit **
  14  Prefactor     2470.4        2060.7        .16555E-04    .14206E-04
  15  norm          .10000E-03    3.4845       -.84702E-07** at limit **
  16  Prefactor     .10002E-03    93.992       -.78737E-05** at limit **
  17  Prefactor     11.648        42.954       -.55930E-05   -.26631E-04
  18  Prefactor     .10003E-03    139.10        .98712E-05** at limit **
  19  norm          .10001E-03    45.325       -.44631E-05** at limit **
  20  Prefactor     3.8270        13.411        .12821E-04   -.32031E-03
  21  Prefactor     90.449        46.071       -.17375E-05   -.51714E-04
  22  norm          2.9791        20.816        .19415E-05    .63562E-05
  23  Prefactor     .87025        6.7005        .83004E-06    .24100E-04
  24  norm          10.010        6.0651        .12973E-06    .16921E-04
  25  Prefactor     80.347        49.280        .18760E-06   -.88371E-04
  26  Prefactor     .10000E-03    7.8217        .21014E-06** at limit **
  27  norm          6.3100        3.3051        .10558E-06   -.11271E-03
  28  Normalizat    .32903        .36948       -.81070E-05   -.65150E-04
  29  Prefactor     .82798        .37482        .13117E-05   -.59128E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.882406
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010001
  norm       = 0.0001
  Prefactor  = 210.982
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3370.07
  Prefactor  = 0.000100249
  Prefactor  = 2470.39
  norm       = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 11.6477
  Prefactor  = 0.000100026
  norm       = 0.000100005
  Prefactor  = 3.82698
  Prefactor  = 90.4486
  norm       = 2.97907
  Prefactor  = 0.870254
  norm       = 10.0104
  Prefactor  = 80.3468
  Prefactor  = 0.0001
  norm       = 6.31
  Normalizat = 0.32903
  Prefactor  = 0.827982
 **********
 **   18 **HESSE 
 **********

 FCN=   1719.620     FROM HESSE     STATUS=OK           539 CALLS     5160 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.3784        .84713E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .88241        .69488        .29664E-04   -1.5520    
   4  norm          .10000E-03    13.297        .14773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.2889        .83861E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    8.2113        .11607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    50.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    19.727        .17994E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     210.98        86.628        .13917E-03   -1.2793    
  10  norm          .10000E-03    6.1306        .10009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    11.129        .13510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3370.1        2868.6        .42311E-04   -.33205    
  13  Prefactor     .10025E-03    795.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2470.4        2063.5        .46376E-04   -.53045    
  15  norm          .10000E-03    3.4919        .75516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    95.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     11.648        42.854        .11742E-03   -1.5025    
  18  Prefactor     .10003E-03    141.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10001E-03    45.832        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.8270        13.683        .10316E-02   -1.5317    
  21  Prefactor     90.449        45.915        .42252E-04   -1.3803    
  22  norm          2.9791        20.911        .23510E-03   -1.5363    
  23  Prefactor     .87025        5.8911        .17232E-03   -1.5521    
  24  norm          10.010        6.0197        .70603E-04   -1.5075    
  25  Prefactor     80.347        46.869        .44814E-04   -1.3913    
  26  Prefactor     .10000E-03    7.8739        .11301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          6.3100        3.2940        .48183E-04   -1.5206    
  28  Normalizat    .32903        .38716        .32516E-03   -1.2115    
  29  Prefactor     .82798        .40458        .25383E-03   -.98705    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48765e-09
Minuit parameter uncertainties:
  1  3.56483e-06
  2  0.000204789
  3  0.694885
  4  5.01648e-06
  5  2.61106e-06
  6  2.718e-06
  7  0.00142998
  8  0.000178937
  9  86.681
  10  9.53162e-08
  11  5.92402e-07
  12  3082.43
  13  0.0285088
  14  2151.7
  15  3.11259e-06
  16  0.00244267
  17  42.9679
  18  0.00383099
  19  0.000981309
  20  13.6946
  21  45.9328
  22  15.7929
  23  4.52886
  24  6.02001
  25  46.891
  26  5.93436e-06
  27  3.29413
  28  0.390362
  29  0.406044
Done.

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

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  1.000e-04  2.443e-03  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.280e-01  4.060e-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:  3.290e-01  3.904e-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: 2.50e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.97e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/433885/likelihoodResults_589248001_589507201_4FGL_J1102.6+5251_daily_bin1350.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): 0
logL (Free Index) = 1719.6197138
delta logL = -4.72867100143e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1719.61966657
delta logL = -4.92527760798e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9409       1.0000          .0000       10.000    
     3 'Normalizat'    .32904       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82797       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=   1719.620     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      289 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7542.5        .18142E-01** at limit **
   2  Index         2.4646        8.7098        .50000       -.16087E-08
   3  Normalizat    .32903        .54893E-01    .32516E-03    .10909E-04
   4  Prefactor     .82798        .67352E-01    .25383E-03   -.16113E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.46465
  Normalizat = 0.329032
  Prefactor  = 0.82798
 **********
 **   18 **HESSE 
 **********

 FCN=   1719.620     FROM HESSE     STATUS=OK            29 CALLS      318 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    112.34        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4646        7.6631        .50000       -.53178    
   3  Normalizat    .32903        .29971        .13006E-04   -1.2115    
   4  Prefactor     .82798        .36843        .10153E-04   -.98705    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54814e-11
Minuit parameter uncertainties:
  1  2.39084e-05
  2  1240.72
  3  0.30118
  4  0.369538
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433885': 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) = 1719.61966651
delta logL = 5.12454789714e-09

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  1.000e-04  2.391e-05  1.000e-04  1.000e+04 ( 1.000e-13)
395        Index:  2.465e+00  1.241e+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.280e-01  3.695e-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:  3.290e-01  3.012e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/433885/cmap_HighResolution_589248001_589507201_4FGL_J1102.6+5251_daily_bin1350.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.97e-02', job_status='DONE', photon_flux_upper_limit='2.50e-07', time_completed='2021-09-03 03:46:22.680566', job_id='433885', GAL2='0.83', fit_tolerance='1e-08', EG2='0.33', EG='0.33', time_epoch_completed='1630665982.68', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='5.12e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='1350' AND source_name='4FGL J1102.6+5251' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 03:46:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 433885: <4FGL_J1102.6+5251_daily_bin1350> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1102.6+5251_daily_bin1350 165.673 52.8569 589248001 589507201 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 :                                   539.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             358.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   576 sec.
    Turnaround time :                            599 sec.

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

