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


Performing analysis on: 4FGL_J1322.0+8317_daily_bin1770
RA = 200.501, Dec = 83.2845
tmin = 698112001, tmax = 698371201
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='486579', job_status='RUN', time_executed='2023-02-18 00:51:01.295711', time_epoch_executed='1676710261.3' WHERE source_name='4FGL J1322.0+8317' and cadence='daily' and bin_id='1770'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/486579

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/486579/ft1_4FGL_J1322.0+8317_daily_bin1770.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/486579/ft2_4FGL_J1322.0+8317_daily_bin1770.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/486579/ft1_4FGL_J1322.0+8317_daily_bin1770.fits outfile=/scratch/kocevski/486579/ft1_filteredMKT_4FGL_J1322.0+8317_daily_bin1770.fits ra=200.501 dec=83.2845 rad=12.0 tmin=698112001.0 tmax=698371201.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.34
user 3.10
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/486579/ft2_4FGL_J1322.0+8317_daily_bin1770.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/486579/ft2_4FGL_J1322.0+8317_daily_bin1770.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/486579/ft1_filteredMKT_4FGL_J1322.0+8317_daily_bin1770.fits evtable="EVENTS" outfile="/scratch/kocevski/486579/ft1_filtered_4FGL_J1322.0+8317_daily_bin1770.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.41
user 0.26
sys 0.15

Number of photons that the gtmktime cut: 943

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/486579/ft1_filtered_4FGL_J1322.0+8317_daily_bin1770.fits" evtable="EVENTS" scfile=/scratch/kocevski/486579/ft2_4FGL_J1322.0+8317_daily_bin1770.fits sctable="SC_DATA" outfile=/scratch/kocevski/486579/ltcube_698112001_698371201_4FGL_J1322.0+8317_daily_bin1770.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/486579/ft2_4FGL_J1322.0+8317_daily_bin1770.fits
.....................!
real 9.25
user 8.95
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/486579/ft1_filtered_4FGL_J1322.0+8317_daily_bin1770.fits evtable="EVENTS" scfile=/scratch/kocevski/486579/ft2_4FGL_J1322.0+8317_daily_bin1770.fits sctable="SC_DATA" expcube=/scratch/kocevski/486579/ltcube_698112001_698371201_4FGL_J1322.0+8317_daily_bin1770.fits outfile=/scratch/kocevski/486579/expmap_698112001_698371201_4FGL_J1322.0+8317_daily_bin1770.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/486579/ltcube_698112001_698371201_4FGL_J1322.0+8317_daily_bin1770.fits
.....................!
real 145.36
user 141.48
sys 3.64

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

Setting source of interest to:
4FGL J1322.0+8317 @ 200.501 83.2845

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/486579/ft1_filtered_4FGL_J1322.0+8317_daily_bin1770.fits scfile=/scratch/kocevski/486579/ft2_4FGL_J1322.0+8317_daily_bin1770.fits outfile=/scratch/kocevski/486579/cmap_698112001_698371201_4FGL_J1322.0+8317_daily_bin1770.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=200.501 yref=83.2845 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.45
user 0.29
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/486579/ft1_filtered_4FGL_J1322.0+8317_daily_bin1770.fits scfile=/scratch/kocevski/486579/ft2_4FGL_J1322.0+8317_daily_bin1770.fits outfile=/scratch/kocevski/486579/cmap_HighResolution_698112001_698371201_4FGL_J1322.0+8317_daily_bin1770.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=200.501 yref=83.2845 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.45
user 0.30
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/486579/ft1_filtered_4FGL_J1322.0+8317_daily_bin1770.fits evtable="EVENTS" scfile=/scratch/kocevski/486579/ft2_4FGL_J1322.0+8317_daily_bin1770.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/486579/Model_4FGL_J1322.0+8317_daily_bin1770.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/486579/ft1_filtered_4FGL_J1322.0+8317_daily_bin1770.fits.....................!
real 99.04
user 97.38
sys 1.02

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/486579/ft1_filtered_4FGL_J1322.0+8317_daily_bin1770.fits', '/scratch/kocevski/486579/ft2_4FGL_J1322.0+8317_daily_bin1770.fits', expMap='/scratch/kocevski/486579/expmap_698112001_698371201_4FGL_J1322.0+8317_daily_bin1770.fits', expCube='/scratch/kocevski/486579/ltcube_698112001_698371201_4FGL_J1322.0+8317_daily_bin1770.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/486579/Model_4FGL_J1322.0+8317_daily_bin1770.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1322.0+8317'

