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


Performing analysis on: 4FGL_J1102.6+5251_daily_bin73
RA = 165.673, Dec = 52.8569
tmin = 258249601, tmax = 258508801
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='425119', job_status='RUN', time_executed='2021-09-03 03:13:00.373782', time_epoch_executed='1630663980.37' WHERE source_name='4FGL J1102.6+5251' and cadence='daily' and bin_id='73'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/425119

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

Retrieving the FT1 file...

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

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

Retrieving 33 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/425119/ft1_4FGL_J1102.6+5251_daily_bin73.fits


Retrieving the FT1 file...

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

Retrieving 33 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/425119/ft2_4FGL_J1102.6+5251_daily_bin73.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/425119/ft1_4FGL_J1102.6+5251_daily_bin73.fits outfile=/scratch/kocevski/425119/ft1_filteredMKT_4FGL_J1102.6+5251_daily_bin73.fits ra=165.673 dec=52.8569 rad=12.0 tmin=258249601.0 tmax=258508801.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.19
user 1.02
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/425119/ft1_filtered_4FGL_J1102.6+5251_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/425119/ft2_4FGL_J1102.6+5251_daily_bin73.fits sctable="SC_DATA" expcube=/scratch/kocevski/425119/ltcube_258249601_258508801_4FGL_J1102.6+5251_daily_bin73.fits outfile=/scratch/kocevski/425119/expmap_258249601_258508801_4FGL_J1102.6+5251_daily_bin73.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/425119/ltcube_258249601_258508801_4FGL_J1102.6+5251_daily_bin73.fits
.....................!
real 192.88
user 188.02
sys 4.26

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/425119/ft1_filtered_4FGL_J1102.6+5251_daily_bin73.fits scfile=/scratch/kocevski/425119/ft2_4FGL_J1102.6+5251_daily_bin73.fits outfile=/scratch/kocevski/425119/cmap_258249601_258508801_4FGL_J1102.6+5251_daily_bin73.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/425119/ft1_filtered_4FGL_J1102.6+5251_daily_bin73.fits scfile=/scratch/kocevski/425119/ft2_4FGL_J1102.6+5251_daily_bin73.fits outfile=/scratch/kocevski/425119/cmap_HighResolution_258249601_258508801_4FGL_J1102.6+5251_daily_bin73.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.41
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.264       1.0000         .10000E-03   10000.    
     3 'norm      '    1.7891       1.0000         .10000E-03   10000.    
     4 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    8.4086       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7393       1.0000         .10000E-03   10000.    
     8 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.437       1.0000         .10000E-03   10000.    
    10 'norm      '    .10836E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.1480       1.0000         .10000E-03   10000.    
    12 'Prefactor '    105.78       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.0367       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .35435E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.5445       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    25.752       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.2546       1.0000         .10000E-03   10000.    
    24 'norm      '    .18435E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    19.626       1.0000         .10000E-03   10000.    
    27 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .76868       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .94193       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=   3165.476     FROM MIGRAD    STATUS=CONVERGED    741 CALLS     3721 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9878        .11373E-06** at limit **
   2  Prefactor     14.261        37.962       -.33274E-07   -.22350E-05
   3  norm          1.7889        .77466       -.74848E-07   -.13729E-03
   4  norm          .10000E-03    5.6942        .14674E-06** at limit **
   5  Prefactor     .10000E-03    6.2357        .99142E-06** at limit **
   6  norm          8.4076        4.3136       -.10535E-06   -.12805E-04
   7  Prefactor     2.6798        126.54        .20684E-05   -.15467E-06
   8  norm          .10000E-03    19.235        .37650E-06** at limit **
   9  Prefactor     12.466        14.711       -.19288E-06   -.47476E-04
  10  norm          .10000E-03    2.8908        .73456E-07** at limit **
  11  norm          3.1477        2.0602       -.56092E-07   -.22202E-04
  12  Prefactor     105.31        145.85       -.33258E-05   -.35694E-04
  13  Prefactor     .10000E-03    110.22        .14567E-06** at limit **
  14  Prefactor     .10000E-03    48.982        .17193E-06** at limit **
  15  norm          2.0360        1.9523       -.71625E-07   -.93122E-05
  16  Prefactor     .10000E-03    285.16       -.19569E-04** at limit **
  17  Prefactor     .10000E-03    10.189        .14592E-06** at limit **
  18  Prefactor     .10000E-03    36.522       -.40852E-06** at limit **
  19  norm          .10000E-03    25.570        .40572E-07** at limit **
  20  Prefactor     1.5310        14.060        .11828E-05   -.58051E-04
  21  Prefactor     .10000E-03    12.091        .21377E-06** at limit **
  22  norm          25.756        22.360       -.91503E-06   -.29507E-03
  23  Prefactor     6.2555        4.7716       -.18432E-06   -.44896E-04
  24  norm          .10001E-03    7.6672        .25827E-05** at limit **
  25  Prefactor     .10000E-03    24.108        .58088E-06** at limit **
  26  Prefactor     19.626        16.017       -.30892E-05   -.84213E-03
  27  norm          .10000E-03    .87586        .21630E-06** at limit **
  28  Normalizat    .76926        .22628        .55980E-05   -.42407E-03
  29  Prefactor     .94115        .28303       -.81728E-05   -.48250E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 14.2606
  norm       = 1.78895
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.40764
  Prefactor  = 2.6798
  norm       = 0.0001
  Prefactor  = 12.4658
  norm       = 0.0001
  norm       = 3.1477
  Prefactor  = 105.309
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.03602
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.53103
  Prefactor  = 0.0001
  norm       = 25.7563
  Prefactor  = 6.2555
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 19.6259
  norm       = 0.0001
  Normalizat = 0.769262
  Prefactor  = 0.941149
 **********
 **   18 **HESSE 
 **********

 FCN=   3165.476     FROM HESSE     STATUS=OK           557 CALLS     4278 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9908        .94976E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.261        37.955        .10605E-03   -1.4953    
   3  norm          1.7889        .77267        .30568E-04   -1.5440    
   4  norm          .10000E-03    5.6985        .13113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.4932        .27410E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.4076        4.3142        .80575E-04   -1.5128    
   7  Prefactor     2.6798        126.66        .24600E-03   -1.5381    
   8  norm          .10000E-03    19.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.466        13.074        .11359E-03   -1.5002    
  10  norm          .10000E-03    6.6102        .16472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.1477        2.0593        .63237E-04   -1.5353    
  12  Prefactor     105.31        145.99        .19550E-03   -1.3652    
  13  Prefactor     .10000E-03    110.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    49.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.0360        1.9635        .74778E-04   -1.5423    
  16  Prefactor     .10000E-03    281.76        .19641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    10.197        .17539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    36.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    25.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.5310        14.224        .34294E-03   -1.5460    
  21  Prefactor     .10000E-03    12.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          25.756        22.721        .78940E-04   -1.4693    
  23  Prefactor     6.2555        4.7641        .10250E-03   -1.5208    
  24  norm          .10001E-03    26.618        .42303E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    24.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     19.626        20.197        .90409E-04   -1.4822    
  27  norm          .10000E-03    .87878        .51399E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .76926        .24466        .22427E-03   -1.0122    
  29  Prefactor     .94115        .30157        .26821E-03   -.94718    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80976e-09
