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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin1074
RA = 200.185, Dec = 33.2378
tmin = 517708801, tmax = 517968001
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='493746', job_status='RUN', time_executed='2021-09-07 13:00:19.864193', time_epoch_executed='1631044819.86' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='1074'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/493746

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/493746/ft1_4FGL_J1320.7+3314_daily_bin1074.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/493746/ft2_4FGL_J1320.7+3314_daily_bin1074.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/493746/ft1_4FGL_J1320.7+3314_daily_bin1074.fits outfile=/scratch/kocevski/493746/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin1074.fits ra=200.185 dec=33.2378 rad=12.0 tmin=517708801.0 tmax=517968001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.81
user 3.48
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/493746/ft1_filtered_4FGL_J1320.7+3314_daily_bin1074.fits" evtable="EVENTS" scfile=/scratch/kocevski/493746/ft2_4FGL_J1320.7+3314_daily_bin1074.fits sctable="SC_DATA" outfile=/scratch/kocevski/493746/ltcube_517708801_517968001_4FGL_J1320.7+3314_daily_bin1074.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/493746/ft2_4FGL_J1320.7+3314_daily_bin1074.fits
.....................!
real 17.27
user 16.75
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/493746/ft1_filtered_4FGL_J1320.7+3314_daily_bin1074.fits evtable="EVENTS" scfile=/scratch/kocevski/493746/ft2_4FGL_J1320.7+3314_daily_bin1074.fits sctable="SC_DATA" expcube=/scratch/kocevski/493746/ltcube_517708801_517968001_4FGL_J1320.7+3314_daily_bin1074.fits outfile=/scratch/kocevski/493746/expmap_517708801_517968001_4FGL_J1320.7+3314_daily_bin1074.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/493746/ltcube_517708801_517968001_4FGL_J1320.7+3314_daily_bin1074.fits
.....................!
real 192.88
user 186.92
sys 3.60

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/493746/ft1_filtered_4FGL_J1320.7+3314_daily_bin1074.fits scfile=/scratch/kocevski/493746/ft2_4FGL_J1320.7+3314_daily_bin1074.fits outfile=/scratch/kocevski/493746/cmap_517708801_517968001_4FGL_J1320.7+3314_daily_bin1074.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/493746/ft1_filtered_4FGL_J1320.7+3314_daily_bin1074.fits scfile=/scratch/kocevski/493746/ft2_4FGL_J1320.7+3314_daily_bin1074.fits outfile=/scratch/kocevski/493746/cmap_HighResolution_517708801_517968001_4FGL_J1320.7+3314_daily_bin1074.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/493746/ft1_filtered_4FGL_J1320.7+3314_daily_bin1074.fits evtable="EVENTS" scfile=/scratch/kocevski/493746/ft2_4FGL_J1320.7+3314_daily_bin1074.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/493746/Model_4FGL_J1320.7+3314_daily_bin1074.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/493746/ft1_filtered_4FGL_J1320.7+3314_daily_bin1074.fits.....................!
real 47.77
user 45.84
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    114.97       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.1143       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.6310       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.908       1.0000         .10000E-03   10000.    
     8 'norm      '    2.0166       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.810       1.0000         .10000E-03   10000.    
    10 'norm      '    .16199       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .11025E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    24.600       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .71605       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.9695       1.0000         .10000E-03   10000.    
    18 'Prefactor '    74.935       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    34.124       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    64.150       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .80075       1.0000         .10000E-03   10000.    
    24 'norm      '    6.2337       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1254       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .84476       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=   5570.743     FROM MIGRAD    STATUS=CONVERGED    658 CALLS     3292 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1064       -.12915E-07** at limit **
   2  Prefactor     .10000E-03    6.0097        .55067E-07** at limit **
   3  Prefactor     114.99        102.38        .91664E-06    .67412E-04
   4  Prefactor     .10000E-03    4.1798        .17553E-06** at limit **
   5  norm          4.1129        4.2779        .75367E-07    .29822E-03
   6  Prefactor     6.6397        40.748        .55162E-06    .18011E-04
   7  Prefactor     16.867        24.135        .89168E-06    .12858E-03
   8  norm          2.0171        2.6357        .73634E-07    .51965E-04
   9  Prefactor     14.751        16.297        .55744E-06    .13872E-03
  10  norm          .21858        4.0716        .20487E-06   -.15191E-03
  11  norm          .10000E-03    17.038        .20783E-06** at limit **
  12  norm          .10001E-03    3.6036       -.20949E-05** at limit **
  13  norm          .10000E-03    3.1011       -.19551E-06** at limit **
  14  norm          24.605        24.188        .12000E-06    .13175E-04
  15  Prefactor     .71024        2.5950        .11513E-05    .53572E-03
  16  Prefactor     .10000E-03    9.0555       -.47773E-06** at limit **
  17  norm          8.9705        6.2690        .52065E-07    .99741E-05
  18  Prefactor     74.913        55.887       -.30986E-06   -.35270E-04
  19  norm          .10000E-03    3.1346       -.17338E-07** at limit **
  20  Prefactor     34.123        21.874        .46009E-07    .33963E-04
  21  Prefactor     .10000E-03    7.4662       -.61535E-07** at limit **
  22  Prefactor     64.195        86.517        .12469E-05    .59339E-04
  23  Prefactor     .80294        5.1851        .28236E-05    .22043E-03
  24  norm          6.2395        18.335        .59339E-06    .57944E-05
  25  Prefactor     .10000E-03    9.7205       -.18228E-08** at limit **
  26  Normalizat    1.1254        .19922       -.16390E-05    .22144E-03
  27  Prefactor     .84457        .22019        .12722E-05    .97184E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 114.994
  Prefactor  = 0.0001
  norm       = 4.11289
  Prefactor  = 6.63971
  Prefactor  = 16.8669
  norm       = 2.01705
  Prefactor  = 14.7512
  norm       = 0.218585
  norm       = 0.0001
  norm       = 0.000100005
  norm       = 0.0001
  norm       = 24.6045
  Prefactor  = 0.710243
  Prefactor  = 0.0001
  norm       = 8.97048
  Prefactor  = 74.9134
  norm       = 0.0001
  Prefactor  = 34.1235
  Prefactor  = 0.0001
  Prefactor  = 64.1951
  Prefactor  = 0.802943
  norm       = 6.23948
  Prefactor  = 0.0001
  Normalizat = 1.12538
  Prefactor  = 0.844568
 **********
 **   18 **HESSE 
 **********

 FCN=   5570.743     FROM HESSE     STATUS=OK           490 CALLS     3782 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.1097        .14771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.0115        .17871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     114.99        102.41        .37521E-04   -1.3559    
   4  Prefactor     .10000E-03    4.2136        .14883E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.1129        4.2631        .14487E-03   -1.5302    
   6  Prefactor     6.6397        40.767        .15583E-03   -1.5193    
   7  Prefactor     16.867        24.227        .97404E-04   -1.4886    
   8  norm          2.0171        2.6222        .13387E-03   -1.5424    
   9  Prefactor     14.751        17.205        .10408E-03   -1.4940    
  10  norm          .21858        41.699        .26244E-02   -1.5614    
  11  norm          .10000E-03    17.520        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10001E-03    5.6213        .22293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.1163        .12817E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          24.605        24.164        .80764E-04   -1.4715    
  15  Prefactor     .71024        2.5884        .21708E-03   -1.5539    
  16  Prefactor     .10000E-03    9.1043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.9705        6.2673        .13383E-03   -1.5109    
  18  Prefactor     74.913        55.681        .23192E-03   -1.3975    
  19  norm          .10000E-03    3.1414        .12903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     34.123        21.927        .68600E-04   -1.4539    
  21  Prefactor     .10000E-03    7.4713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     64.195        87.027        .50104E-04   -1.4104    
  23  Prefactor     .80294        5.2832        .31803E-03   -1.5529    
  24  norm          6.2395        18.310        .16078E-03   -1.5208    
  25  Prefactor     .10000E-03    9.7278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1254        .23327        .22867E-03   -.88941    
  27  Prefactor     .84457        .25857        .30403E-03   -.98106    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87407e-09
