/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 124 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 = 5262
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1322.0+8317_daily_bin73
RA = 200.501, Dec = 83.2845
tmin = 258249601, tmax = 258508801
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='501124', job_status='RUN', time_executed='2021-09-07 13:32:59.965547', time_epoch_executed='1631046779.97' WHERE source_name='4FGL J1322.0+8317' and cadence='daily' and bin_id='73'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/501124

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

Retrieving the FT1 file...

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

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

Retrieving 33 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/501124/ft1_4FGL_J1322.0+8317_daily_bin73.fits


Retrieving the FT1 file...

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

Retrieving 33 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/501124/ft2_4FGL_J1322.0+8317_daily_bin73.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/501124/ft1_4FGL_J1322.0+8317_daily_bin73.fits outfile=/scratch/kocevski/501124/ft1_filteredMKT_4FGL_J1322.0+8317_daily_bin73.fits ra=200.501 dec=83.2845 rad=12.0 tmin=258249601.0 tmax=258508801.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 1.26
user 1.01
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/501124/ft2_4FGL_J1322.0+8317_daily_bin73.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/501124/ft1_filteredMKT_4FGL_J1322.0+8317_daily_bin73.fits evtable="EVENTS" outfile="/scratch/kocevski/501124/ft1_filtered_4FGL_J1322.0+8317_daily_bin73.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.69
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/501124/ft1_filtered_4FGL_J1322.0+8317_daily_bin73.fits" evtable="EVENTS" scfile=/scratch/kocevski/501124/ft2_4FGL_J1322.0+8317_daily_bin73.fits sctable="SC_DATA" outfile=/scratch/kocevski/501124/ltcube_258249601_258508801_4FGL_J1322.0+8317_daily_bin73.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/501124/ft2_4FGL_J1322.0+8317_daily_bin73.fits
.....................!
real 13.85
user 13.34
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/501124/ft1_filtered_4FGL_J1322.0+8317_daily_bin73.fits evtable="EVENTS" scfile=/scratch/kocevski/501124/ft2_4FGL_J1322.0+8317_daily_bin73.fits sctable="SC_DATA" expcube=/scratch/kocevski/501124/ltcube_258249601_258508801_4FGL_J1322.0+8317_daily_bin73.fits outfile=/scratch/kocevski/501124/expmap_258249601_258508801_4FGL_J1322.0+8317_daily_bin73.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/501124/ltcube_258249601_258508801_4FGL_J1322.0+8317_daily_bin73.fits
.....................!
real 192.66
user 186.96
sys 5.20

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/501124/ft1_filtered_4FGL_J1322.0+8317_daily_bin73.fits scfile=/scratch/kocevski/501124/ft2_4FGL_J1322.0+8317_daily_bin73.fits outfile=/scratch/kocevski/501124/cmap_258249601_258508801_4FGL_J1322.0+8317_daily_bin73.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.57
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/501124/ft1_filtered_4FGL_J1322.0+8317_daily_bin73.fits scfile=/scratch/kocevski/501124/ft2_4FGL_J1322.0+8317_daily_bin73.fits outfile=/scratch/kocevski/501124/cmap_HighResolution_258249601_258508801_4FGL_J1322.0+8317_daily_bin73.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.57
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/501124/ft1_filtered_4FGL_J1322.0+8317_daily_bin73.fits', '/scratch/kocevski/501124/ft2_4FGL_J1322.0+8317_daily_bin73.fits', expMap='/scratch/kocevski/501124/expmap_258249601_258508801_4FGL_J1322.0+8317_daily_bin73.fits', expCube='/scratch/kocevski/501124/ltcube_258249601_258508801_4FGL_J1322.0+8317_daily_bin73.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/501124/Model_4FGL_J1322.0+8317_daily_bin73.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/501124/ft1_filtered_4FGL_J1322.0+8317_daily_bin73.fits
Spacecraft file(s): /scratch/kocevski/501124/ft2_4FGL_J1322.0+8317_daily_bin73.fits
Exposure map: /scratch/kocevski/501124/expmap_258249601_258508801_4FGL_J1322.0+8317_daily_bin73.fits
Exposure cube: /scratch/kocevski/501124/ltcube_258249601_258508801_4FGL_J1322.0+8317_daily_bin73.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/501124/Model_4FGL_J1322.0+8317_daily_bin73.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) = 5706.52579025

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.470       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.4921       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.937       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14946E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.8687       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.0025       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.9047       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .22554E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.113       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    39.257       1.0000         .10000E-03   10000.    
    16 'Prefactor '    29.110       1.0000         .10000E-03   10000.    
    17 'Prefactor '    61.924       1.0000         .10000E-03   10000.    
    18 'Prefactor '    157.94       1.0000         .10000E-03   10000.    
    19 'norm      '    .10711E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    25.146       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.9082       1.0000         .10000E-03   10000.    
    23 'norm      '    .44215       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .87209       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99076       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.

 FCN=   5706.467     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     2947 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.629       -.37226E-07** at limit **
   2  Prefactor     .10000E-03    3.9840       -.14126E-06** at limit **
   3  Prefactor     21.462        14.167       -.17392E-06    .32435E-04
   4  Prefactor     9.4995        12.851       -.28483E-06   -.34572E-04
   5  Prefactor     10.935        14.539       -.94874E-06   -.97442E-06
   6  Prefactor     .10000E-03    41.940        .11885E-05** at limit **
   7  norm          4.8660        11.547        .40122E-05    .43086E-03
   8  Prefactor     4.0070        37.363       -.48638E-05    .14919E-03
   9  Prefactor     7.9179        13.753        .57122E-06    .31493E-03
  10  Prefactor     .10000E-03    20.988       -.39918E-06** at limit **
  11  norm          .10065E-03    2.4106       -.15819E-05** at limit **
  12  Prefactor     .10000E-03    35.754       -.67669E-06** at limit **
  13  Prefactor     18.114        17.713       -.21544E-06    .70644E-04
  14  Prefactor     .10000E-03    26.096        .23696E-05** at limit **
  15  Prefactor     39.208        34.418       -.24258E-05   -.44727E-04
  16  Prefactor     29.386        86.391       -.13784E-04   -.37926E-04
  17  Prefactor     62.031        72.671       -.10296E-05   -.70947E-05
  18  Prefactor     157.87        100.63        .30706E-05    .30444E-04
  19  norm          .10000E-03    15.046       -.11473E-06** at limit **
  20  Prefactor     .10000E-03    1.9912        .39465E-06** at limit **
  21  Prefactor     25.134        31.358       -.16595E-05   -.40323E-04
  22  Prefactor     6.8659        91.236       -.60467E-05   -.61040E-05
  23  norm          .44198        .78339        .13618E-06    .40802E-03
  24  Normalizat    .87192        .21615       -.28732E-05    .77579E-04
  25  Prefactor     .99087        .12390        .18796E-05    .89004E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.4623
  Prefactor  = 9.49952
  Prefactor  = 10.9351
  Prefactor  = 0.0001
  norm       = 4.86596
  Prefactor  = 4.00702
  Prefactor  = 7.91791
  Prefactor  = 0.0001
  norm       = 0.000100653
  Prefactor  = 0.0001
  Prefactor  = 18.1144
  Prefactor  = 0.000100001
  Prefactor  = 39.208
  Prefactor  = 29.3862
  Prefactor  = 62.0314
  Prefactor  = 157.875
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.1337
  Prefactor  = 6.86587
  norm       = 0.441982
  Normalizat = 0.871922
  Prefactor  = 0.990874
 **********
 **   18 **HESSE 
 **********

 FCN=   5706.467     FROM HESSE     STATUS=OK           431 CALLS     3378 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.9973        .14725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.462        14.181        .86444E-04   -1.4781    
   4  Prefactor     9.4995        12.824        .13007E-03   -1.5091    
   5  Prefactor     10.935        14.491        .12115E-03   -1.5046    
   6  Prefactor     .10000E-03    41.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.8660        11.683        .91151E-03   -1.5267    
   8  Prefactor     4.0070        38.184        .20158E-03   -1.5308    
   9  Prefactor     7.9179        13.342        .71307E-03   -1.5145    
  10  Prefactor     .10000E-03    20.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10065E-03    27.575        .20022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    35.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.114        17.704        .94108E-04   -1.4856    
  14  Prefactor     .10000E-03    27.112        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     39.208        34.625        .63972E-04   -1.4455    
  16  Prefactor     29.386        86.371        .74257E-04   -1.4623    
  17  Prefactor     62.031        72.753        .50991E-04   -1.4131    
  18  Prefactor     157.87        100.67        .16041E-03   -1.3188    
  19  norm          .10000E-03    15.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.0172        .10389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     25.134        31.119        .79884E-04   -1.4705    
  22  Prefactor     6.8659        91.027        .15264E-03   -1.5184    
  23  norm          .44198        .69573        .84050E-03   -1.5575    
  24  Normalizat    .87192        .24015        .32170E-03   -.97454    
  25  Prefactor     .99087        .13834        .18465E-03   -.93034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21276e-08
