aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 50 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 = 7532
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1748.6+7005_daily_bin1704
RA = 267.158, Dec = 70.0969
tmin = 681004801, tmax = 681264001
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='365910', job_status='RUN', time_executed='2022-08-04 02:33:59.425856', time_epoch_executed='1659605639.43' WHERE source_name='4FGL J1748.6+7005' and cadence='daily' and bin_id='1704'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/365910

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/365910/ft1_4FGL_J1748.6+7005_daily_bin1704.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/365910/ft2_4FGL_J1748.6+7005_daily_bin1704.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/365910/ft1_4FGL_J1748.6+7005_daily_bin1704.fits outfile=/scratch/kocevski/365910/ft1_filteredMKT_4FGL_J1748.6+7005_daily_bin1704.fits ra=267.158 dec=70.0969 rad=12.0 tmin=681004801.0 tmax=681264001.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 2.95
user 2.73
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/365910/ft2_4FGL_J1748.6+7005_daily_bin1704.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/365910/ft2_4FGL_J1748.6+7005_daily_bin1704.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/365910/ft1_filteredMKT_4FGL_J1748.6+7005_daily_bin1704.fits evtable="EVENTS" outfile="/scratch/kocevski/365910/ft1_filtered_4FGL_J1748.6+7005_daily_bin1704.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.50
user 0.35
sys 0.15

Number of photons that the gtmktime cut: 1951

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/365910/ft1_filtered_4FGL_J1748.6+7005_daily_bin1704.fits" evtable="EVENTS" scfile=/scratch/kocevski/365910/ft2_4FGL_J1748.6+7005_daily_bin1704.fits sctable="SC_DATA" outfile=/scratch/kocevski/365910/ltcube_681004801_681264001_4FGL_J1748.6+7005_daily_bin1704.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/365910/ft2_4FGL_J1748.6+7005_daily_bin1704.fits
.....................!
real 16.00
user 15.57
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/365910/ft1_filtered_4FGL_J1748.6+7005_daily_bin1704.fits evtable="EVENTS" scfile=/scratch/kocevski/365910/ft2_4FGL_J1748.6+7005_daily_bin1704.fits sctable="SC_DATA" expcube=/scratch/kocevski/365910/ltcube_681004801_681264001_4FGL_J1748.6+7005_daily_bin1704.fits outfile=/scratch/kocevski/365910/expmap_681004801_681264001_4FGL_J1748.6+7005_daily_bin1704.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/365910/ltcube_681004801_681264001_4FGL_J1748.6+7005_daily_bin1704.fits
.....................!
real 192.83
user 185.63
sys 5.77

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

Setting source of interest to:
4FGL J1748.6+7005 @ 267.158 70.0969

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/365910/ft1_filtered_4FGL_J1748.6+7005_daily_bin1704.fits scfile=/scratch/kocevski/365910/ft2_4FGL_J1748.6+7005_daily_bin1704.fits outfile=/scratch/kocevski/365910/cmap_681004801_681264001_4FGL_J1748.6+7005_daily_bin1704.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.158 yref=70.0969 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/365910/ft1_filtered_4FGL_J1748.6+7005_daily_bin1704.fits scfile=/scratch/kocevski/365910/ft2_4FGL_J1748.6+7005_daily_bin1704.fits outfile=/scratch/kocevski/365910/cmap_HighResolution_681004801_681264001_4FGL_J1748.6+7005_daily_bin1704.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.158 yref=70.0969 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/365910/ft1_filtered_4FGL_J1748.6+7005_daily_bin1704.fits evtable="EVENTS" scfile=/scratch/kocevski/365910/ft2_4FGL_J1748.6+7005_daily_bin1704.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/365910/Model_4FGL_J1748.6+7005_daily_bin1704.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/365910/ft1_filtered_4FGL_J1748.6+7005_daily_bin1704.fits.....................!
real 197.13
user 195.24
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/365910/ft1_filtered_4FGL_J1748.6+7005_daily_bin1704.fits', '/scratch/kocevski/365910/ft2_4FGL_J1748.6+7005_daily_bin1704.fits', expMap='/scratch/kocevski/365910/expmap_681004801_681264001_4FGL_J1748.6+7005_daily_bin1704.fits', expCube='/scratch/kocevski/365910/ltcube_681004801_681264001_4FGL_J1748.6+7005_daily_bin1704.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/365910/Model_4FGL_J1748.6+7005_daily_bin1704.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1748.6+7005'

