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


Performing analysis on: 4FGL_J1937.2-3958_daily_bin1748
RA = 294.309, Dec = -39.9825
tmin = 692409601, tmax = 692668801
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='894059', job_status='RUN', time_executed='2022-12-14 01:06:37.944911', time_epoch_executed='1671008797.94' WHERE source_name='4FGL J1937.2-3958' and cadence='daily' and bin_id='1748'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/894059

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/894059/ft1_4FGL_J1937.2-3958_daily_bin1748.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/894059/ft2_4FGL_J1937.2-3958_daily_bin1748.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/894059/ft1_4FGL_J1937.2-3958_daily_bin1748.fits outfile=/scratch/kocevski/894059/ft1_filteredMKT_4FGL_J1937.2-3958_daily_bin1748.fits ra=294.309 dec=-39.9825 rad=12.0 tmin=692409601.0 tmax=692668801.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.60
user 3.36
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/894059/ft2_4FGL_J1937.2-3958_daily_bin1748.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/894059/ft2_4FGL_J1937.2-3958_daily_bin1748.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/894059/ft1_filteredMKT_4FGL_J1937.2-3958_daily_bin1748.fits evtable="EVENTS" outfile="/scratch/kocevski/894059/ft1_filtered_4FGL_J1937.2-3958_daily_bin1748.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.49
user 0.33
sys 0.15

Number of photons that the gtmktime cut: 822

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/894059/ft1_filtered_4FGL_J1937.2-3958_daily_bin1748.fits" evtable="EVENTS" scfile=/scratch/kocevski/894059/ft2_4FGL_J1937.2-3958_daily_bin1748.fits sctable="SC_DATA" outfile=/scratch/kocevski/894059/ltcube_692409601_692668801_4FGL_J1937.2-3958_daily_bin1748.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/894059/ft2_4FGL_J1937.2-3958_daily_bin1748.fits
.....................!
real 12.34
user 11.98
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/894059/ft1_filtered_4FGL_J1937.2-3958_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/894059/ft2_4FGL_J1937.2-3958_daily_bin1748.fits sctable="SC_DATA" expcube=/scratch/kocevski/894059/ltcube_692409601_692668801_4FGL_J1937.2-3958_daily_bin1748.fits outfile=/scratch/kocevski/894059/expmap_692409601_692668801_4FGL_J1937.2-3958_daily_bin1748.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/894059/ltcube_692409601_692668801_4FGL_J1937.2-3958_daily_bin1748.fits
.....................!
real 200.48
user 195.66
sys 4.44

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

Setting source of interest to:
4FGL J1937.2-3958 @ 294.309 -39.9825

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/894059/ft1_filtered_4FGL_J1937.2-3958_daily_bin1748.fits scfile=/scratch/kocevski/894059/ft2_4FGL_J1937.2-3958_daily_bin1748.fits outfile=/scratch/kocevski/894059/cmap_692409601_692668801_4FGL_J1937.2-3958_daily_bin1748.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=294.309 yref=-39.9825 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 1.04
user 0.43
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/894059/ft1_filtered_4FGL_J1937.2-3958_daily_bin1748.fits scfile=/scratch/kocevski/894059/ft2_4FGL_J1937.2-3958_daily_bin1748.fits outfile=/scratch/kocevski/894059/cmap_HighResolution_692409601_692668801_4FGL_J1937.2-3958_daily_bin1748.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=294.309 yref=-39.9825 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/894059/ft1_filtered_4FGL_J1937.2-3958_daily_bin1748.fits evtable="EVENTS" scfile=/scratch/kocevski/894059/ft2_4FGL_J1937.2-3958_daily_bin1748.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/894059/Model_4FGL_J1937.2-3958_daily_bin1748.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/894059/ft1_filtered_4FGL_J1937.2-3958_daily_bin1748.fits.....................!
real 89.44
user 87.26
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/894059/ft1_filtered_4FGL_J1937.2-3958_daily_bin1748.fits', '/scratch/kocevski/894059/ft2_4FGL_J1937.2-3958_daily_bin1748.fits', expMap='/scratch/kocevski/894059/expmap_692409601_692668801_4FGL_J1937.2-3958_daily_bin1748.fits', expCube='/scratch/kocevski/894059/ltcube_692409601_692668801_4FGL_J1937.2-3958_daily_bin1748.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/894059/Model_4FGL_J1937.2-3958_daily_bin1748.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1937.2-3958'

4FGL J1937.2-3958
   Spectrum: PowerLaw
