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


Performing analysis on: 4FGL_J1102.6+5251_daily_bin3
RA = 165.673, Dec = 52.8569
tmin = 240105601, tmax = 240364801
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='425007', job_status='RUN', time_executed='2021-09-03 03:12:44.435854', time_epoch_executed='1630663964.44' WHERE source_name='4FGL J1102.6+5251' and cadence='daily' and bin_id='3'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/425007

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/425007/ft1_4FGL_J1102.6+5251_daily_bin3.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/425007/ft2_4FGL_J1102.6+5251_daily_bin3.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/425007/ft1_4FGL_J1102.6+5251_daily_bin3.fits outfile=/scratch/kocevski/425007/ft1_filteredMKT_4FGL_J1102.6+5251_daily_bin3.fits ra=165.673 dec=52.8569 rad=12.0 tmin=240105601.0 tmax=240364801.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.52
user 1.25
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/425007/ft1_filtered_4FGL_J1102.6+5251_daily_bin3.fits" evtable="EVENTS" scfile=/scratch/kocevski/425007/ft2_4FGL_J1102.6+5251_daily_bin3.fits sctable="SC_DATA" outfile=/scratch/kocevski/425007/ltcube_240105601_240364801_4FGL_J1102.6+5251_daily_bin3.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/425007/ft2_4FGL_J1102.6+5251_daily_bin3.fits
.....................!
real 18.76
user 18.32
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/425007/ft1_filtered_4FGL_J1102.6+5251_daily_bin3.fits evtable="EVENTS" scfile=/scratch/kocevski/425007/ft2_4FGL_J1102.6+5251_daily_bin3.fits sctable="SC_DATA" expcube=/scratch/kocevski/425007/ltcube_240105601_240364801_4FGL_J1102.6+5251_daily_bin3.fits outfile=/scratch/kocevski/425007/expmap_240105601_240364801_4FGL_J1102.6+5251_daily_bin3.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/425007/ltcube_240105601_240364801_4FGL_J1102.6+5251_daily_bin3.fits
.....................!
real 191.77
user 186.32
sys 4.93

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 229 point sources and 0 extended sources

