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


Performing analysis on: 4FGL_J1102.6+5251_daily_bin1454
RA = 165.673, Dec = 52.8569
tmin = 616204801, tmax = 616464001
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='435227', job_status='RUN', time_executed='2021-09-03 03:43:37.212173', time_epoch_executed='1630665817.21' WHERE source_name='4FGL J1102.6+5251' and cadence='daily' and bin_id='1454'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/435227

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/435227/ft1_4FGL_J1102.6+5251_daily_bin1454.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/435227/ft2_4FGL_J1102.6+5251_daily_bin1454.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/435227/ft1_4FGL_J1102.6+5251_daily_bin1454.fits outfile=/scratch/kocevski/435227/ft1_filteredMKT_4FGL_J1102.6+5251_daily_bin1454.fits ra=165.673 dec=52.8569 rad=12.0 tmin=616204801.0 tmax=616464001.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 4.00
user 3.74
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/435227/ft2_4FGL_J1102.6+5251_daily_bin1454.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/435227/ft1_filteredMKT_4FGL_J1102.6+5251_daily_bin1454.fits evtable="EVENTS" outfile="/scratch/kocevski/435227/ft1_filtered_4FGL_J1102.6+5251_daily_bin1454.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/435227/ft1_filtered_4FGL_J1102.6+5251_daily_bin1454.fits" evtable="EVENTS" scfile=/scratch/kocevski/435227/ft2_4FGL_J1102.6+5251_daily_bin1454.fits sctable="SC_DATA" outfile=/scratch/kocevski/435227/ltcube_616204801_616464001_4FGL_J1102.6+5251_daily_bin1454.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/435227/ft2_4FGL_J1102.6+5251_daily_bin1454.fits
.....................!
real 13.65
user 13.23
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/435227/ft1_filtered_4FGL_J1102.6+5251_daily_bin1454.fits evtable="EVENTS" scfile=/scratch/kocevski/435227/ft2_4FGL_J1102.6+5251_daily_bin1454.fits sctable="SC_DATA" expcube=/scratch/kocevski/435227/ltcube_616204801_616464001_4FGL_J1102.6+5251_daily_bin1454.fits outfile=/scratch/kocevski/435227/expmap_616204801_616464001_4FGL_J1102.6+5251_daily_bin1454.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/435227/ltcube_616204801_616464001_4FGL_J1102.6+5251_daily_bin1454.fits
.....................!
real 191.37
user 185.23
sys 4.85

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/435227/ft1_filtered_4FGL_J1102.6+5251_daily_bin1454.fits scfile=/scratch/kocevski/435227/ft2_4FGL_J1102.6+5251_daily_bin1454.fits outfile=/scratch/kocevski/435227/cmap_616204801_616464001_4FGL_J1102.6+5251_daily_bin1454.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/435227/ft1_filtered_4FGL_J1102.6+5251_daily_bin1454.fits scfile=/scratch/kocevski/435227/ft2_4FGL_J1102.6+5251_daily_bin1454.fits outfile=/scratch/kocevski/435227/cmap_HighResolution_616204801_616464001_4FGL_J1102.6+5251_daily_bin1454.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .51241E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.1387       1.0000         .10000E-03   10000.    
     4 'norm      '    9.9231       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.163       1.0000         .10000E-03   10000.    
     6 'norm      '    9.8441       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.975       1.0000         .10000E-03   10000.    
    10 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .91552       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    83.563       1.0000         .10000E-03   10000.    
    14 'Prefactor '    86.086       1.0000         .10000E-03   10000.    
    15 'norm      '    3.6552       1.0000         .10000E-03   10000.    
    16 'Prefactor '    35.274       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.5071       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.865       1.0000         .10000E-03   10000.    
    22 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .38836E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    25.671       1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.018       1.0000         .10000E-03   10000.    
    27 'norm      '    .96999       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .66405       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.2501       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=   4064.166     FROM MIGRAD    STATUS=CONVERGED    705 CALLS     3668 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.563       -.66782E-06** at limit **
   2  Prefactor     .10000E-03    9.9100       -.94972E-07** at limit **
   3  norm          1.1387        .68081       -.74126E-07    .40317E-04
   4  norm          9.9256        21.843        .14444E-05   -.17711E-05
   5  Prefactor     12.162        9.7683       -.66499E-06    .96661E-04
   6  norm          9.8446        4.4579       -.45027E-06    .73549E-04
   7  Prefactor     .10000E-03    14.256        .12122E-05** at limit **
   8  norm          .10000E-03    16.605       -.20535E-05** at limit **
   9  Prefactor     10.972        18.007       -.20799E-05   -.15350E-04
  10  norm          .10000E-03    2.0610       -.16461E-06** at limit **
  11  norm          .91545        1.1864       -.65147E-07   -.67661E-04
  12  Prefactor     .10000E-03    39.494       -.97018E-05** at limit **
  13  Prefactor     83.572        167.12        .98805E-05   -.26036E-05
  14  Prefactor     86.064        113.98       -.23022E-04    .32272E-05
  15  norm          3.6553        2.6501       -.36790E-06   -.38676E-04
  16  Prefactor     35.265        45.138       -.12680E-04   -.18882E-05
  17  Prefactor     3.5135        43.054        .18027E-04   -.35985E-05
  18  Prefactor     .10000E-03    36.939        .13666E-04** at limit **
  19  norm          .10000E-03    16.343       -.27010E-05** at limit **
  20  Prefactor     .10000E-03    2.5600        .13396E-06** at limit **
  21  Prefactor     21.840        29.395       -.29735E-04   -.58871E-04
  22  norm          .10000E-03    14.044        .24123E-05** at limit **
  23  Prefactor     .10000E-03    1.0963        .24426E-06** at limit **
  24  norm          .10035E-03    4.5160        .46165E-06** at limit **
  25  Prefactor     25.672        17.695       -.18006E-06   -.14699E-04
  26  Prefactor     14.995        11.823        .21366E-05   -.15172E-03
  27  norm          .96998        1.4072       -.14850E-06   -.53084E-03
  28  Normalizat    .66392        .19705        .48411E-05   -.16483E-03
  29  Prefactor     1.2502        .24817       -.10129E-05    .21728E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 1.13873
  norm       = 9.92562
  Prefactor  = 12.1624
  norm       = 9.84455
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10.972
  norm       = 0.0001
  norm       = 0.915452
  Prefactor  = 0.0001
  Prefactor  = 83.5722
  Prefactor  = 86.0642
  norm       = 3.65527
  Prefactor  = 35.2645
  Prefactor  = 3.51345
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.8402
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.00010035
  Prefactor  = 25.6724
  Prefactor  = 14.9946
  norm       = 0.969981
  Normalizat = 0.663919
  Prefactor  = 1.25015
 **********
 **   18 **HESSE 
 **********

 FCN=   4064.166     FROM HESSE     STATUS=OK           561 CALLS     4229 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    53.027        .40764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.9104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.1387        .66824        .39053E-04   -1.5495    
   4  norm          9.9256        21.802        .12721E-03   -1.5078    
   5  Prefactor     12.162        9.2565        .11486E-03   -1.5010    
   6  norm          9.8446        4.4560        .86980E-04   -1.5080    
   7  Prefactor     .10000E-03    14.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    16.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.972        17.763        .12093E-03   -1.5045    
  10  norm          .10000E-03    2.0749        .17621E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .91545        1.1459        .76853E-03   -1.5517    
  12  Prefactor     .10000E-03    39.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     83.572        167.06        .43942E-04   -1.3877    
  14  Prefactor     86.064        113.89        .43299E-04   -1.3850    
  15  norm          3.6553        2.6447        .82797E-04   -1.5326    
  16  Prefactor     35.265        45.121        .67476E-04   -1.4520    
  17  Prefactor     3.5135        42.833        .21589E-03   -1.5333    
  18  Prefactor     .10000E-03    36.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    16.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.5681        .99601E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     21.840        29.352        .85660E-04   -1.4773    
  22  norm          .10000E-03    14.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.1023        .65129E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10035E-03    60.996        .23951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     25.672        17.682        .79064E-04   -1.4694    
  26  Prefactor     14.995        11.079        .10335E-03   -1.4933    
  27  norm          .96998        1.2590        .88126E-03   -1.5511    
  28  Normalizat    .66392        .23068        .25009E-03   -1.0534    
  29  Prefactor     1.2502        .29505        .25417E-03   -.84802    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.19183e-09
