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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin1602
RA = 200.185, Dec = 33.2378
tmin = 654566401, tmax = 654825601
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='856457', job_status='RUN', time_executed='2021-10-02 00:04:37.711284', time_epoch_executed='1633158277.71' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='1602'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/856457

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/856457/ft1_4FGL_J1320.7+3314_daily_bin1602.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/856457/ft2_4FGL_J1320.7+3314_daily_bin1602.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/856457/ft1_4FGL_J1320.7+3314_daily_bin1602.fits outfile=/scratch/kocevski/856457/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin1602.fits ra=200.185 dec=33.2378 rad=12.0 tmin=654566401.0 tmax=654825601.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.07
user 4.72
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/856457/ft2_4FGL_J1320.7+3314_daily_bin1602.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/856457/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin1602.fits evtable="EVENTS" outfile="/scratch/kocevski/856457/ft1_filtered_4FGL_J1320.7+3314_daily_bin1602.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.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/856457/ft1_filtered_4FGL_J1320.7+3314_daily_bin1602.fits" evtable="EVENTS" scfile=/scratch/kocevski/856457/ft2_4FGL_J1320.7+3314_daily_bin1602.fits sctable="SC_DATA" outfile=/scratch/kocevski/856457/ltcube_654566401_654825601_4FGL_J1320.7+3314_daily_bin1602.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/856457/ft2_4FGL_J1320.7+3314_daily_bin1602.fits
.....................!
real 19.69
user 19.31
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/856457/ft1_filtered_4FGL_J1320.7+3314_daily_bin1602.fits evtable="EVENTS" scfile=/scratch/kocevski/856457/ft2_4FGL_J1320.7+3314_daily_bin1602.fits sctable="SC_DATA" expcube=/scratch/kocevski/856457/ltcube_654566401_654825601_4FGL_J1320.7+3314_daily_bin1602.fits outfile=/scratch/kocevski/856457/expmap_654566401_654825601_4FGL_J1320.7+3314_daily_bin1602.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/856457/ltcube_654566401_654825601_4FGL_J1320.7+3314_daily_bin1602.fits
.....................!
real 192.13
user 187.21
sys 4.13

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/856457/ft1_filtered_4FGL_J1320.7+3314_daily_bin1602.fits scfile=/scratch/kocevski/856457/ft2_4FGL_J1320.7+3314_daily_bin1602.fits outfile=/scratch/kocevski/856457/cmap_654566401_654825601_4FGL_J1320.7+3314_daily_bin1602.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/856457/ft1_filtered_4FGL_J1320.7+3314_daily_bin1602.fits scfile=/scratch/kocevski/856457/ft2_4FGL_J1320.7+3314_daily_bin1602.fits outfile=/scratch/kocevski/856457/cmap_HighResolution_654566401_654825601_4FGL_J1320.7+3314_daily_bin1602.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.54
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/856457/ft1_filtered_4FGL_J1320.7+3314_daily_bin1602.fits evtable="EVENTS" scfile=/scratch/kocevski/856457/ft2_4FGL_J1320.7+3314_daily_bin1602.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/856457/Model_4FGL_J1320.7+3314_daily_bin1602.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/856457/ft1_filtered_4FGL_J1320.7+3314_daily_bin1602.fits.....................!
real 49.15
user 47.75
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/856457/ft1_filtered_4FGL_J1320.7+3314_daily_bin1602.fits', '/scratch/kocevski/856457/ft2_4FGL_J1320.7+3314_daily_bin1602.fits', expMap='/scratch/kocevski/856457/expmap_654566401_654825601_4FGL_J1320.7+3314_daily_bin1602.fits', expCube='/scratch/kocevski/856457/ltcube_654566401_654825601_4FGL_J1320.7+3314_daily_bin1602.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/856457/Model_4FGL_J1320.7+3314_daily_bin1602.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/856457/ft1_filtered_4FGL_J1320.7+3314_daily_bin1602.fits
Spacecraft file(s): /scratch/kocevski/856457/ft2_4FGL_J1320.7+3314_daily_bin1602.fits
Exposure map: /scratch/kocevski/856457/expmap_654566401_654825601_4FGL_J1320.7+3314_daily_bin1602.fits
Exposure cube: /scratch/kocevski/856457/ltcube_654566401_654825601_4FGL_J1320.7+3314_daily_bin1602.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/856457/Model_4FGL_J1320.7+3314_daily_bin1602.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) = 6186.6520851

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .37360E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.6261       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.7853       1.0000         .10000E-03   10000.    
     5 'norm      '    10.989       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.879       1.0000         .10000E-03   10000.    
    13 'norm      '    4.8872       1.0000         .10000E-03   10000.    
    14 'norm      '    5.4991       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.3263       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.6823       1.0000         .10000E-03   10000.    
    17 'norm      '    2.6955       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.3693       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .89052       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.5052       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.

 FCN=   6186.547     FROM MIGRAD    STATUS=CONVERGED    644 CALLS     2787 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10111E-03    7.8030        .14508E-05** at limit **
   2  Prefactor     4.6115        19.627        .32148E-05    .13355E-04
   3  Prefactor     .10000E-03    54.047        .25655E-05** at limit **
   4  Prefactor     4.7856        5.0546       -.23043E-05   -.22238E-03
   5  norm          10.992        6.5941       -.31136E-06   -.92856E-05
   6  Prefactor     .10000E-03    18.322        .45385E-05** at limit **
   7  Prefactor     .10000E-03    20.018       -.67390E-05** at limit **
   8  norm          .10000E-03    1.9226       -.59829E-07** at limit **
   9  Prefactor     .10000E-03    16.175        .28983E-05** at limit **
  10  norm          .10000E-03    2.8084        .65734E-07** at limit **
  11  norm          .10000E-03    6.0106        .13978E-06** at limit **
  12  norm          10.880        8.0094       -.50680E-06   -.13927E-03
  13  norm          4.8858        11.572       -.10649E-05   -.11592E-03
  14  norm          5.4789        36.030       -.75690E-05   -.26729E-04
  15  Prefactor     5.3274        3.9140        .56014E-06    .10518E-03
  16  Prefactor     2.6821        16.357        .39566E-06   -.61222E-03
  17  norm          2.6924        4.8324        .10924E-05   -.20062E-02
  18  Prefactor     .10000E-03    19.115        .36243E-06** at limit **
  19  norm          .10000E-03    2.7314        .16837E-07** at limit **
  20  Prefactor     .10000E-03    8.5749       -.33019E-05** at limit **
  21  Prefactor     .10000E-03    19.163       -.43479E-06** at limit **
  22  Prefactor     .10000E-03    131.79       -.77147E-05** at limit **
  23  Prefactor     3.3690        4.3619        .13902E-05    .49108E-04
  24  norm          .10000E-03    10.635       -.52629E-05** at limit **
  25  Prefactor     .10000E-03    9.3786        .72380E-05** at limit **
  26  Normalizat    .89039        .18709       -.37591E-06   -.11962E-04
  27  Prefactor     1.5054        .23160        .33136E-06   -.59716E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101111
  Prefactor  = 4.61146
  Prefactor  = 0.0001
  Prefactor  = 4.78556
  norm       = 10.992
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 10.8801
  norm       = 4.88576
  norm       = 5.47888
  Prefactor  = 5.32739
  Prefactor  = 2.68213
  norm       = 2.69239
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.36904
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.890391
  Prefactor  = 1.50541
 **********
 **   18 **HESSE 
 **********

 FCN=   6186.547     FROM HESSE     STATUS=OK           486 CALLS     3273 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10111E-03    118.63        .42330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.6115        19.608        .18713E-03   -1.5278    
   3  Prefactor     .10000E-03    54.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.7856        5.0612        .17499E-03   -1.5270    
   5  norm          10.992        6.5940        .12086E-03   -1.5045    
   6  Prefactor     .10000E-03    18.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.9411        .10647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.8364        .12868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.0255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.880        8.2231        .11521E-03   -1.5048    
  13  norm          4.8858        11.883        .18195E-03   -1.5266    
  14  norm          5.4789        37.857        .17134E-03   -1.5240    
  15  Prefactor     5.3274        3.9201        .12212E-03   -1.5246    
  16  Prefactor     2.6821        20.606        .12440E-02   -1.5380    
  17  norm          2.6924        7.7100        .12407E-02   -1.5380    
  18  Prefactor     .10000E-03    19.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.7336        .12695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.5984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    19.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    132.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.3690        4.3520        .17870E-03   -1.5341    
  24  norm          .10000E-03    10.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    9.4022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .89039        .22479        .27359E-03   -.96799    
  27  Prefactor     1.5054        .28058        .27148E-03   -.77388    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05186e-08
