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


Performing analysis on: 4FGL_J1642.9+3948_daily_bin1750
RA = 250.734, Dec = 39.8164
tmin = 692928001, tmax = 693187201
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='18767', job_status='RUN', time_executed='2022-12-20 01:15:30.386258', time_epoch_executed='1671527730.39' WHERE source_name='4FGL J1642.9+3948' and cadence='daily' and bin_id='1750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/18767

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/18767/ft1_4FGL_J1642.9+3948_daily_bin1750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/18767/ft2_4FGL_J1642.9+3948_daily_bin1750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/18767/ft1_4FGL_J1642.9+3948_daily_bin1750.fits outfile=/scratch/kocevski/18767/ft1_filteredMKT_4FGL_J1642.9+3948_daily_bin1750.fits ra=250.734 dec=39.8164 rad=12.0 tmin=692928001.0 tmax=693187201.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.46
user 3.23
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/18767/ft2_4FGL_J1642.9+3948_daily_bin1750.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/18767/ft1_filteredMKT_4FGL_J1642.9+3948_daily_bin1750.fits evtable="EVENTS" outfile="/scratch/kocevski/18767/ft1_filtered_4FGL_J1642.9+3948_daily_bin1750.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.16

Number of photons that the gtmktime cut: 551

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/18767/ft1_filtered_4FGL_J1642.9+3948_daily_bin1750.fits" evtable="EVENTS" scfile=/scratch/kocevski/18767/ft2_4FGL_J1642.9+3948_daily_bin1750.fits sctable="SC_DATA" outfile=/scratch/kocevski/18767/ltcube_692928001_693187201_4FGL_J1642.9+3948_daily_bin1750.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/18767/ft2_4FGL_J1642.9+3948_daily_bin1750.fits
.....................!
real 11.73
user 11.35
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/18767/ft1_filtered_4FGL_J1642.9+3948_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/18767/ft2_4FGL_J1642.9+3948_daily_bin1750.fits sctable="SC_DATA" expcube=/scratch/kocevski/18767/ltcube_692928001_693187201_4FGL_J1642.9+3948_daily_bin1750.fits outfile=/scratch/kocevski/18767/expmap_692928001_693187201_4FGL_J1642.9+3948_daily_bin1750.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/18767/ltcube_692928001_693187201_4FGL_J1642.9+3948_daily_bin1750.fits
.....................!
real 191.62
user 186.22
sys 5.04

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/18767/ft1_filtered_4FGL_J1642.9+3948_daily_bin1750.fits scfile=/scratch/kocevski/18767/ft2_4FGL_J1642.9+3948_daily_bin1750.fits outfile=/scratch/kocevski/18767/cmap_692928001_693187201_4FGL_J1642.9+3948_daily_bin1750.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/18767/ft1_filtered_4FGL_J1642.9+3948_daily_bin1750.fits scfile=/scratch/kocevski/18767/ft2_4FGL_J1642.9+3948_daily_bin1750.fits outfile=/scratch/kocevski/18767/cmap_HighResolution_692928001_693187201_4FGL_J1642.9+3948_daily_bin1750.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.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/18767/ft1_filtered_4FGL_J1642.9+3948_daily_bin1750.fits', '/scratch/kocevski/18767/ft2_4FGL_J1642.9+3948_daily_bin1750.fits', expMap='/scratch/kocevski/18767/expmap_692928001_693187201_4FGL_J1642.9+3948_daily_bin1750.fits', expCube='/scratch/kocevski/18767/ltcube_692928001_693187201_4FGL_J1642.9+3948_daily_bin1750.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/18767/Model_4FGL_J1642.9+3948_daily_bin1750.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/18767/ft1_filtered_4FGL_J1642.9+3948_daily_bin1750.fits
Spacecraft file(s): /scratch/kocevski/18767/ft2_4FGL_J1642.9+3948_daily_bin1750.fits
Exposure map: /scratch/kocevski/18767/expmap_692928001_693187201_4FGL_J1642.9+3948_daily_bin1750.fits
Exposure cube: /scratch/kocevski/18767/ltcube_692928001_693187201_4FGL_J1642.9+3948_daily_bin1750.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/18767/Model_4FGL_J1642.9+3948_daily_bin1750.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) = 5869.20640341

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19925E-01   1.0000          .0000       .10000E+07
     2 'Prefactor '    .12657E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    3.1087       1.0000          .0000       .10000E+07
     4 'Prefactor '    .87576E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .36857E-03   1.0000          .0000       .10000E+07
     6 'Prefactor '    .74294E-04   1.0000          .0000       .10000E+07
     7 'norm      '    .29398       1.0000          .0000       .10000E+07
     8 'norm      '    .38067E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .18841E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    2.3484       1.0000          .0000       .10000E+07
    11 'norm      '    3.7051       1.0000          .0000       .10000E+07
    12 'Prefactor '    .74164E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    3.0555       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.4186       1.0000          .0000       .10000E+07
    15 'Prefactor '    .27168E-02   1.0000          .0000       .10000E+07
    16 'norm      '    2.2341       1.0000          .0000       .10000E+07
    17 'norm      '    .60951E-07   1.0000          .0000       .10000E+07
    18 'Prefactor '    .76103E-04   1.0000          .0000       .10000E+07
    19 'norm      '    .16653E-09   1.0000          .0000       .10000E+07
    20 'norm      '    .88888E-04   1.0000          .0000       .10000E+07
    21 'norm      '    13.851       1.0000          .0000       .10000E+07
    22 'norm      '    21.686       1.0000          .0000       .10000E+07
    23 'Prefactor '    9.2642       1.0000          .0000       .10000E+07
    24 'Normalizat'    .89242       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93633       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=   5869.197     FROM MIGRAD    STATUS=CONVERGED    195 CALLS     2180 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .18097E-07    48.420       -.16414E-05** at limit **
   2  Prefactor     .10603E-07    31.143       -.56373E-06** at limit **
   3  Prefactor     3.1090        3.3407        .19586E-07    .48847E-03
   4  Prefactor      .0000        2.7145        .69483E-08** at limit **
   5  Prefactor     .51409E-06    4.3369        .87098E-06** at limit **
   6  Prefactor     .94369E-09    21.077        .16645E-05** at limit **
   7  norm          .29397        .14600       -.72399E-07   -.59256E-02
   8  norm          .53912E-06    4.1807        .94093E-06** at limit **
   9  Prefactor     .77161E-08    38.591       -.11156E-05** at limit **
  10  Prefactor     2.3492        3.9839       -.11349E-06    .10674E-03
  11  norm          3.5551        10.668        .86312E-06   -.48998E-02
  12  Prefactor      .0000        2.0836       -.23665E-07** at limit **
  13  Prefactor     3.0581        1.4846       -.11795E-06   -.18018E-02
  14  Prefactor     2.4212        3.7212        .21482E-07   -.50575E-03
  15  Prefactor      .0000        7.0356       -.13246E-08** at limit **
  16  norm          2.2343        1.7250       -.69802E-07    .50346E-03
  17  norm           .0000        .39747       -.33123E-07** at limit **
  18  Prefactor      .0000        3.0777       -.16727E-06** at limit **
  19  norm           .0000        .36642       -.19136E-06** at limit **
  20  norm           .0000        3.3878       -.15087E-06** at limit **
  21  norm          13.850        2.9007       -.15336E-06   -.29942E-02
  22  norm          21.664        7.9439       -.35310E-08    .12328E-02
  23  Prefactor     9.8339        70.242        .25429E-05   -.68626E-03
  24  Normalizat    .89250        .23063       -.13574E-04    .25882E-04
  25  Prefactor     .93619        .18524        .68297E-05    .42810E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.80966e-08
  Prefactor  = 1.06026e-08
  Prefactor  = 3.10897
  Prefactor  = 0
  Prefactor  = 5.14089e-07
  Prefactor  = 9.4369e-10
  norm       = 0.293974
  norm       = 5.39124e-07
  Prefactor  = 7.71605e-09
  Prefactor  = 2.3492
  norm       = 3.55511
  Prefactor  = 0
  Prefactor  = 3.05807
  Prefactor  = 2.42115
  Prefactor  = 0
  norm       = 2.23435
  norm       = 0
  Prefactor  = 0
  norm       = 0
  norm       = 0
  norm       = 13.8501
  norm       = 21.6641
  Prefactor  = 9.8339
  Normalizat = 0.892501
  Prefactor  = 0.936188
 **********
 **   18 **HESSE 
 **********

 FCN=   5869.197     FROM HESSE     STATUS=OK           483 CALLS     2663 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .18097E-07    15.703        .11235E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10603E-07    31.216        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.1090        3.3571        .57486E-03   -1.5673    
   4  Prefactor      .0000        2.7126        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .51409E-06    8.3200        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .94369E-09    2.7730        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .29397        .14730        .43330E-03   -1.5697    
   8  norm          .53912E-06    8.3558        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .77161E-08    38.564        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.3492        4.0427        .66866E-03   -1.5677    
  11  norm          3.5551        225.62        .52441E-03   -1.5670    
  12  Prefactor      .0000        2.0618        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.0581        1.6249        .58013E-03   -1.5673    
  14  Prefactor     2.4212        3.7529        .65789E-03   -1.5677    
  15  Prefactor      .0000        6.9366        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.2343        1.7303        .68746E-03   -1.5678    
  17  norm           .0000        .39570        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        3.0769        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        .36252        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm           .0000        3.3974        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          13.850        2.9001        .26887E-03   -1.5634    
  22  norm          21.664        7.9735        .21480E-03   -1.5615    
  23  Prefactor     9.8339        73.188        .32903E-03   -1.5645    
  24  Normalizat    .89250        .19926        .44805E-01   -.96724    
  25  Prefactor     .93619        .15798        .45466E-01   -.94888    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49074e-07
