/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 83 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 = 7357
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1748.0+3403_daily_bin1049
RA = 267.011, Dec = 34.0641
tmin = 511228801, tmax = 511488001
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='170086', job_status='RUN', time_executed='2021-09-18 14:37:00.483336', time_epoch_executed='1632001020.48' WHERE source_name='4FGL J1748.0+3403' and cadence='daily' and bin_id='1049'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/170086

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/170086/ft1_4FGL_J1748.0+3403_daily_bin1049.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/170086/ft2_4FGL_J1748.0+3403_daily_bin1049.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/170086/ft1_4FGL_J1748.0+3403_daily_bin1049.fits outfile=/scratch/kocevski/170086/ft1_filteredMKT_4FGL_J1748.0+3403_daily_bin1049.fits ra=267.011 dec=34.0641 rad=12.0 tmin=511228801.0 tmax=511488001.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.46
user 3.22
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/170086/ft2_4FGL_J1748.0+3403_daily_bin1049.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/170086/ft2_4FGL_J1748.0+3403_daily_bin1049.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/170086/ft1_filteredMKT_4FGL_J1748.0+3403_daily_bin1049.fits evtable="EVENTS" outfile="/scratch/kocevski/170086/ft1_filtered_4FGL_J1748.0+3403_daily_bin1049.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/170086/ft1_filtered_4FGL_J1748.0+3403_daily_bin1049.fits" evtable="EVENTS" scfile=/scratch/kocevski/170086/ft2_4FGL_J1748.0+3403_daily_bin1049.fits sctable="SC_DATA" outfile=/scratch/kocevski/170086/ltcube_511228801_511488001_4FGL_J1748.0+3403_daily_bin1049.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/170086/ft2_4FGL_J1748.0+3403_daily_bin1049.fits
.....................!
real 11.72
user 11.36
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/170086/ft1_filtered_4FGL_J1748.0+3403_daily_bin1049.fits evtable="EVENTS" scfile=/scratch/kocevski/170086/ft2_4FGL_J1748.0+3403_daily_bin1049.fits sctable="SC_DATA" expcube=/scratch/kocevski/170086/ltcube_511228801_511488001_4FGL_J1748.0+3403_daily_bin1049.fits outfile=/scratch/kocevski/170086/expmap_511228801_511488001_4FGL_J1748.0+3403_daily_bin1049.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/170086/ltcube_511228801_511488001_4FGL_J1748.0+3403_daily_bin1049.fits
.....................!
real 190.92
user 185.38
sys 5.15

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

