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


Performing analysis on: 4FGL_J1102.6+5251_daily_bin38
RA = 165.673, Dec = 52.8569
tmin = 249177601, tmax = 249436801
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='425061', job_status='RUN', time_executed='2021-09-03 03:14:53.639389', time_epoch_executed='1630664093.64' WHERE source_name='4FGL J1102.6+5251' and cadence='daily' and bin_id='38'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/425061

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/425061/ft1_4FGL_J1102.6+5251_daily_bin38.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/425061/ft2_4FGL_J1102.6+5251_daily_bin38.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/425061/ft1_4FGL_J1102.6+5251_daily_bin38.fits outfile=/scratch/kocevski/425061/ft1_filteredMKT_4FGL_J1102.6+5251_daily_bin38.fits ra=165.673 dec=52.8569 rad=12.0 tmin=249177601.0 tmax=249436801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 1.50
user 1.29
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/425061/ft1_filtered_4FGL_J1102.6+5251_daily_bin38.fits" evtable="EVENTS" scfile=/scratch/kocevski/425061/ft2_4FGL_J1102.6+5251_daily_bin38.fits sctable="SC_DATA" outfile=/scratch/kocevski/425061/ltcube_249177601_249436801_4FGL_J1102.6+5251_daily_bin38.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/425061/ft2_4FGL_J1102.6+5251_daily_bin38.fits
.....................!
real 19.35
user 18.89
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/425061/ft1_filtered_4FGL_J1102.6+5251_daily_bin38.fits evtable="EVENTS" scfile=/scratch/kocevski/425061/ft2_4FGL_J1102.6+5251_daily_bin38.fits sctable="SC_DATA" expcube=/scratch/kocevski/425061/ltcube_249177601_249436801_4FGL_J1102.6+5251_daily_bin38.fits outfile=/scratch/kocevski/425061/expmap_249177601_249436801_4FGL_J1102.6+5251_daily_bin38.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/425061/ltcube_249177601_249436801_4FGL_J1102.6+5251_daily_bin38.fits
.....................!
real 192.32
user 187.56
sys 4.01

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/425061/ft1_filtered_4FGL_J1102.6+5251_daily_bin38.fits scfile=/scratch/kocevski/425061/ft2_4FGL_J1102.6+5251_daily_bin38.fits outfile=/scratch/kocevski/425061/cmap_249177601_249436801_4FGL_J1102.6+5251_daily_bin38.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/425061/ft1_filtered_4FGL_J1102.6+5251_daily_bin38.fits scfile=/scratch/kocevski/425061/ft2_4FGL_J1102.6+5251_daily_bin38.fits outfile=/scratch/kocevski/425061/cmap_HighResolution_249177601_249436801_4FGL_J1102.6+5251_daily_bin38.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=165.673 yref=52.8569 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4190       1.0000         .10000E-03   10000.    
     2 'Prefactor '    47.504       1.0000         .10000E-03   10000.    
     3 'norm      '    1.9522       1.0000         .10000E-03   10000.    
     4 'norm      '    .10170E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .33762       1.0000         .10000E-03   10000.    
     6 'norm      '    5.8227       1.0000         .10000E-03   10000.    
     7 'Prefactor '    55.911       1.0000         .10000E-03   10000.    
     8 'norm      '    .13957E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    58.096       1.0000         .10000E-03   10000.    
    10 'norm      '    .15669       1.0000         .10000E-03   10000.    
    11 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    57.167       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .72496E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .65994E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.4393       1.0000         .10000E-03   10000.    
    16 'Prefactor '    84.885       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12246E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10867E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    .10526E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10314E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11210E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10679E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    8.0370       1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.987       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .19641E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2520       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .24028       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=   4337.199     FROM MIGRAD    STATUS=CONVERGED    822 CALLS     3377 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2489        9.3640        .73456E-07   -.44175E-05
   2  Prefactor     48.071        56.133       -.22609E-05    .83733E-04
   3  norm          1.9528        .74668        .15844E-06    .27404E-03
   4  norm          .10000E-03    4.5268       -.95816E-08** at limit **
   5  Prefactor     .40614        3.9798       -.31518E-06   -.15262E-04
   6  norm          5.8173        3.0510       -.25899E-08    .86916E-04
   7  Prefactor     55.575        54.371       -.68369E-05    .17552E-03
   8  norm          .10000E-03    9.8325       -.99720E-08** at limit **
   9  Prefactor     57.045        35.149        .19412E-05    .55610E-03
  10  norm          .22801        3.6014       -.11603E-05    .34653E-03
  11  norm          .10000E-03    1.2978        .14961E-06** at limit **
  12  Prefactor     57.415        85.931        .11888E-04   -.70746E-04
  13  Prefactor     .10000E-03    70.076        .31081E-05** at limit **
  14  Prefactor     .10001E-03    122.22        .25225E-04** at limit **
  15  norm          4.4360        2.6233        .15428E-07    .24874E-03
  16  Prefactor     86.843        59.583       -.73927E-06    .20699E-04
  17  Prefactor     .10000E-03    72.162       -.50957E-05** at limit **
  18  Prefactor     .10000E-03    25.418        .15214E-07** at limit **
  19  norm          .10000E-03    18.196        .74404E-07** at limit **
  20  Prefactor     .10000E-03    2.5889        .40663E-07** at limit **
  21  Prefactor     .10000E-03    29.924        .57994E-07** at limit **
  22  norm          .10000E-03    4.9897        .22987E-07** at limit **
  23  Prefactor     .10000E-03    2.2506       -.23090E-07** at limit **
  24  norm          8.0377        5.8330       -.11390E-05   -.22682E-02
  25  Prefactor     10.304        25.984       -.98410E-06    .68509E-05
  26  Prefactor     .10000E-03    6.3577        .99084E-07** at limit **
  27  norm          .10000E-03    .86295        .67362E-08** at limit **
  28  Normalizat    1.2534        .22417        .14019E-05    .22347E-03
  29  Prefactor     .23923        .25271       -.25247E-05    .32525E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.24892
  Prefactor  = 48.0708
  norm       = 1.95278
  norm       = 0.0001
  Prefactor  = 0.406138
  norm       = 5.8173
  Prefactor  = 55.5753
  norm       = 0.0001
  Prefactor  = 57.0449
  norm       = 0.228006
  norm       = 0.0001
  Prefactor  = 57.4149
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  norm       = 4.43596
  Prefactor  = 86.8426
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.03767
  Prefactor  = 10.3044
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.25341
  Prefactor  = 0.23923
 **********
 **   18 **HESSE 
 **********

 FCN=   4337.199     FROM HESSE     STATUS=OK           545 CALLS     3922 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2489        9.5094        .14725E-03   -1.5169    
   2  Prefactor     48.071        56.197        .58177E-04   -1.4320    
   3  norm          1.9528        .74421        .32377E-04   -1.5428    
   4  norm          .10000E-03    4.5302        .13684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .40614        20.592        .23148E-02   -1.5581    
   6  norm          5.8173        3.0465        .80095E-04   -1.5226    
   7  Prefactor     55.575        54.166        .53647E-04   -1.4216    
   8  norm          .10000E-03    9.8340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     57.045        44.815        .52634E-04   -1.4196    
  10  norm          .22801        28.489        .16524E-02   -1.5612    
  11  norm          .10000E-03    3.8389        .14492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     57.415        84.384        .53058E-04   -1.4191    
  13  Prefactor     .10000E-03    70.012        .18643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    117.38        .21013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.4360        2.6158        .79078E-04   -1.5287    
  16  Prefactor     86.843        59.813        .43602E-04   -1.3841    
  17  Prefactor     .10000E-03    73.606        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    25.419        .20707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    18.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.5957        .10347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    30.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.9906        .14368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.2579        .95998E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          8.0377        6.3816        .70714E-03   -1.5141    
  25  Prefactor     10.304        26.100        .12087E-03   -1.5066    
  26  Prefactor     .10000E-03    6.3815        .16211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    .87756        .59727E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.2534        .22333        .18555E-03   -.84968    
  29  Prefactor     .23923        .23969        .47673E-03   -1.2602    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51239e-08
