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


Performing analysis on: 4FGL_J1738.3+3228_daily_bin1765
RA = 264.584, Dec = 32.4823
tmin = 696816001, tmax = 697075201
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='641704', job_status='RUN', time_executed='2023-02-03 01:22:57.284630', time_epoch_executed='1675416177.28' WHERE source_name='4FGL J1738.3+3228' and cadence='daily' and bin_id='1765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/641704

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/641704/ft1_4FGL_J1738.3+3228_daily_bin1765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/641704/ft2_4FGL_J1738.3+3228_daily_bin1765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/641704/ft1_4FGL_J1738.3+3228_daily_bin1765.fits outfile=/scratch/kocevski/641704/ft1_filteredMKT_4FGL_J1738.3+3228_daily_bin1765.fits ra=264.584 dec=32.4823 rad=12.0 tmin=696816001.0 tmax=697075201.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.69
user 3.42
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/641704/ft2_4FGL_J1738.3+3228_daily_bin1765.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/641704/ft2_4FGL_J1738.3+3228_daily_bin1765.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/641704/ft1_filteredMKT_4FGL_J1738.3+3228_daily_bin1765.fits evtable="EVENTS" outfile="/scratch/kocevski/641704/ft1_filtered_4FGL_J1738.3+3228_daily_bin1765.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.35
sys 0.16

Number of photons that the gtmktime cut: 864

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/641704/ft1_filtered_4FGL_J1738.3+3228_daily_bin1765.fits" evtable="EVENTS" scfile=/scratch/kocevski/641704/ft2_4FGL_J1738.3+3228_daily_bin1765.fits sctable="SC_DATA" outfile=/scratch/kocevski/641704/ltcube_696816001_697075201_4FGL_J1738.3+3228_daily_bin1765.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/641704/ft2_4FGL_J1738.3+3228_daily_bin1765.fits
.....................!
real 15.20
user 14.69
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/641704/ft1_filtered_4FGL_J1738.3+3228_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/641704/ft2_4FGL_J1738.3+3228_daily_bin1765.fits sctable="SC_DATA" expcube=/scratch/kocevski/641704/ltcube_696816001_697075201_4FGL_J1738.3+3228_daily_bin1765.fits outfile=/scratch/kocevski/641704/expmap_696816001_697075201_4FGL_J1738.3+3228_daily_bin1765.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/641704/ltcube_696816001_697075201_4FGL_J1738.3+3228_daily_bin1765.fits
.....................!
real 192.41
user 185.88
sys 5.42

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

