/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 43 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 = 7524
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1322.0+8317_daily_bin810
RA = 200.501, Dec = 83.2845
tmin = 449280001, tmax = 449539201
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='504383', job_status='RUN', time_executed='2021-09-07 13:41:25.915132', time_epoch_executed='1631047285.92' WHERE source_name='4FGL J1322.0+8317' and cadence='daily' and bin_id='810'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504383

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504383/ft1_4FGL_J1322.0+8317_daily_bin810.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504383/ft2_4FGL_J1322.0+8317_daily_bin810.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504383/ft1_4FGL_J1322.0+8317_daily_bin810.fits outfile=/scratch/kocevski/504383/ft1_filteredMKT_4FGL_J1322.0+8317_daily_bin810.fits ra=200.501 dec=83.2845 rad=12.0 tmin=449280001.0 tmax=449539201.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 5.92
user 5.61
sys 0.25

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504383/ft1_filtered_4FGL_J1322.0+8317_daily_bin810.fits evtable="EVENTS" scfile=/scratch/kocevski/504383/ft2_4FGL_J1322.0+8317_daily_bin810.fits sctable="SC_DATA" expcube=/scratch/kocevski/504383/ltcube_449280001_449539201_4FGL_J1322.0+8317_daily_bin810.fits outfile=/scratch/kocevski/504383/expmap_449280001_449539201_4FGL_J1322.0+8317_daily_bin810.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/504383/ltcube_449280001_449539201_4FGL_J1322.0+8317_daily_bin810.fits
.....................!
real 193.64
user 188.16
sys 4.76

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/504383/ft1_filtered_4FGL_J1322.0+8317_daily_bin810.fits scfile=/scratch/kocevski/504383/ft2_4FGL_J1322.0+8317_daily_bin810.fits outfile=/scratch/kocevski/504383/cmap_449280001_449539201_4FGL_J1322.0+8317_daily_bin810.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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/504383/ft1_filtered_4FGL_J1322.0+8317_daily_bin810.fits scfile=/scratch/kocevski/504383/ft2_4FGL_J1322.0+8317_daily_bin810.fits outfile=/scratch/kocevski/504383/cmap_HighResolution_449280001_449539201_4FGL_J1322.0+8317_daily_bin810.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.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.7986       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.558       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.5912       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    11.985       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10557E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.295       1.0000         .10000E-03   10000.    
    10 'Prefactor '    42.884       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.4916       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.094       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.057       1.0000         .10000E-03   10000.    
    19 'norm      '    10.201       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.1368       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.7225       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .61323       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1514       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=   6441.253     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2925 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.720       -.79073E-05** at limit **
   2  Prefactor     .10000E-03    4.7227       -.75606E-07** at limit **
   3  Prefactor     4.7969        9.1851       -.34774E-05   -.17425E-03
   4  Prefactor     11.561        15.370       -.51639E-05   -.60767E-04
   5  Prefactor     7.5916        7.5306       -.19082E-05    .22892E-03
   6  Prefactor     .10000E-03    21.732        .86217E-05** at limit **
   7  norm          11.998        6.2613       -.30558E-05    .15215E-02
   8  Prefactor     .10003E-03    34.294       -.17329E-04** at limit **
   9  Prefactor     17.321        15.462       -.27325E-05    .24643E-03
  10  Prefactor     42.877        76.850       -.11298E-04    .19056E-04
  11  norm          .10000E-03    3.4163        .72139E-06** at limit **
  12  Prefactor     .10000E-03    21.971        .82027E-05** at limit **
  13  Prefactor     .10000E-03    6.4583       -.10420E-05** at limit **
  14  Prefactor     9.4919        7.9170       -.86785E-06    .86627E-04
  15  Prefactor     11.095        12.512        .87210E-06    .69750E-04
  16  Prefactor     .10000E-03    25.197       -.50347E-05** at limit **
  17  Prefactor     .10000E-03    24.570       -.83313E-06** at limit **
  18  Prefactor     13.882        99.144       -.39504E-03    .73363E-04
  19  norm          10.191        18.314        .11170E-05   -.10576E-04
  20  Prefactor     8.1402        4.5883       -.79573E-06   -.58961E-03
  21  Prefactor     .10000E-03    54.218        .27264E-04** at limit **
  22  Prefactor     .10000E-03    23.816        .14943E-05** at limit **
  23  norm          1.7226        .87244       -.21258E-06   -.18146E-03
  24  Normalizat    .61321        .19198        .30324E-04   -.27881E-04
  25  Prefactor     1.1515        .11642       -.17622E-05    .72048E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.79686
  Prefactor  = 11.5609
  Prefactor  = 7.59161
  Prefactor  = 0.0001
  norm       = 11.9979
  Prefactor  = 0.000100027
  Prefactor  = 17.3211
  Prefactor  = 42.8772
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.49186
  Prefactor  = 11.0947
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 13.8818
  norm       = 10.1905
  Prefactor  = 8.14017
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.72261
  Normalizat = 0.613206
  Prefactor  = 1.15151
 **********
 **   18 **HESSE 
 **********

 FCN=   6441.253     FROM HESSE     STATUS=OK           427 CALLS     3352 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.7434        .17031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.7969        9.1843        .18366E-03   -1.5270    
   4  Prefactor     11.561        15.375        .11784E-03   -1.5028    
   5  Prefactor     7.5916        7.5288        .14555E-03   -1.5157    
   6  Prefactor     .10000E-03    21.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.998        6.1748        .11571E-03   -1.5015    
   8  Prefactor     .10003E-03    34.686        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.321        14.252        .96306E-04   -1.4875    
  10  Prefactor     42.877        76.904        .61217E-04   -1.4397    
  11  norm          .10000E-03    6.1178        .26366E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.4781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.4919        7.9319        .13008E-03   -1.5092    
  15  Prefactor     11.095        12.512        .12028E-03   -1.5042    
  16  Prefactor     .10000E-03    25.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    24.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.882        99.980        .10683E-03   -1.4963    
  19  norm          10.191        18.306        .12546E-03   -1.5069    
  20  Prefactor     8.1402        4.5811        .12223E-03   -1.5137    
  21  Prefactor     .10000E-03    54.464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    23.824        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.7226        .86947        .51579E-04   -1.5445    
  24  Normalizat    .61321        .20663        .35369E-03   -1.0743    
  25  Prefactor     1.1515        .12626        .17440E-03   -.87837    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10441e-09
