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


Performing analysis on: 4FGL_J1642.9+3948_daily_bin1764
RA = 250.734, Dec = 39.8164
tmin = 696556801, tmax = 696816001
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='456932', job_status='RUN', time_executed='2023-01-31 01:29:38.421259', time_epoch_executed='1675157378.42' WHERE source_name='4FGL J1642.9+3948' and cadence='daily' and bin_id='1764'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/456932

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/456932/ft1_4FGL_J1642.9+3948_daily_bin1764.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/456932/ft2_4FGL_J1642.9+3948_daily_bin1764.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/456932/ft1_4FGL_J1642.9+3948_daily_bin1764.fits outfile=/scratch/kocevski/456932/ft1_filteredMKT_4FGL_J1642.9+3948_daily_bin1764.fits ra=250.734 dec=39.8164 rad=12.0 tmin=696556801.0 tmax=696816001.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.77
user 3.47
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/456932/ft2_4FGL_J1642.9+3948_daily_bin1764.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/456932/ft2_4FGL_J1642.9+3948_daily_bin1764.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/456932/ft1_filteredMKT_4FGL_J1642.9+3948_daily_bin1764.fits evtable="EVENTS" outfile="/scratch/kocevski/456932/ft1_filtered_4FGL_J1642.9+3948_daily_bin1764.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.37
sys 0.12

Number of photons that the gtmktime cut: 671

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/456932/ft1_filtered_4FGL_J1642.9+3948_daily_bin1764.fits" evtable="EVENTS" scfile=/scratch/kocevski/456932/ft2_4FGL_J1642.9+3948_daily_bin1764.fits sctable="SC_DATA" outfile=/scratch/kocevski/456932/ltcube_696556801_696816001_4FGL_J1642.9+3948_daily_bin1764.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/456932/ft2_4FGL_J1642.9+3948_daily_bin1764.fits
.....................!
real 16.08
user 15.60
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/456932/ft1_filtered_4FGL_J1642.9+3948_daily_bin1764.fits evtable="EVENTS" scfile=/scratch/kocevski/456932/ft2_4FGL_J1642.9+3948_daily_bin1764.fits sctable="SC_DATA" expcube=/scratch/kocevski/456932/ltcube_696556801_696816001_4FGL_J1642.9+3948_daily_bin1764.fits outfile=/scratch/kocevski/456932/expmap_696556801_696816001_4FGL_J1642.9+3948_daily_bin1764.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/456932/ltcube_696556801_696816001_4FGL_J1642.9+3948_daily_bin1764.fits
.....................!
real 195.09
user 189.07
sys 5.01

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

Setting source of interest to:
4FGL J1642.9+3948 @ 250.734 39.8164

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/456932/ft1_filtered_4FGL_J1642.9+3948_daily_bin1764.fits scfile=/scratch/kocevski/456932/ft2_4FGL_J1642.9+3948_daily_bin1764.fits outfile=/scratch/kocevski/456932/cmap_696556801_696816001_4FGL_J1642.9+3948_daily_bin1764.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=250.734 yref=39.8164 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/456932/ft1_filtered_4FGL_J1642.9+3948_daily_bin1764.fits scfile=/scratch/kocevski/456932/ft2_4FGL_J1642.9+3948_daily_bin1764.fits outfile=/scratch/kocevski/456932/cmap_HighResolution_696556801_696816001_4FGL_J1642.9+3948_daily_bin1764.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=250.734 yref=39.8164 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/456932/ft1_filtered_4FGL_J1642.9+3948_daily_bin1764.fits evtable="EVENTS" scfile=/scratch/kocevski/456932/ft2_4FGL_J1642.9+3948_daily_bin1764.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/456932/Model_4FGL_J1642.9+3948_daily_bin1764.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/456932/ft1_filtered_4FGL_J1642.9+3948_daily_bin1764.fits.....................!
real 57.11
user 55.67
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/456932/ft1_filtered_4FGL_J1642.9+3948_daily_bin1764.fits', '/scratch/kocevski/456932/ft2_4FGL_J1642.9+3948_daily_bin1764.fits', expMap='/scratch/kocevski/456932/expmap_696556801_696816001_4FGL_J1642.9+3948_daily_bin1764.fits', expCube='/scratch/kocevski/456932/ltcube_696556801_696816001_4FGL_J1642.9+3948_daily_bin1764.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/456932/Model_4FGL_J1642.9+3948_daily_bin1764.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1642.9+3948'

