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 91 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J1642.9+3948_daily_bin1693
RA = 250.734, Dec = 39.8164
tmin = 678153601, tmax = 678412801
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='541514', job_status='RUN', time_executed='2022-07-02 02:39:27.521957', time_epoch_executed='1656754767.52' WHERE source_name='4FGL J1642.9+3948' and cadence='daily' and bin_id='1693'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/541514

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/541514/ft1_4FGL_J1642.9+3948_daily_bin1693.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/541514/ft2_4FGL_J1642.9+3948_daily_bin1693.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/541514/ft1_4FGL_J1642.9+3948_daily_bin1693.fits outfile=/scratch/kocevski/541514/ft1_filteredMKT_4FGL_J1642.9+3948_daily_bin1693.fits ra=250.734 dec=39.8164 rad=12.0 tmin=678153601.0 tmax=678412801.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 4.28
user 3.92
sys 0.25

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

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

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

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

Number of photons that the gtmktime cut: 692

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/541514/ft1_filtered_4FGL_J1642.9+3948_daily_bin1693.fits" evtable="EVENTS" scfile=/scratch/kocevski/541514/ft2_4FGL_J1642.9+3948_daily_bin1693.fits sctable="SC_DATA" outfile=/scratch/kocevski/541514/ltcube_678153601_678412801_4FGL_J1642.9+3948_daily_bin1693.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/541514/ft2_4FGL_J1642.9+3948_daily_bin1693.fits
.....................!
real 13.72
user 13.33
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/541514/ft1_filtered_4FGL_J1642.9+3948_daily_bin1693.fits evtable="EVENTS" scfile=/scratch/kocevski/541514/ft2_4FGL_J1642.9+3948_daily_bin1693.fits sctable="SC_DATA" expcube=/scratch/kocevski/541514/ltcube_678153601_678412801_4FGL_J1642.9+3948_daily_bin1693.fits outfile=/scratch/kocevski/541514/expmap_678153601_678412801_4FGL_J1642.9+3948_daily_bin1693.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/541514/ltcube_678153601_678412801_4FGL_J1642.9+3948_daily_bin1693.fits
.....................!
real 193.65
user 187.87
sys 5.38

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/541514/ft1_filtered_4FGL_J1642.9+3948_daily_bin1693.fits scfile=/scratch/kocevski/541514/ft2_4FGL_J1642.9+3948_daily_bin1693.fits outfile=/scratch/kocevski/541514/cmap_678153601_678412801_4FGL_J1642.9+3948_daily_bin1693.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.58
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/541514/ft1_filtered_4FGL_J1642.9+3948_daily_bin1693.fits scfile=/scratch/kocevski/541514/ft2_4FGL_J1642.9+3948_daily_bin1693.fits outfile=/scratch/kocevski/541514/cmap_HighResolution_678153601_678412801_4FGL_J1642.9+3948_daily_bin1693.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.56
user 0.39
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/541514/ft1_filtered_4FGL_J1642.9+3948_daily_bin1693.fits', '/scratch/kocevski/541514/ft2_4FGL_J1642.9+3948_daily_bin1693.fits', expMap='/scratch/kocevski/541514/expmap_678153601_678412801_4FGL_J1642.9+3948_daily_bin1693.fits', expCube='/scratch/kocevski/541514/ltcube_678153601_678412801_4FGL_J1642.9+3948_daily_bin1693.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/541514/Model_4FGL_J1642.9+3948_daily_bin1693.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  1.000e-04  1.000e+04 ( 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/541514/ft1_filtered_4FGL_J1642.9+3948_daily_bin1693.fits
Spacecraft file(s): /scratch/kocevski/541514/ft2_4FGL_J1642.9+3948_daily_bin1693.fits
Exposure map: /scratch/kocevski/541514/expmap_678153601_678412801_4FGL_J1642.9+3948_daily_bin1693.fits
Exposure cube: /scratch/kocevski/541514/ltcube_678153601_678412801_4FGL_J1642.9+3948_daily_bin1693.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/541514/Model_4FGL_J1642.9+3948_daily_bin1693.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) = 7410.78789156

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.621       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1844       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.1436       1.0000         .10000E-03   10000.    
     7 'norm      '    .40120       1.0000         .10000E-03   10000.    
     8 'norm      '    11.279       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.7011       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .34442       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .17002E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.6179       1.0000         .10000E-03   10000.    
    17 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.1379       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.5021       1.0000         .10000E-03   10000.    
    21 'norm      '    4.7719       1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.121       1.0000         .10000E-03   10000.    
    23 'norm      '    26.143       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .78164       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1152       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   7410.762     FROM MIGRAD    STATUS=FAILED      1138 CALLS     4150 TOTAL
                     EDM=   .28E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.3492        .18142E-02** at limit **
   2  Prefactor     29.591        47.594        .73615E-04   -.30887E-06
   3  Prefactor     .10000E-03    3.6109        .21650E-02** at limit **
   4  Prefactor     3.1868        5.0441        .11354E-02   -.42809E-03
   5  Prefactor     .10000E-03    7.4278        .18142E-02** at limit **
   6  Prefactor     3.1432        3.4873        .15469E-03   -.32338E-05
   7  norm          .40108        .15364        .18350E-04    .16232E-03
   8  norm          11.279        10.675        .11929E-03    .21920E-05
   9  Prefactor     .10000E-03    22.580        .18142E-02** at limit **
  10  Prefactor     .10000E-03    2.2664        .24988E-03** at limit **
  11  norm          .10000E-03    50.132        .18142E-02** at limit **
  12  Prefactor     2.7036        4.9862        .61704E-04    .46245E-04
  13  Prefactor     .34198        14.517        .12710E-02    .68770E-02
  14  Prefactor     .10000E-03    13.688        .18305E-02** at limit **
  15  Prefactor     .10000E-03    1.4110        .15614E-02** at limit **
  16  norm          2.6180        1.6011        .79816E-04    .11395E-04
  17  norm          .10000E-03    .44957        .88584E-03** at limit **
  18  Prefactor     1.1385        4.7572        .35347E-03   -.34350E-04
  19  norm          .10000E-03    .22319        .73231E-03** at limit **
  20  norm          1.5031        6.6108        .17466E-02   -.73408E-03
  21  norm          4.7718        1.8521        .69336E-04    .76735E-04
  22  Prefactor     21.120        37.338        .87153E-04    .19567E-05
  23  norm          26.144        7.6567        .78348E-04    .10593E-04
  24  Prefactor     .10000E-03    149.29        .18142E-02** at limit **
  25  Normalizat    .78173        .21513        .29861E-03    .23757E-04
  26  Prefactor     1.1151        .17557        .21443E-03    .49308E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7410.762     FROM SIMPLEX   STATUS=UNCHANGED   1490 CALLS     5640 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3492        .47379E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     29.591        47.594        .14184E-05   -1.4619    
   3  Prefactor     .10000E-03    3.6109        .45032E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.1868        5.0441        .14881E-05   -1.5351    
   5  Prefactor     .10000E-03    7.4278        .29636E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.1432        3.4873        .14891E-05   -1.5353    
   7  norm          .40108        .15364        .15119E-05   -1.5581    
   8  norm          11.279        10.675        .14593E-05   -1.5036    
   9  Prefactor     .10000E-03    22.580        .58414E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.2664        .63281E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    50.132        .12253E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.7036        4.9862        .14912E-05   -1.5379    
  13  Prefactor     .34198        14.517        .15116E-05   -1.5591    
  14  Prefactor     .10000E-03    13.688        .19889E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.4110        .29629E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.6180        1.6011        .14917E-05   -1.5384    
  17  norm          .10000E-03    .44957        .61109E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.1385        4.7572        .15021E-05   -1.5495    
  19  norm          .10000E-03    .22319        .57858E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.5031        6.6108        .14990E-05   -1.5463    
  21  norm          4.7718        1.8521        .14806E-05   -1.5271    
  22  Prefactor     21.120        37.338        .14336E-05   -1.4789    
  23  norm          26.144        7.6567        .14236E-05   -1.4685    
  24  Prefactor     .10000E-03    149.29        .14667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .78173        .21513        .97773E-06   -1.0075    
  26  Prefactor     1.1151        .17557        .86288E-06   -.88985    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7410.762     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     6079 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.3493        .36285E-03** at limit **
   2  Prefactor     29.591        47.570        .29446E-05   -.77217E-06
   3  Prefactor     .10000E-03    3.6286        .43300E-03** at limit **
   4  Prefactor     3.1869        5.0416        .45417E-04   -.25032E-06
   5  Prefactor     .10000E-03    7.4279        .36285E-03** at limit **
   6  Prefactor     3.1432        3.4691        .61875E-05   -.13229E-04
   7  norm          .40108        .15202        .73401E-06   -.18484E-03
   8  norm          11.279        10.674        .47715E-05   -.47652E-06
   9  Prefactor     .10000E-03    22.593        .36285E-03** at limit **
  10  Prefactor     .10000E-03    2.2664        .49976E-04** at limit **
  11  norm          .10000E-03    50.143        .36285E-03** at limit **
  12  Prefactor     2.7036        3.6867        .24682E-05   -.13634E-03
  13  Prefactor     .34201        7.8408        .25419E-03    .56577E-04
  14  Prefactor     .10000E-03    13.908        .36610E-03** at limit **
  15  Prefactor     .10000E-03    1.4141        .31227E-03** at limit **
  16  norm          2.6180        1.5793        .31926E-05   -.28487E-04
  17  norm          .10000E-03    .44998        .17717E-03** at limit **
  18  Prefactor     1.1385        4.7529        .14139E-04   -.16081E-05
  19  norm          .10000E-03    .22326        .14646E-03** at limit **
  20  norm          1.5034        6.5914        .69864E-04    .97635E-06
  21  norm          4.7718        1.8518        .27734E-05   -.10658E-04
  22  Prefactor     21.120        37.332        .34861E-05   -.13045E-05
  23  norm          26.143        7.6516        .31339E-05   -.15961E-04
  24  Prefactor     .10000E-03    149.32        .36285E-03** at limit **
  25  Normalizat    .78173        .21524        .11944E-04   -.15229E-04
  26  Prefactor     1.1151        .17574        .85770E-05   -.18026E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 29.5906
  Prefactor  = 0.0001
  Prefactor  = 3.18689
  Prefactor  = 0.0001
  Prefactor  = 3.14319
  norm       = 0.401083
  norm       = 11.2787
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.7036
  Prefactor  = 0.34201
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.61802
  norm       = 0.0001
  Prefactor  = 1.13846
  norm       = 0.0001
  norm       = 1.50335
  norm       = 4.77179
  Prefactor  = 21.1196
  norm       = 26.1435
  Prefactor  = 0.0001
  Normalizat = 0.781734
  Prefactor  = 1.11513
 **********
 **   18 **HESSE 
 **********

 FCN=   7410.762     FROM HESSE     STATUS=OK           432 CALLS     6511 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3493        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     29.591        46.821        .58892E-06   -1.4619    
   3  Prefactor     .10000E-03    3.6293        .86599E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.1869        5.0393        .18167E-05   -1.5351    
   5  Prefactor     .10000E-03    7.4279        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.1432        3.4659        .12375E-05   -1.5353    
   7  norm          .40108        .15180        .37149E-06   -1.5581    
   8  norm          11.279        10.678        .95430E-06   -1.5036    
   9  Prefactor     .10000E-03    22.593        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.2664        .49976E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    50.143        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.7036        3.4921        .49364E-06   -1.5379    
  13  Prefactor     .34201        7.0130        .10168E-04   -1.5591    
  14  Prefactor     .10000E-03    13.917        .73221E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.4143        .62455E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.6180        1.5764        .63853E-06   -1.5384    
  17  norm          .10000E-03    .45000        .35434E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.1385        4.7524        .28278E-05   -1.5495    
  19  norm          .10000E-03    .22326        .29292E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.5034        6.5900        .27946E-05   -1.5463    
  21  norm          4.7718        1.8516        .55469E-06   -1.5271    
  22  Prefactor     21.120        37.109        .69722E-06   -1.4789    
  23  norm          26.143        7.6470        .62679E-06   -1.4685    
  24  Prefactor     .10000E-03    149.32        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .78173        .21496        .23888E-05   -1.0075    
  26  Prefactor     1.1151        .17548        .17154E-05   -.88985    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64446e-11
