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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin1002
RA = 200.185, Dec = 33.2378
tmin = 499046401, tmax = 499305601
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='493636', job_status='RUN', time_executed='2021-09-07 12:58:34.494662', time_epoch_executed='1631044714.49' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='1002'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/493636

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/493636/ft1_4FGL_J1320.7+3314_daily_bin1002.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/493636/ft2_4FGL_J1320.7+3314_daily_bin1002.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/493636/ft1_4FGL_J1320.7+3314_daily_bin1002.fits outfile=/scratch/kocevski/493636/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin1002.fits ra=200.185 dec=33.2378 rad=12.0 tmin=499046401.0 tmax=499305601.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 4.43
user 4.19
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/493636/ft2_4FGL_J1320.7+3314_daily_bin1002.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/493636/ft2_4FGL_J1320.7+3314_daily_bin1002.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/493636/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin1002.fits evtable="EVENTS" outfile="/scratch/kocevski/493636/ft1_filtered_4FGL_J1320.7+3314_daily_bin1002.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.52
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/493636/ft1_filtered_4FGL_J1320.7+3314_daily_bin1002.fits" evtable="EVENTS" scfile=/scratch/kocevski/493636/ft2_4FGL_J1320.7+3314_daily_bin1002.fits sctable="SC_DATA" outfile=/scratch/kocevski/493636/ltcube_499046401_499305601_4FGL_J1320.7+3314_daily_bin1002.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/493636/ft2_4FGL_J1320.7+3314_daily_bin1002.fits
.....................!
real 17.00
user 16.64
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/493636/ft1_filtered_4FGL_J1320.7+3314_daily_bin1002.fits evtable="EVENTS" scfile=/scratch/kocevski/493636/ft2_4FGL_J1320.7+3314_daily_bin1002.fits sctable="SC_DATA" expcube=/scratch/kocevski/493636/ltcube_499046401_499305601_4FGL_J1320.7+3314_daily_bin1002.fits outfile=/scratch/kocevski/493636/expmap_499046401_499305601_4FGL_J1320.7+3314_daily_bin1002.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/493636/ltcube_499046401_499305601_4FGL_J1320.7+3314_daily_bin1002.fits
.....................!
real 191.80
user 186.44
sys 5.00

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 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J1320.7+3314 @ 200.185 33.2378

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/493636/ft1_filtered_4FGL_J1320.7+3314_daily_bin1002.fits scfile=/scratch/kocevski/493636/ft2_4FGL_J1320.7+3314_daily_bin1002.fits outfile=/scratch/kocevski/493636/cmap_499046401_499305601_4FGL_J1320.7+3314_daily_bin1002.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.185 yref=33.2378 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/493636/ft1_filtered_4FGL_J1320.7+3314_daily_bin1002.fits scfile=/scratch/kocevski/493636/ft2_4FGL_J1320.7+3314_daily_bin1002.fits outfile=/scratch/kocevski/493636/cmap_HighResolution_499046401_499305601_4FGL_J1320.7+3314_daily_bin1002.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.185 yref=33.2378 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.58
user 0.42
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/493636/ft1_filtered_4FGL_J1320.7+3314_daily_bin1002.fits evtable="EVENTS" scfile=/scratch/kocevski/493636/ft2_4FGL_J1320.7+3314_daily_bin1002.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/493636/Model_4FGL_J1320.7+3314_daily_bin1002.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/493636/ft1_filtered_4FGL_J1320.7+3314_daily_bin1002.fits.....................!
real 45.52
user 44.14
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/493636/ft1_filtered_4FGL_J1320.7+3314_daily_bin1002.fits', '/scratch/kocevski/493636/ft2_4FGL_J1320.7+3314_daily_bin1002.fits', expMap='/scratch/kocevski/493636/expmap_499046401_499305601_4FGL_J1320.7+3314_daily_bin1002.fits', expCube='/scratch/kocevski/493636/ltcube_499046401_499305601_4FGL_J1320.7+3314_daily_bin1002.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/493636/Model_4FGL_J1320.7+3314_daily_bin1002.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1320.7+3314'

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.871e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.508e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  1.074e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/493636/ft1_filtered_4FGL_J1320.7+3314_daily_bin1002.fits
Spacecraft file(s): /scratch/kocevski/493636/ft2_4FGL_J1320.7+3314_daily_bin1002.fits
Exposure map: /scratch/kocevski/493636/expmap_499046401_499305601_4FGL_J1320.7+3314_daily_bin1002.fits
Exposure cube: /scratch/kocevski/493636/ltcube_499046401_499305601_4FGL_J1320.7+3314_daily_bin1002.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/493636/Model_4FGL_J1320.7+3314_daily_bin1002.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) = 5231.74280094

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    35.653       1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.145       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .18336E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .11389E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.346       1.0000         .10000E-03   10000.    
     8 'norm      '    2.0554       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.505       1.0000         .10000E-03   10000.    
    10 'norm      '    .27208E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.5372       1.0000         .10000E-03   10000.    
    12 'norm      '    .10177E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .56416       1.0000         .10000E-03   10000.    
    14 'norm      '    18.820       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15784       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .40040       1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.8322       1.0000         .10000E-03   10000.    
    19 'norm      '    7.7960       1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.976       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.149       1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.292       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.1545       1.0000         .10000E-03   10000.    
    24 'norm      '    17.646       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0091       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .86154       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5920E+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=   5231.730     FROM MIGRAD    STATUS=CONVERGED   1192 CALLS     3903 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.3072        .18142E-02** at limit **
   2  Prefactor     35.661        28.485        .67117E-04   -.65688E-04
   3  Prefactor     37.145        59.417        .65759E-04    .31741E-04
   4  Prefactor     .10000E-03    68.073        .36985E-02** at limit **
   5  norm          .10000E-03    11.220        .28352E-02** at limit **
   6  Prefactor     .10000E-03    22.795        .18142E-02** at limit **
   7  Prefactor     15.350        28.686        .10224E-03   -.12120E-04
   8  norm          2.0553        2.2779        .11186E-03    .39840E-04
   9  Prefactor     13.514        19.064        .10899E-03   -.44555E-03
  10  norm          .10000E-03    10.479        .30133E-02** at limit **
  11  norm          6.5352        11.121        .78480E-03   -.44265E-03
  12  norm          .10000E-03    2.8179        .18330E-02** at limit **
  13  norm          .56358        5.8373        .33186E-03    .40188E-03
  14  norm          18.849        21.336        .92324E-04    .12314E-06
  15  Prefactor     .18676        21.278        .18756E-02    .12475E-02
  16  Prefactor     .10000E-03    6.2428        .17628E-02** at limit **
  17  norm          .31553        250.11        .40213E-02   -.61171E-04
  18  Prefactor     8.7279        74.656        .13487E-03   -.11381E-03
  19  norm          7.8770        22.622        .14361E-03   -.65704E-04
  20  Prefactor     18.979        18.965        .91944E-04   -.58609E-04
  21  Prefactor     10.136        26.458        .12577E-03   -.85870E-05
  22  Prefactor     23.151        92.263        .82998E-04    .16163E-04
  23  Prefactor     5.1546        4.0109        .60710E-03   -.12942E-02
  24  norm          17.652        14.460        .95345E-04    .23728E-04
  25  Prefactor     .10000E-03    7.7525        .18142E-02** at limit **
  26  Normalizat    1.0084        .23067        .22707E-03   -.16729E-03
  27  Prefactor     .86236        .25717        .28849E-03   -.36285E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 35.6614
  Prefactor  = 37.1451
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.3502
  norm       = 2.05534
  Prefactor  = 13.5144
  norm       = 0.000100001
  norm       = 6.53522
  norm       = 0.0001
  norm       = 0.563584
  norm       = 18.8489
  Prefactor  = 0.186761
  Prefactor  = 0.0001
  norm       = 0.315527
  Prefactor  = 8.72794
  norm       = 7.87702
  Prefactor  = 18.979
  Prefactor  = 10.136
  Prefactor  = 23.1511
  Prefactor  = 5.15457
  norm       = 17.6515
  Prefactor  = 0.0001
  Normalizat = 1.00839
  Prefactor  = 0.862355
 **********
 **   18 **HESSE 
 **********

 FCN=   5231.730     FROM HESSE     STATUS=OK           464 CALLS     4367 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.3083        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     35.661        28.464        .13423E-04   -1.4513    
   3  Prefactor     37.145        59.404        .13152E-04   -1.4488    
   4  Prefactor     .10000E-03    69.955        .14794E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    11.273        .56704E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.796        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.350        28.572        .40896E-05   -1.4924    
   8  norm          2.0553        2.2777        .44744E-05   -1.5421    
   9  Prefactor     13.514        18.895        .21799E-04   -1.4973    
  10  norm          .10000E-03    10.517        .60265E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.5352        11.120        .31392E-04   -1.5197    
  12  norm          .10000E-03    2.8180        .36660E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .56358        5.8145        .13274E-04   -1.5558    
  14  norm          18.849        20.627        .36930E-05   -1.4839    
  15  Prefactor     .18676        20.415        .37512E-03   -1.5622    
  16  Prefactor     .10000E-03    6.2429        .35255E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .31553        138.80        .16085E-03   -1.5596    
  18  Prefactor     8.7279        72.636        .26974E-04   -1.5117    
  19  norm          7.8770        16.922        .57445E-05   -1.5147    
  20  Prefactor     18.979        18.959        .36778E-05   -1.4836    
  21  Prefactor     10.136        26.441        .50310E-05   -1.5071    
  22  Prefactor     23.151        92.046        .33199E-05   -1.4745    
  23  Prefactor     5.1546        4.0092        .24284E-04   -1.5254    
  24  norm          17.652        14.457        .38138E-05   -1.4867    
  25  Prefactor     .10000E-03    7.7528        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0084        .23024        .45414E-04   -.92750    
  27  Prefactor     .86236        .25664        .57697E-04   -.97469    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.23529e-09