4FGL J1642.9+3948
   Spectrum: PowerLaw
304    Prefactor:  1.494e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
305        Index:  2.402e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
306        Scale:  1.373e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/456932/ft1_filtered_4FGL_J1642.9+3948_daily_bin1764.fits
Spacecraft file(s): /scratch/kocevski/456932/ft2_4FGL_J1642.9+3948_daily_bin1764.fits
Exposure map: /scratch/kocevski/456932/expmap_696556801_696816001_4FGL_J1642.9+3948_daily_bin1764.fits
Exposure cube: /scratch/kocevski/456932/ltcube_696556801_696816001_4FGL_J1642.9+3948_daily_bin1764.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/456932/Model_4FGL_J1642.9+3948_daily_bin1764.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) = 7143.6621601

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .28476E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    .35083E-01   1.0000          .0000       .10000E+07
     3 'Prefactor '    .76825E-05   1.0000          .0000       .10000E+07
     4 'Prefactor '    2.5152       1.0000          .0000       .10000E+07
     5 'Prefactor '    .22266E-05   1.0000          .0000       .10000E+07
     6 'Prefactor '    .20439E-06   1.0000          .0000       .10000E+07
     7 'norm      '    .18192       1.0000          .0000       .10000E+07
     8 'norm      '    6.6636       1.0000          .0000       .10000E+07
     9 'Prefactor '    .15002E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .57944E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .21381E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    .37061       1.0000          .0000       .10000E+07
    13 'Prefactor '    1.8657       1.0000          .0000       .10000E+07
    14 'Prefactor '    .10568E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    .16300E-03   1.0000          .0000       .10000E+07
    16 'norm      '    4.6992       1.0000          .0000       .10000E+07
    17 'norm      '    .26756E-07   1.0000          .0000       .10000E+07
    18 'Prefactor '    .84710E-06   1.0000          .0000       .10000E+07
    19 'norm      '    .73286       1.0000          .0000       .10000E+07
    20 'norm      '    5.6972       1.0000          .0000       .10000E+07
    21 'norm      '    8.4318       1.0000          .0000       .10000E+07
    22 'norm      '    2.4142       1.0000          .0000       .10000E+07
    23 'Prefactor '    .48531E-03   1.0000          .0000       .10000E+07
    24 'Normalizat'    1.1841       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .77254       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7143.612     FROM MIGRAD    STATUS=CONVERGED    143 CALLS     1659 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    5.8060       -.13839E-06** at limit **
   2  Prefactor     .64060E-07    1.4276       -.14518E-08** at limit **
   3  Prefactor     .12768E-08    .60102        .38104E-08** at limit **
   4  Prefactor     2.4971        4.2838       -.68546E-07   -.41363E-03
   5  Prefactor     .11102E-09    16.430        .82704E-07** at limit **
   6  Prefactor     .55511E-10    .99072        .72152E-08** at limit **
   7  norm          .18194        .11016        .11415E-07** at limit **
   8  norm          6.5685        5.8734        .20019E-07   -.67801E-01
   9  Prefactor     .17208E-08    15.133        .32735E-07** at limit **
  10  Prefactor     .21094E-08    .85402       -.98544E-08** at limit **
  11  norm          .14064E-05    23.925       -.53936E-07** at limit **
  12  Prefactor     .37118        1.3454       -.68991E-07    .87442E-03
  13  Prefactor     1.8656        1.3478        .33666E-07    .82111E-02
  14  Prefactor     .10547E-08    1.2906       -.19769E-07** at limit **
  15  Prefactor     .49960E-09    2.2151        .43040E-07** at limit **
  16  norm          4.6994        1.7855       -.12806E-07   -.28058E-02
  17  norm           .0000        .24079       -.29247E-07** at limit **
  18  Prefactor     .49960E-09    1.3901        .84461E-08** at limit **
  19  norm          .73285        .67288        .28987E-07    .82541E-02
  20  norm          5.6485        2.2798        .11301E-07    .80763E-02
  21  norm          8.4318        2.0864       -.16510E-07   -.51045E-02
  22  norm          2.4744        4.4135        .33432E-07    .12706E-01
  23  Prefactor     .18874E-08    22.850        .18102E-06** at limit **
  24  Normalizat    1.1842        .20764        .30222E-05    .63170E-04
  25  Prefactor     .77243        .16935       -.33300E-05   -.99983E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 6.40599e-08
  Prefactor  = 1.27676e-09
  Prefactor  = 2.49714
  Prefactor  = 1.11022e-10
  Prefactor  = 5.55112e-11
  norm       = 0.181942
  norm       = 6.5685
  Prefactor  = 1.72085e-09
  Prefactor  = 2.10942e-09
  norm       = 1.40638e-06
  Prefactor  = 0.37118
  Prefactor  = 1.86564
  Prefactor  = 1.05471e-09
  Prefactor  = 4.996e-10
  norm       = 4.69942
  norm       = 0
  Prefactor  = 4.996e-10
  norm       = 0.732846
  norm       = 5.64853
  norm       = 8.43177
  norm       = 2.47438
  Prefactor  = 1.88738e-09
  Normalizat = 1.18417
  Prefactor  = 0.772435
 **********
 **   18 **HESSE 
 **********

 FCN=   7143.612     FROM HESSE     STATUS=OK           479 CALLS     2138 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    5.8150        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .64060E-07    32.343        .16193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .12768E-08    1.2029        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.4971        4.3163        .64396E-03   -1.5676    
   5  Prefactor     .11102E-09    16.452        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .55511E-10    .98981        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .18194        .11723        .45239E-03   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.5685        8.7965        .38849E-03   -1.5657    
   9  Prefactor     .17208E-08    7.9424        .82173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .21094E-08    1.2011        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .14064E-05    39.738        .16948E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .37118        1.7076        .92974E-03   -1.5696    
  13  Prefactor     1.8656        1.5535        .76242E-03   -1.5681    
  14  Prefactor     .10547E-08    1.3893        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .49960E-09    2.2064        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.6994        1.7908        .46397E-03   -1.5665    
  17  norm           .0000        .23820        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .49960E-09    1.4011        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .73285        .68071        .58080E-03   -1.5691    
  20  norm          5.6485        5.7193        .42059E-03   -1.5660    
  21  norm          8.4318        2.0882        .34499E-03   -1.5650    
  22  norm          2.4744        5.4022        .65855E-03   -1.5677    
  23  Prefactor     .18874E-08    22.910        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1842        .17414        .54520E-01   -.87093    
  25  Prefactor     .77243        .14132        .43359E-01   -1.0075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03713e-07