Setting source of interest to:
4FGL J1738.3+3228 @ 264.584 32.4823

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/641704/ft1_filtered_4FGL_J1738.3+3228_daily_bin1765.fits scfile=/scratch/kocevski/641704/ft2_4FGL_J1738.3+3228_daily_bin1765.fits outfile=/scratch/kocevski/641704/cmap_696816001_697075201_4FGL_J1738.3+3228_daily_bin1765.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=264.584 yref=32.4823 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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/641704/ft1_filtered_4FGL_J1738.3+3228_daily_bin1765.fits scfile=/scratch/kocevski/641704/ft2_4FGL_J1738.3+3228_daily_bin1765.fits outfile=/scratch/kocevski/641704/cmap_HighResolution_696816001_697075201_4FGL_J1738.3+3228_daily_bin1765.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=264.584 yref=32.4823 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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/641704/ft1_filtered_4FGL_J1738.3+3228_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/641704/ft2_4FGL_J1738.3+3228_daily_bin1765.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/641704/Model_4FGL_J1738.3+3228_daily_bin1765.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/641704/ft1_filtered_4FGL_J1738.3+3228_daily_bin1765.fits.....................!
real 73.67
user 72.05
sys 1.48

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/641704/ft1_filtered_4FGL_J1738.3+3228_daily_bin1765.fits', '/scratch/kocevski/641704/ft2_4FGL_J1738.3+3228_daily_bin1765.fits', expMap='/scratch/kocevski/641704/expmap_696816001_697075201_4FGL_J1738.3+3228_daily_bin1765.fits', expCube='/scratch/kocevski/641704/ltcube_696816001_697075201_4FGL_J1738.3+3228_daily_bin1765.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/641704/Model_4FGL_J1738.3+3228_daily_bin1765.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1738.3+3228'

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  7.549e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
323        Index:  2.454e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/641704/ft1_filtered_4FGL_J1738.3+3228_daily_bin1765.fits
Spacecraft file(s): /scratch/kocevski/641704/ft2_4FGL_J1738.3+3228_daily_bin1765.fits
Exposure map: /scratch/kocevski/641704/expmap_696816001_697075201_4FGL_J1738.3+3228_daily_bin1765.fits
Exposure cube: /scratch/kocevski/641704/ltcube_696816001_697075201_4FGL_J1738.3+3228_daily_bin1765.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/641704/Model_4FGL_J1738.3+3228_daily_bin1765.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) = 9034.43199434

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5224       1.0000          .0000       .10000E+07
     2 'Prefactor '    .12968E-02   1.0000          .0000       .10000E+07
     3 'norm      '    5.5574       1.0000          .0000       .10000E+07
     4 'norm      '    4.0702       1.0000          .0000       .10000E+07
     5 'norm      '    .66241       1.0000          .0000       .10000E+07
     6 'Prefactor '    38.227       1.0000          .0000       .10000E+07
     7 'Prefactor '    .10437E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    1.2854       1.0000          .0000       .10000E+07
     9 'Prefactor '    .75662E-07   1.0000          .0000       .10000E+07
    10 'Prefactor '    .20975E-01   1.0000          .0000       .10000E+07
    11 'Prefactor '    8.2971       1.0000          .0000       .10000E+07
    12 'Prefactor '    5.1410       1.0000          .0000       .10000E+07
    13 'norm      '    .14211E-07   1.0000          .0000       .10000E+07
    14 'norm      '    .56670E-02   1.0000          .0000       .10000E+07
    15 'Prefactor '    .56631E-03   1.0000          .0000       .10000E+07
    16 'norm      '    9.5893       1.0000          .0000       .10000E+07
    17 'Prefactor '    1.7141       1.0000          .0000       .10000E+07
    18 'Prefactor '    .67190E-02   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.0656       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96510       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9034.418     FROM MIGRAD    STATUS=CONVERGED    158 CALLS     1504 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5237        1.6003       -.31211E-08   -.25801E-04
   2  Prefactor     .11102E-09    17.320        .18969E-07** at limit **
   3  norm          5.6063        8.7497        .54362E-06    .70537E-03
   4  norm          3.9762        5.8442        .30259E-08    .23287E-02
   5  norm          .62294E-02    262.81        .70085E-05** at limit **
   6  Prefactor     41.405        68.488       -.22113E-05   -.20294    
   7  Prefactor     .77716E-09    23.214        .40607E-06** at limit **
   8  Prefactor     1.2558        21.152        .32529E-06   -.36013E-03
   9  Prefactor      .0000        4.3516       -.52137E-07** at limit **
  10  Prefactor      .0000        18.147        .22975E-06** at limit **
  11  Prefactor     8.8611        5.6282       -.26699E-06   -.33483E-02
  12  Prefactor     5.1375        9.7351        .17102E-07   -.40625E-03
  13  norm           .0000        .38455        .48702E-07** at limit **
  14  norm          .32211E-05    100.33        .18917E-05** at limit **
  15  Prefactor      .0000        9.1052        .14508E-06** at limit **
  16  norm          9.5779        7.7116        .73786E-07   -.12858E-03
  17  Prefactor     1.7289        4.1232        .25421E-06   -.28140E-03
  18  Prefactor      .0000        9.1607        .63107E-08** at limit **
  19  Normalizat    1.0634        .21562        .60355E-05   -.19934E-04
  20  Prefactor     .96563        .11149       -.52861E-05   -.83262E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.52372
  Prefactor  = 1.11022e-10
  norm       = 5.6063
  norm       = 3.97618
  norm       = 0.00622938
  Prefactor  = 41.4051
  Prefactor  = 7.77156e-10
  Prefactor  = 1.25575
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 8.86105
  Prefactor  = 5.1375
  norm       = 0
  norm       = 3.22109e-06
  Prefactor  = 0
  norm       = 9.57786
  Prefactor  = 1.7289
  Prefactor  = 0
  Normalizat = 1.06342
  Prefactor  = 0.965626
 **********
 **   18 **HESSE 
 **********

 FCN=   9034.418     FROM HESSE     STATUS=OK           331 CALLS     1835 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5237        1.6004        .53839E-03   -1.5670    
   2  Prefactor     .11102E-09    17.342        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.6063        8.8033        .42594E-03   -1.5661    
   4  norm          3.9762        6.3726        .49951E-03   -1.5668    
   5  norm          .62294E-02    583.84        .63813E-03   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     41.405        92.479        .16175E-03   -1.5579    
   7  Prefactor     .77716E-09    23.203        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.2558        21.069        .97751E-03   -1.5686    
   9  Prefactor      .0000        4.3405        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        18.065        .16973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.8611        67.694        .34780E-03   -1.5648    
  12  Prefactor     5.1375        9.7228        .44316E-03   -1.5663    
  13  norm           .0000        .38444        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .32211E-05    101.89        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor      .0000        8.8001        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          9.5779        7.7069        .32337E-03   -1.5646    
  17  Prefactor     1.7289        4.1519        .80242E-03   -1.5682    
  18  Prefactor      .0000        9.1636        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0634        .18538        .71981E-01   -.90935    
  20  Prefactor     .96563        .94562E-01    .45829E-01   -.93884    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9702e-05
