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


Performing analysis on: 4FGL_J1423.1+3738_weekly_bin756
RA = 215.792, Dec = 37.6452
tmin = 696211201, 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='484259', job_status='RUN', time_executed='2023-01-31 03:12:59.914940', time_epoch_executed='1675163579.91' WHERE source_name='4FGL J1423.1+3738' and cadence='weekly' and bin_id='756'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/484259

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

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=696211201.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>=696211201.0 && nMetStart<696816001.0' /Data/Flight/Level1/LPA

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/484259/ft1_4FGL_J1423.1+3738_weekly_bin756.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/484259/ft2_4FGL_J1423.1+3738_weekly_bin756.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/484259/ft1_4FGL_J1423.1+3738_weekly_bin756.fits outfile=/scratch/kocevski/484259/ft1_filteredMKT_4FGL_J1423.1+3738_weekly_bin756.fits ra=215.792 dec=37.6452 rad=12.0 tmin=696211201.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 7.76
user 7.48
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/484259/ft2_4FGL_J1423.1+3738_weekly_bin756.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/484259/ft2_4FGL_J1423.1+3738_weekly_bin756.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/484259/ft1_filteredMKT_4FGL_J1423.1+3738_weekly_bin756.fits evtable="EVENTS" outfile="/scratch/kocevski/484259/ft1_filtered_4FGL_J1423.1+3738_weekly_bin756.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.56
user 0.40
sys 0.15

Number of photons that the gtmktime cut: 1205

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/484259/ft1_filtered_4FGL_J1423.1+3738_weekly_bin756.fits" evtable="EVENTS" scfile=/scratch/kocevski/484259/ft2_4FGL_J1423.1+3738_weekly_bin756.fits sctable="SC_DATA" outfile=/scratch/kocevski/484259/ltcube_696211201_696816001_4FGL_J1423.1+3738_weekly_bin756.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/484259/ft2_4FGL_J1423.1+3738_weekly_bin756.fits
.....................!
real 30.01
user 29.60
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/484259/ft1_filtered_4FGL_J1423.1+3738_weekly_bin756.fits evtable="EVENTS" scfile=/scratch/kocevski/484259/ft2_4FGL_J1423.1+3738_weekly_bin756.fits sctable="SC_DATA" expcube=/scratch/kocevski/484259/ltcube_696211201_696816001_4FGL_J1423.1+3738_weekly_bin756.fits outfile=/scratch/kocevski/484259/expmap_696211201_696816001_4FGL_J1423.1+3738_weekly_bin756.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/484259/ltcube_696211201_696816001_4FGL_J1423.1+3738_weekly_bin756.fits
.....................!
real 191.98
user 186.01
sys 5.53

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