Minuit parameter uncertainties:
  1  0.00102525
  2  7.19587e-07
  3  0.668248
  4  21.8195
  5  9.25754
  6  4.45618
  7  1.06765e-05
  8  1.616e-06
  9  17.7717
  10  1.75294e-05
  11  1.1459
  12  2.04097e-06
  13  168.009
  14  114.181
  15  2.6448
  16  45.1644
  17  24.5567
  18  6.56926e-06
  19  5.43909e-07
  20  2.76773e-05
  21  29.3717
  22  5.15963e-05
  23  3.15427e-06
  24  0.00924743
  25  17.6853
  26  11.0809
  27  1.259
  28  0.231014
  29  0.295444
Done.

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

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  3.526e+01  4.516e+01  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.250e+00  2.954e-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:  6.639e-01  2.310e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.13
Ra Dec: 165.673 52.857
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 2.13e-08 +/- 2.73e-08
Energy Flux (Fixed Index): 5.27e-06 +/- 6.75e-06

TS (Fixed Index): 1.13
Ra Dec: 165.673 52.857
Photon Flux Upper Limit: 9.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.67e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/435227/likelihoodResults_616204801_616464001_4FGL_J1102.6+5251_daily_bin1454.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) = 4064.08120584
delta logL = 0.0843830619756

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4064.07981674
delta logL = 0.0857721669154

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.090       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2894       1.0000          .0000       10.000    
     3 'Normalizat'    .66815       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2459       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=   4064.080     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      287 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.120        57.303        .29854E-03    .11424E-05
   2  Index         2.2899        .86399        .10322E-01    .46100E-05
   3  Normalizat    .66811        .21479        .24932E-03    .74758E-04
   4  Prefactor     1.2459        .29122        .25449E-03   -.41522E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.1199
  Index      = 2.28993
  Normalizat = 0.668106
  Prefactor  = 1.24591
 **********
 **   18 **HESSE 
 **********

 FCN=   4064.080     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .98E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.120        56.855        .11941E-04   -1.4364    
   2  Index         2.2899        .85744        .41288E-03   -.57283    
   3  Normalizat    .66811        .21500        .99730E-05   -1.0517    
   4  Prefactor     1.2459        .29150        .10180E-04   -.84930    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.75892e-11
