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


Performing analysis on: 4FGL_J1102.6+5251_daily_bin1284
RA = 165.673, Dec = 52.8569
tmin = 572140801, tmax = 572400001
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='433769', job_status='RUN', time_executed='2021-09-03 03:36:55.927029', time_epoch_executed='1630665415.93' WHERE source_name='4FGL J1102.6+5251' and cadence='daily' and bin_id='1284'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433769

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433769/ft1_4FGL_J1102.6+5251_daily_bin1284.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433769/ft2_4FGL_J1102.6+5251_daily_bin1284.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/433769/ft1_4FGL_J1102.6+5251_daily_bin1284.fits outfile=/scratch/kocevski/433769/ft1_filteredMKT_4FGL_J1102.6+5251_daily_bin1284.fits ra=165.673 dec=52.8569 rad=12.0 tmin=572140801.0 tmax=572400001.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.62
user 3.02
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433769/ft1_filtered_4FGL_J1102.6+5251_daily_bin1284.fits evtable="EVENTS" scfile=/scratch/kocevski/433769/ft2_4FGL_J1102.6+5251_daily_bin1284.fits sctable="SC_DATA" expcube=/scratch/kocevski/433769/ltcube_572140801_572400001_4FGL_J1102.6+5251_daily_bin1284.fits outfile=/scratch/kocevski/433769/expmap_572140801_572400001_4FGL_J1102.6+5251_daily_bin1284.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/433769/ltcube_572140801_572400001_4FGL_J1102.6+5251_daily_bin1284.fits
.....................!
real 192.33
user 187.21
sys 4.47

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/433769/ft1_filtered_4FGL_J1102.6+5251_daily_bin1284.fits scfile=/scratch/kocevski/433769/ft2_4FGL_J1102.6+5251_daily_bin1284.fits outfile=/scratch/kocevski/433769/cmap_HighResolution_572140801_572400001_4FGL_J1102.6+5251_daily_bin1284.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7749       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.3232       1.0000         .10000E-03   10000.    
     4 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7351       1.0000         .10000E-03   10000.    
     6 'norm      '    6.4053       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.188       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4050       1.0000         .10000E-03   10000.    
    10 'norm      '    6.0034       1.0000         .10000E-03   10000.    
    11 'norm      '    9.4570       1.0000         .10000E-03   10000.    
    12 'Prefactor '    132.73       1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.982       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.205       1.0000         .10000E-03   10000.    
    15 'norm      '    1.2661       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.169       1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.582       1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.350       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10411E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    15.646       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.9864       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    24.924       1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.383       1.0000         .10000E-03   10000.    
    27 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0679       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .87820       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=   4859.975     FROM MIGRAD    STATUS=CONVERGED    705 CALLS     3668 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7745        7.7772       -.28562E-06    .13970E-03
   2  Prefactor     .10000E-03    10.602        .45326E-06** at limit **
   3  norm          1.3233        .61879        .25780E-09    .31075E-03
   4  norm          .10000E-03    55.157       -.32754E-04** at limit **
   5  Prefactor     1.7419        6.2800       -.27944E-05   -.57054E-03
   6  norm          6.4056        3.4581        .41366E-06    .33711E-03
   7  Prefactor     10.187        27.343       -.24443E-05   -.35961E-05
   8  norm          .10000E-03    20.156       -.11694E-04** at limit **
   9  Prefactor     1.4099        53.535       -.59053E-05   -.19160E-03
  10  norm          6.0024        3.6321       -.13443E-06    .24184E-03
  11  norm          9.4570        2.9666        .57348E-06    .41503E-04
  12  Prefactor     132.75        109.96        .11589E-04    .18618E-05
  13  Prefactor     21.885        132.12       -.19888E-03   -.76099E-05
  14  Prefactor     10.202        175.52       -.89208E-05   -.34097E-06
  15  norm          1.2684        1.8625        .22213E-05    .99957E-03
  16  Prefactor     10.191        88.417        .61623E-04    .13696E-04
  17  Prefactor     12.573        21.644       -.54211E-05   -.94502E-04
  18  Prefactor     29.298        96.802       -.90911E-04    .27135E-05
  19  norm          .10000E-03    21.237        .11573E-04** at limit **
  20  Prefactor     .10000E-03    5.0074       -.19610E-05** at limit **
  21  Prefactor     .10000E-03    50.235        .29774E-04** at limit **
  22  norm          15.649        13.281       -.97070E-06   -.61043E-04
  23  Prefactor     1.9869        3.4543       -.15011E-05   -.57379E-03
  24  norm          .10000E-03    4.9053        .15157E-05** at limit **
  25  Prefactor     24.924        21.745       -.30865E-06    .29101E-04
  26  Prefactor     10.388        7.7750        .62926E-06   -.10081E-03
  27  norm          .10000E-03    .95630       -.57334E-07** at limit **
  28  Normalizat    1.0674        .19386       -.29285E-06    .24194E-03
  29  Prefactor     .87889        .24198        .66110E-05   -.32931E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.77453
  Prefactor  = 0.0001
  norm       = 1.32326
  norm       = 0.000100002
  Prefactor  = 1.74185
  norm       = 6.40563
  Prefactor  = 10.1867
  norm       = 0.0001
  Prefactor  = 1.4099
  norm       = 6.00238
  norm       = 9.45702
  Prefactor  = 132.748
  Prefactor  = 21.885
  Prefactor  = 10.2017
  norm       = 1.26836
  Prefactor  = 10.1907
  Prefactor  = 12.573
  Prefactor  = 29.2981
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 15.6486
  Prefactor  = 1.98694
  norm       = 0.0001
  Prefactor  = 24.9245
  Prefactor  = 10.3878
  norm       = 0.0001
  Normalizat = 1.06744
  Prefactor  = 0.878887
 **********
 **   18 **HESSE 
 **********

 FCN=   4859.975     FROM HESSE     STATUS=OK           559 CALLS     4227 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7745        7.7465        .13531E-03   -1.5115    
   2  Prefactor     .10000E-03    10.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.3233        .61777        .35898E-04   -1.5478    
   4  norm          .10000E-03    56.853        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.7419        6.2492        .30820E-03   -1.5444    
   6  norm          6.4056        3.4590        .92208E-04   -1.5202    
   7  Prefactor     10.187        27.313        .12554E-03   -1.5070    
   8  norm          .10000E-03    20.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4099        49.572        .36580E-03   -1.5470    
  10  norm          6.0024        3.4675        .80777E-04   -1.5218    
  11  norm          9.4570        2.9640        .64673E-04   -1.5093    
  12  Prefactor     132.75        110.07        .17476E-03   -1.3399    
  13  Prefactor     21.885        132.24        .85431E-04   -1.4772    
  14  Prefactor     10.202        175.82        .12543E-03   -1.5069    
  15  norm          1.2684        1.8185        .10887E-03   -1.5483    
  16  Prefactor     10.191        88.199        .12566E-03   -1.5069    
  17  Prefactor     12.573        21.623        .11293E-03   -1.4999    
  18  Prefactor     29.298        96.932        .73953E-04   -1.4625    
  19  norm          .10000E-03    21.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.0476        .15225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    51.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          15.649        13.283        .10126E-03   -1.4917    
  23  Prefactor     1.9869        3.4203        .15698E-03   -1.5426    
  24  norm          .10000E-03    5.0129        .30095E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     24.924        21.644        .80238E-04   -1.4709    
  26  Prefactor     10.388        7.7695        .12435E-03   -1.5063    
  27  norm          .10000E-03    .98354        .13305E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0674        .22801        .22492E-03   -.90804    
  29  Prefactor     .87889        .28293        .31755E-03   -.96883    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01301e-09
