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 214 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_J1738.3+3228_daily_bin1763
RA = 264.584, Dec = 32.4823
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='289611', job_status='RUN', time_executed='2023-01-28 01:24:18.168338', time_epoch_executed='1674897858.17' WHERE source_name='4FGL J1738.3+3228' and cadence='daily' and bin_id='1763'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/289611

Creating custom pfile directory:
/scratch/kocevski/289611/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/289611/ft1_4FGL_J1738.3+3228_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/289611/ft2_4FGL_J1738.3+3228_daily_bin1763.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/289611/ft1_4FGL_J1738.3+3228_daily_bin1763.fits outfile=/scratch/kocevski/289611/ft1_filteredMKT_4FGL_J1738.3+3228_daily_bin1763.fits ra=264.584 dec=32.4823 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.71
user 3.38
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/289611/ft2_4FGL_J1738.3+3228_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/289611/ft1_filteredMKT_4FGL_J1738.3+3228_daily_bin1763.fits evtable="EVENTS" outfile="/scratch/kocevski/289611/ft1_filtered_4FGL_J1738.3+3228_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.69
user 0.36
sys 0.16

Number of photons that the gtmktime cut: 754

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/289611/ft1_filtered_4FGL_J1738.3+3228_daily_bin1763.fits" evtable="EVENTS" scfile=/scratch/kocevski/289611/ft2_4FGL_J1738.3+3228_daily_bin1763.fits sctable="SC_DATA" outfile=/scratch/kocevski/289611/ltcube_696297601_696556801_4FGL_J1738.3+3228_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/289611/ft2_4FGL_J1738.3+3228_daily_bin1763.fits
.....................!
real 15.76
user 15.19
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/289611/ft1_filtered_4FGL_J1738.3+3228_daily_bin1763.fits evtable="EVENTS" scfile=/scratch/kocevski/289611/ft2_4FGL_J1738.3+3228_daily_bin1763.fits sctable="SC_DATA" expcube=/scratch/kocevski/289611/ltcube_696297601_696556801_4FGL_J1738.3+3228_daily_bin1763.fits outfile=/scratch/kocevski/289611/expmap_696297601_696556801_4FGL_J1738.3+3228_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/289611/ltcube_696297601_696556801_4FGL_J1738.3+3228_daily_bin1763.fits
.....................!
real 193.10
user 186.13
sys 6.14

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/289611/ft1_filtered_4FGL_J1738.3+3228_daily_bin1763.fits scfile=/scratch/kocevski/289611/ft2_4FGL_J1738.3+3228_daily_bin1763.fits outfile=/scratch/kocevski/289611/cmap_696297601_696556801_4FGL_J1738.3+3228_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=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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/289611/ft1_filtered_4FGL_J1738.3+3228_daily_bin1763.fits scfile=/scratch/kocevski/289611/ft2_4FGL_J1738.3+3228_daily_bin1763.fits outfile=/scratch/kocevski/289611/cmap_HighResolution_696297601_696556801_4FGL_J1738.3+3228_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=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.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/289611/ft1_filtered_4FGL_J1738.3+3228_daily_bin1763.fits evtable="EVENTS" scfile=/scratch/kocevski/289611/ft2_4FGL_J1738.3+3228_daily_bin1763.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/289611/Model_4FGL_J1738.3+3228_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/289611/ft1_filtered_4FGL_J1738.3+3228_daily_bin1763.fits.....................!
real 68.80
user 67.16
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/289611/ft1_filtered_4FGL_J1738.3+3228_daily_bin1763.fits', '/scratch/kocevski/289611/ft2_4FGL_J1738.3+3228_daily_bin1763.fits', expMap='/scratch/kocevski/289611/expmap_696297601_696556801_4FGL_J1738.3+3228_daily_bin1763.fits', expCube='/scratch/kocevski/289611/ltcube_696297601_696556801_4FGL_J1738.3+3228_daily_bin1763.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/289611/Model_4FGL_J1738.3+3228_daily_bin1763.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/289611/ft1_filtered_4FGL_J1738.3+3228_daily_bin1763.fits
Spacecraft file(s): /scratch/kocevski/289611/ft2_4FGL_J1738.3+3228_daily_bin1763.fits
Exposure map: /scratch/kocevski/289611/expmap_696297601_696556801_4FGL_J1738.3+3228_daily_bin1763.fits
Exposure cube: /scratch/kocevski/289611/ltcube_696297601_696556801_4FGL_J1738.3+3228_daily_bin1763.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/289611/Model_4FGL_J1738.3+3228_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) = 8050.99635149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .29634E-04   1.0000          .0000       .10000E+07
     2 'Prefactor '    .24609E-04   1.0000          .0000       .10000E+07
     3 'norm      '    2.1829       1.0000          .0000       .10000E+07
     4 'norm      '    2.1849       1.0000          .0000       .10000E+07
     5 'norm      '    .16394       1.0000          .0000       .10000E+07
     6 'Prefactor '    .66108E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    8.2271       1.0000          .0000       .10000E+07
     8 'Prefactor '    .35068E-04   1.0000          .0000       .10000E+07
     9 'Prefactor '    4.5004       1.0000          .0000       .10000E+07
    10 'Prefactor '    .63626E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    .65432E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    .38921       1.0000          .0000       .10000E+07
    13 'norm      '    2.2503       1.0000          .0000       .10000E+07
    14 'norm      '    66.058       1.0000          .0000       .10000E+07
    15 'Prefactor '    .13855E-05   1.0000          .0000       .10000E+07
    16 'norm      '    4.3268       1.0000          .0000       .10000E+07
    17 'Prefactor '    .15303E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    20.525       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.2582       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .76471       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=   8050.979     FROM MIGRAD    STATUS=CONVERGED    210 CALLS     1608 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .23315E-08    14.103        .52863E-05** at limit **
   2  Prefactor     .55511E-10    12.998       -.58440E-06** at limit **
   3  norm          2.2411        6.2029       -.35037E-06   -.60279E-04
   4  norm          2.1827        3.6132        .56336E-06   -.12506E-02
   5  norm          .83267E-09    117.74        .13029E-04** at limit **
   6  Prefactor     .61062E-09    105.76        .27706E-05** at limit **
   7  Prefactor     12.675        260.54        .34962E-04    .30898E-03
   8  Prefactor      .0000        33.739       -.20898E-05** at limit **
   9  Prefactor     4.5029        9.5435        .10285E-05   -.20626E-02
  10  Prefactor     .22204E-09    30.206       -.11663E-05** at limit **
  11  Prefactor     .22204E-09    46.742        .43928E-06** at limit **
  12  Prefactor     .42269        22.417       -.51726E-05   -.12944E-02
  13  norm          2.2494        1.5707       -.84135E-07    .27663E-02
  14  norm          65.049        59.501        .12923E-05   -.49886E-03
  15  Prefactor      .0000        1.2921       -.19909E-06** at limit **
  16  norm          4.3370        7.2815        .62907E-07   -.14085E-02
  17  Prefactor     .44409E-09    5.6986       -.23893E-06** at limit **
  18  Prefactor     20.635        18.587       -.98239E-07    .75211E-03
  19  Normalizat    1.2565        .22445       -.14459E-05   -.28564E-03
  20  Prefactor     .76488        .11152       -.31134E-05   -.12262E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.33147e-09
  Prefactor  = 5.55112e-11
  norm       = 2.2411
  norm       = 2.18271
  norm       = 8.32667e-10
  Prefactor  = 6.10623e-10
  Prefactor  = 12.6753
  Prefactor  = 0
  Prefactor  = 4.50288
  Prefactor  = 2.22045e-10
  Prefactor  = 2.22045e-10
  Prefactor  = 0.422694
  norm       = 2.24941
  norm       = 65.0489
  Prefactor  = 0
  norm       = 4.33703
  Prefactor  = 4.44089e-10
  Prefactor  = 20.635
  Normalizat = 1.25647
  Prefactor  = 0.764881
 **********
 **   18 **HESSE 
 **********

 FCN=   8050.979     FROM HESSE     STATUS=OK           339 CALLS     1947 TOTAL
                     EDM=   .37E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .23315E-08    .83494        .31545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .55511E-10    12.997        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.2411        6.2209        .69646E-03   -1.5678    
   4  norm          2.1827        3.6411        .69610E-03   -1.5678    
   5  norm          .83267E-09    117.16        .12456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .61062E-09    104.42        .14949E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.675        256.57        .34929E-03   -1.5637    
   8  Prefactor      .0000        32.920        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.5029        9.5282        .47436E-03   -1.5666    
  10  Prefactor     .22204E-09    30.037        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .22204E-09    46.395        .14972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .42269        3.7381        .90748E-02   -1.5695    
  13  norm          2.2494        1.5594        .68469E-03   -1.5678    
  14  norm          65.049        59.457        .12304E-03   -1.5547    
  15  Prefactor      .0000        1.2961        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.3370        7.3006        .48404E-03   -1.5666    
  17  Prefactor     .44409E-09    5.6256        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     20.635        18.606        .22079E-03   -1.5617    
  19  Normalizat    1.2565        .18917        .64362E-01   -.84875    
  20  Prefactor     .76488        .93564E-01    .43256E-01   -1.0104    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.74744e-07
