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


Performing analysis on: 4FGL_J1322.0+8317_daily_bin75
RA = 200.501, Dec = 83.2845
tmin = 258768001, tmax = 259027201
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='501127', job_status='RUN', time_executed='2021-09-07 13:33:45.625025', time_epoch_executed='1631046825.63' WHERE source_name='4FGL J1322.0+8317' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/501127

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/501127/ft1_4FGL_J1322.0+8317_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/501127/ft2_4FGL_J1322.0+8317_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/501127/ft1_4FGL_J1322.0+8317_daily_bin75.fits outfile=/scratch/kocevski/501127/ft1_filteredMKT_4FGL_J1322.0+8317_daily_bin75.fits ra=200.501 dec=83.2845 rad=12.0 tmin=258768001.0 tmax=259027201.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.20
user 0.98
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/501127/ft1_filtered_4FGL_J1322.0+8317_daily_bin75.fits" evtable="EVENTS" scfile=/scratch/kocevski/501127/ft2_4FGL_J1322.0+8317_daily_bin75.fits sctable="SC_DATA" outfile=/scratch/kocevski/501127/ltcube_258768001_259027201_4FGL_J1322.0+8317_daily_bin75.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/501127/ft2_4FGL_J1322.0+8317_daily_bin75.fits
.....................!
real 12.08
user 11.59
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/501127/ft1_filtered_4FGL_J1322.0+8317_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/501127/ft2_4FGL_J1322.0+8317_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/501127/ltcube_258768001_259027201_4FGL_J1322.0+8317_daily_bin75.fits outfile=/scratch/kocevski/501127/expmap_258768001_259027201_4FGL_J1322.0+8317_daily_bin75.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/501127/ltcube_258768001_259027201_4FGL_J1322.0+8317_daily_bin75.fits
.....................!
real 191.27
user 186.22
sys 4.31

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/501127/ft1_filtered_4FGL_J1322.0+8317_daily_bin75.fits scfile=/scratch/kocevski/501127/ft2_4FGL_J1322.0+8317_daily_bin75.fits outfile=/scratch/kocevski/501127/cmap_258768001_259027201_4FGL_J1322.0+8317_daily_bin75.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/501127/ft1_filtered_4FGL_J1322.0+8317_daily_bin75.fits scfile=/scratch/kocevski/501127/ft2_4FGL_J1322.0+8317_daily_bin75.fits outfile=/scratch/kocevski/501127/cmap_HighResolution_258768001_259027201_4FGL_J1322.0+8317_daily_bin75.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.56
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.344       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.6087       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .26628E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.4978       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .85652       1.0000         .10000E-03   10000.    
    11 'norm      '    3.2484       1.0000         .10000E-03   10000.    
    12 'Prefactor '    35.176       1.0000         .10000E-03   10000.    
    13 'Prefactor '    31.253       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.2983       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.4738       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10251E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10280E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .58371       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0602       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91673       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=   5425.637     FROM MIGRAD    STATUS=CONVERGED   1058 CALLS     3360 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.262        .18142E-02** at limit **
   2  Prefactor     .10000E-03    10.084        .36285E-03** at limit **
   3  Prefactor     22.343        13.833        .84737E-04   -.29919E-04
   4  Prefactor     8.6208        18.102        .13662E-03    .69067E-05
   5  Prefactor     .10000E-03    28.591        .18142E-02** at limit **
   6  Prefactor     .10000E-03    111.52        .21439E-02** at limit **
   7  norm          1.4967        4.8159        .27532E-03   -.58304E-04
   8  Prefactor     .10000E-03    7.1600        .18142E-02** at limit **
   9  Prefactor     .10000E-03    5.3531        .16620E-02** at limit **
  10  Prefactor     .42920        110.99        .20343        .40114E-04
  11  norm          3.2495        3.3458        .13267E-03   -.10446E-03
  12  Prefactor     35.141        55.092        .67569E-04    .57778E-04
  13  Prefactor     31.249        22.212        .71673E-04   -.10310E-04
  14  Prefactor     .10000E-03    7.2011        .18142E-02** at limit **
  15  Prefactor     3.2946        77.619        .22293E-03   -.34117E-04
  16  Prefactor     .10000E-03    54.705        .18142E-02** at limit **
  17  Prefactor     8.4397        136.68        .13771E-03   -.67695E-05
  18  Prefactor     .10000E-03    60.194        .18142E-02** at limit **
  19  norm          .10000E-03    5.7508        .17251E-02** at limit **
  20  Prefactor     .10000E-03    1.7083        .18512E-03** at limit **
  21  Prefactor     .10000E-03    21.723        .18142E-02** at limit **
  22  Prefactor     .10000E-03    29.557        .18142E-02** at limit **
  23  norm          .58367        .54635        .48842E-03   -.10695E-03
  24  Normalizat    1.0604        .24248        .28482E-03   -.17355E-03
  25  Prefactor     .91670        .13446        .18589E-03    .12145E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.3435
  Prefactor  = 8.62083
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.49668
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.429196
  norm       = 3.24946
  Prefactor  = 35.1407
  Prefactor  = 31.2492
  Prefactor  = 0.0001
  Prefactor  = 3.29464
  Prefactor  = 0.0001
  Prefactor  = 8.4397
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.583674
  Normalizat = 1.06042
  Prefactor  = 0.916697
 **********
 **   18 **HESSE 
 **********

 FCN=   5425.637     FROM HESSE     STATUS=OK           413 CALLS     3773 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.263        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.084        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.343        13.833        .33895E-05   -1.4762    
   4  Prefactor     8.6208        18.097        .54648E-05   -1.5121    
   5  Prefactor     .10000E-03    28.605        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    111.52        .42879E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.4967        4.8143        .11013E-04   -1.5463    
   8  Prefactor     .10000E-03    7.1603        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.3535        .33241E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .42920        117.88        .19609       -1.5577    
  11  norm          3.2495        3.3457        .53068E-05   -1.5347    
  12  Prefactor     35.141        55.080        .13514E-04   -1.4522    
  13  Prefactor     31.249        22.214        .28669E-05   -1.4589    
  14  Prefactor     .10000E-03    7.2024        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.2946        77.539        .89171E-05   -1.5345    
  16  Prefactor     .10000E-03    54.705        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.4397        136.68        .55084E-05   -1.5127    
  18  Prefactor     .10000E-03    60.197        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.7508        .34502E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.7083        .37023E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    21.728        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    29.558        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .58367        .54634        .19537E-04   -1.5555    
  24  Normalizat    1.0604        .24263        .11393E-04   -.91033    
  25  Prefactor     .91670        .13454        .37177E-04   -.95560    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.41402e-10
