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


Performing analysis on: 4FGL_J1937.2-3958_daily_bin1773
RA = 294.309, Dec = -39.9825
tmin = 698889601, tmax = 699148801
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='799734', job_status='RUN', time_executed='2023-02-27 10:17:43.020486', time_epoch_executed='1677521863.02' WHERE source_name='4FGL J1937.2-3958' and cadence='daily' and bin_id='1773'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/799734

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/799734/ft1_4FGL_J1937.2-3958_daily_bin1773.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/799734/ft2_4FGL_J1937.2-3958_daily_bin1773.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/799734/ft1_4FGL_J1937.2-3958_daily_bin1773.fits outfile=/scratch/kocevski/799734/ft1_filteredMKT_4FGL_J1937.2-3958_daily_bin1773.fits ra=294.309 dec=-39.9825 rad=12.0 tmin=698889601.0 tmax=699148801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.97
user 2.74
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/799734/ft2_4FGL_J1937.2-3958_daily_bin1773.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/799734/ft1_filteredMKT_4FGL_J1937.2-3958_daily_bin1773.fits evtable="EVENTS" outfile="/scratch/kocevski/799734/ft1_filtered_4FGL_J1937.2-3958_daily_bin1773.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.34
sys 0.14

Number of photons that the gtmktime cut: 928

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/799734/ft1_filtered_4FGL_J1937.2-3958_daily_bin1773.fits" evtable="EVENTS" scfile=/scratch/kocevski/799734/ft2_4FGL_J1937.2-3958_daily_bin1773.fits sctable="SC_DATA" outfile=/scratch/kocevski/799734/ltcube_698889601_699148801_4FGL_J1937.2-3958_daily_bin1773.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/799734/ft2_4FGL_J1937.2-3958_daily_bin1773.fits
.....................!
real 13.34
user 12.98
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/799734/ft1_filtered_4FGL_J1937.2-3958_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/799734/ft2_4FGL_J1937.2-3958_daily_bin1773.fits sctable="SC_DATA" expcube=/scratch/kocevski/799734/ltcube_698889601_699148801_4FGL_J1937.2-3958_daily_bin1773.fits outfile=/scratch/kocevski/799734/expmap_698889601_699148801_4FGL_J1937.2-3958_daily_bin1773.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/799734/ltcube_698889601_699148801_4FGL_J1937.2-3958_daily_bin1773.fits
.....................!
real 190.83
user 185.24
sys 5.24

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/799734/ft1_filtered_4FGL_J1937.2-3958_daily_bin1773.fits scfile=/scratch/kocevski/799734/ft2_4FGL_J1937.2-3958_daily_bin1773.fits outfile=/scratch/kocevski/799734/cmap_698889601_699148801_4FGL_J1937.2-3958_daily_bin1773.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 0.59
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/799734/ft1_filtered_4FGL_J1937.2-3958_daily_bin1773.fits scfile=/scratch/kocevski/799734/ft2_4FGL_J1937.2-3958_daily_bin1773.fits outfile=/scratch/kocevski/799734/cmap_HighResolution_698889601_699148801_4FGL_J1937.2-3958_daily_bin1773.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.55
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/799734/ft1_filtered_4FGL_J1937.2-3958_daily_bin1773.fits evtable="EVENTS" scfile=/scratch/kocevski/799734/ft2_4FGL_J1937.2-3958_daily_bin1773.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/799734/Model_4FGL_J1937.2-3958_daily_bin1773.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/799734/ft1_filtered_4FGL_J1937.2-3958_daily_bin1773.fits.....................!
real 85.68
user 84.25
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/799734/ft1_filtered_4FGL_J1937.2-3958_daily_bin1773.fits', '/scratch/kocevski/799734/ft2_4FGL_J1937.2-3958_daily_bin1773.fits', expMap='/scratch/kocevski/799734/expmap_698889601_699148801_4FGL_J1937.2-3958_daily_bin1773.fits', expCube='/scratch/kocevski/799734/ltcube_698889601_699148801_4FGL_J1937.2-3958_daily_bin1773.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/799734/Model_4FGL_J1937.2-3958_daily_bin1773.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/799734/ft1_filtered_4FGL_J1937.2-3958_daily_bin1773.fits
Spacecraft file(s): /scratch/kocevski/799734/ft2_4FGL_J1937.2-3958_daily_bin1773.fits
Exposure map: /scratch/kocevski/799734/expmap_698889601_699148801_4FGL_J1937.2-3958_daily_bin1773.fits
Exposure cube: /scratch/kocevski/799734/ltcube_698889601_699148801_4FGL_J1937.2-3958_daily_bin1773.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/799734/Model_4FGL_J1937.2-3958_daily_bin1773.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) = 9668.45600405

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5307       1.0000          .0000       .10000E+07
     2 'norm      '    .12101E-07   1.0000          .0000       .10000E+07
     3 'norm      '    .14954E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.2500       1.0000          .0000       .10000E+07
     5 'Prefactor '    .32959E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .51953E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    31.506       1.0000          .0000       .10000E+07
     8 'norm      '    .46983E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .13340E-05   1.0000          .0000       .10000E+07
    10 'norm      '    7.2812       1.0000          .0000       .10000E+07
    11 'Prefactor '    .20539E-02   1.0000          .0000       .10000E+07
    12 'norm      '    .76172E-04   1.0000          .0000       .10000E+07
    13 'norm      '    30.199       1.0000          .0000       .10000E+07
    14 'norm      '    1.6391       1.0000          .0000       .10000E+07
    15 'norm      '    .93847       1.0000          .0000       .10000E+07
    16 'norm      '    6.6676       1.0000          .0000       .10000E+07
    17 'norm      '    .11255       1.0000          .0000       .10000E+07
    18 'Normalizat'    1.2314       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .92047       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=   9668.413     FROM MIGRAD    STATUS=CONVERGED    108 CALLS     1118 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5478        1.2933       -.29366E-08   -.59855E-02
   2  norm           .0000        2.6281        .42326E-07** at limit **
   3  norm           .0000        .64369       -.63912E-07** at limit **
   4  Prefactor     1.2859        3.4061        .36414E-07    .36472E-04
   5  Prefactor      .0000        2.7120        .97721E-07** at limit **
   6  Prefactor     .55733E-07    8.8030        .29529E-06** at limit **
   7  Prefactor     31.626        4.2682        .27040E-08    .87312E-01
   8  norm          .21927E-07    6.7211        .30962E-06** at limit **
   9  Prefactor      .0000        6.0130        .25017E-06** at limit **
  10  norm          7.2803        1.8249       -.24252E-07    .83624E-03
  11  Prefactor     .62172E-08    12.593        .26168E-06** at limit **
  12  norm          .55511E-10    5.0546        .27839E-06** at limit **
  13  norm          29.930        12.442       -.22826E-07    .27581E-01
  14  norm          1.6392        1.4728        .60696E-07   -.77011E-03
  15  norm          .94430        2.8405        .60622E-07   -.22079E-06
  16  norm          6.6141        2.9251       -.10647E-07    .65314E-03
  17  norm          .53291E-08    143.96       -.20033E-06** at limit **
  18  Normalizat    1.2319        .31642       -.91639E-05    .32578E-04
  19  Prefactor     .92029        .90818E-01    .21046E-05    .49478E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.54777
  norm       = 0
  norm       = 0
  Prefactor  = 1.28592
  Prefactor  = 0
  Prefactor  = 5.57332e-08
  Prefactor  = 31.6259
  norm       = 2.19269e-08
  Prefactor  = 0
  norm       = 7.28034
  Prefactor  = 6.21725e-09
  norm       = 5.55112e-11
  norm       = 29.9303
  norm       = 1.63924
  norm       = 0.944297
  norm       = 6.61406
  norm       = 5.32907e-09
  Normalizat = 1.23188
  Prefactor  = 0.920289
 **********
 **   18 **HESSE 
 **********

 FCN=   9668.413     FROM HESSE     STATUS=OK           314 CALLS     1432 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5478        14.210        .39247E-03   -1.5657    
   2  norm           .0000        2.6411        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm           .0000        .64373        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2859        3.4387        .99998E-03   -1.5685    
   5  Prefactor      .0000        2.7259        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55733E-07    15.286        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     31.626        13.881        .17818E-03   -1.5595    
   8  norm          .21927E-07    14.829        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor      .0000        5.9882        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.2803        1.8262        .37148E-03   -1.5654    
  11  Prefactor     .62172E-08    13.041        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .55511E-10    5.0509        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          29.930        23.959        .18200E-03   -1.5599    
  14  norm          1.6392        1.4614        .82508E-03   -1.5682    
  15  norm          .94430        2.8616        .43136E-03   -1.5689    
  16  norm          6.6141        21.878        .38837E-03   -1.5657    
  17  norm          .53291E-08    23.951        .17651E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2319        .28485        .10378       -.85623    
  19  Prefactor     .92029        .79066E-01    .34017E-01   -.95436    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24677e-07