Minuit parameter uncertainties:
  1  1.68116e-05
  2  6.39603e-06
  3  14.1832
  4  12.8275
  5  14.4959
  6  6.17041e-05
  7  11.6883
  8  24.7594
  9  13.3473
  10  9.06294e-06
  11  0.00848933
  12  7.32428e-05
  13  17.7096
  14  0.000371495
  15  34.6432
  16  86.7422
  17  72.857
  18  100.784
  19  3.37957e-06
  20  1.67488e-05
  21  31.1388
  22  50.0923
  23  0.695744
  24  0.24044
  25  0.138391
Done.

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

Extracting fit parameters...

4FGL J1322.0+8317
   Spectrum: PowerLaw
367    Prefactor:  1.811e+01  1.771e+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.909e-01  1.384e-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:  8.719e-01  2.404e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.51
Ra Dec: 200.501 83.284
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 4.36e-08 +/- 4.26e-08
Energy Flux (Fixed Index): 1.44e-05 +/- 1.40e-05

TS (Fixed Index): 1.51
Ra Dec: 200.501 83.284
Photon Flux Upper Limit: 1.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.08e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/501124/likelihoodResults_258249601_258508801_4FGL_J1322.0+8317_daily_bin73.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) = 5706.36841795
delta logL = 0.0988172791085

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5706.36375264
delta logL = 0.103482584482

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.271       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1170       1.0000          .0000       10.000    
     3 'Normalizat'    .87941       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98769       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=   5706.364     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      311 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.277        25.180        .81309E-04    .29922E-04
   2  Index         2.1169        .58681        .81618E-02    .20241E-03
   3  Normalizat    .87951        .21799        .32047E-03   -.33524E-04
   4  Prefactor     .98767        .13365        .18488E-03    .28384E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.2767
  Index      = 2.11686
  Normalizat = 0.879507
  Prefactor  = 0.987667
 **********
 **   18 **HESSE 
 **********

 FCN=   5706.364     FROM HESSE     STATUS=OK            25 CALLS      336 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.277        24.770        .32524E-05   -1.4722    
   2  Index         2.1169        .57729        .16324E-02   -.61459    
   3  Normalizat    .87951        .21805        .12819E-04   -.97184    
   4  Prefactor     .98767        .13370        .36977E-04   -.93142    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71529e-11
