/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 49 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 = 7537
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1013.7+3444_daily_bin1645
RA = 153.449, Dec = 34.7384
tmin = 665712001, tmax = 665971201
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='620577', job_status='RUN', time_executed='2022-02-08 00:10:53.802184', time_epoch_executed='1644307853.8' WHERE source_name='4FGL J1013.7+3444' and cadence='daily' and bin_id='1645'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/620577

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/620577/ft1_4FGL_J1013.7+3444_daily_bin1645.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/620577/ft2_4FGL_J1013.7+3444_daily_bin1645.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/620577/ft1_4FGL_J1013.7+3444_daily_bin1645.fits outfile=/scratch/kocevski/620577/ft1_filteredMKT_4FGL_J1013.7+3444_daily_bin1645.fits ra=153.449 dec=34.7384 rad=12.0 tmin=665712001.0 tmax=665971201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.99
user 3.33
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/620577/ft2_4FGL_J1013.7+3444_daily_bin1645.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/620577/ft2_4FGL_J1013.7+3444_daily_bin1645.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/620577/ft1_filteredMKT_4FGL_J1013.7+3444_daily_bin1645.fits evtable="EVENTS" outfile="/scratch/kocevski/620577/ft1_filtered_4FGL_J1013.7+3444_daily_bin1645.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 2.86
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/620577/ft1_filtered_4FGL_J1013.7+3444_daily_bin1645.fits" evtable="EVENTS" scfile=/scratch/kocevski/620577/ft2_4FGL_J1013.7+3444_daily_bin1645.fits sctable="SC_DATA" outfile=/scratch/kocevski/620577/ltcube_665712001_665971201_4FGL_J1013.7+3444_daily_bin1645.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/620577/ft2_4FGL_J1013.7+3444_daily_bin1645.fits
.....................!
real 19.99
user 19.23
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/620577/ft1_filtered_4FGL_J1013.7+3444_daily_bin1645.fits evtable="EVENTS" scfile=/scratch/kocevski/620577/ft2_4FGL_J1013.7+3444_daily_bin1645.fits sctable="SC_DATA" expcube=/scratch/kocevski/620577/ltcube_665712001_665971201_4FGL_J1013.7+3444_daily_bin1645.fits outfile=/scratch/kocevski/620577/expmap_665712001_665971201_4FGL_J1013.7+3444_daily_bin1645.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/620577/ltcube_665712001_665971201_4FGL_J1013.7+3444_daily_bin1645.fits
.....................!
real 190.91
user 185.14
sys 5.18

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 192 point sources and 0 extended sources