Setting source of interest to:
4FGL J1423.1+3738 @ 215.792 37.6452

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/484259/ft1_filtered_4FGL_J1423.1+3738_weekly_bin756.fits scfile=/scratch/kocevski/484259/ft2_4FGL_J1423.1+3738_weekly_bin756.fits outfile=/scratch/kocevski/484259/cmap_696211201_696816001_4FGL_J1423.1+3738_weekly_bin756.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=215.792 yref=37.6452 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.59
user 0.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/484259/ft1_filtered_4FGL_J1423.1+3738_weekly_bin756.fits scfile=/scratch/kocevski/484259/ft2_4FGL_J1423.1+3738_weekly_bin756.fits outfile=/scratch/kocevski/484259/cmap_HighResolution_696211201_696816001_4FGL_J1423.1+3738_weekly_bin756.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=215.792 yref=37.6452 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.59
user 0.41
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/484259/ft1_filtered_4FGL_J1423.1+3738_weekly_bin756.fits evtable="EVENTS" scfile=/scratch/kocevski/484259/ft2_4FGL_J1423.1+3738_weekly_bin756.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/484259/Model_4FGL_J1423.1+3738_weekly_bin756.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/484259/ft1_filtered_4FGL_J1423.1+3738_weekly_bin756.fits.....................!
real 90.80
user 89.33
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/484259/ft1_filtered_4FGL_J1423.1+3738_weekly_bin756.fits', '/scratch/kocevski/484259/ft2_4FGL_J1423.1+3738_weekly_bin756.fits', expMap='/scratch/kocevski/484259/expmap_696211201_696816001_4FGL_J1423.1+3738_weekly_bin756.fits', expCube='/scratch/kocevski/484259/ltcube_696211201_696816001_4FGL_J1423.1+3738_weekly_bin756.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/484259/Model_4FGL_J1423.1+3738_weekly_bin756.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1423.1+3738'

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  3.465e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
296        alpha:  1.928e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
297         beta:  1.446e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  1.404e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/484259/ft1_filtered_4FGL_J1423.1+3738_weekly_bin756.fits
Spacecraft file(s): /scratch/kocevski/484259/ft2_4FGL_J1423.1+3738_weekly_bin756.fits
Exposure map: /scratch/kocevski/484259/expmap_696211201_696816001_4FGL_J1423.1+3738_weekly_bin756.fits
Exposure cube: /scratch/kocevski/484259/ltcube_696211201_696816001_4FGL_J1423.1+3738_weekly_bin756.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/484259/Model_4FGL_J1423.1+3738_weekly_bin756.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 13534.3941067

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .59484       1.0000          .0000       .10000E+07
     2 'norm      '    .81469       1.0000          .0000       .10000E+07
     3 'Prefactor '    8.5331       1.0000          .0000       .10000E+07
     4 'norm      '    .18563E-06   1.0000          .0000       .10000E+07
     5 'Prefactor '    2.5342       1.0000          .0000       .10000E+07
     6 'Prefactor '    .41106E-06   1.0000          .0000       .10000E+07
     7 'norm      '    2.2658       1.0000          .0000       .10000E+07
     8 'Prefactor '    .62565E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    5.1581       1.0000          .0000       .10000E+07
    10 'Prefactor '    4.5545       1.0000          .0000       .10000E+07
    11 'norm      '    14.398       1.0000          .0000       .10000E+07
    12 'norm      '    .94369E-09   1.0000          .0000       .10000E+07
    13 'Prefactor '    181.67       1.0000          .0000       .10000E+07
    14 'norm      '    .23760E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .20650E-07   1.0000          .0000       .10000E+07
    16 'Prefactor '    .13649E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .91815E-07   1.0000          .0000       .10000E+07
    18 'Prefactor '    13.977       1.0000          .0000       .10000E+07
    19 'Prefactor '    37.477       1.0000          .0000       .10000E+07
    20 'Prefactor '    .39530E-04   1.0000          .0000       .10000E+07
    21 'Normalizat'    .93513       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0158       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13532.74     FROM MIGRAD    STATUS=CONVERGED    131 CALLS     1081 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15258E-05    177.46       -.26851E-06** at limit **
   2  norm          .81408        .73532        .37382E-07    .30390E-02
   3  Prefactor     8.5318        3.7633       -.32146E-07   -.94082E-03
   4  norm          .54401E-08    3.3675        .13863E-07** at limit **
   5  Prefactor     2.5335        2.1591        .45694E-07    .13382E-02
   6  Prefactor     .54678E-07    3.8041       -.38288E-07** at limit **
   7  norm          2.2701        2.7574       -.30374E-07   -.18740E-03
   8  Prefactor     .61728E-07    3.5701       -.71889E-08** at limit **
   9  Prefactor     5.0117        7.0391       -.31499E-07   -.80782E-02
  10  Prefactor     4.5545        2.6629       -.38000E-07   -.72856E-03
  11  norm          14.368        3.6454       -.75073E-08   -.55467E-02
  12  norm          .36415E-07    2.7841       -.94488E-07** at limit **
  13  Prefactor     181.35        6.0905       -.10739E-08   -.20319    
  14  norm          .20206E-07    3.0852       -.87002E-07** at limit **
  15  Prefactor     .22204E-09    3.5964        .57154E-07** at limit **
  16  Prefactor     .38858E-09    2.6902        .30119E-07** at limit **
  17  norm           .0000        .39204       -.34391E-07** at limit **
  18  Prefactor     14.006        7.4364        .11002E-06   -.34567E-03
  19  Prefactor     37.452        1.3033       -.25208E-08    .39140E-01
  20  Prefactor     .20539E-08    7.6337        .36674E-07** at limit **
  21  Normalizat    .93562        .13359       -.20227E-06    .98059E-04
  22  Prefactor     1.0157        .14891        .16205E-05    .10859E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.52578e-06
  norm       = 0.814079
  Prefactor  = 8.53176
  norm       = 5.44009e-09
  Prefactor  = 2.53346
  Prefactor  = 5.46785e-08
  norm       = 2.27014
  Prefactor  = 6.17284e-08
  Prefactor  = 5.0117
  Prefactor  = 4.55449
  norm       = 14.3677
  norm       = 3.64153e-08
  Prefactor  = 181.355
  norm       = 2.02061e-08
  Prefactor  = 2.22045e-10
  Prefactor  = 3.88578e-10
  norm       = 0
  Prefactor  = 14.0061
  Prefactor  = 37.4524
  Prefactor  = 2.05391e-09
  Normalizat = 0.935621
  Prefactor  = 1.01572
 **********
 **   18 **HESSE 
 **********

 FCN=   13532.74     FROM HESSE     STATUS=OK           382 CALLS     1463 TOTAL
                     EDM=   .37E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15258E-05    180.06        .69692E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .81408        .74171        .51846E-03   -1.5690    
   3  Prefactor     8.5318        3.7668        .34292E-03   -1.5650    
   4  norm          .54401E-08    4.5812        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.5335        2.1643        .64132E-03   -1.5676    
   6  Prefactor     .54678E-07    6.8913        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.2701        2.7926        .68208E-03   -1.5678    
   8  Prefactor     .61728E-07    6.3820        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.0117        8.3421        .44241E-03   -1.5663    
  10  Prefactor     4.5545        2.6741        .47146E-03   -1.5665    
  11  norm          14.368        9.6525        .26371E-03   -1.5632    
  12  norm          .36415E-07    4.0373        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     181.35        34.852        .74198E-04   -1.5439    
  14  norm          .20206E-07    3.7924        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .22204E-09    5.0600        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .38858E-09    2.6859        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        .38784        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.006        7.4471        .26765E-03   -1.5633    
  19  Prefactor     37.452        33.368        .16337E-03   -1.5586    
  20  Prefactor     .20539E-08    7.7950        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .93562        .11477        .45349E-01   -.95220    
  22  Prefactor     1.0157        .12781        .42588E-01   -.92207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7439e-07
