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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin974
RA = 200.185, Dec = 33.2378
tmin = 491788801, tmax = 492048001
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='493592', job_status='RUN', time_executed='2021-09-07 12:56:13.724814', time_epoch_executed='1631044573.72' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='974'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/493592

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/493592/ft1_4FGL_J1320.7+3314_daily_bin974.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/493592/ft2_4FGL_J1320.7+3314_daily_bin974.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/493592/ft1_4FGL_J1320.7+3314_daily_bin974.fits outfile=/scratch/kocevski/493592/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin974.fits ra=200.185 dec=33.2378 rad=12.0 tmin=491788801.0 tmax=492048001.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.54
user 3.29
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/493592/ft1_filtered_4FGL_J1320.7+3314_daily_bin974.fits" evtable="EVENTS" scfile=/scratch/kocevski/493592/ft2_4FGL_J1320.7+3314_daily_bin974.fits sctable="SC_DATA" outfile=/scratch/kocevski/493592/ltcube_491788801_492048001_4FGL_J1320.7+3314_daily_bin974.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/493592/ft2_4FGL_J1320.7+3314_daily_bin974.fits
.....................!
real 17.69
user 17.32
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/493592/ft1_filtered_4FGL_J1320.7+3314_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/493592/ft2_4FGL_J1320.7+3314_daily_bin974.fits sctable="SC_DATA" expcube=/scratch/kocevski/493592/ltcube_491788801_492048001_4FGL_J1320.7+3314_daily_bin974.fits outfile=/scratch/kocevski/493592/expmap_491788801_492048001_4FGL_J1320.7+3314_daily_bin974.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/493592/ltcube_491788801_492048001_4FGL_J1320.7+3314_daily_bin974.fits
.....................!
real 162.06
user 157.09
sys 4.57

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/493592/ft1_filtered_4FGL_J1320.7+3314_daily_bin974.fits scfile=/scratch/kocevski/493592/ft2_4FGL_J1320.7+3314_daily_bin974.fits outfile=/scratch/kocevski/493592/cmap_491788801_492048001_4FGL_J1320.7+3314_daily_bin974.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.62
user 0.34
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/493592/ft1_filtered_4FGL_J1320.7+3314_daily_bin974.fits scfile=/scratch/kocevski/493592/ft2_4FGL_J1320.7+3314_daily_bin974.fits outfile=/scratch/kocevski/493592/cmap_HighResolution_491788801_492048001_4FGL_J1320.7+3314_daily_bin974.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/493592/ft1_filtered_4FGL_J1320.7+3314_daily_bin974.fits evtable="EVENTS" scfile=/scratch/kocevski/493592/ft2_4FGL_J1320.7+3314_daily_bin974.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/493592/Model_4FGL_J1320.7+3314_daily_bin974.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/493592/ft1_filtered_4FGL_J1320.7+3314_daily_bin974.fits.....................!
real 16.40
user 15.10
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    67.319       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11783E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    126.84       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10249E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    11.429       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15014E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    23.650       1.0000         .10000E-03   10000.    
    11 'norm      '    43.181       1.0000         .10000E-03   10000.    
    12 'norm      '    29.025       1.0000         .10000E-03   10000.    
    13 'norm      '    .10775E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    16.048       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.6566       1.0000         .10000E-03   10000.    
    20 'Prefactor '    36.837       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .22114E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.084       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.8301       1.0000         .10000E-03   10000.    
    24 'norm      '    75.366       1.0000         .10000E-03   10000.    
    25 'Prefactor '    83.962       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0173       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .49614       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=   858.7939     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     3839 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.178        .57780E-06** at limit **
   2  Prefactor     67.206        98.636       -.51736E-05    .11245E-04
   3  Prefactor     .10000E-03    123.79       -.37418E-06** at limit **
   4  Prefactor     .10000E-03    22.923       -.26719E-05** at limit **
   5  norm          .10000E-03    6.4033        .17121E-06** at limit **
   6  Prefactor     126.73        228.66       -.40817E-05    .62885E-05
   7  Prefactor     .10000E-03    45.679        .16010E-05** at limit **
   8  norm          11.418        17.467       -.24892E-05    .39639E-04
   9  Prefactor     .10000E-03    73.836       -.24736E-05** at limit **
  10  norm          23.633        21.767       -.16312E-05    .10922E-03
  11  norm          43.185        61.175        .35772E-06    .14605E-04
  12  norm          29.000        16.217       -.98279E-06    .32582E-03
  13  norm          .10000E-03    38.650       -.14590E-05** at limit **
  14  norm          .10000E-03    59.544        .19538E-05** at limit **
  15  Prefactor     .10000E-03    5.8713       -.94696E-06** at limit **
  16  Prefactor     .10000E-03    23.745       -.10614E-05** at limit **
  17  norm          16.022        30.179       -.35126E-06    .39873E-04
  18  Prefactor     .10000E-03    78.443       -.27328E-05** at limit **
  19  norm          3.6458        107.59       -.78883E-05    .24859E-04
  20  Prefactor     36.695        59.080       -.22090E-05    .51083E-05
  21  Prefactor     .10001E-03    73.648       -.88814E-05** at limit **
  22  Prefactor     14.768        455.09       -.29967E-04   -.21206E-04
  23  Prefactor     3.8234        15.098       -.30151E-05    .17626E-04
  24  norm          75.355        55.737       -.19963E-05    .21627E-04
  25  Prefactor     83.964        79.344        .27318E-06    .22945E-04
  26  Normalizat    1.0189        .58594        .64420E-04   -.53228E-04
  27  Prefactor     .49449        .58937       -.94480E-04   -.28120E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 67.2058
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 126.733
  Prefactor  = 0.0001
  norm       = 11.418
  Prefactor  = 0.000100001
  norm       = 23.6332
  norm       = 43.1847
  norm       = 28.9996
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.0222
  Prefactor  = 0.0001
  norm       = 3.64581
  Prefactor  = 36.6954
  Prefactor  = 0.000100012
  Prefactor  = 14.7684
  Prefactor  = 3.82339
  norm       = 75.3547
  Prefactor  = 83.9645
  Normalizat = 1.01892
  Prefactor  = 0.494486
 **********
 **   18 **HESSE 
 **********

 FCN=   858.7939     FROM HESSE     STATUS=OK           478 CALLS     4317 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.184        .13486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     67.206        98.566        .24459E-03   -1.4067    
   3  Prefactor     .10000E-03    123.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.995        .13712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    6.4046        .72440E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     126.73        228.63        .17872E-03   -1.3452    
   7  Prefactor     .10000E-03    45.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          11.418        17.439        .11850E-03   -1.5032    
   9  Prefactor     .10000E-03    73.950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          23.633        21.723        .82367E-04   -1.4735    
  11  norm          43.185        61.156        .61007E-04   -1.4393    
  12  norm          29.000        16.174        .74366E-04   -1.4630    
  13  norm          .10000E-03    38.744        .17756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    59.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.8969        .69382E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    23.770        .13957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          16.022        29.362        .99978E-04   -1.4907    
  18  Prefactor     .10000E-03    78.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.6458        101.82        .21124E-03   -1.5326    
  20  Prefactor     36.695        59.158        .33016E-03   -1.4496    
  21  Prefactor     .10001E-03    74.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     14.768        463.09        .10313E-03   -1.4939    
  23  Prefactor     3.8234        15.030        .20153E-03   -1.5317    
  24  norm          75.355        55.699        .23126E-03   -1.3970    
  25  Prefactor     83.964        79.316        .21919E-03   -1.3873    
  26  Normalizat    1.0189        .58527        .22960E-03   -.92399    
  27  Prefactor     .49449        .58760        .36964E-03   -1.1223    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.38667e-10