Setting source of interest to:
4FGL J1013.7+3444 @ 153.449 34.7384

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/620577/ft1_filtered_4FGL_J1013.7+3444_daily_bin1645.fits scfile=/scratch/kocevski/620577/ft2_4FGL_J1013.7+3444_daily_bin1645.fits outfile=/scratch/kocevski/620577/cmap_665712001_665971201_4FGL_J1013.7+3444_daily_bin1645.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=153.449 yref=34.7384 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.59
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/620577/ft1_filtered_4FGL_J1013.7+3444_daily_bin1645.fits scfile=/scratch/kocevski/620577/ft2_4FGL_J1013.7+3444_daily_bin1645.fits outfile=/scratch/kocevski/620577/cmap_HighResolution_665712001_665971201_4FGL_J1013.7+3444_daily_bin1645.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=153.449 yref=34.7384 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.59
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/620577/ft1_filtered_4FGL_J1013.7+3444_daily_bin1645.fits evtable="EVENTS" scfile=/scratch/kocevski/620577/ft2_4FGL_J1013.7+3444_daily_bin1645.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/620577/Model_4FGL_J1013.7+3444_daily_bin1645.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/620577/ft1_filtered_4FGL_J1013.7+3444_daily_bin1645.fits.....................!
real 50.77
user 49.42
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/620577/ft1_filtered_4FGL_J1013.7+3444_daily_bin1645.fits', '/scratch/kocevski/620577/ft2_4FGL_J1013.7+3444_daily_bin1645.fits', expMap='/scratch/kocevski/620577/expmap_665712001_665971201_4FGL_J1013.7+3444_daily_bin1645.fits', expCube='/scratch/kocevski/620577/ltcube_665712001_665971201_4FGL_J1013.7+3444_daily_bin1645.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/620577/Model_4FGL_J1013.7+3444_daily_bin1645.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1013.7+3444'

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  1.162e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
279        Index:  2.591e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  6.948e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/620577/ft1_filtered_4FGL_J1013.7+3444_daily_bin1645.fits
Spacecraft file(s): /scratch/kocevski/620577/ft2_4FGL_J1013.7+3444_daily_bin1645.fits
Exposure map: /scratch/kocevski/620577/expmap_665712001_665971201_4FGL_J1013.7+3444_daily_bin1645.fits
Exposure cube: /scratch/kocevski/620577/ltcube_665712001_665971201_4FGL_J1013.7+3444_daily_bin1645.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/620577/Model_4FGL_J1013.7+3444_daily_bin1645.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) = 5987.22118785

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .47985E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.0400       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.527       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.1902       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.8184       1.0000         .10000E-03   10000.    
    10 'norm      '    13.826       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.3565       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10599E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.8322       1.0000         .10000E-03   10000.    
    14 'norm      '    4.5094       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.747       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    33.683       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .74799       1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.277       1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.8000       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .98990       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .94245       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5987.218     FROM MIGRAD    STATUS=CONVERGED    654 CALLS     3290 TOTAL
                     EDM=   .98E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10208E-03    5.9125       -.11288E-05** at limit **
   2  Prefactor     3.0408        2.7091       -.95783E-07   -.13397E-04
   3  norm          .10000E-03    3.8125       -.18225E-07** at limit **
   4  Prefactor     20.524        30.072       -.32546E-05   -.39967E-05
   5  Prefactor     .10000E-03    5.4493       -.84924E-07** at limit **
   6  Prefactor     .10000E-03    12.199       -.48296E-06** at limit **
   7  Prefactor     6.1905        7.3297        .90780E-06   -.14425E-03
   8  Prefactor     .10000E-03    2.3792       -.11201E-07** at limit **
   9  Prefactor     6.8186        3.2470        .36846E-06   -.91227E-04
  10  norm          13.826        8.8929       -.13143E-06   -.24244E-04
  11  Prefactor     2.3567        4.2923       -.11023E-05   -.57589E-03
  12  Prefactor     .10000E-03    58.191       -.46562E-04** at limit **
  13  Prefactor     4.8321        4.4029       -.39361E-06   -.27312E-05
  14  norm          4.5072        5.5007       -.72462E-06   -.11816E-02
  15  Prefactor     .10000E-03    16.261        .91486E-06** at limit **
  16  Prefactor     16.747        22.503       -.49247E-07    .16790E-04
  17  Prefactor     .10000E-03    1.8819        .66929E-07** at limit **
  18  Prefactor     .10000E-03    2.5583        .52130E-07** at limit **
  19  Prefactor     33.679        28.587       -.17296E-05    .23627E-04
  20  Prefactor     .10000E-03    7.4729        .89950E-07** at limit **
  21  Prefactor     .10000E-03    70.025        .79351E-04** at limit **
  22  Prefactor     .10000E-03    4.0821        .46135E-07** at limit **
  23  norm          .74798        .26872       -.23278E-07   -.16214E-03
  24  Prefactor     13.277        12.392        .16371E-05   -.20222E-04
  25  Prefactor     9.7999        10.391       -.28336E-06    .90128E-05
  26  Normalizat    .98982        .16337        .80259E-06    .34552E-03
  27  Prefactor     .94257        .19314       -.12158E-06    .28509E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000102081
  Prefactor  = 3.04082
  norm       = 0.0001
  Prefactor  = 20.5242
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.19049
  Prefactor  = 0.0001
  Prefactor  = 6.81864
  norm       = 13.8262
  Prefactor  = 2.35673
  Prefactor  = 0.000100002
  Prefactor  = 4.83211
  norm       = 4.50723
  Prefactor  = 0.0001
  Prefactor  = 16.7469
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.6788
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.747985
  Prefactor  = 13.2772
  Prefactor  = 9.79987
  Normalizat = 0.989816
  Prefactor  = 0.94257
 **********
 **   18 **HESSE 
 **********

 FCN=   5987.218     FROM HESSE     STATUS=OK           496 CALLS     3786 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10208E-03    7.5016        .55661E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.0408        2.7026        .11593E-03   -1.5359    
   3  norm          .10000E-03    3.8136        .14756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.524        30.091        .88405E-04   -1.4802    
   5  Prefactor     .10000E-03    5.4551        .17641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    12.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.1905        7.3114        .16135E-03   -1.5210    
   8  Prefactor     .10000E-03    2.3808        .11655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.8186        3.2457        .90723E-04   -1.5186    
  10  norm          13.826        8.8906        .10772E-03   -1.4964    
  11  Prefactor     2.3567        4.2348        .18288E-03   -1.5401    
  12  Prefactor     .10000E-03    58.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.8321        4.3395        .13269E-03   -1.5268    
  14  norm          4.5072        5.5187        .94797E-03   -1.5283    
  15  Prefactor     .10000E-03    16.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     16.747        22.454        .97870E-04   -1.4889    
  17  Prefactor     .10000E-03    1.9071        .10354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.5903        .12057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     33.679        28.573        .69045E-04   -1.4547    
  20  Prefactor     .10000E-03    7.4792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    69.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.0897        .15268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .74798        .26890        .23021E-04   -1.5535    
  24  Prefactor     13.277        12.385        .10993E-03   -1.4979    
  25  Prefactor     9.7999        10.401        .12801E-03   -1.5082    
  26  Normalizat    .98982        .18874        .22751E-03   -.93372    
  27  Prefactor     .94257        .22232        .28207E-03   -.94669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04801e-09