Minuit parameter uncertainties:
  1  1.60043
  2  9.78795e-05
  3  8.80329
  4  6.3726
  5  3.81454
  6  92.4821
  7  0.000265295
  8  10.2874
  9  7.84683e-06
  10  1.10074e-06
  11  48.984
  12  9.72279
  13  1.48337e-07
  14  0.0362325
  15  2.03709e-05
  16  7.70689
  17  4.15194
  18  1.93886e-05
  19  0.18549
  20  0.094578
Done.

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

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  7.772e-10  2.653e-04  0.000e+00  1.000e+06 ( 1.000e-14)
323        Index:  2.454e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  9.656e-01  9.458e-02  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
665   Normalization:  1.063e+00  1.855e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 264.584 32.482
Photon Flux Upper Limit: 4.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/641704/likelihoodResults_696816001_697075201_4FGL_J1738.3+3228_daily_bin1765.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) = 9034.43818927
delta logL = -0.0205699575381

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9034.41761987
delta logL = -5.58193278266e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .91982E-07   1.0000          .0000       .10000E+07
     2 'Index     '    1.6490       1.0000          .0000       10.000    
     3 'Normalizat'    1.0632       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96574       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6690E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9034.418     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      243 TOTAL
                     EDM=   .76E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        15.424        .42118E-03** at limit **
   2  Index         2.8714        1.2636        .15791E-03     .0000    
   3  Normalizat    1.0634        1.1877       -.15180E-05    .43310E-04
   4  Prefactor     .96563        1.3069        .11163E-05    .12762E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 2.87143
  Normalizat = 1.06342
  Prefactor  = 0.965626
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   9034.418     FROM HESSE     STATUS=FAILED         9 CALLS      252 TOTAL
                     EDM=   .76E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        15.424        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .93365        2.0225        .15791E-03   -.43975    
   3  Normalizat    1.0634        1.1877       -.15180E-05   -.90935    
   4  Prefactor     .96563        1.3069        .11163E-05   -.93884    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.60754e-12
Minuit parameter uncertainties:
  1  1.54567e-05
  2  1.28059
  3  1.21954
  4  1.35386
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/641704': 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): 101
logL (Free Index) = 9034.41761932
delta logL = 1.63709046319e-11

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  0.000e+00  1.546e-05  0.000e+00  1.000e+06 ( 1.000e-14)
323        Index:  2.871e+00  1.281e+00  0.000e+00  1.000e+01 (-1.000e+00)
324        Scale:  1.347e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
666    Prefactor:  9.656e-01  1.354e+00  0.000e+00  1.000e+01 ( 1.000e+00)
667        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
668        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
665   Normalization:  1.063e+00  1.220e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 264.584 32.482

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/641704/cmap_HighResolution_696816001_697075201_4FGL_J1738.3+3228_daily_bin1765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.70e-03', job_status='DONE', photon_flux_upper_limit='4.77e-08', time_completed='2023-02-03 01:35:42.761968', job_id='641704', GAL2='0.97', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1675416942.76', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.64e-11', ts2='0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1765' AND source_name='4FGL J1738.3+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb  3 01:35:42 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 641704: <4FGL_J1738.3+3228_daily_bin1765> in cluster <slac> Done

Job <4FGL_J1738.3+3228_daily_bin1765> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Feb  3 01:20:28 2023
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb  3 01:21:34 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb  3 01:21:34 2023
Terminated at Fri Feb  3 01:35:43 2023
Results reported at Fri Feb  3 01:35:43 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1738.3+3228_daily_bin1765 264.584 32.4823 696816001 697075201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1738.3+3228 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   765.05 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             296.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            915 sec.

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