4FGL J1322.0+8317
   Spectrum: PowerLaw
367    Prefactor:  2.799e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
368        Index:  2.395e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
369        Scale:  1.133e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/486579/ft1_filtered_4FGL_J1322.0+8317_daily_bin1770.fits
Spacecraft file(s): /scratch/kocevski/486579/ft2_4FGL_J1322.0+8317_daily_bin1770.fits
Exposure map: /scratch/kocevski/486579/expmap_698112001_698371201_4FGL_J1322.0+8317_daily_bin1770.fits
Exposure cube: /scratch/kocevski/486579/ltcube_698112001_698371201_4FGL_J1322.0+8317_daily_bin1770.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/486579/Model_4FGL_J1322.0+8317_daily_bin1770.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) = 10013.1977558

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.250       1.0000          .0000       .10000E+07
     2 'Prefactor '    10.806       1.0000          .0000       .10000E+07
     3 'Prefactor '    2.5930       1.0000          .0000       .10000E+07
     4 'Prefactor '    .43543E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .56849E-01   1.0000          .0000       .10000E+07
     6 'norm      '    8.0554       1.0000          .0000       .10000E+07
     7 'Prefactor '    .11796E-02   1.0000          .0000       .10000E+07
     8 'Prefactor '    29.028       1.0000          .0000       .10000E+07
     9 'Prefactor '    21.444       1.0000          .0000       .10000E+07
    10 'norm      '    .18345E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    50.081       1.0000          .0000       .10000E+07
    12 'Prefactor '    30.341       1.0000          .0000       .10000E+07
    13 'Prefactor '    6.4149       1.0000          .0000       .10000E+07
    14 'Prefactor '    34.404       1.0000          .0000       .10000E+07
    15 'Prefactor '    7.8039       1.0000          .0000       .10000E+07
    16 'Prefactor '    .47171E-05   1.0000          .0000       .10000E+07
    17 'norm      '    .38969E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .35483E-06   1.0000          .0000       .10000E+07
    19 'Prefactor '    .63424E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .20131E-02   1.0000          .0000       .10000E+07
    21 'norm      '    1.5601       1.0000          .0000       .10000E+07
    22 'Normalizat'    .85593       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0050       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10013.19     FROM MIGRAD    STATUS=CONVERGED    160 CALLS     1845 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.353        20.229        .14263E-05   -.69897E-02
   2  Prefactor     10.844        10.039        .77636E-06    .10250E-01
   3  Prefactor     2.5735        10.850       -.58074E-06   -.20292E-02
   4  Prefactor     .44409E-09    7.7757       -.11581E-05** at limit **
   5  Prefactor      .0000        19.661       -.18371E-06** at limit **
   6  norm          8.0632        4.4359       -.33481E-06    .93568E-03
   7  Prefactor     .77716E-09    5.4697       -.24911E-06** at limit **
   8  Prefactor     28.987        11.502       -.38556E-06   -.29272E-01
   9  Prefactor     20.452        67.462       -.84585E-06    .49374E-02
  10  norm           .0000        1.7646       -.92384E-07** at limit **
  11  Prefactor     49.674        37.084        .81101E-06    .58509E-02
  12  Prefactor     30.314        2.8856       -.42878E-07   -.85126E-03
  13  Prefactor     6.4319        3.1257        .59802E-07    .21380E-02
  14  Prefactor     34.233        11.941        .51852E-06   -.52299E-01
  15  Prefactor     7.7537        11.599       -.12374E-05    .16291E-01
  16  Prefactor     .45652E-06    8.0993       -.26718E-06** at limit **
  17  norm          .69555E-07    12.324        .14226E-05** at limit **
  18  Prefactor      .0000        .68874       -.27359E-06** at limit **
  19  Prefactor     .62478E-06    6.3899       -.11099E-05** at limit **
  20  Prefactor     .89484E-07    9.1374        .10929E-05** at limit **
  21  norm          1.5590        .60294       -.10838E-06    .22899E-03
  22  Normalizat    .85680        .15996       -.30113E-05   -.19177E-04
  23  Prefactor     1.0047        .98219E-01    .23578E-05   -.38710E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.3529
  Prefactor  = 10.8444
  Prefactor  = 2.5735
  Prefactor  = 4.44089e-10
  Prefactor  = 0
  norm       = 8.06321
  Prefactor  = 7.77156e-10
  Prefactor  = 28.9871
  Prefactor  = 20.4518
  norm       = 0
  Prefactor  = 49.6744
  Prefactor  = 30.3144
  Prefactor  = 6.43187
  Prefactor  = 34.2331
  Prefactor  = 7.75369
  Prefactor  = 4.56524e-07
  norm       = 6.95555e-08
  Prefactor  = 0
  Prefactor  = 6.24778e-07
  Prefactor  = 8.9484e-08
  norm       = 1.55902
  Normalizat = 0.856795
  Prefactor  = 1.00469
 **********
 **   18 **HESSE 
 **********

 FCN=   10013.19     FROM HESSE     STATUS=OK           418 CALLS     2263 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.353        25.014        .21699E-03   -1.5616    
   2  Prefactor     10.844        10.082        .30454E-03   -1.5642    
   3  Prefactor     2.5735        10.992        .63338E-03   -1.5676    
   4  Prefactor     .44409E-09    7.7584        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor      .0000        19.636        .15277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.0632        4.4502        .35302E-03   -1.5651    
   7  Prefactor     .77716E-09    5.4738        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     28.987        12.100        .18563E-03   -1.5600    
   9  Prefactor     20.452        68.085        .21601E-03   -1.5618    
  10  norm           .0000        1.7611        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     49.674        37.980        .14132E-03   -1.5567    
  12  Prefactor     30.314        15.490        .18157E-03   -1.5598    
  13  Prefactor     6.4319        16.691        .39604E-03   -1.5657    
  14  Prefactor     34.233        45.469        .17051E-03   -1.5591    
  15  Prefactor     7.7537        28.445        .35871E-03   -1.5652    
  16  Prefactor     .45652E-06    11.329        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .69555E-07    12.820        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        .68804        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .62478E-06    10.617        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .89484E-07    9.7256        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.5590        .60500        .85162E-03   -1.5683    
  22  Normalizat    .85680        .14681        .70560E-01   -.97995    
  23  Prefactor     1.0047        .88724E-01    .44192E-01   -.92574    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.03584e-07
