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


Performing analysis on: 4FGL_J1102.6+5251_daily_bin1202
RA = 165.673, Dec = 52.8569
tmin = 550886401, tmax = 551145601
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='432229', job_status='RUN', time_executed='2021-09-03 03:38:09.947797', time_epoch_executed='1630665489.95' WHERE source_name='4FGL J1102.6+5251' and cadence='daily' and bin_id='1202'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/432229

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/432229/ft1_4FGL_J1102.6+5251_daily_bin1202.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/432229/ft2_4FGL_J1102.6+5251_daily_bin1202.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/432229/ft1_4FGL_J1102.6+5251_daily_bin1202.fits outfile=/scratch/kocevski/432229/ft1_filteredMKT_4FGL_J1102.6+5251_daily_bin1202.fits ra=165.673 dec=52.8569 rad=12.0 tmin=550886401.0 tmax=551145601.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.78
user 3.59
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/432229/ft1_filtered_4FGL_J1102.6+5251_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/432229/ft2_4FGL_J1102.6+5251_daily_bin1202.fits sctable="SC_DATA" expcube=/scratch/kocevski/432229/ltcube_550886401_551145601_4FGL_J1102.6+5251_daily_bin1202.fits outfile=/scratch/kocevski/432229/expmap_550886401_551145601_4FGL_J1102.6+5251_daily_bin1202.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/432229/ltcube_550886401_551145601_4FGL_J1102.6+5251_daily_bin1202.fits
.....................!
real 191.10
user 186.80
sys 3.89

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/432229/ft1_filtered_4FGL_J1102.6+5251_daily_bin1202.fits scfile=/scratch/kocevski/432229/ft2_4FGL_J1102.6+5251_daily_bin1202.fits outfile=/scratch/kocevski/432229/cmap_550886401_551145601_4FGL_J1102.6+5251_daily_bin1202.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/432229/ft1_filtered_4FGL_J1102.6+5251_daily_bin1202.fits scfile=/scratch/kocevski/432229/ft2_4FGL_J1102.6+5251_daily_bin1202.fits outfile=/scratch/kocevski/432229/cmap_HighResolution_550886401_551145601_4FGL_J1102.6+5251_daily_bin1202.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/432229/ft1_filtered_4FGL_J1102.6+5251_daily_bin1202.fits evtable="EVENTS" scfile=/scratch/kocevski/432229/ft2_4FGL_J1102.6+5251_daily_bin1202.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/432229/Model_4FGL_J1102.6+5251_daily_bin1202.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/432229/ft1_filtered_4FGL_J1102.6+5251_daily_bin1202.fits.......................!
real 23.86
user 22.66
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .63619E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.1966       1.0000         .10000E-03   10000.    
     6 'norm      '    5.6195       1.0000         .10000E-03   10000.    
     7 'Prefactor '    128.10       1.0000         .10000E-03   10000.    
     8 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.549       1.0000         .10000E-03   10000.    
    10 'norm      '    4.1932       1.0000         .10000E-03   10000.    
    11 'norm      '    6.0823       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10504E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    311.85       1.0000         .10000E-03   10000.    
    15 'norm      '    1.5812       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    65.987       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.0614       1.0000         .10000E-03   10000.    
    22 'norm      '    81.142       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .18182E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .13321E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    16.661       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.1363       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .73222       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .65623       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=   1495.131     FROM MIGRAD    STATUS=CONVERGED    740 CALLS     3769 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.325        .53816E-06** at limit **
   2  Prefactor     .10001E-03    116.56        .74248E-05** at limit **
   3  norm          .10000E-03    .35456       -.86797E-07** at limit **
   4  norm          .10000E-03    12.890       -.71570E-07** at limit **
   5  Prefactor     3.1973        8.0185        .76712E-06   -.80288E-04
   6  norm          5.6193        4.5989        .11608E-06    .95788E-05
   7  Prefactor     128.07        97.528       -.72390E-06   -.92558E-04
   8  norm          .10000E-03    23.828       -.70111E-07** at limit **
   9  Prefactor     21.545        38.786        .15596E-05   -.75229E-05
  10  norm          4.1933        4.1583        .10475E-07   -.21554E-04
  11  norm          6.0823        4.7631        .12126E-06   -.31261E-04
  12  Prefactor     .10000E-03    64.359        .26098E-05** at limit **
  13  Prefactor     .10000E-03    205.51        .15699E-05** at limit **
  14  Prefactor     311.94        239.80        .77837E-05    .50119E-04
  15  norm          1.5807        4.2357        .34251E-06   -.32308E-04
  16  Prefactor     .10000E-03    85.264       -.24690E-05** at limit **
  17  Prefactor     65.987        48.004        .54734E-06   -.64354E-05
  18  Prefactor     .10000E-03    86.673       -.20693E-05** at limit **
  19  norm          .10000E-03    78.959       -.31771E-05** at limit **
  20  Prefactor     .10000E-03    6.1281        .29682E-07** at limit **
  21  Prefactor     5.0564        73.991        .25924E-05   -.16495E-05
  22  norm          81.134        45.261        .19364E-06   -.19620E-04
  23  Prefactor     .10003E-03    11.720        .67362E-05** at limit **
  24  norm          .10000E-03    6.6714        .15308E-07** at limit **
  25  Prefactor     16.769        38.196       -.46862E-05   -.33782E-03
  26  Prefactor     .10000E-03    5.0498       -.56040E-08** at limit **
  27  norm          1.1363        3.4436        .37297E-06   -.16320E-03
  28  Normalizat    .73217        .29941       -.35520E-05   -.33430E-03
  29  Prefactor     .65645        .34935       -.52490E-06   -.30347E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.000100007
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.19734
  norm       = 5.61932
  Prefactor  = 128.074
  norm       = 0.0001
  Prefactor  = 21.5446
  norm       = 4.19333
  norm       = 6.08232
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 311.938
  norm       = 1.5807
  Prefactor  = 0.0001
  Prefactor  = 65.9874
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.05643
  norm       = 81.1343
  Prefactor  = 0.000100034
  norm       = 0.0001
  Prefactor  = 16.7687
  Prefactor  = 0.0001
  norm       = 1.13635
  Normalizat = 0.732169
  Prefactor  = 0.656445
 **********
 **   18 **HESSE 
 **********

 FCN=   1495.131     FROM HESSE     STATUS=OK           553 CALLS     4322 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.509        .55699E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    118.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .35692        .22436E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    12.901        .13561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.1973        7.9888        .16191E-03   -1.5350    
   6  norm          5.6193        4.5995        .72796E-04   -1.5234    
   7  Prefactor     128.07        98.344        .17785E-03   -1.3440    
   8  norm          .10000E-03    23.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     21.545        38.843        .86285E-04   -1.4779    
  10  norm          4.1933        4.1492        .71955E-04   -1.5298    
  11  norm          6.0823        4.7602        .69522E-04   -1.5215    
  12  Prefactor     .10000E-03    64.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    205.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     311.94        242.18        .11506E-03   -1.2157    
  15  norm          1.5807        4.1849        .12206E-03   -1.5457    
  16  Prefactor     .10000E-03    85.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     65.987        47.876        .49406E-04   -1.4082    
  18  Prefactor     .10000E-03    86.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    79.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.1554        .93424E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.0564        74.129        .17873E-03   -1.5258    
  22  norm          81.134        44.577        .22294E-03   -1.3904    
  23  Prefactor     .10003E-03    17.200        .22514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    12.582        .19149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     16.769        40.441        .98122E-04   -1.4889    
  26  Prefactor     .10000E-03    5.0510        .84870E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.1363        3.4178        .11769E-03   -1.5495    
  28  Normalizat    .73217        .35813        .21778E-03   -1.0264    
  29  Prefactor     .65645        .41770        .29116E-03   -1.0526    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43912e-09