Minuit parameter uncertainties:
  1  9.51133
  2  56.2586
  3  0.744216
  4  6.2702e-08
  5  5.78526
  6  3.04657
  7  54.2141
  8  1.00378e-06
  9  44.8412
  10  5.09865
  11  1.80591e-05
  12  84.5603
  13  0.000208797
  14  0.00236873
  15  2.61583
  16  59.8542
  17  0.00045618
  18  7.50447e-06
  19  2.99067e-06
  20  4.10419e-07
  21  3.88334e-05
  22  2.81169e-06
  23  3.25734e-06
  24  6.38214
  25  26.129
  26  2.4216e-05
  27  2.15307e-07
  28  0.223505
  29  0.240684
Done.

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

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  8.684e+01  5.985e+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:  2.392e-01  2.407e-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.253e+00  2.235e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.67
Ra Dec: 165.673 52.857
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 5.26e-08 +/- 3.62e-08
Energy Flux (Fixed Index): 1.30e-05 +/- 8.94e-06

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) = 4337.1784705
delta logL = 0.0202742356259

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4337.170821
delta logL = 0.0279237387076

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    78.893       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8554       1.0000          .0000       10.000    
     3 'Normalizat'    1.2444       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .24691       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=   4337.171     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      269 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     78.869        67.451        .22607E-03    .60698E-04
   2  Index         2.8555        .82857        .71867E-02    .18976E-03
   3  Normalizat    1.2450        .20134        .18607E-03   -.24440E-05
   4  Prefactor     .24625        .23408        .47030E-03    .46582E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 78.8687
  Index      = 2.85545
  Normalizat = 1.24499
  Prefactor  = 0.246251
 **********
 **   18 **HESSE 
 **********

 FCN=   4337.171     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     78.869        65.528        .90427E-05   -1.3929    
   2  Index         2.8555        .80452        .14373E-02   -.44328    
   3  Normalizat    1.2450        .20121        .74428E-05   -.85224    
   4  Prefactor     .24625        .23396        .18812E-04   -1.2556    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.24742e-11