Minuit parameter uncertainties:
  1  25.0138
  2  10.0819
  3  10.6374
  4  0.000118015
  5  1.7172e-05
  6  4.45015
  7  0.000129478
  8  12.0995
  9  68.0872
  10  4.3633e-06
  11  37.9804
  12  15.49
  13  16.6907
  14  45.469
  15  28.4457
  16  0.00454834
  17  0.00188892
  18  7.27058e-07
  19  0.00515105
  20  0.00186584
  21  0.604999
  22  0.146877
  23  0.0887369
Done.

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

Extracting fit parameters...

4FGL J1322.0+8317
   Spectrum: PowerLaw
367    Prefactor:  3.031e+01  1.549e+01  0.000e+00  1.000e+06 ( 1.000e-13)
368        Index:  2.395e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
369        Scale:  1.133e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  1.005e+00  8.874e-02  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  8.568e-01  1.469e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.88
Ra Dec: 200.501 83.284
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 7.29e-08 +/- 3.72e-08
Energy Flux (Fixed Index): 2.40e-05 +/- 1.23e-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) = 10013.081133
delta logL = 0.112957225818

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10013.0703715
delta logL = 0.123718779792

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.678       1.0000          .0000       .10000E+07
     2 'Index     '    2.6298       1.0000          .0000       10.000    
     3 'Normalizat'    .84436       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0082       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6650E+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=   10013.07     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      293 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.673        20.472        .82222E-05   -.47233E-02
   2  Index         2.6299        .54277        .49584E-02   -.22377E-03
   3  Normalizat    .84431        .15427        .31413E-03   -.94744E-03
   4  Prefactor     1.0084        .95323E-01    .18094E-03   -.20977E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.6729
  Index      = 2.62992
  Normalizat = 0.844312
  Prefactor  = 1.00838
 **********
 **   18 **HESSE 
 **********

 FCN=   10013.07     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.673        18.426        .32889E-06   -1.5611    
   2  Index         2.6299        .48832        .19834E-03   -.49385    
   3  Normalizat    .84431        .15397        .62827E-04   -.98445    
   4  Prefactor     1.0084        .95235E-01    .36188E-04   -.92451    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6594e-09
