/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 7 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 = 7481
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1322.0+8317_daily_bin454
RA = 200.501, Dec = 83.2845
tmin = 357004801, tmax = 357264001
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='502836', job_status='RUN', time_executed='2021-09-07 13:36:36.999936', time_epoch_executed='1631046997.0' WHERE source_name='4FGL J1322.0+8317' and cadence='daily' and bin_id='454'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/502836

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/502836/ft1_4FGL_J1322.0+8317_daily_bin454.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/502836/ft2_4FGL_J1322.0+8317_daily_bin454.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/502836/ft1_4FGL_J1322.0+8317_daily_bin454.fits outfile=/scratch/kocevski/502836/ft1_filteredMKT_4FGL_J1322.0+8317_daily_bin454.fits ra=200.501 dec=83.2845 rad=12.0 tmin=357004801.0 tmax=357264001.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.19
user 2.93
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/502836/ft2_4FGL_J1322.0+8317_daily_bin454.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/502836/ft1_filteredMKT_4FGL_J1322.0+8317_daily_bin454.fits evtable="EVENTS" outfile="/scratch/kocevski/502836/ft1_filtered_4FGL_J1322.0+8317_daily_bin454.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.43
user 0.29
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/502836/ft1_filtered_4FGL_J1322.0+8317_daily_bin454.fits" evtable="EVENTS" scfile=/scratch/kocevski/502836/ft2_4FGL_J1322.0+8317_daily_bin454.fits sctable="SC_DATA" outfile=/scratch/kocevski/502836/ltcube_357004801_357264001_4FGL_J1322.0+8317_daily_bin454.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/502836/ft2_4FGL_J1322.0+8317_daily_bin454.fits
.....................!
real 10.75
user 10.43
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/502836/ft1_filtered_4FGL_J1322.0+8317_daily_bin454.fits evtable="EVENTS" scfile=/scratch/kocevski/502836/ft2_4FGL_J1322.0+8317_daily_bin454.fits sctable="SC_DATA" expcube=/scratch/kocevski/502836/ltcube_357004801_357264001_4FGL_J1322.0+8317_daily_bin454.fits outfile=/scratch/kocevski/502836/expmap_357004801_357264001_4FGL_J1322.0+8317_daily_bin454.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/502836/ltcube_357004801_357264001_4FGL_J1322.0+8317_daily_bin454.fits
.....................!
real 151.20
user 147.11
sys 3.83

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/502836/ft1_filtered_4FGL_J1322.0+8317_daily_bin454.fits scfile=/scratch/kocevski/502836/ft2_4FGL_J1322.0+8317_daily_bin454.fits outfile=/scratch/kocevski/502836/cmap_357004801_357264001_4FGL_J1322.0+8317_daily_bin454.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.49
user 0.34
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/502836/ft1_filtered_4FGL_J1322.0+8317_daily_bin454.fits scfile=/scratch/kocevski/502836/ft2_4FGL_J1322.0+8317_daily_bin454.fits outfile=/scratch/kocevski/502836/cmap_HighResolution_357004801_357264001_4FGL_J1322.0+8317_daily_bin454.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.53
user 0.35
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19187E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10600E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.108       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8563       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .71479       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10298E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.4317       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11203E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    9.2654       1.0000         .10000E-03   10000.    
    12 'Prefactor '    51.992       1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.220       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.336       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.9597       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    22.601       1.0000         .10000E-03   10000.    
    23 'norm      '    2.1597       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .93940       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .78803       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=   8808.547     FROM MIGRAD    STATUS=CONVERGED    585 CALLS     2956 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10097E-03    28.775       -.64740E-05** at limit **
   2  Prefactor     .10000E-03    8.5445        .21270E-06** at limit **
   3  Prefactor     15.109        9.1368       -.33953E-07   -.87302E-04
   4  Prefactor     2.8768        9.6745        .31665E-05    .32526E-03
   5  Prefactor     .70113        6.9226        .76768E-06   -.10494E-03
   6  Prefactor     .10000E-03    54.786       -.15833E-06** at limit **
   7  norm          .10000E-03    2.2471       -.17239E-06** at limit **
   8  Prefactor     .10000E-03    7.7648       -.59816E-06** at limit **
   9  Prefactor     4.4336        9.0985       -.11009E-05   -.44601E-04
  10  Prefactor     .10001E-03    52.998        .21435E-05** at limit **
  11  norm          9.2654        3.9629        .98536E-06    .19946E-02
  12  Prefactor     51.993        36.731        .14507E-06    .74962E-04
  13  Prefactor     21.224        13.358       -.13230E-06   -.20499E-04
  14  Prefactor     .10000E-03    5.2947        .54251E-07** at limit **
  15  Prefactor     22.322        18.958        .12296E-06    .87800E-05
  16  Prefactor     .10000E-03    73.936        .57369E-06** at limit **
  17  Prefactor     .10000E-03    14.324       -.79946E-07** at limit **
  18  Prefactor     .10002E-03    39.440       -.25348E-05** at limit **
  19  norm          .10000E-03    7.8368        .20694E-06** at limit **
  20  Prefactor     6.9593        3.1796        .12680E-06    .22177E-03
  21  Prefactor     .10000E-03    23.587        .34653E-06** at limit **
  22  Prefactor     22.609        36.227        .95254E-06    .14095E-03
  23  norm          2.1596        .74538        .16151E-07    .87686E-04
  24  Normalizat    .93931        .14243       -.43442E-06    .65489E-04
  25  Prefactor     .78813        .87034E-01   -.25858E-06    .28625E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100967
  Prefactor  = 0.0001
  Prefactor  = 15.1092
  Prefactor  = 2.87676
  Prefactor  = 0.701126
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.43358
  Prefactor  = 0.000100011
  norm       = 9.26535
  Prefactor  = 51.9935
  Prefactor  = 21.2239
  Prefactor  = 0.0001
  Prefactor  = 22.3219
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  norm       = 0.0001
  Prefactor  = 6.95926
  Prefactor  = 0.0001
  Prefactor  = 22.6095
  norm       = 2.15964
  Normalizat = 0.939307
  Prefactor  = 0.788128
 **********
 **   18 **HESSE 
 **********

 FCN=   8808.547     FROM HESSE     STATUS=OK           429 CALLS     3385 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10097E-03    82.041        .63454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.8978        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.109        9.1173        .10304E-03   -1.4930    
   4  Prefactor     2.8768        9.7873        .24055E-03   -1.5369    
   5  Prefactor     .70113        26.855        .45537E-02   -1.5541    
   6  Prefactor     .10000E-03    55.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.3359        .27377E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.0454        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.4336        9.0433        .19129E-03   -1.5287    
  10  Prefactor     .10001E-03    53.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          9.2654        4.0598        .55135E-03   -1.5099    
  12  Prefactor     51.993        36.750        .27811E-03   -1.4265    
  13  Prefactor     21.224        13.355        .86950E-04   -1.4786    
  14  Prefactor     .10000E-03    5.3657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     22.322        18.996        .84753E-04   -1.4763    
  16  Prefactor     .10000E-03    74.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10002E-03    40.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    7.8661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.9593        3.1761        .10815E-03   -1.5180    
  21  Prefactor     .10000E-03    23.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     22.609        36.386        .84254E-04   -1.4757    
  23  norm          2.1596        .74455        .45870E-04   -1.5414    
  24  Normalizat    .93931        .15732        .26989E-03   -.95092    
  25  Prefactor     .78813        .95576E-01    .18370E-03   -1.0017    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.41745e-08