Minuit parameter uncertainties:
  1  0.0010668
  2  0.0011513
  3  3.35709
  4  8.55689e-06
  5  0.00413626
  6  0.000101311
  7  0.1473
  8  0.00424497
  9  0.00109013
  10  4.04267
  11  56.6446
  12  1.48514e-06
  13  1.62494
  14  3.75291
  15  1.81895e-05
  16  1.73029
  17  1.17935e-06
  18  1.09323e-05
  19  9.10483e-07
  20  1.23835e-06
  21  2.90009
  22  7.97354
  23  53.6562
  24  0.199424
  25  0.158053
Done.

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

Extracting fit parameters...

4FGL J1642.9+3948
   Spectrum: PowerLaw
304    Prefactor:  3.058e+00  1.625e+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:  9.362e-01  1.581e-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:  8.925e-01  1.994e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.13
Ra Dec: 250.734 39.816
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 1.18e-07 +/- 6.26e-08
Energy Flux (Fixed Index): 3.85e-05 +/- 2.05e-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) = 5867.36494628
delta logL = 1.83236230517

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5867.30322602
delta logL = 1.89408256705

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .45433       1.0000          .0000       .10000E+07
     2 'Index     '    3.5822       1.0000          .0000       10.000    
     3 'Normalizat'    .76315       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0133       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=   5867.303     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      229 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .45421        1.8894        .38780E-03    .75767E-02
   2  Index         3.5823        1.7525        .55280E-01    .19951E-03
   3  Normalizat    .76314        .75684E-01    .65925E-01    .21030E-04
   4  Prefactor     1.0133        .60750E-01    .42879E-01    .41159E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.454206
  Index      = 3.5823
  Normalizat = 0.763137
  Prefactor  = 1.01335
 **********
 **   18 **HESSE 
 **********

 FCN=   5867.303     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      262 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .45421        2.6287        .17260E-05   -1.5694    
   2  Index         3.5823        2.1715        .23432E-02   -.28748    
   3  Normalizat    .76314        .24284        .29167E-03   -1.0145    
   4  Prefactor     1.0133        .19788        .21556E-03   -.92286    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.22577e-10