Minuit parameter uncertainties:
  1  0.0230063
  2  19.0285
  3  0.000126108
  4  5.06168
  5  6.59439
  6  8.89139e-05
  7  6.89139e-05
  8  4.03489e-06
  9  0.000119363
  10  5.09914e-06
  11  1.12739e-06
  12  8.22398
  13  11.8887
  14  28.8296
  15  3.92025
  16  14.8752
  17  7.71286
  18  4.12048e-06
  19  2.79293e-06
  20  4.47498e-05
  21  5.73843e-06
  22  0.000358457
  23  4.35244
  24  7.04986e-05
  25  0.000100364
  26  0.22503
  27  0.28087
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  2.682e+00  1.488e+01  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:  1.505e+00  2.809e-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:  8.904e-01  2.250e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 200.185 33.238
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/856457/likelihoodResults_654566401_654825601_4FGL_J1320.7+3314_daily_bin1602.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) = 6186.51162451
delta logL = 0.0352290704159

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6186.49089865
delta logL = 0.0559549345617

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9890       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9187       1.0000          .0000       10.000    
     3 'Normalizat'    .89515       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4987       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.

 FCN=   6186.491     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      227 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9781        477.62        .41019E-02    .36967E-04
   2  Index         1.9193        2.9770        .48180        .60497E-04
   3  Normalizat    .89531        .31308E-01    .44840E-01    .16944E-03
   4  Prefactor     1.4986        .37387E-01    .61494E-01    .11846E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.97812
  Index      = 1.91928
  Normalizat = 0.895308
  Prefactor  = 1.49862
 **********
 **   18 **HESSE 
 **********

 FCN=   6186.491     FROM HESSE     STATUS=OK            31 CALLS      258 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9781        17.188        .16408E-03   -1.5219    
   2  Index         1.9193        1.3469        .10437E-01   -.66384    
   3  Normalizat    .89531        .21949        .27291E-03   -.96625    
   4  Prefactor     1.4986        .27508        .27195E-03   -.77579    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.28813e-10