Minuit parameter uncertainties:
  1  4.27563e-05
  2  0.00287861
  3  7.85596e-05
  4  4.3163
  5  8.87161e-05
  6  1.20519e-05
  7  0.117233
  8  8.79655
  9  0.000234106
  10  0.000100867
  11  0.0149518
  12  1.59227
  13  1.5535
  14  7.66977e-05
  15  6.5507e-05
  16  1.79079
  17  2.56727e-06
  18  5.15013e-05
  19  0.680707
  20  5.71935
  21  2.08817
  22  5.40219
  23  0.00041603
  24  0.174226
  25  0.141388
Done.

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

Extracting fit parameters...

4FGL J1642.9+3948
   Spectrum: PowerLaw
304    Prefactor:  1.866e+00  1.554e+00  0.000e+00  1.000e+06 ( 1.000e-12)
305        Index:  2.402e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
306        Scale:  1.373e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  7.724e-01  1.414e-01  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  1.184e+00  1.742e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.64
Ra Dec: 250.734 39.816
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 7.19e-08 +/- 5.98e-08
Energy Flux (Fixed Index): 2.35e-05 +/- 1.96e-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) = 7142.71701263
delta logL = 0.895071544985

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7142.68448117
delta logL = 0.927603006762

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7142.684     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      207 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2283        50.185        .68854E-03   -.86402E-03
   2  Index         1.6356        5.3262        .24309       -.47522E-04
   3  Normalizat    1.2395        .22043        .53574E-01    .49337E-05
   4  Prefactor     .74669        .99226E-01    .43019E-01    .19142E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.22832
  Index      = 1.63557
  Normalizat = 1.2395
  Prefactor  = 0.746693
 **********
 **   18 **HESSE 
 **********

 FCN=   7142.684     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2283        1.6907        .81584E-05   -1.5678    
   2  Index         1.6356        .55139        .83373E-02   -.73810    
   3  Normalizat    1.2395        .20430        .23688E-03   -.85391    
   4  Prefactor     .74669        .16766        .24447E-03   -1.0172    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34551e-12