Minuit parameter uncertainties:
  1  18.4257
  2  0.489323
  3  0.154045
  4  0.0952511
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/486579': 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) = 10013.0703691
delta logL = 0.123721142229

Extracting fit parameters...

4FGL J1322.0+8317
   Spectrum: PowerLaw
367    Prefactor:  2.367e+01  1.843e+01  0.000e+00  1.000e+06 ( 1.000e-13)
368        Index:  2.630e+00  4.893e-01  0.000e+00  1.000e+01 (-1.000e+00)
369        Scale:  1.133e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  1.008e+00  9.525e-02  0.000e+00  1.000e+01 ( 1.000e+00)
663        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
664        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
661   Normalization:  8.443e-01  1.540e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.15
Ra Dec: 200.501 83.284
Photon Index (Free Index): 2.63 +/- 0.49
Photon Flux (Free Index): 8.62e-08 +/- 4.73e-08
Energy Flux (Free Index): 2.20e-05 +/- 1.11e-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/486579/cmap_HighResolution_698112001_698371201_4FGL_J1322.0+8317_daily_bin1770.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.29e-08', energy_flux2='2.20e-05', photon_flux_error='3.72e-08', dlogl='1.24e-01', energy_flux='2.40e-05', photon_flux2='8.62e-08', job_status='DONE', time_completed='2023-02-18 01:01:38.418676', photon_index_error2='0.49', photon_index2='2.63', ts='7.88', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.11e-05', EG='0.86', time_epoch_completed='1676710898.42', return_code='0', job_id='486579', GAL2='1.01', EG2='0.84', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='4.73e-08', ts2='8.15', photon_index='2.40' WHERE bin_id='1770' AND source_name='4FGL J1322.0+8317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Feb 18 01:01:38 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0026>
Subject: Job 486579: <4FGL_J1322.0+8317_daily_bin1770> in cluster <slac> Done

Job <4FGL_J1322.0+8317_daily_bin1770> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Feb 18 00:50:17 2023
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Feb 18 00:50:18 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Feb 18 00:50:18 2023
Terminated at Sat Feb 18 01:01:39 2023
Results reported at Sat Feb 18 01:01:39 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.0+8317_daily_bin1770 200.501 83.2845 698112001 698371201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1322.0+8317 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   636.47 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             357.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   680 sec.
    Turnaround time :                            682 sec.

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

