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 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7483
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1748.0+3403_daily_bin1763
RA = 267.011, Dec = 34.0641
tmin = 696297601, tmax = 696556801
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='291083', job_status='RUN', time_executed='2023-01-28 01:26:25.157498', time_epoch_executed='1674897985.16' WHERE source_name='4FGL J1748.0+3403' and cadence='daily' and bin_id='1763'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/291083

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/291083/ft1_4FGL_J1748.0+3403_daily_bin1763.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/291083/ft2_4FGL_J1748.0+3403_daily_bin1763.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/291083/ft1_4FGL_J1748.0+3403_daily_bin1763.fits outfile=/scratch/kocevski/291083/ft1_filteredMKT_4FGL_J1748.0+3403_daily_bin1763.fits ra=267.011 dec=34.0641 rad=12.0 tmin=696297601.0 tmax=696556801.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.64
user 3.39
sys 0.22

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

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

Number of photons that the gtmktime cut: 809

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/291083/ft1_filtered_4FGL_J1748.0+3403_daily_bin1763.fits" evtable="EVENTS" scfile=/scratch/kocevski/291083/ft2_4FGL_J1748.0+3403_daily_bin1763.fits sctable="SC_DATA" outfile=/scratch/kocevski/291083/ltcube_696297601_696556801_4FGL_J1748.0+3403_daily_bin1763.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/291083/ft2_4FGL_J1748.0+3403_daily_bin1763.fits
.....................!
real 15.82
user 15.40
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/291083/ft1_filtered_4FGL_J1748.0+3403_daily_bin1763.fits evtable="EVENTS" scfile=/scratch/kocevski/291083/ft2_4FGL_J1748.0+3403_daily_bin1763.fits sctable="SC_DATA" expcube=/scratch/kocevski/291083/ltcube_696297601_696556801_4FGL_J1748.0+3403_daily_bin1763.fits outfile=/scratch/kocevski/291083/expmap_696297601_696556801_4FGL_J1748.0+3403_daily_bin1763.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/291083/ltcube_696297601_696556801_4FGL_J1748.0+3403_daily_bin1763.fits
.....................!
real 194.99
user 189.02
sys 5.59

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/291083/ft1_filtered_4FGL_J1748.0+3403_daily_bin1763.fits scfile=/scratch/kocevski/291083/ft2_4FGL_J1748.0+3403_daily_bin1763.fits outfile=/scratch/kocevski/291083/cmap_696297601_696556801_4FGL_J1748.0+3403_daily_bin1763.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.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/291083/ft1_filtered_4FGL_J1748.0+3403_daily_bin1763.fits scfile=/scratch/kocevski/291083/ft2_4FGL_J1748.0+3403_daily_bin1763.fits outfile=/scratch/kocevski/291083/cmap_HighResolution_696297601_696556801_4FGL_J1748.0+3403_daily_bin1763.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.74
user 0.38
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/291083/ft1_filtered_4FGL_J1748.0+3403_daily_bin1763.fits', '/scratch/kocevski/291083/ft2_4FGL_J1748.0+3403_daily_bin1763.fits', expMap='/scratch/kocevski/291083/expmap_696297601_696556801_4FGL_J1748.0+3403_daily_bin1763.fits', expCube='/scratch/kocevski/291083/ltcube_696297601_696556801_4FGL_J1748.0+3403_daily_bin1763.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/291083/Model_4FGL_J1748.0+3403_daily_bin1763.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  0.000e+00  1.000e+06 ( 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/291083/ft1_filtered_4FGL_J1748.0+3403_daily_bin1763.fits
Spacecraft file(s): /scratch/kocevski/291083/ft2_4FGL_J1748.0+3403_daily_bin1763.fits
Exposure map: /scratch/kocevski/291083/expmap_696297601_696556801_4FGL_J1748.0+3403_daily_bin1763.fits
Exposure cube: /scratch/kocevski/291083/ltcube_696297601_696556801_4FGL_J1748.0+3403_daily_bin1763.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/291083/Model_4FGL_J1748.0+3403_daily_bin1763.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) = 8541.81804171

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .35355E-06   1.0000          .0000       .10000E+07
     2 'norm      '    1.9150       1.0000          .0000       .10000E+07
     3 'norm      '    1.8771       1.0000          .0000       .10000E+07
     4 'Prefactor '    .17143E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    1.3452       1.0000          .0000       .10000E+07
     6 'Prefactor '    .54537E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    4.0378       1.0000          .0000       .10000E+07
     8 'Prefactor '    .75894E-02   1.0000          .0000       .10000E+07
     9 'Prefactor '    .24695E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .46625E-04   1.0000          .0000       .10000E+07
    11 'norm      '    2.1570       1.0000          .0000       .10000E+07
    12 'norm      '    60.043       1.0000          .0000       .10000E+07
    13 'norm      '    .63343E-05   1.0000          .0000       .10000E+07
    14 'Prefactor '    .71387E-07   1.0000          .0000       .10000E+07
    15 'norm      '    3.9538       1.0000          .0000       .10000E+07
    16 'Prefactor '    .65170E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    17.667       1.0000          .0000       .10000E+07
    18 'Prefactor '    .12537E-04   1.0000          .0000       .10000E+07
    19 'norm      '    .10972E-05   1.0000          .0000       .10000E+07
    20 'Normalizat'    1.3152       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .79667       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8541.783     FROM MIGRAD    STATUS=CONVERGED    175 CALLS     1331 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        .61594        .15510E-06** at limit **
   2  norm          1.8717        6.1043       -.11540E-05    .92806E-03
   3  norm          1.8805        3.4467        .23162E-06   -.82715E-03
   4  Prefactor     .90223E-05    62.044        .28311E-05** at limit **
   5  Prefactor     .10609E-03    98.764        .31673E-05** at limit **
   6  Prefactor     .33307E-09    21.427       -.40191E-06** at limit **
   7  Prefactor     4.0243        9.1296        .58042E-06   -.76284E-03
   8  Prefactor     .68501E-07    21.945        .13668E-05** at limit **
   9  Prefactor     .20484E-06    32.419        .23714E-05** at limit **
  10  Prefactor     .28608E-05    8.2348        .12661E-05** at limit **
  11  norm          2.1616        1.5090        .55136E-08    .91051E-03
  12  norm          57.128        55.401        .36676E-06    .14754E-01
  13  norm          .55511E-10    1.8430       -.68361E-06** at limit **
  14  Prefactor      .0000        1.2370       -.39003E-06** at limit **
  15  norm          3.9431        7.1044       -.32486E-07    .35327E-03
  16  Prefactor     .16653E-09    4.4034       -.43476E-06** at limit **
  17  Prefactor     17.714        17.959       -.91311E-07   -.33766E-02
  18  Prefactor     .16653E-09    4.2693       -.21829E-06** at limit **
  19  norm          .37192E-08    12.546        .97153E-06** at limit **
  20  Normalizat    1.3168        .21766        .84651E-05   -.38585E-04
  21  Prefactor     .79656        .10785       -.48703E-05    .49464E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 1.87168
  norm       = 1.88055
  Prefactor  = 9.02234e-06
  Prefactor  = 0.000106088
  Prefactor  = 3.33067e-10
  Prefactor  = 4.02429
  Prefactor  = 6.85008e-08
  Prefactor  = 2.04836e-07
  Prefactor  = 2.86077e-06
  norm       = 2.16162
  norm       = 57.1275
  norm       = 5.55112e-11
  Prefactor  = 0
  norm       = 3.94306
  Prefactor  = 1.66533e-10
  Prefactor  = 17.7144
  Prefactor  = 1.66533e-10
  norm       = 3.71925e-09
  Normalizat = 1.31678
  Prefactor  = 0.796561
 **********
 **   18 **HESSE 
 **********

 FCN=   8541.783     FROM HESSE     STATUS=OK           361 CALLS     1692 TOTAL
                     EDM=   .46E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        .60678        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.8717        6.1420        .75077E-03   -1.5681    
   3  norm          1.8805        3.4880        .75966E-03   -1.5681    
   4  Prefactor     .90223E-05    81.869        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10609E-03    374.61        .94385E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .33307E-09    21.712        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.0243        9.1169        .50157E-03   -1.5668    
   8  Prefactor     .68501E-07    22.489        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .20484E-06    37.687        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .28608E-05    4.9032        .66753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.1616        1.5088        .70115E-03   -1.5679    
  12  norm          57.128        56.198        .12906E-03   -1.5557    
  13  norm          .55511E-10    1.8434        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor      .0000        1.2372        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.9431        7.1253        .50705E-03   -1.5668    
  16  Prefactor     .16653E-09    4.3716        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     17.714        18.009        .23801E-03   -1.5624    
  18  Prefactor     .16653E-09    4.2676        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .37192E-08    12.618        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.3168        .18492        .65327E-01   -.83067    
  21  Prefactor     .79656        .91703E-01    .43674E-01   -.99855    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.61605e-07