Minuit parameter uncertainties:
  1  0.0178401
  2  9.1064e-05
  3  9.11814
  4  9.79278
  5  8.68199
  6  0.000522153
  7  9.32535e-06
  8  0.000109094
  9  9.04609
  10  0.00151969
  11  4.0599
  12  36.7661
  13  13.3566
  14  7.84659e-06
  15  19.0014
  16  0.000469921
  17  3.10219e-05
  18  0.00160464
  19  5.67281e-05
  20  3.17618
  21  0.000169241
  22  36.422
  23  0.744552
  24  0.157395
  25  0.0955963
Done.

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

Extracting fit parameters...

4FGL J1322.0+8317
   Spectrum: PowerLaw
367    Prefactor:  2.122e+01  1.336e+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:  7.881e-01  9.560e-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:  9.393e-01  1.574e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.70
Ra Dec: 200.501 83.284
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 5.10e-08 +/- 3.21e-08
Energy Flux (Fixed Index): 1.68e-05 +/- 1.06e-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) = 8808.54700841
delta logL = 0.000251244113315

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8808.54683219
delta logL = 0.000427460352512

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.916       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4122       1.0000          .0000       10.000    
     3 'Normalizat'    .93863       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78813       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=   8808.547     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      263 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.891        18.280        .87579E-04   -.83339E-04
   2  Index         2.4108        .55047        .68939E-02    .56500E-03
   3  Normalizat    .93876        .14983        .26995E-03    .69387E-03
   4  Prefactor     .78831        .93962E-01    .18368E-03    .10717E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.8913
  Index      = 2.41077
  Normalizat = 0.93876
  Prefactor  = 0.788309
 **********
 **   18 **HESSE 
 **********

 FCN=   8808.547     FROM HESSE     STATUS=OK            25 CALLS      288 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.891        17.389        .35031E-05   -1.4794    
   2  Index         2.4108        .52349        .13788E-02   -.54433    
   3  Normalizat    .93876        .14976        .53990E-04   -.95111    
   4  Prefactor     .78831        .93957E-01    .36735E-04   -1.0016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.31525e-10
