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


Performing analysis on: 4FGL_J1322.0+8317_daily_bin1667
RA = 200.501, Dec = 83.2845
tmin = 671414401, tmax = 671673601
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='477746', job_status='RUN', time_executed='2022-04-15 03:25:39.076336', time_epoch_executed='1650018339.08' WHERE source_name='4FGL J1322.0+8317' and cadence='daily' and bin_id='1667'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/477746

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/477746/ft1_4FGL_J1322.0+8317_daily_bin1667.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/477746/ft2_4FGL_J1322.0+8317_daily_bin1667.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/477746/ft1_4FGL_J1322.0+8317_daily_bin1667.fits outfile=/scratch/kocevski/477746/ft1_filteredMKT_4FGL_J1322.0+8317_daily_bin1667.fits ra=200.501 dec=83.2845 rad=12.0 tmin=671414401.0 tmax=671673601.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.58
user 3.35
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/477746/ft2_4FGL_J1322.0+8317_daily_bin1667.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/477746/ft1_filteredMKT_4FGL_J1322.0+8317_daily_bin1667.fits evtable="EVENTS" outfile="/scratch/kocevski/477746/ft1_filtered_4FGL_J1322.0+8317_daily_bin1667.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.31
sys 0.17

Number of photons that the gtmktime cut: 920

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/477746/ft1_filtered_4FGL_J1322.0+8317_daily_bin1667.fits" evtable="EVENTS" scfile=/scratch/kocevski/477746/ft2_4FGL_J1322.0+8317_daily_bin1667.fits sctable="SC_DATA" outfile=/scratch/kocevski/477746/ltcube_671414401_671673601_4FGL_J1322.0+8317_daily_bin1667.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/477746/ft2_4FGL_J1322.0+8317_daily_bin1667.fits
.....................!
real 12.34
user 11.94
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/477746/ft1_filtered_4FGL_J1322.0+8317_daily_bin1667.fits evtable="EVENTS" scfile=/scratch/kocevski/477746/ft2_4FGL_J1322.0+8317_daily_bin1667.fits sctable="SC_DATA" expcube=/scratch/kocevski/477746/ltcube_671414401_671673601_4FGL_J1322.0+8317_daily_bin1667.fits outfile=/scratch/kocevski/477746/expmap_671414401_671673601_4FGL_J1322.0+8317_daily_bin1667.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/477746/ltcube_671414401_671673601_4FGL_J1322.0+8317_daily_bin1667.fits
.....................!
real 192.25
user 186.08
sys 5.69

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/477746/ft1_filtered_4FGL_J1322.0+8317_daily_bin1667.fits scfile=/scratch/kocevski/477746/ft2_4FGL_J1322.0+8317_daily_bin1667.fits outfile=/scratch/kocevski/477746/cmap_671414401_671673601_4FGL_J1322.0+8317_daily_bin1667.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.55
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/477746/ft1_filtered_4FGL_J1322.0+8317_daily_bin1667.fits scfile=/scratch/kocevski/477746/ft2_4FGL_J1322.0+8317_daily_bin1667.fits outfile=/scratch/kocevski/477746/cmap_HighResolution_671414401_671673601_4FGL_J1322.0+8317_daily_bin1667.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.55
user 0.40
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/477746/ft1_filtered_4FGL_J1322.0+8317_daily_bin1667.fits', '/scratch/kocevski/477746/ft2_4FGL_J1322.0+8317_daily_bin1667.fits', expMap='/scratch/kocevski/477746/expmap_671414401_671673601_4FGL_J1322.0+8317_daily_bin1667.fits', expCube='/scratch/kocevski/477746/ltcube_671414401_671673601_4FGL_J1322.0+8317_daily_bin1667.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/477746/Model_4FGL_J1322.0+8317_daily_bin1667.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  1.000e-04  1.000e+04 ( 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/477746/ft1_filtered_4FGL_J1322.0+8317_daily_bin1667.fits
Spacecraft file(s): /scratch/kocevski/477746/ft2_4FGL_J1322.0+8317_daily_bin1667.fits
Exposure map: /scratch/kocevski/477746/expmap_671414401_671673601_4FGL_J1322.0+8317_daily_bin1667.fits
Exposure cube: /scratch/kocevski/477746/ltcube_671414401_671673601_4FGL_J1322.0+8317_daily_bin1667.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/477746/Model_4FGL_J1322.0+8317_daily_bin1667.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) = 9644.05748187

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.792       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.992       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .23525       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.4440       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .30499       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.4532       1.0000         .10000E-03   10000.    
    12 'Prefactor '    53.030       1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.625       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .32358       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    70.159       1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.648       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    27.632       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10363E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.639       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.9457       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0508       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93763       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9644.055     FROM MIGRAD    STATUS=FAILED      1023 CALLS     3373 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.793        20.236        .85803E-04   -.42664E-04
   2  Prefactor     .10000E-03    1.7361        .12626E-02** at limit **
   3  Prefactor     20.000        9.6773        .89579E-04    .18022E-04
   4  Prefactor     .10000E-03    5.3130        .18142E-02** at limit **
   5  Prefactor     .11971        13.367        .79538E-01    .20810E-03
   6  Prefactor     .10000E-03    8.9241        .18142E-02** at limit **
   7  norm          4.4616        4.5319        .91585E-03    .58963E-04
   8  Prefactor     .10000E-03    8.9466        .18142E-02** at limit **
   9  Prefactor     .30027        134.30        .43110E-02    .98512E-03
  10  Prefactor     .10000E-03    24.833        .18142E-02** at limit **
  11  norm          3.4585        3.9962        .17668E-03    .29728E-03
  12  Prefactor     53.026        43.498        .55077E-04   -.31870E-04
  13  Prefactor     19.633        14.465        .90412E-04    .80475E-06
  14  Prefactor     .36750        18.307        .37352E-02    .29912E-02
  15  Prefactor     .10000E-03    8.9116        .18142E-02** at limit **
  16  Prefactor     70.144        57.220        .23962E-03   -.68680E-04
  17  Prefactor     22.644        30.404        .84167E-04   -.39982E-04
  18  Prefactor     .10000E-03    29.375        .18142E-02** at limit **
  19  norm          27.629        15.192        .76212E-04   -.13282E-03
  20  Prefactor     .10000E-03    1.9739        .26311E-02** at limit **
  21  Prefactor     21.619        23.136        .86105E-04   -.33082E-03
  22  Prefactor     .10000E-03    24.430        .18142E-02** at limit **
  23  norm          4.9455        1.0298        .18085E-04   -.11343E-02
  24  Normalizat    1.0511        .17623        .29480E-03   -.11291E-03
  25  Prefactor     .93754        .10503        .96810E-03    .10165E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9644.055     FROM SIMPLEX   STATUS=UNCHANGED   1346 CALLS     4719 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.793        20.236        .77681E-06   -1.4774    
   2  Prefactor     .10000E-03    1.7361        .17848E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.000        9.6773        .41381E-06   -1.4813    
   4  Prefactor     .10000E-03    5.3130        .26467E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .11971        13.367        .43104E-06   -1.5639    
   6  Prefactor     .10000E-03    8.9241        .26991E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.4616        4.5319        .42692E-06   -1.5285    
   8  Prefactor     .10000E-03    8.9466        .13139E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .30027        134.30        .44556E-06   -1.5598    
  10  Prefactor     .10000E-03    24.833        .60578E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.4585        3.9962        .42747E-06   -1.5336    
  12  Prefactor     53.026        43.498        .39322E-06   -1.4250    
  13  Prefactor     19.633        14.465        .41061E-06   -1.4821    
  14  Prefactor     .36750        18.307        .40197E-06   -1.5587    
  15  Prefactor     .10000E-03    8.9116        .24439E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     70.144        57.220        .38717E-06   -1.4031    
  17  Prefactor     22.644        30.404        .40442E-06   -1.4756    
  18  Prefactor     .10000E-03    29.375        .97244E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          27.629        15.192        .41113E-06   -1.4656    
  20  Prefactor     .10000E-03    1.9739        .25342E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     21.619        23.136        .41264E-06   -1.4778    
  22  Prefactor     .10000E-03    24.430        .57137E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.9455        1.0298        .42643E-06   -1.5263    
  24  Normalizat    1.0511        .17623        .25469E-06   -.91339    
  25  Prefactor     .93754        .10503        .26493E-06   -.94842    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9644.055     FROM MIGRAD    STATUS=CONVERGED    420 CALLS     5139 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.794        20.234        .34321E-05   -.79499E-06
   2  Prefactor     .10000E-03    1.7361        .25253E-03** at limit **
   3  Prefactor     20.000        9.6765        .35832E-05   -.19037E-04
   4  Prefactor     .10000E-03    5.3136        .36285E-03** at limit **
   5  Prefactor     .11972        11.746        .85912E-01    .18051E-03
   6  Prefactor     .10000E-03    8.9243        .36285E-03** at limit **
   7  norm          4.4616        4.4756        .36634E-04   -.67652E-04
   8  Prefactor     .10000E-03    8.9478        .36285E-03** at limit **
   9  Prefactor     .30033        121.68        .86220E-03    .39114E-04
  10  Prefactor     .10000E-03    24.833        .36285E-03** at limit **
  11  norm          3.4585        3.8495        .70672E-05   -.36677E-04
  12  Prefactor     53.026        43.496        .11015E-04   -.16513E-05
  13  Prefactor     19.633        14.431        .18082E-04   -.13077E-04
  14  Prefactor     .36750        18.493        .74703E-03    .11923E-03
  15  Prefactor     .10000E-03    8.9129        .36285E-03** at limit **
  16  Prefactor     70.144        57.214        .47925E-04   -.18978E-06
  17  Prefactor     22.644        30.408        .33667E-05   -.27015E-06
  18  Prefactor     .10000E-03    29.377        .36285E-03** at limit **
  19  norm          27.629        15.192        .15242E-04   -.20884E-05
  20  Prefactor     .10000E-03    1.9801        .52621E-03** at limit **
  21  Prefactor     21.619        23.123        .17221E-04   -.52813E-05
  22  Prefactor     .10000E-03    24.431        .36285E-03** at limit **
  23  norm          4.9455        1.0297        .36169E-05   -.16345E-04
  24  Normalizat    1.0511        .17527        .11792E-04   -.36250E-04
  25  Prefactor     .93753        .10512        .38724E-04   -.37578E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.7935
  Prefactor  = 0.0001
  Prefactor  = 19.9997
  Prefactor  = 0.0001
  Prefactor  = 0.119716
  Prefactor  = 0.0001
  norm       = 4.46156
  Prefactor  = 0.0001
  Prefactor  = 0.300331
  Prefactor  = 0.0001
  norm       = 3.45851
  Prefactor  = 53.026
  Prefactor  = 19.6329
  Prefactor  = 0.367501
  Prefactor  = 0.0001
  Prefactor  = 70.1444
  Prefactor  = 22.6436
  Prefactor  = 0.0001
  norm       = 27.6291
  Prefactor  = 0.0001
  Prefactor  = 21.6192
  Prefactor  = 0.0001
  norm       = 4.94551
  Normalizat = 1.05107
  Prefactor  = 0.937535
 **********
 **   18 **HESSE 
 **********

 FCN=   9644.055     FROM HESSE     STATUS=OK           415 CALLS     5554 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.794        20.234        .34321E-05   -1.4774    
   2  Prefactor     .10000E-03    1.7361        .50506E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     20.000        9.6827        .71663E-06   -1.4813    
   4  Prefactor     .10000E-03    5.3137        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .11972        12.230        .83731E-01   -1.5639    
   6  Prefactor     .10000E-03    8.9243        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.4616        4.4721        .14654E-05   -1.5285    
   8  Prefactor     .10000E-03    8.9478        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .30033        118.77        .17244E-03   -1.5598    
  10  Prefactor     .10000E-03    24.833        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.4585        3.8220        .14134E-05   -1.5336    
  12  Prefactor     53.026        43.503        .22031E-05   -1.4250    
  13  Prefactor     19.633        14.426        .36165E-05   -1.4821    
  14  Prefactor     .36750        18.485        .14941E-03   -1.5587    
  15  Prefactor     .10000E-03    8.9130        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     70.144        57.210        .95849E-05   -1.4031    
  17  Prefactor     22.644        30.408        .33667E-05   -1.4756    
  18  Prefactor     .10000E-03    29.377        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          27.629        15.193        .30485E-05   -1.4656    
  20  Prefactor     .10000E-03    1.9804        .10524E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     21.619        23.120        .34442E-05   -1.4778    
  22  Prefactor     .10000E-03    24.431        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.9455        1.0297        .72339E-06   -1.5263    
  24  Normalizat    1.0511        .17513        .23584E-05   -.91339    
  25  Prefactor     .93753        .10512        .77448E-05   -.94842    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96786e-10