Setting source of interest to:
4FGL J1748.0+3403 @ 267.011 34.0641

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/170086/ft1_filtered_4FGL_J1748.0+3403_daily_bin1049.fits scfile=/scratch/kocevski/170086/ft2_4FGL_J1748.0+3403_daily_bin1049.fits outfile=/scratch/kocevski/170086/cmap_511228801_511488001_4FGL_J1748.0+3403_daily_bin1049.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=267.011 yref=34.0641 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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/170086/ft1_filtered_4FGL_J1748.0+3403_daily_bin1049.fits scfile=/scratch/kocevski/170086/ft2_4FGL_J1748.0+3403_daily_bin1049.fits outfile=/scratch/kocevski/170086/cmap_HighResolution_511228801_511488001_4FGL_J1748.0+3403_daily_bin1049.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=267.011 yref=34.0641 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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/170086/ft1_filtered_4FGL_J1748.0+3403_daily_bin1049.fits evtable="EVENTS" scfile=/scratch/kocevski/170086/ft2_4FGL_J1748.0+3403_daily_bin1049.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/170086/Model_4FGL_J1748.0+3403_daily_bin1049.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/170086/ft1_filtered_4FGL_J1748.0+3403_daily_bin1049.fits.....................!
real 72.63
user 71.21
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/170086/ft1_filtered_4FGL_J1748.0+3403_daily_bin1049.fits', '/scratch/kocevski/170086/ft2_4FGL_J1748.0+3403_daily_bin1049.fits', expMap='/scratch/kocevski/170086/expmap_511228801_511488001_4FGL_J1748.0+3403_daily_bin1049.fits', expCube='/scratch/kocevski/170086/ltcube_511228801_511488001_4FGL_J1748.0+3403_daily_bin1049.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/170086/Model_4FGL_J1748.0+3403_daily_bin1049.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1748.0+3403'

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  4.182e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
334        Index:  2.337e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
335        Scale:  1.176e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/170086/ft1_filtered_4FGL_J1748.0+3403_daily_bin1049.fits
Spacecraft file(s): /scratch/kocevski/170086/ft2_4FGL_J1748.0+3403_daily_bin1049.fits
Exposure map: /scratch/kocevski/170086/expmap_511228801_511488001_4FGL_J1748.0+3403_daily_bin1049.fits
Exposure cube: /scratch/kocevski/170086/ltcube_511228801_511488001_4FGL_J1748.0+3403_daily_bin1049.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/170086/Model_4FGL_J1748.0+3403_daily_bin1049.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) = 9094.95856113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .90586       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    14.297       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    40.333       1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.877       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.0910       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10272E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    24.350       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.4299       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.520       1.0000         .10000E-03   10000.    
    20 'norm      '    30.988       1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.403       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0508       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94064       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9094.897     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     3095 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .90582        .81311        .81309E-07   -.38892E-03
   2  norm          .10000E-03    6.6023        .90130E-07** at limit **
   3  Prefactor     .10000E-03    21.849       -.10028E-04** at limit **
   4  norm          14.297        5.7615        .25813E-06   -.83637E-04
   5  Prefactor     .10000E-03    26.808        .65048E-05** at limit **
   6  Prefactor     40.379        118.37        .69638E-04   -.11902E-05
   7  Prefactor     29.877        18.271       -.33307E-05   -.48016E-04
   8  Prefactor     .10000E-03    24.839        .60778E-06** at limit **
   9  Prefactor     5.0910        6.0610        .19208E-07   -.14113E-03
  10  Prefactor     .10000E-03    16.699       -.17126E-05** at limit **
  11  Prefactor     .10000E-03    36.926       -.96253E-05** at limit **
  12  Prefactor     .10020E-03    3.3994        .13489E-05** at limit **
  13  norm          .10000E-03    .62729       -.71188E-07** at limit **
  14  norm          .10000E-03    35.097       -.59346E-06** at limit **
  15  norm          24.350        9.3253        .24339E-06   -.44342E-04
  16  Prefactor     .10000E-03    3.5700        .96908E-07** at limit **
  17  norm          .10000E-03    8.5709       -.53058E-08** at limit **
  18  Prefactor     4.4304        3.4004        .10804E-06    .16503E-04
  19  Prefactor     12.518        20.544       -.45614E-06   -.38745E-04
  20  norm          30.994        25.998        .47546E-05   -.79597E-06
  21  Prefactor     17.403        8.5504        .50342E-07   -.52906E-04
  22  norm          .10000E-03    16.253        .35834E-05** at limit **
  23  Normalizat    1.0509        .19729       -.38927E-05   -.18891E-04
  24  Prefactor     .94059        .97974E-01    .12932E-06   -.39501E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.905818
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 14.2965
  Prefactor  = 0.0001
  Prefactor  = 40.3786
  Prefactor  = 29.8771
  Prefactor  = 0.0001
  Prefactor  = 5.09099
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100199
  norm       = 0.0001
  norm       = 0.0001
  norm       = 24.3503
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.43036
  Prefactor  = 12.5182
  norm       = 30.9942
  Prefactor  = 17.4029
  norm       = 0.0001
  Normalizat = 1.05088
  Prefactor  = 0.940588
 **********
 **   18 **HESSE 
 **********

 FCN=   9094.897     FROM HESSE     STATUS=OK           399 CALLS     3494 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .90582        .78294        .78884E-03   -1.5518    
   2  norm          .10000E-03    6.7332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          14.297        5.7694        .10593E-03   -1.4952    
   5  Prefactor     .10000E-03    26.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     40.379        118.46        .63116E-04   -1.4436    
   7  Prefactor     29.877        18.273        .73299E-04   -1.4614    
   8  Prefactor     .10000E-03    24.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.0910        6.0547        .17820E-03   -1.5257    
  10  Prefactor     .10000E-03    16.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    36.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10020E-03    29.749        .33874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.2926        .14710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    35.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          24.350        9.3285        .81176E-04   -1.4721    
  16  Prefactor     .10000E-03    3.6450        .17590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    8.8498        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.4304        3.3944        .14703E-03   -1.5287    
  19  Prefactor     12.518        20.506        .11321E-03   -1.5000    
  20  norm          30.994        26.029        .71977E-04   -1.4594    
  21  Prefactor     17.403        8.5529        .96008E-04   -1.4873    
  22  norm          .10000E-03    16.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0509        .23135        .33666E-03   -.91345    
  24  Prefactor     .94059        .11524        .18123E-03   -.94737    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.63291e-09