Minuit parameter uncertainties:
  1  8.81439e-05
  2  4.34846e-05
  3  6.22089
  4  3.64106
  5  0.000634098
  6  0.000510641
  7  114.061
  8  1.20207e-06
  9  9.52828
  10  0.000155912
  11  0.000199844
  12  2.51401
  13  1.55936
  14  59.4573
  15  6.43639e-06
  16  7.30062
  17  9.73357e-05
  18  18.606
  19  0.189272
  20  0.0935835
Done.

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

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  1.268e+01  1.141e+02  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:  7.649e-01  9.358e-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.256e+00  1.893e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 264.584 32.482
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/289611/likelihoodResults_696297601_696556801_4FGL_J1738.3+3228_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) = 8050.8342445
delta logL = 0.144369206601

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8050.81113817
delta logL = 0.167475533858

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.324       1.0000          .0000       .10000E+07
     2 'Index     '    3.4510       1.0000          .0000       10.000    
     3 'Normalizat'    1.2199       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77398       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   8050.811     FROM MIGRAD    STATUS=FAILED        99 CALLS      309 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.308        1472.0        .11898E-04   -.74529E-04
   2  Index         3.4516        5.8426        .86358E-02    .61143E-03
   3  Normalizat    1.2197        .20279        .28843E-03    .54276E-04
   4  Prefactor     .77405        .10246        .17914E-03   -.96846E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8050.811     FROM SIMPLEX   STATUS=UNCHANGED     90 CALLS      399 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.308        1472.0        .79602E-04   -.74529E-04
   2  Index         3.4516        5.8426        .20179E-02    .61143E-03
   3  Normalizat    1.2197        .20279        .37199E-03    .54276E-04
   4  Prefactor     .77405        .10246        .21055E-03   -.96846E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8050.811     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      429 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.308        58.013        .47593E-06   -.15975E-03
   2  Index         3.4516        1.9410        .17272E-02    .23954E-04
   3  Normalizat    1.2197        .22618        .11537E-04    .48679E-04
   4  Prefactor     .77405        .11098        .71654E-05   -.93292E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.3076
  Index      = 3.45156
  Normalizat = 1.21975
  Prefactor  = 0.774049
 **********
 **   18 **HESSE 
 **********

 FCN=   8050.811     FROM HESSE     STATUS=OK            25 CALLS      454 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.308        45.773        .37290E-06   -1.5641    
   2  Index         3.4516        1.7336        .34543E-03   -.31487    
   3  Normalizat    1.2197        .22614        .23074E-05   -.85995    
   4  Prefactor     .77405        .11092        .14331E-05   -1.0069    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.46637e-11