Minuit parameter uncertainties:
  1  7.51458e-05
  2  98.8067
  3  0.000194886
  4  0.000443299
  5  7.79655e-08
  6  230.25
  7  0.000195915
  8  17.4465
  9  0.000573791
  10  21.7305
  11  61.245
  12  16.1768
  13  0.000221592
  14  7.7372e-05
  15  8.02654e-05
  16  0.000208173
  17  29.3884
  18  0.000226834
  19  38.606
  20  59.2525
  21  0.0018786
  22  166.828
  23  15.0444
  24  55.7378
  25  79.4163
  26  0.589021
  27  0.59504
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  2.082e-04  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:  4.945e-01  5.950e-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.019e+00  5.890e-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: 2.67e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.08e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/493592/likelihoodResults_491788801_492048001_4FGL_J1320.7+3314_daily_bin974.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) = 858.794124942
delta logL = -0.000195843703295

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 858.793929253
delta logL = -1.54659346663e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5934       1.0000          .0000       10.000    
     3 'Normalizat'    1.0189       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .49447       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=   858.7939     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      236 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.429        .90712E-02** at limit **
   2  Index         2.5784        6.2851        .50000        .59114E-05
   3  Normalizat    1.0189        .42435        .43520E-01    .23180E-05
   4  Prefactor     .49449        .48732        .83454E-01    .39245E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.57841
  Normalizat = 1.01892
  Prefactor  = 0.494486
 **********
 **   18 **HESSE 
 **********

 FCN=   858.7939     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.915        .13662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5784        6.2889        .50000       -.50558    
   3  Normalizat    1.0189        .46849        .22953E-03   -.92399    
   4  Prefactor     .49449        .53600        .36979E-03   -1.1223    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.89699e-11
Minuit parameter uncertainties:
  1  2.78136e-06
  2  4.5958
  3  0.4704
  4  0.541611
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/493592': 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) = 858.793929189
delta logL = -9.13345274967e-08

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  2.781e-06  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.578e+00  4.596e+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:  4.945e-01  5.416e-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.019e+00  4.704e-01  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/493592/cmap_HighResolution_491788801_492048001_4FGL_J1320.7+3314_daily_bin974.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.08e-02', job_status='DONE', photon_flux_upper_limit='2.67e-07', time_completed='2021-09-07 13:02:04.736045', job_id='493592', GAL2='0.49', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1631044924.74', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.49', dlogl='-9.13e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='974' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:02:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 493592: <4FGL_J1320.7+3314_daily_bin974> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin974> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 12:55:42 2021
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 12:55:58 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:55:58 2021
Terminated at Tue Sep  7 13:02:05 2021
Results reported at Tue Sep  7 13:02:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin974 200.185 33.2378 491788801 492048001 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 :                                   348.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             331.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   367 sec.
    Turnaround time :                            383 sec.

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