Minuit parameter uncertainties:
  1  2.63384e-06
  2  6.14199
  3  3.488
  4  0.054357
  5  0.398733
  6  0.000174362
  7  9.11693
  8  0.00248221
  9  0.00555664
  10  0.00749051
  11  1.50881
  12  56.1984
  13  2.10144e-05
  14  7.89479e-06
  15  7.12531
  16  4.97437e-05
  17  18.009
  18  5.02703e-05
  19  0.00043314
  20  0.185009
  21  0.0917204
Done.

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

Extracting fit parameters...

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  3.331e-10  1.744e-04  0.000e+00  1.000e+06 ( 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:  7.966e-01  9.172e-02  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.317e+00  1.850e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 267.011 34.064
Photon Flux Upper Limit: 8.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/291083/likelihoodResults_696297601_696556801_4FGL_J1748.0+3403_daily_bin1763.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) = 8541.80589063
delta logL = -0.023272968494

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8541.60951932
delta logL = 0.173098346339

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61834E-06   1.0000          .0000       .10000E+07
     2 'Index     '    9.8891       1.0000          .0000       10.000    
     3 'Normalizat'    1.2829       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80710       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 TERMINATED WITHOUT CONVERGENCE.

 FCN=   8541.609     FROM MIGRAD    STATUS=FAILED       505 CALLS     1046 TOTAL
                     EDM=   .97E+01    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .47357E-06    .66860E-06     .0000    ** at limit **
   2  Index        10.0000        8.2931         .0000    ** at limit **
   3  Normalizat    1.2830        .85205E-02     .0000        .30863E-03
   4  Prefactor     .80707        .42902E-02     .0000        .81776E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8541.609     FROM SIMPLEX   STATUS=UNCHANGED    102 CALLS     1148 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .47357E-06    .66860E-06    .18017E-08** at limit **
   2  Index        10.0000        8.2931        .49790E-01** at limit **
   3  Normalizat    1.2830        .85205E-02    .19251E-06    .30863E-03
   4  Prefactor     .80707        .42902E-02    .16515E-06    .81776E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8541.609     FROM MIGRAD    STATUS=FAILED        43 CALLS     1191 TOTAL
                     EDM=   .97E+01    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .47357E-06    .66863E-06     .0000    ** at limit **
   2  Index        10.0000        8.2931         .0000    ** at limit **
   3  Normalizat    1.2830        .85088E-02     .0000        .31880E-03
   4  Prefactor     .80707        .42872E-02     .0000        .88047E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.73566e-07
  Index      = 10
  Normalizat = 1.28302
  Prefactor  = 0.807069
 **********
 **   18 **HESSE 
 **********

 FCN=   8541.609     FROM HESSE     STATUS=NOT POSDEF    29 CALLS     1220 TOTAL
                     EDM=   .19E+02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .47357E-06    .66863E-06    .10861E-03   -227.77    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        8.2931        .50000       -.35414E+06
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2830        .85087E-02    .58444E-04    35.398    
   4  Prefactor     .80707        .42871E-02    .71998E-05   -14.713    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 19.3704