Setting source of interest to:
4FGL J1102.6+5251 @ 165.673 52.8569

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/425007/ft1_filtered_4FGL_J1102.6+5251_daily_bin3.fits scfile=/scratch/kocevski/425007/ft2_4FGL_J1102.6+5251_daily_bin3.fits outfile=/scratch/kocevski/425007/cmap_240105601_240364801_4FGL_J1102.6+5251_daily_bin3.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.61
user 0.38
sys 0.15

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

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.841       1.0000         .10000E-03   10000.    
     3 'norm      '    1.5445       1.0000         .10000E-03   10000.    
     4 'norm      '    .46089E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.1184       1.0000         .10000E-03   10000.    
     6 'norm      '    11.744       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.107       1.0000         .10000E-03   10000.    
    10 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.656       1.0000         .10000E-03   10000.    
    13 'Prefactor '    60.258       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.0071       1.0000         .10000E-03   10000.    
    16 'Prefactor '    100.49       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10292E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.0773       1.0000         .10000E-03   10000.    
    19 'norm      '    .10208E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.1348       1.0000         .10000E-03   10000.    
    24 'norm      '    .34651       1.0000         .10000E-03   10000.    
    25 'Prefactor '    49.636       1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.579       1.0000         .10000E-03   10000.    
    27 'norm      '    3.1096       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0740       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .70266       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=   3798.631     FROM MIGRAD    STATUS=CONVERGED    754 CALLS     3757 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.378        .15014E-05** at limit **
   2  Prefactor     14.832        35.106       -.29329E-06   -.71951E-06
   3  norm          1.5445        .62320       -.23556E-07   -.33144E-03
   4  norm          .11731E-03    11.821        .10674E-05** at limit **
   5  Prefactor     5.1220        8.0853       -.56809E-06   -.13665E-03
   6  norm          11.745        4.9524       -.15317E-06   -.31000E-03
   7  Prefactor     .10000E-03    42.509        .92663E-06** at limit **
   8  norm          .10000E-03    29.583        .49751E-06** at limit **
   9  Prefactor     27.101        24.152       -.40877E-06    .16171E-04
  10  norm          .10000E-03    2.3009       -.36961E-06** at limit **
  11  norm          .10000E-03    1.0709        .29595E-06** at limit **
  12  Prefactor     11.345        782.11       -.15359E-04   -.24866E-04
  13  Prefactor     60.302        156.78        .10429E-06   -.44173E-05
  14  Prefactor     .10000E-03    29.593        .56498E-07** at limit **
  15  norm          3.0076        2.8718       -.98933E-07   -.93405E-04
  16  Prefactor     100.44        135.42       -.43281E-05   -.83925E-04
  17  Prefactor     .10000E-03    66.565        .19405E-05** at limit **
  18  Prefactor     5.0158        557.82       -.20440E-05   -.94485E-05
  19  norm          .10000E-03    21.640       -.17135E-06** at limit **
  20  Prefactor     .10000E-03    10.547        .10358E-05** at limit **
  21  Prefactor     .10000E-03    25.641        .62590E-06** at limit **
  22  norm          .10000E-03    7.0567        .94973E-07** at limit **
  23  Prefactor     1.1336        3.9911        .42666E-07    .12143E-04
  24  norm          .33879        7.4797       -.84333E-06    .32871E-03
  25  Prefactor     49.641        36.256        .13424E-07   -.12336E-04
  26  Prefactor     15.587        14.509       -.11698E-05   -.10377E-03
  27  norm          3.1087        3.3860       -.13851E-06   -.12195E-04
  28  Normalizat    1.0740        .25767        .57447E-05   -.36169E-03
  29  Prefactor     .70279        .28758       -.88792E-05   -.13885E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 14.8323
  norm       = 1.54447
  norm       = 0.000117313
  Prefactor  = 5.12202
  norm       = 11.7454
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 27.1012
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 11.3454
  Prefactor  = 60.3019
  Prefactor  = 0.0001
  norm       = 3.00764
  Prefactor  = 100.442
  Prefactor  = 0.0001
  Prefactor  = 5.01584
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.13361
  norm       = 0.338795
  Prefactor  = 49.6415
  Prefactor  = 15.5868
  norm       = 3.10874
  Normalizat = 1.07399
  Prefactor  = 0.702794
 **********
 **   18 **HESSE 
 **********

 FCN=   3798.631     FROM HESSE     STATUS=OK           561 CALLS     4318 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.832        35.105        .10397E-03   -1.4938    
   3  norm          1.5445        .62619        .29857E-04   -1.5459    
   4  norm          .11731E-03    17.081        .68193E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.1220        8.0652        .17771E-03   -1.5255    
   6  norm          11.745        4.9470        .84044E-04   -1.5022    
   7  Prefactor     .10000E-03    42.761        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    29.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     27.101        23.849        .76946E-04   -1.4666    
  10  norm          .10000E-03    2.3120        .17987E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.1258        .12467E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.345        801.13        .11734E-03   -1.5034    
  13  Prefactor     60.302        156.58        .51687E-04   -1.4153    
  14  Prefactor     .10000E-03    29.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.0076        2.8711        .96396E-04   -1.5361    
  16  Prefactor     100.44        134.87        .20052E-03   -1.3700    
  17  Prefactor     .10000E-03    67.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.0158        564.25        .17844E-03   -1.5260    
  19  norm          .10000E-03    21.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    25.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    7.0583        .15992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.1336        3.8246        .19824E-03   -1.5495    
  24  norm          .33879        78.749        .28411E-02   -1.5592    
  25  Prefactor     49.641        35.360        .56920E-04   -1.4298    
  26  Prefactor     15.587        16.098        .10148E-03   -1.4918    
  27  norm          3.1087        3.3748        .11194E-03   -1.5355    
  28  Normalizat    1.0740        .26396        .21674E-03   -.90591    
  29  Prefactor     .70279        .29395        .32651E-03   -1.0342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.1191e-09