4FGL J1748.6+7005
   Spectrum: LogParabola
353         norm:  4.089e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
354        alpha:  1.953e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
355         beta:  4.795e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
356           Eb:  1.080e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/365910/ft1_filtered_4FGL_J1748.6+7005_daily_bin1704.fits
Spacecraft file(s): /scratch/kocevski/365910/ft2_4FGL_J1748.6+7005_daily_bin1704.fits
Exposure map: /scratch/kocevski/365910/expmap_681004801_681264001_4FGL_J1748.6+7005_daily_bin1704.fits
Exposure cube: /scratch/kocevski/365910/ltcube_681004801_681264001_4FGL_J1748.6+7005_daily_bin1704.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/365910/Model_4FGL_J1748.6+7005_daily_bin1704.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) = 20179.8041402

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.8207       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11261E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.821       1.0000         .10000E-03   10000.    
     4 'norm      '    13.516       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.987       1.0000         .10000E-03   10000.    
     6 'norm      '    .53524E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.8794       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1867       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14243E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.3331       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    31.345       1.0000         .10000E-03   10000.    
    14 'norm      '    1.0025       1.0000         .10000E-03   10000.    
    15 'norm      '    2.9882       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .43229       1.0000         .10000E-03   10000.    
    17 'norm      '    4.2980       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.7592       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.8230       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .15139E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.1224       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.1582       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    12.295       1.0000         .10000E-03   10000.    
    29 'norm      '    2.1929       1.0000         .10000E-03   10000.    
    30 'norm      '    2.6553       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .94779       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0282       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   20179.79     FROM MIGRAD    STATUS=CONVERGED    869 CALLS     4440 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.8216        5.9052        .30633E-08   -.18015E-04
   2  Prefactor     .10000E-03    180.09       -.24024E-05** at limit **
   3  Prefactor     22.826        22.423        .33121E-06    .18993E-04
   4  norm          13.517        6.7356        .10267E-06   -.12093E-03
   5  Prefactor     17.985        12.173       -.24725E-06   -.25181E-03
   6  norm          .53497E-01    .22008        .14177E-06   -.64207E-03
   7  Prefactor     8.8783        6.0635       -.39494E-07   -.25573E-03
   8  Prefactor     1.1870        1.7348        .12597E-06    .42728E-04
   9  Prefactor     .10000E-03    3.2824        .52001E-07** at limit **
  10  Prefactor     .10000E-03    4.4815        .31093E-05** at limit **
  11  Prefactor     6.3337        9.7862        .27917E-06   -.15820E-04
  12  Prefactor     .10000E-03    5.0370        .65424E-06** at limit **
  13  Prefactor     31.268        40.825       -.23951E-06   -.12185E-03
  14  norm          1.0029        1.1277       -.22910E-06   -.15166E-02
  15  norm          2.9883        .57200        .13757E-07   -.27816E-04
  16  Prefactor     .46030        2.4935        .28064E-06   -.11721E-03
  17  norm          4.2985        2.3655        .93286E-07    .14715E-03
  18  Prefactor     .10000E-03    3.0931       -.65585E-08** at limit **
  19  Prefactor     .10000E-03    21.047        .10261E-05** at limit **
  20  Prefactor     4.7588        4.3754       -.83836E-08   -.19853E-03
  21  Prefactor     9.8208        7.1824       -.12777E-06   -.16851E-03
  22  Prefactor     .10000E-03    27.850       -.94175E-06** at limit **
  23  Prefactor     .10000E-03    18.761       -.93395E-06** at limit **
  24  Prefactor     .10000E-03    16.567        .14919E-06** at limit **
  25  norm          4.1222        2.0257        .90430E-07    .20663E-03
  26  Prefactor     1.1576        13.963        .19549E-05    .73288E-04
  27  Prefactor     .10000E-03    1.8241       -.48189E-07** at limit **
  28  norm          12.292        22.477       -.16214E-07   -.18547E-04
  29  norm          2.1938        3.0397        .21298E-05   -.30771E-03
  30  norm          2.6559        2.4420        .13362E-06    .48466E-04
  31  Normalizat    .94768        .12876       -.57719E-06   -.38980E-03
  32  Prefactor     1.0282        .76200E-01   -.37720E-06   -.77931E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.82158
  Prefactor  = 0.000100001
  Prefactor  = 22.8256
  norm       = 13.5174
  Prefactor  = 17.9846
  norm       = 0.0534974
  Prefactor  = 8.87826
  Prefactor  = 1.18699
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.33373
  Prefactor  = 0.0001
  Prefactor  = 31.2683
  norm       = 1.00289
  norm       = 2.98834
  Prefactor  = 0.460299
  norm       = 4.29853
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.7588
  Prefactor  = 9.82077
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.12219
  Prefactor  = 1.15761
  Prefactor  = 0.0001
  norm       = 12.292
  norm       = 2.19381
  norm       = 2.65588
  Normalizat = 0.947676
  Prefactor  = 1.02818
 **********
 **   18 **HESSE 
 **********

 FCN=   20179.79     FROM HESSE     STATUS=OK           671 CALLS     5111 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.8216        5.9035        .16646E-03   -1.5225    
   2  Prefactor     .10000E-03    182.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.826        22.329        .83849E-04   -1.4752    
   4  norm          13.517        6.7371        .10895E-03   -1.4972    
   5  Prefactor     17.985        12.204        .94436E-04   -1.4860    
   6  norm          .53497E-01    .56973        .11799E-02   -1.5662    
   7  Prefactor     8.8783        5.9684        .13451E-03   -1.5112    
   8  Prefactor     1.1870        1.6992        .20548E-03   -1.5490    
   9  Prefactor     .10000E-03    3.2916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.4758        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.3337        9.6999        .79750E-03   -1.5205    
  12  Prefactor     .10000E-03    5.1815        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     31.268        41.151        .71567E-04   -1.4589    
  14  norm          1.0029        .90917        .15544E-02   -1.5508    
  15  norm          2.9883        .57151        .44678E-04   -1.5362    
  16  Prefactor     .46030        26.323        .42312E-02   -1.5572    
  17  norm          4.2985        2.3497        .15063E-03   -1.5293    
  18  Prefactor     .10000E-03    3.0951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    21.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.7588        4.3408        .18443E-03   -1.5272    
  21  Prefactor     9.8208        7.1831        .12785E-03   -1.5081    
  22  Prefactor     .10000E-03    28.697        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    18.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    16.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.1222        2.0151        .13438E-03   -1.5302    
  26  Prefactor     1.1576        14.360        .42859E-03   -1.5493    
  27  Prefactor     .10000E-03    1.8732        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          12.292        22.540        .11424E-03   -1.5007    
  29  norm          2.1938        3.0374        .13895E-02   -1.5412    
  30  norm          2.6559        2.4520        .20116E-03   -1.5382    
  31  Normalizat    .94768        .14653        .33091E-03   -.94805    
  32  Prefactor     1.0282        .86927E-01    .19921E-03   -.91796    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24262e-07