Minuit parameter uncertainties:
  1  7.32362e-08
  2  46.8796
  3  6.78493e-07
  4  5.04
  5  8.90961e-07
  6  3.46617
  7  0.151802
  8  10.6793
  9  1.33259e-06
  10  3.97245e-09
  11  2.621e-06
  12  3.49232
  13  3.09739
  14  3.86942e-06
  15  1.82116e-08
  16  1.57638
  17  3.01525e-08
  18  4.6525
  19  1.26663e-08
  20  6.29608
  21  1.85164
  22  37.15
  23  7.64725
  24  6.46014e-06
  25  0.21519
  26  0.175571
Done.

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

Extracting fit parameters...

4FGL J1642.9+3948
   Spectrum: PowerLaw
304    Prefactor:  3.420e-01  3.097e+00  1.000e-04  1.000e+04 ( 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:  1.115e+00  1.756e-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:  7.817e-01  2.152e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 250.734 39.816
Photon Flux Upper Limit: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.47e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/541514/likelihoodResults_678153601_678412801_4FGL_J1642.9+3948_daily_bin1693.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) = 7410.42378832
delta logL = 0.338258583318

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7410.29444395
delta logL = 0.467602957418

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14576E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    4.5451       1.0000          .0000       10.000    
     3 'Normalizat'    .72653       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1460       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=   7410.294     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      258 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14206E-01    .18589        .22590E-02    .13624E-01
   2  Index         4.5561        2.3397        .94218E-01    .25376E-03
   3  Normalizat    .72644        .32538E-01    .69649E-01    .37566E-04
   4  Prefactor     1.1462        .27608E-01    .36052E-01    .46925E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0142062
  Index      = 4.55607
  Normalizat = 0.726445
  Prefactor  = 1.14619
 **********
 **   18 **HESSE 
 **********

 FCN=   7410.294     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      291 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14206E-01    .71192        .10024E-04   -1.5684    
   2  Index         4.5561        7.1890        .56850E-02   -.88902E-01
   3  Normalizat    .72644        .15881        .30822E-03   -1.0286    
   4  Prefactor     1.1462        .13129        .21175E-03   -.88004    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.04172e-09