Minuit parameter uncertainties:
  1  0.782945
  2  2.13888e-05
  3  7.20972e-06
  4  5.76966
  5  1.32739e-05
  6  119.161
  7  18.2766
  8  9.26614e-06
  9  6.0554
  10  5.04873e-05
  11  2.58097e-05
  12  0.00486726
  13  1.03825e-05
  14  2.95886e-05
  15  9.3291
  16  1.43063e-05
  17  1.88356e-05
  18  3.39458
  19  20.5174
  20  26.0384
  21  8.5535
  22  4.5346e-07
  23  0.231575
  24  0.115273
Done.

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

Extracting fit parameters...

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  2.988e+01  1.828e+01  1.000e-04  1.000e+04 ( 1.000e-13)
334        Index:  2.337e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
335        Scale:  1.176e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
671    Prefactor:  9.406e-01  1.153e-01  0.000e+00  1.000e+01 ( 1.000e+00)
672        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
673        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
670   Normalization:  1.051e+00  2.316e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.92
Ra Dec: 267.011 34.064
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 7.09e-08 +/- 4.34e-08
Energy Flux (Fixed Index): 2.54e-05 +/- 1.55e-05

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) = 9093.09096321
delta logL = 1.80567087057

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9093.05761354
delta logL = 1.83902053763

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9093.058     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      262 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9547        28.167        .45157E-02    .33910E-03
   2  Index         3.6295        2.0459        .85588E-01    .25124E-03
   3  Normalizat    .94991        .78957E-01    .79422E-01    .28935E-04
   4  Prefactor     .97350        .38920E-01    .45935E-01    .65617E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.95468
  Index      = 3.62946
  Normalizat = 0.949911
  Prefactor  = 0.973495
 **********
 **   18 **HESSE 
 **********

 FCN=   9093.058     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      295 TOTAL
                     EDM=   .38E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9547        41.273        .83351E-04   -1.5263    
   2  Index         3.6295        2.6737        .34403E-02   -.27766    
   3  Normalizat    .94991        .22232        .35154E-03   -.94728    
   4  Prefactor     .97350        .11302        .17839E-03   -.93618    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.84865e-07
Minuit parameter uncertainties:
  1  28.6269
  2  2.8351
  3  0.222533
  4  0.113044
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/170086': 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) = 9093.05761041
delta logL = 1.83902366843

Extracting fit parameters...

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  4.955e+00  2.863e+01  1.000e-04  1.000e+04 ( 1.000e-13)
334        Index:  3.629e+00  2.835e+00  0.000e+00  1.000e+01 (-1.000e+00)
335        Scale:  1.176e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
671    Prefactor:  9.735e-01  1.130e-01  0.000e+00  1.000e+01 ( 1.000e+00)
672        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
673        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
670   Normalization:  9.499e-01  2.225e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.00
Ra Dec: 267.011 34.064
Photon Index (Free Index): 3.63 +/- 2.84
Photon Flux (Free Index): 1.45e-07 +/- 6.41e-08
Energy Flux (Free Index): 2.34e-05 +/- 1.55e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/170086/cmap_HighResolution_511228801_511488001_4FGL_J1748.0+3403_daily_bin1049.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.09e-08', energy_flux2='2.34e-05', photon_flux_error='4.34e-08', dlogl='1.84e+00', energy_flux='2.54e-05', photon_flux2='1.45e-07', job_status='DONE', time_completed='2021-09-18 14:51:55.229352', photon_index_error2='2.84', photon_index2='3.63', ts='4.92', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.55e-05', EG='1.05', time_epoch_completed='1632001915.23', return_code='0', job_id='170086', GAL2='0.97', EG2='0.95', return_code2='102', energy_flux_error='1.55e-05', photon_flux_error2='6.41e-08', ts2='9.00', photon_index='2.34' WHERE bin_id='1049' AND source_name='4FGL J1748.0+3403' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 14:51:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 170086: <4FGL_J1748.0+3403_daily_bin1049> in cluster <slac> Done

Job <4FGL_J1748.0+3403_daily_bin1049> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep 18 14:35:22 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 14:35:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 18 14:35:24 2021
Terminated at Sat Sep 18 14:51:56 2021
Results reported at Sat Sep 18 14:51:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1748.0+3403_daily_bin1049 267.011 34.0641 511228801 511488001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1748.0+3403 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   891.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            994 sec.

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