Minuit parameter uncertainties:
  1  56.9239
  2  0.863506
  3  0.215275
  4  0.291882
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/435227': 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) = 4064.07981629
delta logL = 0.0857726158906

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  4.512e+01  5.692e+01  1.000e-04  1.000e+04 ( 1.000e-13)
395        Index:  2.290e+00  8.635e-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.246e+00  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:  6.681e-01  2.153e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.30
Ra Dec: 165.673 52.857
Photon Index (Free Index): 2.29 +/- 0.86
Photon Flux (Free Index): 1.83e-08 +/- 2.52e-08
Energy Flux (Free Index): 7.06e-06 +/- 1.04e-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/435227/cmap_HighResolution_616204801_616464001_4FGL_J1102.6+5251_daily_bin1454.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.67e-03', comment='SUCCESS', photon_flux='2.13e-08', energy_flux2='7.06e-06', photon_flux_error='2.73e-08', dlogl='8.58e-02', energy_flux='5.27e-06', photon_flux2='1.83e-08', job_status='DONE', time_completed='2021-09-03 03:56:14.568096', photon_index_error2='0.86', photon_index2='2.29', ts='1.13', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', photon_flux_upper_limit='9.75e-08', energy_flux_error2='1.04e-05', EG='0.66', time_epoch_completed='1630666574.57', return_code='0', job_id='435227', GAL2='1.25', EG2='0.67', return_code2='0', energy_flux_error='6.75e-06', photon_flux_error2='2.52e-08', ts2='1.30', photon_index='2.67' WHERE bin_id='1454' AND source_name='4FGL J1102.6+5251' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 03:56:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 435227: <4FGL_J1102.6+5251_daily_bin1454> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1102.6+5251_daily_bin1454 165.673 52.8569 616204801 616464001 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 :                                   740.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            894 sec.

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