Minuit parameter uncertainties:
  1  7.97974e-07
  2  38.0197
  3  0.772675
  4  1.33046e-07
  5  5.87394e-06
  6  4.3144
  7  36.9289
  8  1.4952e-05
  9  13.0768
  10  9.46518e-05
  11  2.05931
  12  146.492
  13  0.000235141
  14  8.35581e-05
  15  1.96351
  16  2.80219e-05
  17  7.47636e-06
  18  6.60023e-05
  19  6.53512e-06
  20  9.33594
  21  7.82623e-06
  22  22.7285
  23  4.76437
  24  0.000733842
  25  1.65517e-05
  26  20.2044
  27  5.2755e-07
  28  0.24501
  29  0.302106
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
723   Normalization:  7.693e-01  2.450e-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.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/425119/likelihoodResults_258249601_258508801_4FGL_J1102.6+5251_daily_bin73.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) = 3165.47612226
delta logL = -1.67641760527e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3165.47610552
delta logL = -1.81003088073e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6413       1.0000          .0000       10.000    
     3 'Normalizat'    .76927       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94115       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3165.476     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      240 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    7802.8        .90712E-02** at limit **
   2  Index         2.7132        6.3063        .50000       -.25495E-05
   3  Normalizat    .76927        .94547E-01    .43208E-01    .10411E-04
   4  Prefactor     .94114        .12218        .45527E-01    .24491E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100019
  Index      = 2.71316
  Normalizat = 0.76927
  Prefactor  = 0.941141
 **********
 **   18 **HESSE 
 **********

 FCN=   3165.476     FROM HESSE     STATUS=OK            33 CALLS      273 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    342.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7132        6.3565        .50000       -.47503    
   3  Normalizat    .76927        .22308        .22425E-03   -1.0122    
   4  Prefactor     .94114        .29406        .26822E-03   -.94718    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.38551e-11
Minuit parameter uncertainties:
  1  0.0051129
  2  4.83058
  3  0.223344
  4  0.294563
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/425119': 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) = 3165.47610547
delta logL = 2.57650754065e-08

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  1.000e-04  5.113e-03  1.000e-04  1.000e+04 ( 1.000e-13)
395        Index:  2.713e+00  4.831e+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:  9.411e-01  2.946e-01  0.000e+00  1.000e+01 ( 1.000e+00)
725        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
726        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
723   Normalization:  7.693e-01  2.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 165.673 52.857

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/425119/cmap_HighResolution_258249601_258508801_4FGL_J1102.6+5251_daily_bin73.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.45e-03', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-09-03 03:23:52.170479', job_id='425119', GAL2='0.94', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1630664632.17', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='2.58e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='73' AND source_name='4FGL J1102.6+5251' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 03:23:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 425119: <4FGL_J1102.6+5251_daily_bin73> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1102.6+5251_daily_bin73 165.673 52.8569 258249601 258508801 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 :                                   650.13 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             335.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   663 sec.
    Turnaround time :                            744 sec.

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