Minuit parameter uncertainties:
  1  0.000513645
  2  0.0017851
  3  2.09704e-06
  4  5.47465e-06
  5  7.99146
  6  4.59975
  7  98.4694
  8  2.4249e-06
  9  38.8885
  10  4.14946
  11  4.76046
  12  0.000407666
  13  0.000467779
  14  242.973
  15  4.18568
  16  0.000310398
  17  47.9037
  18  0.000337628
  19  0.000495551
  20  2.05022e-07
  21  38.7783
  22  44.5949
  23  0.00153597
  24  7.53066e-05
  25  40.5069
  26  8.58247e-07
  27  3.4184
  28  0.359286
  29  0.419703
Done.

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

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  1.000e-04  3.104e-04  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:  6.564e-01  4.197e-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.322e-01  3.593e-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: 1.32e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.04e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/432229/likelihoodResults_550886401_551145601_4FGL_J1102.6+5251_daily_bin1202.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) = 1495.13131918
delta logL = -5.37953790172e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1495.13131733
delta logL = -5.19521415754e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .89981E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6690       1.0000          .0000       10.000    
     3 'Normalizat'    .73217       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65644       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=   1495.131     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      206 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    93.117        .91345E-02** at limit **
   2  Index         2.6788        6.3385        .50000       -.11445E-05
   3  Normalizat    .73217        .26694        .42718E-01    .30100E-05
   4  Prefactor     .65645        .34071        .65802E-01    .36442E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.67875
  Normalizat = 0.732168
  Prefactor  = 0.65645
 **********
 **   18 **HESSE 
 **********

 FCN=   1495.131     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    83.443        .18269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6788        6.3304        .50000       -.48279    
   3  Normalizat    .73217        .31189        .21778E-03   -1.0264    
   4  Prefactor     .65645        .39744        .29116E-03   -1.0526    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35694e-12
Minuit parameter uncertainties:
  1  8.80283e-06
  2  4.44258
  3  0.312651
  4  0.399164
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/432229': 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) = 1495.13126538
delta logL = 2.88036972051e-09

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  1.000e-04  8.803e-06  1.000e-04  1.000e+04 ( 1.000e-13)
395        Index:  2.679e+00  4.443e+00  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:  6.565e-01  3.992e-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.322e-01  3.127e-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/432229/cmap_HighResolution_550886401_551145601_4FGL_J1102.6+5251_daily_bin1202.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.04e-02', job_status='DONE', photon_flux_upper_limit='1.32e-07', time_completed='2021-09-03 03:47:11.804227', job_id='432229', GAL2='0.66', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1630666031.8', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='2.88e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='1202' AND source_name='4FGL J1102.6+5251' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 03:47:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 432229: <4FGL_J1102.6+5251_daily_bin1202> in cluster <slac> Done

Job <4FGL_J1102.6+5251_daily_bin1202> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Fri Sep  3 03:31:20 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 03:34:17 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:34:17 2021
Terminated at Fri Sep  3 03:47:12 2021
Results reported at Fri Sep  3 03:47:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1102.6+5251_daily_bin1202 165.673 52.8569 550886401 551145601 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 :                                   489.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             230.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   775 sec.
    Turnaround time :                            952 sec.

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