Minuit parameter uncertainties:
  1  17.3929
  2  0.524807
  3  0.14983
  4  0.0939763
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/502836': 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) = 8808.54681246
delta logL = 0.0004471931843

Extracting fit parameters...

4FGL J1322.0+8317
   Spectrum: PowerLaw
367    Prefactor:  2.089e+01  1.739e+01  1.000e-04  1.000e+04 ( 1.000e-13)
368        Index:  2.411e+00  5.248e-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:  7.883e-01  9.398e-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:  9.388e-01  1.498e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.70
Ra Dec: 200.501 83.284
Photon Index (Free Index): 2.41 +/- 0.52
Photon Flux (Free Index): 5.16e-08 +/- 3.69e-08
Energy Flux (Free Index): 1.67e-05 +/- 1.18e-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/502836/cmap_HighResolution_357004801_357264001_4FGL_J1322.0+8317_daily_bin454.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.10e-08', energy_flux2='1.67e-05', photon_flux_error='3.21e-08', dlogl='4.47e-04', energy_flux='1.68e-05', photon_flux2='5.16e-08', job_status='DONE', time_completed='2021-09-07 13:48:58.315010', photon_index_error2='0.52', photon_index2='2.41', ts='4.70', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='1.18e-05', EG='0.94', time_epoch_completed='1631047738.32', return_code='0', job_id='502836', GAL2='0.79', EG2='0.94', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='3.69e-08', ts2='4.70', photon_index='2.40' WHERE bin_id='454' AND source_name='4FGL J1322.0+8317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:48:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 502836: <4FGL_J1322.0+8317_daily_bin454> in cluster <slac> Done

Job <4FGL_J1322.0+8317_daily_bin454> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 13:35:35 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 13:36:22 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:36:22 2021
Terminated at Tue Sep  7 13:48:58 2021
Results reported at Tue Sep  7 13:48:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.0+8317_daily_bin454 200.501 83.2845 357004801 357264001 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 :                                   740.35 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             355.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   756 sec.
    Turnaround time :                            803 sec.

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