Minuit parameter uncertainties:
  1  3.42193e-06
  2  1.13641e-05
  3  102.564
  4  6.48951e-06
  5  4.2634
  6  32.9381
  7  24.2407
  8  2.62239
  9  17.2108
  10  6.041
  11  1.796e-05
  12  0.000351459
  13  3.28401e-06
  14  24.1735
  15  2.58881
  16  4.28131e-05
  17  6.26774
  18  55.7193
  19  9.19506e-07
  20  21.9324
  21  4.07815e-06
  22  87.2
  23  4.11955
  24  18.3267
  25  1.18357e-05
  26  0.233481
  27  0.258948
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  4.281e-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.446e-01  2.589e-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.125e+00  2.335e-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: 7.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/493746/likelihoodResults_517708801_517968001_4FGL_J1320.7+3314_daily_bin1074.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) = 5570.74333704
delta logL = -0.000523249899743

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5570.74281582
delta logL = -2.03397030418e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12315E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4895       1.0000          .0000       10.000    
     3 'Normalizat'    1.1251       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84490       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=   5570.743     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      241 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10095E-03    80.509        .18142E-02** at limit **
   2  Index         2.4423        8.7126        .50000        .14117E-04
   3  Normalizat    1.1254        .12946E-01    .22867E-03    .51407E-04
   4  Prefactor     .84457        .15191E-01    .30402E-03    .32832E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100946
  Index      = 2.44233
  Normalizat = 1.12538
  Prefactor  = 0.844569
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10095E-03    348.93        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4423        6.0469        .50000       -.53697    
   3  Normalizat    1.1254        .27961E-01    .91468E-05   -.88941    
   4  Prefactor     .84457        .32808E-01    .12161E-04   -.98106    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.10298e-08
Minuit parameter uncertainties:
  1  0.0365417
  2  599.936
  3  0.0279614
  4  0.0328091
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/493746': 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) = 5570.7428136
delta logL = 1.91764229385e-07

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.009e-04  3.654e-02  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.442e+00  5.999e+02  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.446e-01  3.281e-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.125e+00  2.796e-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/493746/cmap_HighResolution_517708801_517968001_4FGL_J1320.7+3314_daily_bin1074.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.16e-03', job_status='DONE', photon_flux_upper_limit='7.91e-08', time_completed='2021-09-07 13:12:24.754696', job_id='493746', GAL2='0.84', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1631045544.75', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='1.92e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1074' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:12:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 493746: <4FGL_J1320.7+3314_daily_bin1074> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin1074> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 12:55:54 2021
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 12:56:35 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:35 2021
Terminated at Tue Sep  7 13:12:25 2021
Results reported at Tue Sep  7 13:12:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin1074 200.185 33.2378 517708801 517968001 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 :                                   715.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            991 sec.

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