Minuit parameter uncertainties:
  1  7.74737
  2  9.73662e-07
  3  0.617773
  4  0.000720299
  5  6.25152
  6  3.45907
  7  27.346
  8  6.13517e-06
  9  16.7346
  10  3.46761
  11  2.96408
  12  110.244
  13  107.951
  14  84.9971
  15  1.81861
  16  60.0792
  17  21.636
  18  97.4593
  19  2.38903e-05
  20  1.31127e-05
  21  0.000600548
  22  13.2852
  23  3.42059
  24  5.85027e-05
  25  21.6506
  26  7.77027
  27  7.4724e-06
  28  0.228222
  29  0.2834
Done.

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

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  1.019e+01  6.008e+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:  8.789e-01  2.834e-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.067e+00  2.282e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/433769/likelihoodResults_572140801_572400001_4FGL_J1102.6+5251_daily_bin1284.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) = 4859.97396449
delta logL = 0.00113346446778

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4859.97381569
delta logL = 0.00128225950084

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.143       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5676       1.0000          .0000       10.000    
     3 'Normalizat'    1.0680       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87846       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=   4859.974     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      285 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.216        95.439        .12002E-03    .52100E-05
   2  Index         2.5718        1.8487        .13951E-01    .18002E-04
   3  Normalizat    1.0677        .21740        .22490E-03    .30472E-03
   4  Prefactor     .87855        .27981        .31760E-03   -.22301E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.2165
  Index      = 2.5718
  Normalizat = 1.06765
  Prefactor  = 0.878549
 **********
 **   18 **HESSE 
 **********

 FCN=   4859.974     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.216        90.669        .48006E-05   -1.5038    
   2  Index         2.5718        1.8059        .55803E-03   -.50709    
   3  Normalizat    1.0677        .21766        .44980E-04   -.90797    
   4  Prefactor     .87855        .28006        .12704E-04   -.96895    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81412e-09
Minuit parameter uncertainties:
  1  63.9131
  2  1.86173
  3  0.217847
  4  0.280516
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433769': 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) = 4859.97380836
delta logL = 0.00128958668392

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  1.122e+01  6.391e+01  1.000e-04  1.000e+04 ( 1.000e-13)
395        Index:  2.572e+00  1.862e+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:  8.785e-01  2.805e-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.068e+00  2.178e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/433769/cmap_HighResolution_572140801_572400001_4FGL_J1102.6+5251_daily_bin1284.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.79e-03', job_status='DONE', photon_flux_upper_limit='9.91e-08', time_completed='2021-09-03 03:50:49.459568', job_id='433769', GAL2='0.88', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1630666249.46', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.29e-03', ts2='0.03', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='1284' AND source_name='4FGL J1102.6+5251' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 03:50:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 433769: <4FGL_J1102.6+5251_daily_bin1284> in cluster <slac> Done

Job <4FGL_J1102.6+5251_daily_bin1284> 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) <bullet0199>, 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:50:50 2021
Results reported at Fri Sep  3 03:50:50 2021

Your job looked like:

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

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