Minuit parameter uncertainties:
  1  6.6863e-07
  2  0.00164804
  3  0.00850876
  4  0.00428711
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/291083': 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): 1
logL (Free Index) = 8541.60942238
delta logL = 0.173195279462

Extracting fit parameters...

4FGL J1748.0+3403
   Spectrum: PowerLaw
333    Prefactor:  4.736e-07  6.686e-07  0.000e+00  1.000e+06 ( 1.000e-13)
334        Index:  1.000e+01  1.648e-03  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:  8.071e-01  4.287e-03  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.283e+00  8.509e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 267.011 34.064

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/291083/cmap_HighResolution_696297601_696556801_4FGL_J1748.0+3403_daily_bin1763.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.52e-03', job_status='DONE', photon_flux_upper_limit='8.47e-08', time_completed='2023-01-28 01:40:05.497698', job_id='291083', GAL2='0.81', fit_tolerance='1e-08', EG2='1.28', EG='1.32', time_epoch_completed='1674898805.5', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='1.73e-01', ts2='0.37', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1763' AND source_name='4FGL J1748.0+3403' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jan 28 01:40:05 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 291083: <4FGL_J1748.0+3403_daily_bin1763> in cluster <slac> Done

Job <4FGL_J1748.0+3403_daily_bin1763> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Jan 28 01:25:17 2023
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jan 28 01:25:27 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jan 28 01:25:27 2023
Terminated at Sat Jan 28 01:40:06 2023
Results reported at Sat Jan 28 01:40:06 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1748.0+3403_daily_bin1763 267.011 34.0641 696297601 696556801 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 :                                   821.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             329.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            889 sec.

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