Minuit parameter uncertainties:
  1  20.2402
  2  1.05044e-08
  3  9.68349
  4  9.47707e-08
  5  2.41951
  6  6.36791e-08
  7  4.47239
  8  4.73062e-07
  9  11.967
  10  1.23235e-07
  11  3.82224
  12  43.5291
  13  14.4286
  14  5.21378
  15  3.1387e-07
  16  57.2547
  17  30.4289
  18  2.63994e-07
  19  15.1948
  20  2.3911e-06
  21  23.1299
  22  3.54627e-07
  23  1.02973
  24  0.175225
  25  0.105141
Done.

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

Extracting fit parameters...

4FGL J1322.0+8317
   Spectrum: PowerLaw
367    Prefactor:  1.963e+01  1.443e+01  1.000e-04  1.000e+04 ( 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:  9.375e-01  1.051e-01  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:  1.051e+00  1.752e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.25
Ra Dec: 200.501 83.284
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 4.72e-08 +/- 3.47e-08
Energy Flux (Fixed Index): 1.56e-05 +/- 1.14e-05

TS (Fixed Index): 3.25
Ra Dec: 200.501 83.284
Photon Flux Upper Limit: 1.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/477746/likelihoodResults_671414401_671673601_4FGL_J1322.0+8317_daily_bin1667.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): 0
logL (Free Index) = 9643.99477481
delta logL = 0.0599361395616

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9643.98906932
delta logL = 0.0656416334969

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.816       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7300       1.0000          .0000       10.000    
     3 'Normalizat'    1.0358       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94277       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.

 FCN=   9643.989     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      300 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.786        153.71        .26940E-02    .64981E-03
   2  Index         2.7313        2.6807        .17092        .16836E-03
   3  Normalizat    1.0357        .57446E-01    .67056E-01    .40771E-04
   4  Prefactor     .94287        .31064E-01    .45548E-01    .10981E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.7864
  Index      = 2.73132
  Normalizat = 1.03569
  Prefactor  = 0.942871
 **********
 **   18 **HESSE 
 **********

 FCN=   9643.989     FROM HESSE     STATUS=OK            31 CALLS      331 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.786        30.176        .10776E-03   -1.4965    
   2  Index         2.7313        1.4651        .61044E-02   -.47095    
   3  Normalizat    1.0357        .17583        .29664E-03   -.91844    
   4  Prefactor     .94287        .10553        .19313E-03   -.94659    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17189e-09