Minuit parameter uncertainties:
  1  65.5886
  2  0.808837
  3  0.201338
  4  0.234855
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/425061': 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) = 4337.17081609
delta logL = 0.0279286451805

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  7.887e+01  6.559e+01  1.000e-04  1.000e+04 ( 1.000e-13)
395        Index:  2.855e+00  8.088e-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:  2.463e-01  2.349e-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.245e+00  2.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.71
Ra Dec: 165.673 52.857
Photon Index (Free Index): 2.86 +/- 0.81
Photon Flux (Free Index): 5.93e-08 +/- 4.80e-08
Energy Flux (Free Index): 1.28e-05 +/- 8.53e-06

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/425061/cmap_HighResolution_249177601_249436801_4FGL_J1102.6+5251_daily_bin38.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.26e-08', energy_flux2='1.28e-05', photon_flux_error='3.62e-08', dlogl='2.79e-02', energy_flux='1.30e-05', photon_flux2='5.93e-08', job_status='DONE', time_completed='2021-09-03 03:26:14.271671', photon_index_error2='0.81', photon_index2='2.86', ts='4.67', fit_tolerance='1e-08', GAL='0.24', photon_index_error='0.00', energy_flux_error2='8.53e-06', EG='1.25', time_epoch_completed='1630664774.27', return_code='0', job_id='425061', GAL2='0.25', EG2='1.24', return_code2='0', energy_flux_error='8.94e-06', photon_flux_error2='4.80e-08', ts2='4.71', photon_index='2.67' WHERE bin_id='38' AND source_name='4FGL J1102.6+5251' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 03:26:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0035>
Subject: Job 425061: <4FGL_J1102.6+5251_daily_bin38> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1102.6+5251_daily_bin38 165.673 52.8569 249177601 249436801 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 :                                   680.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            890 sec.

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