Minuit parameter uncertainties:
  1  1.69066
  2  0.553453
  3  0.204434
  4  0.167774
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/456932': 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) = 7142.68448106
delta logL = 0.92760311523

Extracting fit parameters...

4FGL J1642.9+3948
   Spectrum: PowerLaw
304    Prefactor:  2.228e+00  1.691e+00  0.000e+00  1.000e+06 ( 1.000e-12)
305        Index:  1.636e+00  5.535e-01  0.000e+00  1.000e+01 (-1.000e+00)
306        Scale:  1.373e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  7.467e-01  1.678e-01  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  1.239e+00  2.044e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.54
Ra Dec: 250.734 39.816
Photon Index (Free Index): 1.64 +/- 0.55
Photon Flux (Free Index): 2.51e-08 +/- 3.00e-08
Energy Flux (Free Index): 5.06e-05 +/- 5.37e-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/456932/cmap_HighResolution_696556801_696816001_4FGL_J1642.9+3948_daily_bin1764.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.19e-08', energy_flux2='5.06e-05', photon_flux_error='5.98e-08', dlogl='9.28e-01', energy_flux='2.35e-05', photon_flux2='2.51e-08', job_status='DONE', time_completed='2023-01-31 01:40:14.101693', photon_index_error2='0.55', photon_index2='1.64', ts='12.64', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', energy_flux_error2='5.37e-05', EG='1.18', time_epoch_completed='1675158014.1', return_code='0', job_id='456932', GAL2='0.75', EG2='1.24', return_code2='0', energy_flux_error='1.96e-05', photon_flux_error2='3.00e-08', ts2='14.54', photon_index='2.40' WHERE bin_id='1764' AND source_name='4FGL J1642.9+3948' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jan 31 01:40:14 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 456932: <4FGL_J1642.9+3948_daily_bin1764> in cluster <slac> Done

Job <4FGL_J1642.9+3948_daily_bin1764> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Jan 31 01:25:27 2023
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 31 01:26:05 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 31 01:26:05 2023
Terminated at Tue Jan 31 01:40:14 2023
Results reported at Tue Jan 31 01:40:14 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1642.9+3948_daily_bin1764 250.734 39.8164 696556801 696816001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1642.9+3948 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   636.00 sec.
    Max Memory :                                 1220 MB
    Average Memory :                             291.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            887 sec.

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