Minuit parameter uncertainties:
  1  2.18538
  2  2.25353
  3  0.243189
  4  0.198019
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/18767': 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) = 5867.303226
delta logL = 1.89408258862

Extracting fit parameters...

4FGL J1642.9+3948
   Spectrum: PowerLaw
304    Prefactor:  4.542e-01  2.185e+00  0.000e+00  1.000e+06 ( 1.000e-12)
305        Index:  3.582e+00  2.254e+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.013e+00  1.980e-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.631e-01  2.432e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.78
Ra Dec: 250.734 39.816
Photon Index (Free Index): 3.58 +/- 2.25
Photon Flux (Free Index): 2.10e-07 +/- 8.96e-08
Energy Flux (Free Index): 3.42e-05 +/- 1.64e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/18767/cmap_HighResolution_692928001_693187201_4FGL_J1642.9+3948_daily_bin1750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.18e-07', energy_flux2='3.42e-05', photon_flux_error='6.26e-08', dlogl='1.89e+00', energy_flux='3.85e-05', photon_flux2='2.10e-07', job_status='DONE', time_completed='2022-12-20 01:25:36.549248', photon_index_error2='2.25', photon_index2='3.58', ts='8.13', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='1.64e-05', EG='0.89', time_epoch_completed='1671528336.55', return_code='0', job_id='18767', GAL2='1.01', EG2='0.76', return_code2='102', energy_flux_error='2.05e-05', photon_flux_error2='8.96e-08', ts2='12.78', photon_index='2.40' WHERE bin_id='1750' AND source_name='4FGL J1642.9+3948' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 20 01:25:36 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 18767: <4FGL_J1642.9+3948_daily_bin1750> in cluster <slac> Done

Job <4FGL_J1642.9+3948_daily_bin1750> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Dec 20 01:15:17 2022
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 01:15:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 01:15:18 2022
Terminated at Tue Dec 20 01:25:37 2022
Results reported at Tue Dec 20 01:25:37 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1642.9+3948_daily_bin1750 250.734 39.8164 692928001 693187201 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 :                                   608.50 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             349.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   618 sec.
    Turnaround time :                            620 sec.

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

