/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 119 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 = 6613
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1102.6+5251_daily_bin92
RA = 165.673, Dec = 52.8569
tmin = 263174401, tmax = 263433601
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='425149', job_status='RUN', time_executed='2021-09-03 03:15:26.444891', time_epoch_executed='1630664126.44' WHERE source_name='4FGL J1102.6+5251' and cadence='daily' and bin_id='92'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/425149

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/425149/ft1_4FGL_J1102.6+5251_daily_bin92.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/425149/ft2_4FGL_J1102.6+5251_daily_bin92.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/425149/ft1_4FGL_J1102.6+5251_daily_bin92.fits outfile=/scratch/kocevski/425149/ft1_filteredMKT_4FGL_J1102.6+5251_daily_bin92.fits ra=165.673 dec=52.8569 rad=12.0 tmin=263174401.0 tmax=263433601.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 1.47
user 1.21
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/425149/ft1_filtered_4FGL_J1102.6+5251_daily_bin92.fits" evtable="EVENTS" scfile=/scratch/kocevski/425149/ft2_4FGL_J1102.6+5251_daily_bin92.fits sctable="SC_DATA" outfile=/scratch/kocevski/425149/ltcube_263174401_263433601_4FGL_J1102.6+5251_daily_bin92.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/425149/ft2_4FGL_J1102.6+5251_daily_bin92.fits
.....................!
real 17.60
user 16.80
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/425149/ft1_filtered_4FGL_J1102.6+5251_daily_bin92.fits evtable="EVENTS" scfile=/scratch/kocevski/425149/ft2_4FGL_J1102.6+5251_daily_bin92.fits sctable="SC_DATA" expcube=/scratch/kocevski/425149/ltcube_263174401_263433601_4FGL_J1102.6+5251_daily_bin92.fits outfile=/scratch/kocevski/425149/expmap_263174401_263433601_4FGL_J1102.6+5251_daily_bin92.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/425149/ltcube_263174401_263433601_4FGL_J1102.6+5251_daily_bin92.fits
.....................!
real 193.35
user 187.18
sys 5.51

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/425149/ft1_filtered_4FGL_J1102.6+5251_daily_bin92.fits scfile=/scratch/kocevski/425149/ft2_4FGL_J1102.6+5251_daily_bin92.fits outfile=/scratch/kocevski/425149/cmap_263174401_263433601_4FGL_J1102.6+5251_daily_bin92.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/425149/ft1_filtered_4FGL_J1102.6+5251_daily_bin92.fits scfile=/scratch/kocevski/425149/ft2_4FGL_J1102.6+5251_daily_bin92.fits outfile=/scratch/kocevski/425149/cmap_HighResolution_263174401_263433601_4FGL_J1102.6+5251_daily_bin92.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.56
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .42269       1.0000         .10000E-03   10000.    
     4 'norm      '    13.262       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .43217E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.4382       1.0000         .10000E-03   10000.    
     7 'Prefactor '    191.65       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .20509E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .16612E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.3968       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.794       1.0000         .10000E-03   10000.    
    15 'norm      '    3.2758       1.0000         .10000E-03   10000.    
    16 'Prefactor '    152.98       1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.275       1.0000         .10000E-03   10000.    
    18 'Prefactor '    131.90       1.0000         .10000E-03   10000.    
    19 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.2329       1.0000         .10000E-03   10000.    
    24 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.8793       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .90641       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .99810       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=   4068.760     FROM MIGRAD    STATUS=CONVERGED    719 CALLS     3797 TOTAL
                     EDM=   .77E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.473        .30548E-06** at limit **
   2  Prefactor     .10000E-03    18.770       -.75757E-07** at limit **
   3  norm          .42269        .37743       -.47684E-07   -.15019E-03
   4  norm          13.257        15.693       -.86290E-06   -.68392E-04
   5  Prefactor     .10000E-03    4.6105       -.45196E-06** at limit **
   6  norm          1.4380        1.9404       -.74990E-07   -.80905E-04
   7  Prefactor     191.61        61.740       -.93209E-06   -.10352E-03
   8  norm          .10000E-03    18.027        .31208E-06** at limit **
   9  Prefactor     .10000E-03    72.974       -.13287E-05** at limit **
  10  norm          .10000E-03    1.5665        .18296E-07** at limit **
  11  norm          1.3965        1.3332       -.91844E-07   -.23746E-03
  12  Prefactor     .10000E-03    55.427        .16667E-07** at limit **
  13  Prefactor     .10000E-03    69.432       -.38567E-06** at limit **
  14  Prefactor     23.707        84.010       -.28913E-05   -.32161E-04
  15  norm          3.2755        2.7238       -.12777E-06   -.13406E-03
  16  Prefactor     152.95        101.19       -.87286E-06   -.23274E-04
  17  Prefactor     20.230        39.082       -.12362E-05   -.19235E-04
  18  Prefactor     131.84        138.59       -.29781E-07   -.24416E-04
  19  norm          .10000E-03    21.876       -.84900E-07** at limit **
  20  Prefactor     .10000E-03    12.129       -.11298E-05** at limit **
  21  Prefactor     .10000E-03    15.821       -.43750E-06** at limit **
  22  norm          .10000E-03    6.1066        .78584E-07** at limit **
  23  Prefactor     4.2323        4.8355       -.14006E-06   -.74967E-04
  24  norm          .10000E-03    2.5510        .22764E-06** at limit **
  25  Prefactor     .10000E-03    35.192        .49190E-06** at limit **
  26  Prefactor     .10000E-03    2.8577        .45837E-07** at limit **
  27  norm          1.8795        2.2157        .19703E-06    .50371E-04
  28  Normalizat    .90693        .24318        .67128E-05   -.17991E-03
  29  Prefactor     .99745        .29033       -.88202E-05   -.90093E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.422687
  norm       = 13.2573
  Prefactor  = 0.000100004
  norm       = 1.43804
  Prefactor  = 191.614
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.39646
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.7069
  norm       = 3.27552
  Prefactor  = 152.945
  Prefactor  = 20.2301
  Prefactor  = 131.837
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.23228
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.87952
  Normalizat = 0.906933
  Prefactor  = 0.997454
 **********
 **   18 **HESSE 
 **********

 FCN=   4068.760     FROM HESSE     STATUS=OK           551 CALLS     4348 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .42269        .39902        .35607E-03   -1.5578    
   4  norm          13.257        15.608        .10999E-03   -1.4980    
   5  Prefactor     .10000E-03    36.963        .25411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.4380        1.9163        .10015E-03   -1.5468    
   7  Prefactor     191.61        61.601        .14587E-03   -1.2931    
   8  norm          .10000E-03    18.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    75.430        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.3979        .15422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.3965        1.3471        .69995E-04   -1.5472    
  12  Prefactor     .10000E-03    55.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    69.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     23.707        84.373        .82119E-04   -1.4734    
  15  norm          3.2755        2.7221        .90760E-04   -1.5346    
  16  Prefactor     152.95        101.17        .16295E-03   -1.3228    
  17  Prefactor     20.230        38.977        .88952E-04   -1.4808    
  18  Prefactor     131.84        138.71        .17530E-03   -1.3406    
  19  norm          .10000E-03    21.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.565        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.1103        .15396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.2323        4.8136        .14103E-03   -1.5296    
  24  norm          .10000E-03    2.5779        .99558E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    35.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    2.8584        .10532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.8795        2.2011        .99457E-04   -1.5434    
  28  Normalizat    .90693        .24264        .23694E-03   -.96217    
  29  Prefactor     .99745        .29143        .29036E-03   -.92814    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49679e-10