Minuit parameter uncertainties:
  1  0.0331513
  2  0.741706
  3  3.76685
  4  0.000315691
  5  2.16434
  6  0.00122799
  7  2.79258
  8  0.00125545
  9  8.34215
  10  2.67414
  11  9.65251
  12  0.000767074
  13  34.8516
  14  0.000553783
  15  6.2928e-05
  16  6.30561e-05
  17  1.06591e-06
  18  7.44707
  19  33.3684
  20  0.000253329
  21  0.114804
  22  0.127846
Done.

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

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.437e+01  9.653e+00  0.000e+00  1.000e+06 ( 1.000e-13)
296        alpha:  1.928e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
297         beta:  1.446e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  1.404e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  1.016e+00  1.278e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  9.356e-01  1.148e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.54
Ra Dec: 215.792 37.645
Photon Index (Fixed Index): 1.93 +/- 0.00
Photon Flux (Fixed Index): 1.58e-08 +/- 1.06e-08
Energy Flux (Fixed Index): 1.23e-05 +/- 8.28e-06

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) = 13532.5275434
delta logL = 0.214350000715

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 13532.5222153
delta logL = 0.21967805412

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.409       1.0000          .0000       .10000E+07
     2 'alpha     '    2.3734       1.0000          .0000       5.0000    
     3 'Normalizat'    .92335       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0220       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13532.52     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      292 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.408        9.6582        .11364E-04    .23229E-02
   2  alpha         2.3737        .67937        .14564E-01    .16596E-04
   3  Normalizat    .92334        .13170        .23997E-03   -.55686E-03
   4  Prefactor     1.0220        .14920        .26203E-03   -.61148E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.4083
  alpha      = 2.37365
  Normalizat = 0.923341
  Prefactor  = 1.02204
 **********
 **   18 **HESSE 
 **********

 FCN=   13532.52     FROM HESSE     STATUS=OK            25 CALLS      317 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.408        9.1775        .45457E-06   -1.5638    
   2  alpha         2.3737        .64545        .58255E-03   -.50561E-01
   3  Normalizat    .92334        .13150        .47993E-04   -.95645    
   4  Prefactor     1.0220        .14917        .52406E-04   -.91999    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47433e-10
Minuit parameter uncertainties:
  1  9.17747
  2  0.652869
  3  0.131546
  4  0.14923
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/484259': 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) = 13532.5222146
delta logL = 0.219678756517

Extracting fit parameters...

4FGL J1423.1+3738
   Spectrum: LogParabola
295         norm:  1.241e+01  9.177e+00  0.000e+00  1.000e+06 ( 1.000e-13)
296        alpha:  2.374e+00  6.529e-01  0.000e+00  5.000e+00 ( 1.000e+00)
297         beta:  1.446e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
298           Eb:  1.404e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  1.022e+00  1.492e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
575   Normalization:  9.233e-01  1.315e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.98
Ra Dec: 215.792 37.645
Photon Index (Free Index): 2.37 +/- 0.65
Photon Flux (Free Index): 2.73e-08 +/- 2.45e-08
Energy Flux (Free Index): 1.11e-05 +/- 6.63e-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/484259/cmap_HighResolution_696211201_696816001_4FGL_J1423.1+3738_weekly_bin756.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.58e-08', energy_flux2='1.11e-05', photon_flux_error='1.06e-08', dlogl='2.20e-01', energy_flux='1.23e-05', photon_flux2='2.73e-08', job_status='DONE', time_completed='2023-01-31 03:25:29.951327', photon_index_error2='0.65', photon_index2='2.37', ts='5.54', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='6.63e-06', EG='0.94', time_epoch_completed='1675164329.95', return_code='0', job_id='484259', GAL2='1.02', EG2='0.92', return_code2='0', energy_flux_error='8.28e-06', photon_flux_error2='2.45e-08', ts2='5.98', photon_index='1.93' WHERE bin_id='756' AND source_name='4FGL J1423.1+3738' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 31 03:25:29 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 484259: <4FGL_J1423.1+3738_weekly_bin756> in cluster <slac> Done

Job <4FGL_J1423.1+3738_weekly_bin756> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Jan 31 03:10:21 2023
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 31 03:12:21 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 31 03:12:21 2023
Terminated at Tue Jan 31 03:25:30 2023
Results reported at Tue Jan 31 03:25:30 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1423.1+3738_weekly_bin756 215.792 37.6452 696211201 696816001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1423.1+3738 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   749.13 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             331.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            909 sec.

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