Minuit parameter uncertainties:
  1  2.67574e-05
  2  8.25196e-05
  3  13.8353
  4  18.1085
  5  5.13259e-05
  6  7.05472e-05
  7  4.81554
  8  5.38567e-05
  9  3.85392e-06
  10  14.2526
  11  3.34592
  12  55.1595
  13  22.22
  14  5.66794e-06
  15  32.0126
  16  0.000100799
  17  68.1118
  18  0.000144744
  19  5.62517e-06
  20  7.7376e-06
  21  3.24337e-05
  22  3.98218e-05
  23  0.546348
  24  0.242886
  25  0.134585
Done.

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

Extracting fit parameters...

4FGL J1322.0+8317
   Spectrum: PowerLaw
367    Prefactor:  3.125e+01  2.222e+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.167e-01  1.346e-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.060e+00  2.429e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.97
Ra Dec: 200.501 83.284
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 7.51e-08 +/- 5.34e-08
Energy Flux (Fixed Index): 2.48e-05 +/- 1.76e-05

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

Saving results to:
/scratch/kocevski/501127/likelihoodResults_258768001_259027201_4FGL_J1322.0+8317_daily_bin75.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) = 5425.44951788
delta logL = 0.187457610089

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5425.41994826
delta logL = 0.217027226357

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.919       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8459       1.0000          .0000       10.000    
     3 'Normalizat'    1.0390       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92397       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=   5425.420     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      279 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.911        27.399        .94615E-04   -.27492E-03
   2  Index         2.8460        .85096        .46170E-02   -.83239E-04
   3  Normalizat    1.0390        .21793        .28728E-03    .12961E-03
   4  Prefactor     .92398        .13190        .18520E-03    .34437E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.9113
  Index      = 2.84604
  Normalizat = 1.03901
  Prefactor  = 0.923984
 **********
 **   18 **HESSE 
 **********

 FCN=   5425.420     FROM HESSE     STATUS=OK            25 CALLS      304 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.911        22.981        .37846E-05   -1.4861    
   2  Index         2.8460        .71414        .18468E-03   -.44537    
   3  Normalizat    1.0390        .21754        .11491E-04   -.91735    
   4  Prefactor     .92398        .13169        .74082E-05   -.95308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64298e-10
Minuit parameter uncertainties:
  1  22.9921
  2  0.717159
  3  0.217731
  4  0.131735
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/501127': 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) = 5425.41994814
delta logL = 0.217027347802

Extracting fit parameters...

4FGL J1322.0+8317
   Spectrum: PowerLaw
367    Prefactor:  1.791e+01  2.299e+01  1.000e-04  1.000e+04 ( 1.000e-13)
368        Index:  2.846e+00  7.172e-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.240e-01  1.317e-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.039e+00  2.177e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.43
Ra Dec: 200.501 83.284
Photon Index (Free Index): 2.85 +/- 0.72
Photon Flux (Free Index): 9.73e-08 +/- 6.81e-08
Energy Flux (Free Index): 2.11e-05 +/- 1.45e-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/501127/cmap_HighResolution_258768001_259027201_4FGL_J1322.0+8317_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.42e-02', comment='SUCCESS', photon_flux='7.51e-08', energy_flux2='2.11e-05', photon_flux_error='5.34e-08', dlogl='2.17e-01', energy_flux='2.48e-05', photon_flux2='9.73e-08', job_status='DONE', time_completed='2021-09-07 13:46:59.540191', photon_index_error2='0.72', photon_index2='2.85', ts='2.97', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.84e-07', energy_flux_error2='1.45e-05', EG='1.06', time_epoch_completed='1631047619.54', return_code='0', job_id='501127', GAL2='0.92', EG2='1.04', return_code2='0', energy_flux_error='1.76e-05', photon_flux_error2='6.81e-08', ts2='3.43', photon_index='2.40' WHERE bin_id='75' AND source_name='4FGL J1322.0+8317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:46:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 501127: <4FGL_J1322.0+8317_daily_bin75> in cluster <slac> Done

Job <4FGL_J1322.0+8317_daily_bin75> 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) <bullet0282>, 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:47:00 2021
Results reported at Tue Sep  7 13:47:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.0+8317_daily_bin75 200.501 83.2845 258768001 259027201 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 :                                   794.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   974 sec.
    Turnaround time :                            994 sec.

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