577    Prefactor:  5.014e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
578        Index:  2.661e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
579        Scale:  5.474e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/894059/ft1_filtered_4FGL_J1937.2-3958_daily_bin1748.fits
Spacecraft file(s): /scratch/kocevski/894059/ft2_4FGL_J1937.2-3958_daily_bin1748.fits
Exposure map: /scratch/kocevski/894059/expmap_692409601_692668801_4FGL_J1937.2-3958_daily_bin1748.fits
Exposure cube: /scratch/kocevski/894059/ltcube_692409601_692668801_4FGL_J1937.2-3958_daily_bin1748.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/894059/Model_4FGL_J1937.2-3958_daily_bin1748.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) = 8810.91913207

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .32200E-03   1.0000          .0000       .10000E+07
     2 'norm      '    .16359E-04   1.0000          .0000       .10000E+07
     3 'norm      '    1.0973       1.0000          .0000       .10000E+07
     4 'Prefactor '    10.828       1.0000          .0000       .10000E+07
     5 'Prefactor '    .13249E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .58445E-04   1.0000          .0000       .10000E+07
     7 'Prefactor '    11.738       1.0000          .0000       .10000E+07
     8 'norm      '    28.673       1.0000          .0000       .10000E+07
     9 'Prefactor '    .63560E-07   1.0000          .0000       .10000E+07
    10 'norm      '    15.355       1.0000          .0000       .10000E+07
    11 'Prefactor '    .41262E-02   1.0000          .0000       .10000E+07
    12 'norm      '    .13592E-05   1.0000          .0000       .10000E+07
    13 'norm      '    .49849E-07   1.0000          .0000       .10000E+07
    14 'norm      '    3.8470       1.0000          .0000       .10000E+07
    15 'norm      '    .77810E-06   1.0000          .0000       .10000E+07
    16 'norm      '    36.153       1.0000          .0000       .10000E+07
    17 'norm      '    .12984E-03   1.0000          .0000       .10000E+07
    18 'Normalizat'    1.5057       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .88117       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8810.828     FROM MIGRAD    STATUS=CONVERGED    115 CALLS     1106 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .33584E-07    9.7062       -.35573E-05** at limit **
   2  norm          .46074E-08    18.447        .12043E-05** at limit **
   3  norm          1.0968        1.3139        .13652E-06    .11981E-02
   4  Prefactor     10.829        6.8428       -.92526E-07   -.53293E-03
   5  Prefactor     .62728E-07    6.0837       -.31501E-05** at limit **
   6  Prefactor     .83544E-07    5.5701        .18163E-05** at limit **
   7  Prefactor     11.908        1.3548       -.18224E-06   -.18613E-02
   8  norm          28.951        1.9170       -.18169E-06    .16788E-01
   9  Prefactor      .0000        4.1864       -.83325E-06** at limit **
  10  norm          15.352        2.3518        .67477E-07    .24841E-02
  11  Prefactor     .70777E-07    7.6359        .27422E-05** at limit **
  12  norm           .0000        2.8183        .65173E-08** at limit **
  13  norm          .66613E-09    6.6529        .22311E-06** at limit **
  14  norm          3.8467        2.0607       -.33282E-07   -.84144E-03
  15  norm           .0000        1.6404        .32406E-06** at limit **
  16  norm          35.565        4.7517        .48167E-06   -.39633E-01
  17  norm          .28866E-08    33.939       -.20240E-05** at limit **
  18  Normalizat    1.5060        .35617        .38377E-05    .27626E-05
  19  Prefactor     .88109        .10378       -.13234E-05   -.12157E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.35842e-08
  norm       = 4.60743e-09
  norm       = 1.09684
  Prefactor  = 10.8292
  Prefactor  = 6.27276e-08
  Prefactor  = 8.35443e-08
  Prefactor  = 11.9083
  norm       = 28.9511
  Prefactor  = 0
  norm       = 15.3522
  Prefactor  = 7.07767e-08
  norm       = 0
  norm       = 6.66134e-10
  norm       = 3.84668
  norm       = 0
  norm       = 35.5648
  norm       = 2.88658e-09
  Normalizat = 1.506
  Prefactor  = 0.881093
 **********
 **   18 **HESSE 
 **********

 FCN=   8810.828     FROM HESSE     STATUS=OK           302 CALLS     1408 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .33584E-07    11.747        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .46074E-08    18.933        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.0968        1.3285        .11362E-02   -1.5687    
   4  Prefactor     10.829        6.8507        .30422E-03   -1.5642    
   5  Prefactor     .62728E-07    7.8696        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .83544E-07    8.2115        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.908        15.284        .29214E-03   -1.5639    
   8  norm          28.951        25.531        .18678E-03   -1.5600    
   9  Prefactor      .0000        4.1660        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          15.352        2.3623        .25533E-03   -1.5630    
  11  Prefactor     .70777E-07    10.653        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm           .0000        2.8250        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .66613E-09    6.6730        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.8467        2.0621        .51429E-03   -1.5669    
  15  norm           .0000        1.6434        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          35.565        21.919        .16633E-03   -1.5589    
  17  norm          .28866E-08    33.962        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.5060        .30328        .10259       -.77610    
  19  Prefactor     .88109        .87090E-01    .44765E-01   -.96805    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.85617e-08