Minuit parameter uncertainties:
  1  0.200428
  2  6.04726
  3  0.158909
  4  0.131327
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/541514': 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): 102
logL (Free Index) = 7410.29444091
delta logL = 0.467605997965

Extracting fit parameters...

4FGL J1642.9+3948
   Spectrum: PowerLaw
304    Prefactor:  1.421e-02  2.004e-01  1.000e-04  1.000e+04 ( 1.000e-12)
305        Index:  4.556e+00  6.047e+00  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:  1.146e+00  1.313e-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:  7.264e-01  1.589e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.12
Ra Dec: 250.734 39.816
Photon Index (Free Index): 4.56 +/- 6.05
Photon Flux (Free Index): 6.12e-08 +/- 6.00e-08
Energy Flux (Free Index): 8.49e-06 +/- 9.75e-06

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/541514/cmap_HighResolution_678153601_678412801_4FGL_J1642.9+3948_daily_bin1693.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.47e-03', comment='SUCCESS', energy_flux2='8.49e-06', dlogl='4.68e-01', photon_flux2='6.12e-08', job_status='DONE', time_completed='2022-07-02 03:00:36.888994', photon_index_error2='6.05', photon_index2='4.56', ts='0.09', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='1.10e-07', energy_flux_error2='9.75e-06', EG='0.78', time_epoch_completed='1656756036.89', return_code='0', job_id='541514', GAL2='1.15', EG2='0.73', return_code2='102', photon_flux_error2='6.00e-08', ts2='1.12', photon_index='2.40' WHERE bin_id='1693' AND source_name='4FGL J1642.9+3948' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jul  2 03:00:36 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 541513: <4FGL_J1642.9+3948_daily_bin1693> in cluster <slac> Done

Job <4FGL_J1642.9+3948_daily_bin1693> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Jul  2 00:06:53 2022
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  2 02:37:45 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul  2 02:37:45 2022
Terminated at Sat Jul  2 02:59:52 2022
Results reported at Sat Jul  2 02:59:52 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1642.9+3948_daily_bin1693 250.734 39.8164 678153601 678412801 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 :                                   1273.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             340.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1326 sec.
    Turnaround time :                            10379 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 541514: <4FGL_J1642.9+3948_daily_bin1693> in cluster <slac> Done

Job <4FGL_J1642.9+3948_daily_bin1693> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Jul  2 00:06:53 2022
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  2 02:37:46 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul  2 02:37:46 2022
Terminated at Sat Jul  2 03:00:37 2022
Results reported at Sat Jul  2 03:00:37 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1642.9+3948_daily_bin1693 250.734 39.8164 678153601 678412801 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 :                                   1271.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1371 sec.
    Turnaround time :                            10424 sec.

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

