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


Performing analysis on: 4FGL_J1102.6+5251_daily_bin1404
RA = 165.673, Dec = 52.8569
tmin = 603244801, tmax = 603504001
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='435148', job_status='RUN', time_executed='2021-09-03 03:44:14.134881', time_epoch_executed='1630665854.13' WHERE source_name='4FGL J1102.6+5251' and cadence='daily' and bin_id='1404'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/435148

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/435148/ft1_4FGL_J1102.6+5251_daily_bin1404.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/435148/ft2_4FGL_J1102.6+5251_daily_bin1404.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/435148/ft1_4FGL_J1102.6+5251_daily_bin1404.fits outfile=/scratch/kocevski/435148/ft1_filteredMKT_4FGL_J1102.6+5251_daily_bin1404.fits ra=165.673 dec=52.8569 rad=12.0 tmin=603244801.0 tmax=603504001.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.92
user 2.71
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/435148/ft1_filtered_4FGL_J1102.6+5251_daily_bin1404.fits evtable="EVENTS" scfile=/scratch/kocevski/435148/ft2_4FGL_J1102.6+5251_daily_bin1404.fits sctable="SC_DATA" expcube=/scratch/kocevski/435148/ltcube_603244801_603504001_4FGL_J1102.6+5251_daily_bin1404.fits outfile=/scratch/kocevski/435148/expmap_603244801_603504001_4FGL_J1102.6+5251_daily_bin1404.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/435148/ltcube_603244801_603504001_4FGL_J1102.6+5251_daily_bin1404.fits
.....................!
real 193.97
user 188.61
sys 4.81

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/435148/ft1_filtered_4FGL_J1102.6+5251_daily_bin1404.fits scfile=/scratch/kocevski/435148/ft2_4FGL_J1102.6+5251_daily_bin1404.fits outfile=/scratch/kocevski/435148/cmap_603244801_603504001_4FGL_J1102.6+5251_daily_bin1404.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/435148/ft1_filtered_4FGL_J1102.6+5251_daily_bin1404.fits scfile=/scratch/kocevski/435148/ft2_4FGL_J1102.6+5251_daily_bin1404.fits outfile=/scratch/kocevski/435148/cmap_HighResolution_603244801_603504001_4FGL_J1102.6+5251_daily_bin1404.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.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11325E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.8568       1.0000         .10000E-03   10000.    
     4 'norm      '    642.11       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10179E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    30.084       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    12.282       1.0000         .10000E-03   10000.    
    11 'norm      '    5.9187       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11118E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    111.37       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10378E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.4585       1.0000         .10000E-03   10000.    
    16 'Prefactor '    140.04       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10663E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.4690       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    46.974       1.0000         .10000E-03   10000.    
    22 'norm      '    .33419E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10710E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    51.711       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.3813       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .74380       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3745       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=   2878.305     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     3777 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        549.56        .54757E-04** at limit **
   2  Prefactor     .10000E-03    233.70        .96531E-04** at limit **
   3  norm          1.8568        1.8785        .66657E-07    .15966E-03
   4  norm          640.06        1932.9       -.83644E-03    .68260E-05
   5  Prefactor     .10000E-03    62.724        .32477E-04** at limit **
   6  norm          .10000E-03    8.2550        .29058E-06** at limit **
   7  Prefactor     .10000E-03    39.057       -.48028E-05** at limit **
   8  norm          30.078        31.028        .99455E-06   -.11774E-05
   9  Prefactor     .10000E-03    11.977        .71833E-06** at limit **
  10  norm          12.283        5.0115        .30588E-06   -.28906E-04
  11  norm          5.9188        3.6358       -.46213E-06   -.38483E-04
  12  Prefactor     .10000E-03    86.015       -.55494E-04** at limit **
  13  Prefactor     111.77        256.20        .36818E-03   -.12219E-04
  14  Prefactor     .10003E-03    1091.8       -.10781E-02** at limit **
  15  norm          5.4562        4.1667       -.10608E-04    .76155E-03
  16  Prefactor     140.08        127.51        .26981E-04    .10341E-04
  17  Prefactor     .10000E-03    12.379       -.94626E-06** at limit **
  18  Prefactor     .10000E-03    254.89        .65782E-04** at limit **
  19  norm          5.4915        285.90        .58937E-04   -.62243E-05
  20  Prefactor     .10000E-03    9.3525       -.13561E-06** at limit **
  21  Prefactor     46.975        33.149        .51981E-06   -.31104E-04
  22  norm          .10003E-03    11.268        .29644E-05** at limit **
  23  Prefactor     .10000E-03    4.5048       -.19675E-06** at limit **
  24  norm          .10000E-03    6.6194        .80727E-07** at limit **
  25  Prefactor     51.730        44.394        .40380E-05    .42595E-05
  26  Prefactor     .10000E-03    4.0477        .55753E-07** at limit **
  27  norm          2.3817        2.1401        .99027E-07   -.33072E-04
  28  Normalizat    .74387        .30501        .35461E-05   -.13494E-04
  29  Prefactor     1.3743        .35944       -.86314E-05    .17343E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 0.0001
  norm       = 1.85685
  norm       = 640.06
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 30.0781
  Prefactor  = 0.0001
  norm       = 12.2827
  norm       = 5.91883
  Prefactor  = 0.0001
  Prefactor  = 111.773
  Prefactor  = 0.00010003
  norm       = 5.45625
  Prefactor  = 140.08
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.49148
  Prefactor  = 0.0001
  Prefactor  = 46.9754
  norm       = 0.000100029
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 51.7297
  Prefactor  = 0.0001
  norm       = 2.38166
  Normalizat = 0.743866
  Prefactor  = 1.37432
 **********
 **   18 **HESSE 
 **********

 FCN=   2878.305     FROM HESSE     STATUS=OK           545 CALLS     4322 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        549.49        .21074E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    233.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.8568        1.8946        .72238E-04   -1.5435    
   4  norm          640.06        1934.7        .81590E-04   -1.0592    
   5  Prefactor     .10000E-03    62.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    8.2566        .15056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    39.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          30.078        31.028        .73048E-04   -1.4611    
   9  Prefactor     .10000E-03    11.983        .18134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          12.283        5.0096        .74098E-04   -1.5007    
  11  norm          5.9188        3.6371        .78123E-04   -1.5221    
  12  Prefactor     .10000E-03    86.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     111.77        256.31        .19058E-03   -1.3590    
  14  Prefactor     .10003E-03    1092.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.4562        4.1753        .85402E-04   -1.5241    
  16  Prefactor     140.08        127.62        .17020E-03   -1.3335    
  17  Prefactor     .10000E-03    12.386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    255.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.4915        287.25        .17182E-03   -1.5239    
  20  Prefactor     .10000E-03    9.4249        .16010E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     46.975        33.268        .58503E-04   -1.4336    
  22  norm          .10003E-03    31.985        .34904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.5936        .22119E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    6.8577        .26885E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     51.730        44.306        .55772E-04   -1.4268    
  26  Prefactor     .10000E-03    4.0578        .10540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.3817        2.1448        .70961E-04   -1.5399    
  28  Normalizat    .74387        .36697        .32292E-03   -1.0219    
  29  Prefactor     1.3743        .43315        .30044E-03   -.81123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93146e-09