Minuit parameter uncertainties:
  1  0.00125621
  2  0.000589095
  3  1.32853
  4  6.85068
  5  0.0014053
  6  0.00165651
  7  15.2836
  8  25.5313
  9  1.56275e-05
  10  2.36226
  11  0.00173632
  12  1.22894e-05
  13  0.000131696
  14  2.06211
  15  1.45645e-06
  16  21.9194
  17  0.000625002
  18  0.303648
  19  0.0871038
Done.

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

Extracting fit parameters...

4FGL J1937.2-3958
   Spectrum: PowerLaw
577    Prefactor:  1.191e+01  1.528e+01  0.000e+00  1.000e+06 ( 1.000e-12)
578        Index:  2.661e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
579        Scale:  5.474e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
870    Prefactor:  8.811e-01  8.710e-02  0.000e+00  1.000e+01 ( 1.000e+00)
871        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
872        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
869   Normalization:  1.506e+00  3.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.76
Ra Dec: 294.309 -39.983
Photon Flux Upper Limit: 2.43e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.91e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/894059/likelihoodResults_692409601_692668801_4FGL_J1937.2-3958_daily_bin1748.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): 0
logL (Free Index) = 8810.79462499
delta logL = 0.0336838675357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8810.7845559
delta logL = 0.0437529591563

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.8108       1.0000          .0000       .10000E+07
     2 'Index     '    3.0051       1.0000          .0000       10.000    
     3 'Normalizat'    1.4882       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88461       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .8730E+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=   8810.785     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      246 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8111        17.719        .12787E-04    .17070E-03
   2  Index         3.0051        1.4048        .12928E-01    .18871E-04
   3  Normalizat    1.4882        .36291        .45675E-03    .38580E-04
   4  Prefactor     .88461        .10431        .16642E-03    .10376E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.8111
  Index      = 3.00506
  Normalizat = 1.4882
  Prefactor  = 0.884609
 **********
 **   18 **HESSE 
 **********

 FCN=   8810.785     FROM HESSE     STATUS=OK            25 CALLS      271 TOTAL
                     EDM=   .42E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8111        15.576        .51149E-06   -1.5645    
   2  Index         3.0051        1.2375        .51714E-03   -.41041    
   3  Normalizat    1.4882        .36274        .18270E-04   -.78110    
   4  Prefactor     .88461        .10417        .33284E-04   -.96681    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20071e-12
Minuit parameter uncertainties:
  1  15.5756
  2  1.25304
  3  0.363379
  4  0.104198
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/894059': 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) = 8810.78455589
delta logL = 0.0437529614283

Extracting fit parameters...

4FGL J1937.2-3958
   Spectrum: PowerLaw
577    Prefactor:  9.811e+00  1.558e+01  0.000e+00  1.000e+06 ( 1.000e-12)
578        Index:  3.005e+00  1.253e+00  0.000e+00  1.000e+01 (-1.000e+00)
579        Scale:  5.474e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
870    Prefactor:  8.846e-01  1.042e-01  0.000e+00  1.000e+01 ( 1.000e+00)
871        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
872        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
869   Normalization:  1.488e+00  3.634e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.76
Ra Dec: 294.309 -39.983

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/894059/cmap_HighResolution_692409601_692668801_4FGL_J1937.2-3958_daily_bin1748.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.91e-02', job_status='DONE', photon_flux_upper_limit='2.43e-07', time_completed='2022-12-14 01:19:06.660318', job_id='894059', GAL2='0.88', fit_tolerance='1e-08', EG2='1.49', EG='1.51', time_epoch_completed='1671009546.66', return_code2='0', ts='0.76', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='4.38e-02', ts2='0.86', photon_index_error='0.00', photon_index='2.66' WHERE bin_id='1748' AND source_name='4FGL J1937.2-3958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec 14 01:19:06 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0164>
Subject: Job 894059: <4FGL_J1937.2-3958_daily_bin1748> in cluster <slac> Done

Job <4FGL_J1937.2-3958_daily_bin1748> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Dec 14 01:05:27 2022
Job was executed on host(s) <bullet0164>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec 14 01:05:28 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec 14 01:05:28 2022
Terminated at Wed Dec 14 01:19:07 2022
Results reported at Wed Dec 14 01:19:07 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1937.2-3958_daily_bin1748 294.309 -39.9825 692409601 692668801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1937.2-3958 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   750.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             361.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            820 sec.

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