Minuit parameter uncertainties:
  1  1.52282e-05
  2  4.64361e-06
  3  0.39902
  4  15.6127
  5  0.000812228
  6  1.91643
  7  61.6222
  8  5.02674e-05
  9  0.000358666
  10  4.81341e-06
  11  1.34708
  12  0.000112336
  13  4.93563e-05
  14  84.8025
  15  2.72223
  16  101.29
  17  39.0262
  18  139.05
  19  1.99376e-05
  20  5.96241e-05
  21  4.12187e-05
  22  5.56581e-06
  23  4.814
  24  8.84422e-06
  25  4.79798e-05
  26  2.01932e-06
  27  2.20115
  28  0.242936
  29  0.291892
Done.

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

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  1.529e+02  1.013e+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:  9.975e-01  2.919e-01  0.000e+00  1.000e+01 ( 1.000e+00)
725        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
726        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
723   Normalization:  9.069e-01  2.429e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.21
Ra Dec: 165.673 52.857
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 9.26e-08 +/- 6.12e-08
Energy Flux (Fixed Index): 2.29e-05 +/- 1.51e-05

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

Saving results to:
/scratch/kocevski/425149/likelihoodResults_263174401_263433601_4FGL_J1102.6+5251_daily_bin92.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) = 4068.61936248
delta logL = 0.140299028747

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4068.61261464
delta logL = 0.147046872141

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    110.88       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0677       1.0000          .0000       10.000    
     3 'Normalizat'    .88629       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0191       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=   4068.613     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      259 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     110.97        125.99        .19100E-03    .11160E-04
   2  Index         3.0668        .88327        .56373E-02    .25876E-03
   3  Normalizat    .88620        .23047        .23931E-03    .50714E-04
   4  Prefactor     1.0192        .29029        .28791E-03   -.34749E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 110.966
  Index      = 3.06684
  Normalizat = 0.886205
  Prefactor  = 1.01915
 **********
 **   18 **HESSE 
 **********

 FCN=   4068.613     FROM HESSE     STATUS=OK            25 CALLS      284 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     110.97        116.74        .76400E-05   -1.3597    
   2  Index         3.0668        .81828        .11275E-02   -.39698    
   3  Normalizat    .88620        .23063        .95722E-05   -.96947    
   4  Prefactor     1.0192        .29028        .11516E-04   -.92094    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.61118e-11