Minuit parameter uncertainties:
  1  0.000126148
  2  35.154
  3  0.62619
  4  0.0344036
  5  8.06689
  6  4.94719
  7  0.000123701
  8  7.58582e-05
  9  23.8575
  10  2.9643e-06
  11  6.54837e-06
  12  193.432
  13  157.668
  14  2.25573e-06
  15  2.87122
  16  135.282
  17  0.000352278
  18  107.453
  19  1.27801e-05
  20  7.45493e-05
  21  7.90501e-05
  22  8.66702e-06
  23  3.82544
  24  10.3428
  25  35.3752
  26  16.1022
  27  3.37503
  28  0.264284
  29  0.294604
Done.

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

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  1.004e+02  1.353e+02  1.000e-04  1.000e+04 ( 1.000e-13)
395        Index:  2.669e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
396        Scale:  5.635e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
724    Prefactor:  7.028e-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:  1.074e+00  2.643e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.86
Ra Dec: 165.673 52.857
Photon Flux Upper Limit: 2.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.62e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/425007/likelihoodResults_240105601_240364801_4FGL_J1102.6+5251_daily_bin3.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) = 3798.37323886
delta logL = 0.25761324707

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3798.35622537
delta logL = 0.274626735573

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.821       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5227       1.0000          .0000       10.000    
     3 'Normalizat'    1.0271       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74636       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=   3798.356     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      309 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.896        136.66        .54175E-04   -.18257E-04
   2  Index         3.5219        1.7750        .62614E-02    .22361E-03
   3  Normalizat    1.0273        .25130        .22100E-03    .67002E-04
   4  Prefactor     .74613        .30013        .31782E-03   -.44070E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.8964
  Index      = 3.52185
  Normalizat = 1.02731
  Prefactor  = 0.746129
 **********
 **   18 **HESSE 
 **********

 FCN=   3798.356     FROM HESSE     STATUS=OK            25 CALLS      334 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.896        109.45        .21670E-05   -1.4225    
   2  Index         3.5219        1.4277        .12523E-02   -.30011    
   3  Normalizat    1.0273        .25147        .88401E-05   -.92121    
   4  Prefactor     .74613        .29941        .12713E-04   -1.0175    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17941e-10
Minuit parameter uncertainties:
  1  109.859
  2  1.44983
  3  0.251765
  4  0.300058
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/425007': 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) = 3798.35622473
delta logL = 0.274627381075

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  5.490e+01  1.099e+02  1.000e-04  1.000e+04 ( 1.000e-13)
395        Index:  3.522e+00  1.450e+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:  7.461e-01  3.001e-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.027e+00  2.518e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.49
Ra Dec: 165.673 52.857
Photon Index (Free Index): 3.52 +/- 1.45
Photon Flux (Free Index): 9.63e-08 +/- 9.42e-08
Energy Flux (Free Index): 1.59e-05 +/- 1.57e-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/425007/cmap_HighResolution_240105601_240364801_4FGL_J1102.6+5251_daily_bin3.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.62e-02', comment='SUCCESS', energy_flux2='1.59e-05', dlogl='2.75e-01', photon_flux2='9.63e-08', job_status='DONE', time_completed='2021-09-03 03:24:49.682618', photon_index_error2='1.45', photon_index2='3.52', ts='0.86', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='2.06e-07', energy_flux_error2='1.57e-05', EG='1.07', time_epoch_completed='1630664689.68', return_code='0', job_id='425007', GAL2='0.75', EG2='1.03', return_code2='0', photon_flux_error2='9.42e-08', ts2='1.49', photon_index='2.67' WHERE bin_id='3' AND source_name='4FGL J1102.6+5251' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 03:24:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 425007: <4FGL_J1102.6+5251_daily_bin3> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1102.6+5251_daily_bin3 165.673 52.8569 240105601 240364801 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 :                                   723.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             307.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            810 sec.

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

