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


Performing analysis on: 4FGL_J1102.6+5251_daily_bin1283
RA = 165.673, Dec = 52.8569
tmin = 571881601, tmax = 572140801
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='433768', job_status='RUN', time_executed='2021-09-03 03:38:25.190652', time_epoch_executed='1630665505.19' WHERE source_name='4FGL J1102.6+5251' and cadence='daily' and bin_id='1283'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433768

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433768/ft1_4FGL_J1102.6+5251_daily_bin1283.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433768/ft2_4FGL_J1102.6+5251_daily_bin1283.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/433768/ft1_4FGL_J1102.6+5251_daily_bin1283.fits outfile=/scratch/kocevski/433768/ft1_filteredMKT_4FGL_J1102.6+5251_daily_bin1283.fits ra=165.673 dec=52.8569 rad=12.0 tmin=571881601.0 tmax=572140801.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.55
user 2.33
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/433768/ft1_filtered_4FGL_J1102.6+5251_daily_bin1283.fits" evtable="EVENTS" scfile=/scratch/kocevski/433768/ft2_4FGL_J1102.6+5251_daily_bin1283.fits sctable="SC_DATA" outfile=/scratch/kocevski/433768/ltcube_571881601_572140801_4FGL_J1102.6+5251_daily_bin1283.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/433768/ft2_4FGL_J1102.6+5251_daily_bin1283.fits
.....................!
real 13.97
user 13.57
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433768/ft1_filtered_4FGL_J1102.6+5251_daily_bin1283.fits evtable="EVENTS" scfile=/scratch/kocevski/433768/ft2_4FGL_J1102.6+5251_daily_bin1283.fits sctable="SC_DATA" expcube=/scratch/kocevski/433768/ltcube_571881601_572140801_4FGL_J1102.6+5251_daily_bin1283.fits outfile=/scratch/kocevski/433768/expmap_571881601_572140801_4FGL_J1102.6+5251_daily_bin1283.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/433768/ltcube_571881601_572140801_4FGL_J1102.6+5251_daily_bin1283.fits
.....................!
real 190.66
user 185.40
sys 4.93

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/433768/ft1_filtered_4FGL_J1102.6+5251_daily_bin1283.fits scfile=/scratch/kocevski/433768/ft2_4FGL_J1102.6+5251_daily_bin1283.fits outfile=/scratch/kocevski/433768/cmap_571881601_572140801_4FGL_J1102.6+5251_daily_bin1283.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/433768/ft1_filtered_4FGL_J1102.6+5251_daily_bin1283.fits scfile=/scratch/kocevski/433768/ft2_4FGL_J1102.6+5251_daily_bin1283.fits outfile=/scratch/kocevski/433768/cmap_HighResolution_571881601_572140801_4FGL_J1102.6+5251_daily_bin1283.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .63451E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    140.00       1.0000         .10000E-03   10000.    
     3 'norm      '    2.6549       1.0000         .10000E-03   10000.    
     4 'norm      '    .11499       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10120E-01   1.0000         .10000E-03   10000.    
     6 'norm      '    6.6058       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.501       1.0000         .10000E-03   10000.    
     8 'norm      '    .10857E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .73310E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    10.430       1.0000         .10000E-03   10000.    
    11 'norm      '    3.4581       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .19695E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .55198E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .51792       1.0000         .10000E-03   10000.    
    15 'norm      '    3.4792       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11769E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .39472E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .16407E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    .33911E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.7375       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .88205       1.0000         .10000E-03   10000.    
    22 'norm      '    .18225E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    12.731       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.5364       1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.5196       1.0000         .10000E-03   10000.    
    27 'norm      '    .29968       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4947       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .72503       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1773.610     FROM MIGRAD    STATUS=CONVERGED    249 CALLS     2667 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10008E-03    99.681       -.10378E-05** at limit **
   2  Prefactor     137.73        208.14        .80204E-06    .10266E-02
   3  norm          2.6383        2.1856        .17330E-06    .67982E-04
   4  norm          .10085E-03    163.24        .15352E-05** at limit **
   5  Prefactor     .10000E-03    24.816        .14356E-05** at limit **
   6  norm          6.5591        11.259        .67902E-06    .13004E-03
   7  Prefactor     18.175        328.95       -.18638E-04   -.10648E-03
   8  norm          .10000E-03    36.136       -.69493E-06** at limit **
   9  Prefactor     .10000E-03    45.557       -.84715E-07** at limit **
  10  norm          10.398        7.1814        .17729E-06    .14976E-03
  11  norm          3.4182        5.8955        .80210E-06    .17604E-03
  12  Prefactor     .11628E-03    58.841       -.23942E-07** at limit **
  13  Prefactor     .13805E-03    95.628       -.34841E-06** at limit **
  14  Prefactor     .10702E-03    361.98        .39433E-05** at limit **
  15  norm          3.4793        3.5212        .69208E-06    .46209E-03
  16  Prefactor     .10000E-03    53.909       -.13461E-05** at limit **
  17  Prefactor     .10000E-03    38.123        .17947E-05** at limit **
  18  Prefactor     .10300E-03    96.506       -.15420E-05** at limit **
  19  norm          .10007E-03    18.110       -.67690E-06** at limit **
  20  Prefactor     10.020        16.922        .41313E-06    .16949E-03
  21  Prefactor     .14176E-03    670.74       -.11635E-04** at limit **
  22  norm          .10000E-03    10.302        .24372E-06** at limit **
  23  Prefactor     .10000E-03    3.6210        .13860E-06** at limit **
  24  norm          12.819        10.349        .10877E-05    .52808E-03
  25  Prefactor     3.5412        16.460       -.20418E-05    .52785E-02
  26  Prefactor     9.7261        11.531        .33258E-06    .15812E-03
  27  norm          .30233        6.9801       -.40639E-06   -.38210E-04
  28  Normalizat    1.4898        .47353       -.13024E-05   -.44530E-04
  29  Prefactor     .72809        .52310        .99779E-07   -.20902E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100076
  Prefactor  = 137.728
  norm       = 2.6383
  norm       = 0.000100847
  Prefactor  = 0.0001
  norm       = 6.55908
  Prefactor  = 18.1749
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.3979
  norm       = 3.41819
  Prefactor  = 0.000116279
  Prefactor  = 0.00013805
  Prefactor  = 0.000107022
  norm       = 3.47935
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000102996
  norm       = 0.000100065
  Prefactor  = 10.0202
  Prefactor  = 0.00014176
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 12.819
  Prefactor  = 3.54122
  Prefactor  = 9.72608
  norm       = 0.30233
  Normalizat = 1.48981
  Prefactor  = 0.728086
 **********
 **   18 **HESSE 
 **********

 FCN=   1773.610     FROM HESSE     STATUS=OK           615 CALLS     3282 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10008E-03    99.718        .94274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     137.73        211.60        .85113E-03   -1.3355    
   3  norm          2.6383        2.1877        .62544E-02   -1.5383    
   4  norm          .10085E-03    165.68        .95825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    24.807        .90736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.5591        11.267        .39034E-02   -1.5196    
   7  Prefactor     18.175        328.81        .30910E-02   -1.4855    
   8  norm          .10000E-03    36.088        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    45.470        .93121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          10.398        7.1997        .31016E-02   -1.5063    
  11  norm          3.4182        5.9405        .54369E-02   -1.5338    
  12  Prefactor     .11628E-03    213.57        .10121E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .13805E-03    135.86        .95314E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10702E-03    367.37        .11344E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.4793        3.5174        .54197E-02   -1.5335    
  16  Prefactor     .10000E-03    53.836        .90818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    37.990        .10635E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10300E-03    114.11        .91048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10007E-03    133.80        .98458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.020        17.147        .32104E-02   -1.5075    
  21  Prefactor     .14176E-03    79.504        .12742       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    10.293        .10155E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.6060        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          12.819        10.437        .28066E-02   -1.4992    
  25  Prefactor     3.5412        115.60        .53737E-02   -1.5332    
  26  Prefactor     9.7261        11.534        .32471E-02   -1.5084    
  27  norm          .30233        4.0788        .28713E-01   -1.5598    
  28  Normalizat    1.4898        .39696        .54812E-01   -.78065    
  29  Prefactor     .72809        .45567        .87699E-01   -1.0244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76404e-06