Minuit parameter uncertainties:
  1  17.202
  2  1.37462
  3  0.219714
  4  0.275354
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/856457': 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) = 6186.49089774
delta logL = 0.0559558448858

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  5.978e+00  1.720e+01  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  1.919e+00  1.375e+00  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:  1.499e+00  2.754e-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:  8.953e-01  2.197e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/856457/cmap_HighResolution_654566401_654825601_4FGL_J1320.7+3314_daily_bin1602.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.87e-03', job_status='DONE', photon_flux_upper_limit='1.01e-07', time_completed='2021-10-02 00:16:38.073357', job_id='856457', GAL2='1.50', fit_tolerance='1e-08', EG2='0.90', EG='0.89', time_epoch_completed='1633158998.07', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='1.51', dlogl='5.60e-02', ts2='0.15', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1602' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Oct  2 00:16:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 856457: <4FGL_J1320.7+3314_daily_bin1602> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin1602> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Oct  2 00:02:45 2021
Job was executed on host(s) <bullet0290>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Oct  2 00:02:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Oct  2 00:02:47 2021
Terminated at Sat Oct  2 00:16:38 2021
Results reported at Sat Oct  2 00:16:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin1602 200.185 33.2378 654566401 654825601 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 :                                   718.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             317.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            833 sec.

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

