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


Performing analysis on: 4FGL_J1102.6+5251_daily_bin5
RA = 165.673, Dec = 52.8569
tmin = 240624001, tmax = 240883201
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='425010', job_status='RUN', time_executed='2021-09-03 03:13:39.673108', time_epoch_executed='1630664019.67' WHERE source_name='4FGL J1102.6+5251' and cadence='daily' and bin_id='5'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/425010

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/425010/ft1_4FGL_J1102.6+5251_daily_bin5.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/425010/ft2_4FGL_J1102.6+5251_daily_bin5.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/425010/ft1_4FGL_J1102.6+5251_daily_bin5.fits outfile=/scratch/kocevski/425010/ft1_filteredMKT_4FGL_J1102.6+5251_daily_bin5.fits ra=165.673 dec=52.8569 rad=12.0 tmin=240624001.0 tmax=240883201.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.54
user 1.21
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/425010/ft2_4FGL_J1102.6+5251_daily_bin5.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/425010/ft1_filteredMKT_4FGL_J1102.6+5251_daily_bin5.fits evtable="EVENTS" outfile="/scratch/kocevski/425010/ft1_filtered_4FGL_J1102.6+5251_daily_bin5.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.35
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/425010/ft1_filtered_4FGL_J1102.6+5251_daily_bin5.fits evtable="EVENTS" scfile=/scratch/kocevski/425010/ft2_4FGL_J1102.6+5251_daily_bin5.fits sctable="SC_DATA" expcube=/scratch/kocevski/425010/ltcube_240624001_240883201_4FGL_J1102.6+5251_daily_bin5.fits outfile=/scratch/kocevski/425010/expmap_240624001_240883201_4FGL_J1102.6+5251_daily_bin5.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/425010/ltcube_240624001_240883201_4FGL_J1102.6+5251_daily_bin5.fits
.....................!
real 192.21
user 186.46
sys 5.31

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/425010/ft1_filtered_4FGL_J1102.6+5251_daily_bin5.fits scfile=/scratch/kocevski/425010/ft2_4FGL_J1102.6+5251_daily_bin5.fits outfile=/scratch/kocevski/425010/cmap_240624001_240883201_4FGL_J1102.6+5251_daily_bin5.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/425010/ft1_filtered_4FGL_J1102.6+5251_daily_bin5.fits scfile=/scratch/kocevski/425010/ft2_4FGL_J1102.6+5251_daily_bin5.fits outfile=/scratch/kocevski/425010/cmap_HighResolution_240624001_240883201_4FGL_J1102.6+5251_daily_bin5.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.58
user 0.37
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .35203E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.5034       1.0000         .10000E-03   10000.    
     4 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    8.0250       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12110E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    12.663       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.1725       1.0000         .10000E-03   10000.    
    11 'norm      '    .93972       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .75445E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    36.993       1.0000         .10000E-03   10000.    
    15 'norm      '    3.9065       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10803E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    89.138       1.0000         .10000E-03   10000.    
    19 'norm      '    .56920E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.0689       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.9415       1.0000         .10000E-03   10000.    
    22 'norm      '    9.6483       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .11892E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.0143       1.0000         .10000E-03   10000.    
    27 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0693       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .85827       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=   4362.133     FROM MIGRAD    STATUS=CONVERGED   1330 CALLS     4917 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    111.76        .41813E-02** at limit **
   2  Prefactor     .10000E-03    31.809        .18142E-02** at limit **
   3  norm          3.5037        1.1127        .37071E-04    .96498E-03
   4  norm          .10000E-03    20.264        .18142E-02** at limit **
   5  Prefactor     .10000E-03    9.3383        .18142E-02** at limit **
   6  norm          8.0248        3.9614        .89620E-04    .56197E-04
   7  Prefactor     .77849E-03    57.590        .12813    ** at limit **
   8  norm          12.650        24.317        .11257E-03    .14947E-04
   9  Prefactor     .10000E-03    9.7310        .18142E-02** at limit **
  10  norm          4.1719        2.8649        .89466E-04    .47004E-03
  11  norm          .94323        1.4222        .10804E-02   -.11768E-02
  12  Prefactor     .10000E-03    54.658        .18142E-02** at limit **
  13  Prefactor     .10000E-03    290.77        .20937E-02** at limit **
  14  Prefactor     36.988        82.640        .65894E-04    .11111E-04
  15  norm          3.9017        2.9030        .93596E-04    .95837E-03
  16  Prefactor     .10000E-03    60.227        .18142E-02** at limit **
  17  Prefactor     .10000E-03    11.339        .18142E-02** at limit **
  18  Prefactor     88.946        109.66        .21279E-03   -.15814E-04
  19  norm          .11989        47.552        .15483        .14054E-03
  20  Prefactor     4.0675        7.7679        .99941E-03    .98671E-04
  21  Prefactor     3.9432        37.606        .20319E-03    .10670E-03
  22  norm          9.6485        9.7563        .12901E-03    .12134E-03
  23  Prefactor     .10000E-03    1.3265        .73881E-03** at limit **
  24  norm          .10000E-03    10.069        .36285E-02** at limit **
  25  Prefactor     .10000E-03    6.5347        .16484E-02** at limit **
  26  Prefactor     2.0221        13.384        .29165E-03    .31184E-03
  27  norm          .10000E-03    1.4731        .15360E-03** at limit **
  28  Normalizat    1.0692        .22633        .21882E-03    .30434E-03
  29  Prefactor     .85838        .28444        .30812E-03    .18478E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  norm       = 3.50368
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.02485
  Prefactor  = 0.000778494
  norm       = 12.6505
  Prefactor  = 0.0001
  norm       = 4.1719
  norm       = 0.943234
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 36.9879
  norm       = 3.90174
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 88.9464
  norm       = 0.119888
  Prefactor  = 4.06749
  Prefactor  = 3.94317
  norm       = 9.64846
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 2.02211
  norm       = 0.0001
  Normalizat = 1.0692
  Prefactor  = 0.858385
 **********
 **   18 **HESSE 
 **********

 FCN=   4362.133     FROM HESSE     STATUS=OK           547 CALLS     5464 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    114.72        .16725E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    31.810        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.5037        1.1123        .74142E-05   -1.5334    
   4  norm          .10000E-03    20.276        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.3464        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.0248        3.9613        .35848E-05   -1.5141    
   7  Prefactor     .77849E-03    58.382        .12703       -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          12.650        24.316        .45027E-05   -1.4996    
   9  Prefactor     .10000E-03    9.7314        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.1719        2.8649        .35787E-05   -1.5299    
  11  norm          .94323        1.4216        .43215E-04   -1.5514    
  12  Prefactor     .10000E-03    54.660        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    290.78        .41873E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     36.988        82.634        .13179E-04   -1.4491    
  15  norm          3.9017        2.9028        .37438E-05   -1.5313    
  16  Prefactor     .10000E-03    60.231        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.339        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     88.946        109.65        .85116E-05   -1.3819    
  19  norm          .11989        47.499        .15499       -1.5639    
  20  Prefactor     4.0675        7.7614        .39976E-04   -1.5305    
  21  Prefactor     3.9432        37.581        .81276E-05   -1.5311    
  22  norm          9.6485        9.7562        .51605E-05   -1.5087    
  23  Prefactor     .10000E-03    1.3266        .14776E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    10.123        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.5348        .32967E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.0221        13.352        .11666E-04   -1.5424    
  27  norm          .10000E-03    1.4732        .30720E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0692        .22644        .43764E-04   -.90747    
  29  Prefactor     .85838        .28468        .12325E-04   -.97611    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60273e-09