Minuit parameter uncertainties:
  1  14.2105
  2  3.35441e-06
  3  1.01304e-06
  4  3.43875
  5  4.2156e-06
  6  0.0018461
  7  13.8813
  8  0.00114048
  9  1.01432e-05
  10  1.82617
  11  0.000569573
  12  3.52095e-05
  13  23.9589
  14  1.46136
  15  2.86157
  16  21.878
  17  0.000716142
  18  0.285206
  19  0.0790763
Done.

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

Extracting fit parameters...

4FGL J1937.2-3958
   Spectrum: PowerLaw
577    Prefactor:  3.163e+01  1.388e+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:  9.203e-01  7.908e-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.232e+00  2.852e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.80
Ra Dec: 294.309 -39.983
Photon Index (Fixed Index): 2.66 +/- 0.00
Photon Flux (Fixed Index): 1.76e-07 +/- 7.70e-08
Energy Flux (Fixed Index): 4.36e-05 +/- 1.92e-05

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) = 9668.08358373
delta logL = 0.329043544825

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9668.07159783
delta logL = 0.341029441388

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.468       1.0000          .0000       .10000E+07
     2 'Index     '    2.2936       1.0000          .0000       10.000    
     3 'Normalizat'    1.2835       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91103       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=   9668.072     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      269 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.467        16.492        .67172E-05    .17340E-01
   2  Index         2.2933        .42314        .75040E-02    .59308E-03
   3  Normalizat    1.2835        .32020        .45217E-03   -.71145E-03
   4  Prefactor     .91103        .90797E-01    .15100E-03   -.23859E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.4671
  Index      = 2.2933
  Normalizat = 1.28355
  Prefactor  = 0.911031
 **********
 **   18 **HESSE 
 **********

 FCN=   9668.072     FROM HESSE     STATUS=OK            23 CALLS      292 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.467        16.499        .13434E-05   -1.5589    
   2  Index         2.2933        .42309        .15008E-02   -.57203    
   3  Normalizat    1.2835        .32042        .90435E-04   -.84059    
   4  Prefactor     .91103        .90845E-01    .30200E-04   -.95757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.89614e-09