Minuit parameter uncertainties:
  1  0.00790235
  2  2.70267
  3  2.5201e-07
  4  30.1131
  5  8.99545e-07
  6  4.90249e-06
  7  7.31249
  8  2.25323e-06
  9  3.24579
  10  8.89148
  11  4.23532
  12  0.000600743
  13  4.33978
  14  5.51932
  15  9.61458e-07
  16  22.465
  17  8.00102e-06
  18  6.57481e-06
  19  28.5849
  20  2.92846e-06
  21  3.70923e-05
  22  1.61162e-06
  23  0.268904
  24  12.3879
  25  10.4028
  26  0.18887
  27  0.222539
Done.

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

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  2.357e+00  4.235e+00  1.000e-04  1.000e+04 ( 1.000e-12)
279        Index:  2.591e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
280        Scale:  6.948e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  9.426e-01  2.225e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  9.898e-01  1.889e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.45
Ra Dec: 153.449 34.738
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/620577/likelihoodResults_665712001_665971201_4FGL_J1013.7+3444_daily_bin1645.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) = 5986.67067662
delta logL = 0.546973131587

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5986.65635544
delta logL = 0.561294310972

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5986.656     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      301 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55277        7.9621        .10833E-01    .78056E-03
   2  Index         4.1615        3.3637        .13177        .94173E-04
   3  Normalizat    .94560        .37947E-01    .45481E-01   -.38768E-03
   4  Prefactor     .97882        .46311E-01    .46003E-01    .97652E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.552771
  Index      = 4.16153
  Normalizat = 0.945596
  Prefactor  = 0.978821
 **********
 **   18 **HESSE 
 **********

 FCN=   5986.656     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      334 TOTAL
                     EDM=   .57E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55277        20.834        .49437E-03   -1.5559    
   2  Index         4.1615        7.0687        .65781E-02   -.16849    
   3  Normalizat    .94560        .15256        .23195E-03   -.94876    
   4  Prefactor     .97882        .18365        .27738E-03   -.93439    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.74927e-07
Minuit parameter uncertainties:
  1  6.78918
  2  7.39743
  3  0.152626
  4  0.183767
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/620577': 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) = 5986.65635527
delta logL = 0.561294480203

Extracting fit parameters...

4FGL J1013.7+3444
   Spectrum: PowerLaw
278    Prefactor:  5.528e-01  6.789e+00  1.000e-04  1.000e+04 ( 1.000e-12)
279        Index:  4.162e+00  7.397e+00  0.000e+00  1.000e+01 (-1.000e+00)
280        Scale:  6.948e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  9.788e-01  1.838e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  9.456e-01  1.526e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.66
Ra Dec: 153.449 34.738
Photon Index (Free Index): 4.16 +/- 7.40
Photon Flux (Free Index): 5.60e-08 +/- 4.98e-08
Energy Flux (Free Index): 8.17e-06 +/- 1.29e-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/620577/cmap_HighResolution_665712001_665971201_4FGL_J1013.7+3444_daily_bin1645.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.14e-03', comment='SUCCESS', energy_flux2='8.17e-06', dlogl='5.61e-01', photon_flux2='5.60e-08', job_status='DONE', time_completed='2022-02-08 00:23:56.920739', photon_index_error2='7.40', photon_index2='4.16', ts='0.45', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='1.29e-05', EG='0.99', time_epoch_completed='1644308636.92', return_code='0', job_id='620577', GAL2='0.98', EG2='0.95', return_code2='102', photon_flux_error2='4.98e-08', ts2='1.66', photon_index='2.59' WHERE bin_id='1645' AND source_name='4FGL J1013.7+3444' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Feb  8 00:23:56 PST 2022



------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 620524: <4FGL_J1013.7+3444_daily_bin1645> in cluster <slac> Done

Job <4FGL_J1013.7+3444_daily_bin1645> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Feb  8 00:07:23 2022
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb  8 00:07:38 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb  8 00:07:38 2022
Terminated at Tue Feb  8 00:23:30 2022
Results reported at Tue Feb  8 00:23:30 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1013.7+3444_daily_bin1645 153.449 34.7384 665712001 665971201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1013.7+3444 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   779.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            967 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 620577: <4FGL_J1013.7+3444_daily_bin1645> in cluster <slac> Done

Job <4FGL_J1013.7+3444_daily_bin1645> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Feb  8 00:07:26 2022
Job was executed on host(s) <bullet0162>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Feb  8 00:07:46 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Feb  8 00:07:46 2022
Terminated at Tue Feb  8 00:23:57 2022
Results reported at Tue Feb  8 00:23:57 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1013.7+3444_daily_bin1645 153.449 34.7384 665712001 665971201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1013.7+3444 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   779.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             287.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            991 sec.

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