Minuit parameter uncertainties:
  1  0.00156272
  2  0.00013685
  3  1.89461
  4  2230.99
  5  0.000560932
  6  0.000158798
  7  2.94165e-06
  8  31.0444
  9  9.49857e-06
  10  5.0098
  11  3.63721
  12  6.31341e-05
  13  258.924
  14  0.0117089
  15  4.17556
  16  127.87
  17  1.25851e-05
  18  6.59797e-05
  19  79.8403
  20  6.38071e-05
  21  33.2816
  22  0.00192814
  23  3.34721e-05
  24  3.50591e-05
  25  44.3338
  26  7.97601e-06
  27  2.14484
  28  0.368195
  29  0.434298
Done.

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

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  1.401e+02  1.279e+02  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:  1.374e+00  4.343e-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:  7.439e-01  3.682e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.02
Ra Dec: 165.673 52.857
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 8.48e-08 +/- 7.73e-08
Energy Flux (Fixed Index): 2.09e-05 +/- 1.91e-05

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

Saving results to:
/scratch/kocevski/435148/likelihoodResults_603244801_603504001_4FGL_J1102.6+5251_daily_bin1404.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) = 2878.10555236
delta logL = 0.19918377332

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2878.07376902
delta logL = 0.230967110048

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    175.32       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1131       1.0000          .0000       10.000    
     3 'Normalizat'    .77938       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3363       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.

 FCN=   2878.074     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      233 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     175.32        217.77        .76195E-03    .76506E-03
   2  Index         2.1134        .83387        .20415       -.12835E-04
   3  Normalizat    .77924        .29082        .71430E-01    .11213E-04
   4  Prefactor     1.3364        .35657        .68653E-01    .24753E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 175.319
  Index      = 2.11336
  Normalizat = 0.779242
  Prefactor  = 1.33643
 **********
 **   18 **HESSE 
 **********

 FCN=   2878.074     FROM HESSE     STATUS=OK            31 CALLS      264 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     175.32        155.70        .15239E-03   -1.3052    
   2  Index         2.1134        .70929        .75747E-02   -.61545    
   3  Normalizat    .77924        .34925        .31611E-03   -1.0084    
   4  Prefactor     1.3364        .42669        .30368E-03   -.82230    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.25351e-09
Minuit parameter uncertainties:
  1  156.07
  2  0.712904
  3  0.350256
  4  0.427819
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/435148': 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) = 2878.0737689
delta logL = 0.230967233863

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  1.753e+02  1.561e+02  1.000e-04  1.000e+04 ( 1.000e-13)
395        Index:  2.113e+00  7.129e-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:  1.336e+00  4.278e-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:  7.792e-01  3.503e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.47
Ra Dec: 165.673 52.857
Photon Index (Free Index): 2.11 +/- 0.71
Photon Flux (Free Index): 6.08e-08 +/- 6.67e-08
Energy Flux (Free Index): 3.24e-05 +/- 4.02e-05

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/435148/cmap_HighResolution_603244801_603504001_4FGL_J1102.6+5251_daily_bin1404.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.07e-02', comment='SUCCESS', photon_flux='8.48e-08', energy_flux2='3.24e-05', photon_flux_error='7.73e-08', dlogl='2.31e-01', energy_flux='2.09e-05', photon_flux2='6.08e-08', job_status='DONE', time_completed='2021-09-03 03:54:54.054471', photon_index_error2='0.71', photon_index2='2.11', ts='2.02', fit_tolerance='1e-08', GAL='1.37', photon_index_error='0.00', photon_flux_upper_limit='2.64e-07', energy_flux_error2='4.02e-05', EG='0.74', time_epoch_completed='1630666494.05', return_code='0', job_id='435148', GAL2='1.34', EG2='0.78', return_code2='0', energy_flux_error='1.91e-05', photon_flux_error2='6.67e-08', ts2='2.47', photon_index='2.67' WHERE bin_id='1404' AND source_name='4FGL J1102.6+5251' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 03:54:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 435148: <4FGL_J1102.6+5251_daily_bin1404> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1102.6+5251_daily_bin1404 165.673 52.8569 603244801 603504001 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 :                                   632.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             236.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            820 sec.

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