Minuit parameter uncertainties:
  1  5.90405
  2  0.000948613
  3  22.3375
  4  6.73748
  5  12.2055
  6  0.348842
  7  5.96879
  8  1.6993
  9  4.30089e-06
  10  5.52702e-05
  11  9.70231
  12  2.14801e-05
  13  41.1879
  14  0.909182
  15  0.571513
  16  6.96418
  17  2.34978
  18  8.58828e-07
  19  0.000209314
  20  4.34106
  21  7.18372
  22  7.35809e-05
  23  0.000158191
  24  2.81066e-05
  25  2.01512
  26  8.15636
  27  4.29128e-06
  28  22.5559
  29  3.03765
  30  2.45207
  31  0.146589
  32  0.0869388
Done.

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

Extracting fit parameters...

4FGL J1748.6+7005
   Spectrum: LogParabola
353         norm:  1.003e+00  9.092e-01  1.000e-04  1.000e+04 ( 1.000e-12)
354        alpha:  1.953e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
355         beta:  4.795e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
356           Eb:  1.080e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  1.028e+00  8.694e-02  0.000e+00  1.000e+01 ( 1.000e+00)
615        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
616        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  9.477e-01  1.466e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.12
Ra Dec: 267.158 70.097
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 9.62e-09 +/- 8.72e-09
Energy Flux (Fixed Index): 6.78e-06 +/- 6.15e-06

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) = 20179.6852782
delta logL = 0.103220448207

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 20179.6603461
delta logL = 0.128152566114

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .72217       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4935       1.0000          .0000       5.0000    
     3 'Normalizat'    .95248       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0276       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6170E+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=   20179.66     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      294 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .72228        .96436        .17394E-02   -.14318E-02
   2  alpha         1.4934        .83956        .31355E-01   -.42804E-04
   3  Normalizat    .95244        .12942        .33017E-03   -.38564E-05
   4  Prefactor     1.0276        .81302E-01    .19927E-03   -.50205E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.722275
  alpha      = 1.49339
  Normalizat = 0.952439
  Prefactor  = 1.02758
 **********
 **   18 **HESSE 
 **********

 FCN=   20179.66     FROM HESSE     STATUS=OK            27 CALLS      321 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .72228        .99661        .69575E-04   -1.5538    
   2  alpha         1.4934        .86620        .12542E-02   -.41440    
   3  Normalizat    .95244        .12950        .13207E-04   -.94641    
   4  Prefactor     1.0276        .81359E-01    .79709E-05   -.91816    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.86936e-10