Minuit parameter uncertainties:
  1  0.00219929
  2  3.41307e-05
  3  1.11231
  4  0.000123141
  5  7.69537e-05
  6  3.96144
  7  0.398443
  8  24.3351
  9  2.69471e-05
  10  2.86495
  11  1.42164
  12  0.000312798
  13  0.00190697
  14  82.8912
  15  2.90292
  16  0.000747988
  17  0.000108136
  18  109.905
  19  4.77448
  20  7.7633
  21  24.3664
  22  9.75783
  23  3.75022e-07
  24  0.000375235
  25  6.36023e-06
  26  10.3953
  27  1.072e-06
  28  0.226643
  29  0.285175
Done.

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

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  1.000e-04  7.480e-04  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.584e-01  2.852e-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.069e+00  2.266e-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: 9.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/425010/likelihoodResults_240624001_240883201_4FGL_J1102.6+5251_daily_bin5.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) = 4362.13318944
delta logL = -7.90098238213e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4362.13311026
delta logL = 1.67202415469e-07

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 'Index     '    3.3000       1.0000          .0000       10.000    
     3 'Normalizat'    1.0692       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85839       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=   4362.133     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      239 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    136.35        .90712E-02** at limit **
   2  Index         3.2970        7.5452        .50000        .39606E-06
   3  Normalizat    1.0692        .63151E-02    .39421E-01    .67999E-05
   4  Prefactor     .85838        .80991E-02    .69641E-01    .13670E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.29697
  Normalizat = 1.06919
  Prefactor  = 0.858385
 **********
 **   18 **HESSE 
 **********

 FCN=   4362.133     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      272 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    712.38        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.2970        8.1178        .50000       -.34756    
   3  Normalizat    1.0692        .14622E-01    .21882E-03   -.90747    
   4  Prefactor     .85838        .18726E-01    .30812E-03   -.97611    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.57423e-09
Minuit parameter uncertainties:
  1  0.000298457
  2  1056.38
  3  0.014622
  4  0.0187266
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/425010': 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): 102
logL (Free Index) = 4362.13311026
delta logL = 1.67677171703e-07

Extracting fit parameters...

4FGL J1102.6+5251
   Spectrum: PowerLaw
394    Prefactor:  1.000e-04  2.985e-04  1.000e-04  1.000e+04 ( 1.000e-13)
395        Index:  3.297e+00  1.056e+03  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.584e-01  1.873e-02  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.069e+00  1.462e-02  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/425010/cmap_HighResolution_240624001_240883201_4FGL_J1102.6+5251_daily_bin5.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.38e-03', job_status='DONE', photon_flux_upper_limit='9.39e-08', time_completed='2021-09-03 03:27:54.129442', job_id='425010', GAL2='0.86', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1630664874.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='1.68e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.67' WHERE bin_id='5' AND source_name='4FGL J1102.6+5251' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 03:27:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 425010: <4FGL_J1102.6+5251_daily_bin5> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1102.6+5251_daily_bin5 165.673 52.8569 240624001 240883201 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 :                                   852.23 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             277.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            993 sec.

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