Minuit parameter uncertainties:
  1  3.30975e-05
  2  28.4752
  3  59.4984
  4  0.00097761
  5  7.19999e-05
  6  1.00867e-05
  7  28.597
  8  2.27779
  9  18.9032
  10  0.000153539
  11  11.1231
  12  2.34723e-05
  13  3.6206
  14  20.6346
  15  3.90557
  16  7.65846e-05
  17  13.2646
  18  50.4401
  19  16.9324
  20  18.9654
  21  26.4712
  22  92.5749
  23  4.00943
  24  14.4602
  25  1.20518e-05
  26  0.230466
  27  0.257003
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  7.658e-05  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.508e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  1.074e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  8.624e-01  2.570e-01  0.000e+00  1.000e+01 ( 1.000e+00)
590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  1.008e+00  2.305e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 200.185 33.238
Photon Flux Upper Limit: 6.73e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/493636/likelihoodResults_499046401_499305601_4FGL_J1320.7+3314_daily_bin1002.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) = 5231.73057045
delta logL = -0.000762675808801

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5231.72980781
delta logL = -3.8947291614e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4991       1.0000          .0000       10.000    
     3 'Normalizat'    1.0084       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86240       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5920E+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=   5231.730     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      241 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10160E-03    201.89        .17691E-02** at limit **
   2  Index         2.3764        6.0679        .50000        .92423E-05
   3  Normalizat    1.0084        .24834E-01    .22706E-03    .25034E-06
   4  Prefactor     .86236        .29534E-01    .28849E-03   -.11822E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001016
  Index      = 2.37636
  Normalizat = 1.00839
  Prefactor  = 0.862361
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10160E-03    804.39        .35382E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3764        6.0001        .50000       -.55240    
   3  Normalizat    1.0084        .58867E-01    .90825E-05   -.92750    
   4  Prefactor     .86236        .69883E-01    .11540E-04   -.97469    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.45671e-08
Minuit parameter uncertainties:
  1  0.0727435
  2  2546.62
  3  0.0588705
  4  0.0698905
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/493636': 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) = 5231.72980755
delta logL = 2.20417859964e-07

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.016e-04  7.274e-02  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.376e+00  2.547e+03  0.000e+00  1.000e+01 (-1.000e+00)
327        Scale:  1.074e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  8.624e-01  6.989e-02  0.000e+00  1.000e+01 ( 1.000e+00)
590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  1.008e+00  5.887e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 200.185 33.238

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/493636/cmap_HighResolution_499046401_499305601_4FGL_J1320.7+3314_daily_bin1002.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.24e-03', job_status='DONE', photon_flux_upper_limit='6.73e-08', time_completed='2021-09-07 13:11:57.449591', job_id='493636', GAL2='0.86', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1631045517.45', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='2.20e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1002' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:11:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 493636: <4FGL_J1320.7+3314_daily_bin1002> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin1002> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 12:55:45 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 12:56:07 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 12:56:07 2021
Terminated at Tue Sep  7 13:11:58 2021
Results reported at Tue Sep  7 13:11:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin1002 200.185 33.2378 499046401 499305601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1320.7+3314 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   727.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             268.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            973 sec.

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