Minuit parameter uncertainties:
  1  0.996635
  2  0.888341
  3  0.129542
  4  0.0813687
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/365910': 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) = 20179.660346
delta logL = 0.128152681791

Extracting fit parameters...

4FGL J1748.6+7005
   Spectrum: LogParabola
353         norm:  7.223e-01  9.966e-01  1.000e-04  1.000e+04 ( 1.000e-12)
354        alpha:  1.493e+00  8.883e-01  0.000e+00  5.000e+00 ( 1.000e+00)
355         beta:  4.795e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
356           Eb:  1.080e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  1.028e+00  8.137e-02  0.000e+00  1.000e+01 ( 1.000e+00)
615        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
616        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  9.524e-01  1.295e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.37
Ra Dec: 267.158 70.097
Photon Index (Free Index): 1.49 +/- 0.89
Photon Flux (Free Index): 4.37e-09 +/- 7.96e-09
Energy Flux (Free Index): 1.04e-05 +/- 1.52e-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/365910/cmap_HighResolution_681004801_681264001_4FGL_J1748.6+7005_daily_bin1704.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.62e-09', energy_flux2='1.04e-05', photon_flux_error='8.72e-09', dlogl='1.28e-01', energy_flux='6.78e-06', photon_flux2='4.37e-09', job_status='DONE', time_completed='2022-08-04 03:09:43.578342', photon_index_error2='0.89', photon_index2='1.49', ts='6.12', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='1.52e-05', EG='0.95', time_epoch_completed='1659607783.58', return_code='0', job_id='365910', GAL2='1.03', EG2='0.95', return_code2='0', energy_flux_error='6.15e-06', photon_flux_error2='7.96e-09', ts2='6.37', photon_index='1.95' WHERE bin_id='1704' AND source_name='4FGL J1748.6+7005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug  4 03:09:43 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 365878: <4FGL_J1748.6+7005_daily_bin1704> in cluster <slac> Done

Job <4FGL_J1748.6+7005_daily_bin1704> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Aug  4 00:07:38 2022
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug  4 02:32:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug  4 02:32:18 2022
Terminated at Thu Aug  4 03:09:00 2022
Results reported at Thu Aug  4 03:09:00 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1748.6+7005_daily_bin1704 267.158 70.0969 681004801 681264001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1748.6+7005 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2136.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             346.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2204 sec.
    Turnaround time :                            10882 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 365910: <4FGL_J1748.6+7005_daily_bin1704> in cluster <slac> Done

Job <4FGL_J1748.6+7005_daily_bin1704> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Aug  4 00:07:39 2022
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug  4 02:32:59 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug  4 02:32:59 2022
Terminated at Thu Aug  4 03:09:44 2022
Results reported at Thu Aug  4 03:09:44 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1748.6+7005_daily_bin1704 267.158 70.0969 681004801 681264001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1748.6+7005 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2142.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             343.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2204 sec.
    Turnaround time :                            10925 sec.

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