Minuit parameter uncertainties:
  1  30.2096
  2  1.49284
  3  0.175929
  4  0.105558
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/477746': 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) = 9643.98906791
delta logL = 0.065643040487

Extracting fit parameters...

4FGL J1322.0+8317
   Spectrum: PowerLaw
367    Prefactor:  1.379e+01  3.021e+01  1.000e-04  1.000e+04 ( 1.000e-13)
368        Index:  2.731e+00  1.493e+00  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:  9.429e-01  1.056e-01  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:  1.036e+00  1.759e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.38
Ra Dec: 200.501 83.284
Photon Index (Free Index): 2.73 +/- 1.49
Photon Flux (Free Index): 6.04e-08 +/- 5.82e-08
Energy Flux (Free Index): 1.42e-05 +/- 1.15e-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/477746/cmap_HighResolution_671414401_671673601_4FGL_J1322.0+8317_daily_bin1667.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.31e-03', comment='SUCCESS', photon_flux='4.72e-08', energy_flux2='1.42e-05', photon_flux_error='3.47e-08', dlogl='6.56e-02', energy_flux='1.56e-05', photon_flux2='6.04e-08', job_status='DONE', time_completed='2022-04-15 03:49:34.548606', photon_index_error2='1.49', photon_index2='2.73', ts='3.25', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='1.15e-05', EG='1.05', time_epoch_completed='1650019774.55', return_code='0', job_id='477746', GAL2='0.94', EG2='1.04', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='5.82e-08', ts2='3.38', photon_index='2.40' WHERE bin_id='1667' AND source_name='4FGL J1322.0+8317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Apr 15 03:49:34 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 477749: <4FGL_J1322.0+8317_daily_bin1667> in cluster <slac> Done

Job <4FGL_J1322.0+8317_daily_bin1667> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Apr 15 00:07:17 2022
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Apr 15 03:24:14 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Apr 15 03:24:14 2022
Terminated at Fri Apr 15 03:49:15 2022
Results reported at Fri Apr 15 03:49:15 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.0+8317_daily_bin1667 200.501 83.2845 671414401 671673601 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 :                                   1432.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             352.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1502 sec.
    Turnaround time :                            13318 sec.

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


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 477746: <4FGL_J1322.0+8317_daily_bin1667> in cluster <slac> Done

Job <4FGL_J1322.0+8317_daily_bin1667> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Apr 15 00:07:17 2022
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Apr 15 03:24:10 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Apr 15 03:24:10 2022
Terminated at Fri Apr 15 03:49:35 2022
Results reported at Fri Apr 15 03:49:35 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.0+8317_daily_bin1667 200.501 83.2845 671414401 671673601 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 :                                   1436.17 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1524 sec.
    Turnaround time :                            13338 sec.

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