Minuit parameter uncertainties:
  1  45.5014
  2  1.7745
  3  0.226321
  4  0.110954
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/289611': 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) = 8050.81113778
delta logL = 0.167475929656

Extracting fit parameters...

4FGL J1738.3+3228
   Spectrum: PowerLaw
322    Prefactor:  1.131e+01  4.550e+01  0.000e+00  1.000e+06 ( 1.000e-14)
323        Index:  3.452e+00  1.774e+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:  7.740e-01  1.110e-01  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.220e+00  2.263e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/289611/cmap_HighResolution_696297601_696556801_4FGL_J1738.3+3228_daily_bin1763.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.39e-03', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2023-01-28 01:36:17.535872', job_id='289611', GAL2='0.77', fit_tolerance='1e-08', EG2='1.22', EG='1.26', time_epoch_completed='1674898577.54', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='1.67e-01', ts2='0.39', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1763' AND source_name='4FGL J1738.3+3228' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jan 28 01:36:17 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 289611: <4FGL_J1738.3+3228_daily_bin1763> in cluster <slac> Done

Job <4FGL_J1738.3+3228_daily_bin1763> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Sat Jan 28 01:20:21 2023
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jan 28 01:20:34 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:20:34 2023
Terminated at Sat Jan 28 01:36:18 2023
Results reported at Sat Jan 28 01:36:18 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1738.3+3228_daily_bin1763 264.584 32.4823 696297601 696556801 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 :                                   720.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             322.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            957 sec.

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