Minuit parameter uncertainties:
  1  24.7806
  2  0.57923
  3  0.218269
  4  0.133744
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/501124': 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) = 5706.36375247
delta logL = 0.103482751622

Extracting fit parameters...

4FGL J1322.0+8317
   Spectrum: PowerLaw
367    Prefactor:  2.428e+01  2.478e+01  1.000e-04  1.000e+04 ( 1.000e-13)
368        Index:  2.117e+00  5.792e-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:  9.877e-01  1.337e-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:  8.795e-01  2.183e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.72
Ra Dec: 200.501 83.284
Photon Index (Free Index): 2.12 +/- 0.58
Photon Flux (Free Index): 3.71e-08 +/- 3.94e-08
Energy Flux (Free Index): 1.96e-05 +/- 2.33e-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/501124/cmap_HighResolution_258249601_258508801_4FGL_J1322.0+8317_daily_bin73.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', comment='SUCCESS', photon_flux='4.36e-08', energy_flux2='1.96e-05', photon_flux_error='4.26e-08', dlogl='1.03e-01', energy_flux='1.44e-05', photon_flux2='3.71e-08', job_status='DONE', time_completed='2021-09-07 13:45:59.587386', photon_index_error2='0.58', photon_index2='2.12', ts='1.51', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.40e-07', energy_flux_error2='2.33e-05', EG='0.87', time_epoch_completed='1631047559.59', return_code='0', job_id='501124', GAL2='0.99', EG2='0.88', return_code2='0', energy_flux_error='1.40e-05', photon_flux_error2='3.94e-08', ts2='1.72', photon_index='2.40' WHERE bin_id='73' AND source_name='4FGL J1322.0+8317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:45:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 501124: <4FGL_J1322.0+8317_daily_bin73> in cluster <slac> Done

Job <4FGL_J1322.0+8317_daily_bin73> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 13:30:26 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 13:30:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 13:30:45 2021
Terminated at Tue Sep  7 13:46:00 2021
Results reported at Tue Sep  7 13:46:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.0+8317_daily_bin73 200.501 83.2845 258249601 258508801 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 :                                   780.45 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             321.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            934 sec.

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