Minuit parameter uncertainties:
  1  0.00552874
  2  212.78
  3  2.1878
  4  0.0237602
  5  0.000183314
  6  11.2711
  7  155.614
  8  2.92519e-05
  9  3.82849e-05
  10  7.20033
  11  5.9415
  12  0.118351
  13  0.144126
  14  0.102211
  15  3.51757
  16  0.000194109
  17  0.000258012
  18  0.0370487
  19  0.00591164
  20  17.1553
  21  0.115393
  22  1.457e-05
  23  5.72051e-06
  24  10.4384
  25  40.5514
  26  11.5361
  27  2.22076
  28  0.397794
  29  0.458035
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
723   Normalization:  1.490e+00  3.978e-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.68e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.32e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/433768/likelihoodResults_571881601_572140801_4FGL_J1102.6+5251_daily_bin1283.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1773.61035859
delta logL = -8.61432647525e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1773.6102734
delta logL = -9.52472646532e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.4158       1.0000          .0000       10.000    
     3 'Normalizat'    1.4898       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72811       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=   1773.610     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      297 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10015E-03    320.31        .18142E-01** at limit **
   2  Index         2.1419        8.9052        .50000        .67462E-07
   3  Normalizat    1.4898        .20849E-01    .24234E-03    .53291E-05
   4  Prefactor     .72809        .24411E-01    .38847E-03    .95404E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100154
  Index      = 2.14192
  Normalizat = 1.48982
  Prefactor  = 0.728087
 **********
 **   18 **HESSE 
 **********

 FCN=   1773.610     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      326 TOTAL
                     EDM=   .42E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10015E-03    1594.5        .33314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1419        6.4653        .50000       -.60847    
   3  Normalizat    1.4898        .48670E-01    .48469E-04   -.78065    
   4  Prefactor     .72809        .56981E-01    .15539E-04   -1.0244    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.17832e-08
Minuit parameter uncertainties:
  1  0.0322342
  2  2510.86
  3  0.0486712
  4  0.0569855
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433768': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1773.61027229
delta logL = 1.63765662364e-07

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  1.002e-04  3.223e-02  1.000e-04  1.000e+04 ( 1.000e-13)
395        Index:  2.142e+00  2.511e+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:  7.281e-01  5.699e-02  0.000e+00  1.000e+01 ( 1.000e+00)
725        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
726        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
723   Normalization:  1.490e+00  4.867e-02  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/433768/cmap_HighResolution_571881601_572140801_4FGL_J1102.6+5251_daily_bin1283.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.32e-02', job_status='DONE', photon_flux_upper_limit='1.68e-07', time_completed='2021-09-03 03:46:38.786969', job_id='433768', GAL2='0.73', fit_tolerance='1e-08', EG2='1.49', EG='1.49', time_epoch_completed='1630665998.79', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='1.64e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='1283' AND source_name='4FGL J1102.6+5251' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 03:46:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 433768: <4FGL_J1102.6+5251_daily_bin1283> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1102.6+5251_daily_bin1283 165.673 52.8569 571881601 572140801 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 :                                   479.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             306.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   614 sec.
    Turnaround time :                            624 sec.

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