Minuit parameter uncertainties:
  1  116.981
  2  0.822636
  3  0.230883
  4  0.290726
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/425149': 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) = 4068.61261382
delta logL = 0.147047687981

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  1.110e+02  1.170e+02  1.000e-04  1.000e+04 ( 1.000e-13)
395        Index:  3.067e+00  8.226e-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.019e+00  2.907e-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:  8.862e-01  2.309e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.53
Ra Dec: 165.673 52.857
Photon Index (Free Index): 3.07 +/- 0.82
Photon Flux (Free Index): 1.08e-07 +/- 7.09e-08
Energy Flux (Free Index): 2.09e-05 +/- 1.38e-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/425149/cmap_HighResolution_263174401_263433601_4FGL_J1102.6+5251_daily_bin92.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.67e-02', comment='SUCCESS', photon_flux='9.26e-08', energy_flux2='2.09e-05', photon_flux_error='6.12e-08', dlogl='1.47e-01', energy_flux='2.29e-05', photon_flux2='1.08e-07', job_status='DONE', time_completed='2021-09-03 03:27:58.384824', photon_index_error2='0.82', photon_index2='3.07', ts='3.21', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='2.12e-07', energy_flux_error2='1.38e-05', EG='0.91', time_epoch_completed='1630664878.38', return_code='0', job_id='425149', GAL2='1.02', EG2='0.89', return_code2='0', energy_flux_error='1.51e-05', photon_flux_error2='7.09e-08', ts2='3.53', photon_index='2.67' WHERE bin_id='92' AND source_name='4FGL J1102.6+5251' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 03:27:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 425149: <4FGL_J1102.6+5251_daily_bin92> in cluster <slac> Done

Job <4FGL_J1102.6+5251_daily_bin92> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 03:11:31 2021
Job was executed on host(s) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 03:13:13 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:13:13 2021
Terminated at Fri Sep  3 03:27:59 2021
Results reported at Fri Sep  3 03:27:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1102.6+5251_daily_bin92 165.673 52.8569 263174401 263433601 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 :                                   750.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            988 sec.

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