Minuit parameter uncertainties:
  1  0.000153204
  2  5.8979e-05
  3  9.18704
  4  15.3807
  5  7.52969
  6  1.80172e-05
  7  6.17514
  8  0.00192488
  9  14.2549
  10  77.0828
  11  4.56279e-05
  12  1.88287e-06
  13  2.84341e-05
  14  7.93277
  15  12.5151
  16  1.20452e-05
  17  0.000554397
  18  74.6859
  19  18.3162
  20  4.58129
  21  0.000157002
  22  9.85382e-05
  23  0.869473
  24  0.206894
  25  0.126295
Done.

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

Extracting fit parameters...

4FGL J1322.0+8317
   Spectrum: PowerLaw
367    Prefactor:  1.000e-04  2.843e-05  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:  1.152e+00  1.263e-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:  6.132e-01  2.069e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 200.501 83.284
Photon Flux Upper Limit: 6.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/504383/likelihoodResults_449280001_449539201_4FGL_J1322.0+8317_daily_bin810.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): 102
logL (Free Index) = 6441.25409606
delta logL = -0.000735083026484

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6441.25336102
delta logL = -4.28590283263e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3751       1.0000          .0000       10.000    
     3 'Normalizat'    .61325       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1515       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=   6441.253     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      240 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10156E-03    66.141        .18142E-02** at limit **
   2  Index         2.3123        5.1421        .50000        .21912E-04
   3  Normalizat    .61321        .14968E-01    .35367E-03    .27837E-04
   4  Prefactor     1.1515        .99270E-02    .17441E-03    .49867E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101561
  Index      = 2.31226
  Normalizat = 0.61321
  Prefactor  = 1.1515
 **********
 **   18 **HESSE 
 **********

 FCN=   6441.253     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10156E-03    281.00        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3123        8.1942        .50000       -.56753    
   3  Normalizat    .61321        .32086E-01    .14147E-04   -1.0743    
   4  Prefactor     1.1515        .21280E-01    .69762E-05   -.87837    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.89197e-08
Minuit parameter uncertainties:
  1  0.0420877
  2  603.385
  3  0.0320875
  4  0.02128
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504383': 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): 102
logL (Free Index) = 6441.25336061
delta logL = 3.66426320397e-07

Extracting fit parameters...

4FGL J1322.0+8317
   Spectrum: PowerLaw
367    Prefactor:  1.016e-04  4.209e-02  1.000e-04  1.000e+04 ( 1.000e-13)
368        Index:  2.312e+00  6.034e+02  0.000e+00  1.000e+01 (-1.000e+00)
369        Scale:  1.133e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
662    Prefactor:  1.152e+00  2.128e-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:  6.132e-01  3.209e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 200.501 83.284

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/504383/cmap_HighResolution_449280001_449539201_4FGL_J1322.0+8317_daily_bin810.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.89e-03', job_status='DONE', photon_flux_upper_limit='6.32e-08', time_completed='2021-09-07 13:55:47.472812', job_id='504383', GAL2='1.15', fit_tolerance='1e-08', EG2='0.61', EG='0.61', time_epoch_completed='1631048147.47', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='3.66e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='810' AND source_name='4FGL J1322.0+8317' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:55:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0021>
Subject: Job 504383: <4FGL_J1322.0+8317_daily_bin810> in cluster <slac> Done

Job <4FGL_J1322.0+8317_daily_bin810> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 13:40:22 2021
Job was executed on host(s) <bullet0021>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 13:40:26 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:40:26 2021
Terminated at Tue Sep  7 13:55:47 2021
Results reported at Tue Sep  7 13:55:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1322.0+8317_daily_bin810 200.501 83.2845 449280001 449539201 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 :                                   859.25 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             328.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            925 sec.

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