Minuit parameter uncertainties:
  1  16.4988
  2  0.423806
  3  0.32092
  4  0.0908599
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/799734': 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) = 9668.07159759
delta logL = 0.341029681664

Extracting fit parameters...

4FGL J1937.2-3958
   Spectrum: PowerLaw
577    Prefactor:  3.547e+01  1.650e+01  0.000e+00  1.000e+06 ( 1.000e-12)
578        Index:  2.293e+00  4.238e-01  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:  9.110e-01  9.086e-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.284e+00  3.209e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.45
Ra Dec: 294.309 -39.983
Photon Index (Free Index): 2.29 +/- 0.42
Photon Flux (Free Index): 1.35e-07 +/- 8.35e-08
Energy Flux (Free Index): 5.18e-05 +/- 2.78e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/799734/cmap_HighResolution_698889601_699148801_4FGL_J1937.2-3958_daily_bin1773.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.76e-07', energy_flux2='5.18e-05', photon_flux_error='7.70e-08', dlogl='3.41e-01', energy_flux='4.36e-05', photon_flux2='1.35e-07', job_status='DONE', time_completed='2023-02-27 10:29:27.228139', photon_index_error2='0.42', photon_index2='2.29', ts='8.80', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='2.78e-05', EG='1.23', time_epoch_completed='1677522567.23', return_code='0', job_id='799734', GAL2='0.91', EG2='1.28', return_code2='0', energy_flux_error='1.92e-05', photon_flux_error2='8.35e-08', ts2='9.45', photon_index='2.66' WHERE bin_id='1773' AND source_name='4FGL J1937.2-3958' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb 27 10:29:27 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 799734: <4FGL_J1937.2-3958_daily_bin1773> in cluster <slac> Done

Job <4FGL_J1937.2-3958_daily_bin1773> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Feb 27 10:15:23 2023
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb 27 10:15:24 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb 27 10:15:24 2023
Terminated at Mon Feb 27 10:29:42 2023
Results reported at Mon Feb 27 10:29:42 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1937.2-3958_daily_bin1773 294.309 -39.9825 698889601 699148801 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 :                                   705.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             247.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            859 sec.

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

