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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin1134
RA = 200.185, Dec = 33.2378
tmin = 533260801, tmax = 533520001
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='494600', job_status='RUN', time_executed='2021-09-07 13:04:26.995230', time_epoch_executed='1631045067.0' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='1134'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/494600

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/494600/ft1_4FGL_J1320.7+3314_daily_bin1134.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/494600/ft2_4FGL_J1320.7+3314_daily_bin1134.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/494600/ft1_4FGL_J1320.7+3314_daily_bin1134.fits outfile=/scratch/kocevski/494600/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin1134.fits ra=200.185 dec=33.2378 rad=12.0 tmin=533260801.0 tmax=533520001.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.46
user 4.21
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/494600/ft1_filtered_4FGL_J1320.7+3314_daily_bin1134.fits" evtable="EVENTS" scfile=/scratch/kocevski/494600/ft2_4FGL_J1320.7+3314_daily_bin1134.fits sctable="SC_DATA" outfile=/scratch/kocevski/494600/ltcube_533260801_533520001_4FGL_J1320.7+3314_daily_bin1134.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/494600/ft2_4FGL_J1320.7+3314_daily_bin1134.fits
.....................!
real 15.01
user 14.59
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/494600/ft1_filtered_4FGL_J1320.7+3314_daily_bin1134.fits evtable="EVENTS" scfile=/scratch/kocevski/494600/ft2_4FGL_J1320.7+3314_daily_bin1134.fits sctable="SC_DATA" expcube=/scratch/kocevski/494600/ltcube_533260801_533520001_4FGL_J1320.7+3314_daily_bin1134.fits outfile=/scratch/kocevski/494600/expmap_533260801_533520001_4FGL_J1320.7+3314_daily_bin1134.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/494600/ltcube_533260801_533520001_4FGL_J1320.7+3314_daily_bin1134.fits
.....................!
real 194.29
user 188.51
sys 5.23

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/494600/ft1_filtered_4FGL_J1320.7+3314_daily_bin1134.fits scfile=/scratch/kocevski/494600/ft2_4FGL_J1320.7+3314_daily_bin1134.fits outfile=/scratch/kocevski/494600/cmap_533260801_533520001_4FGL_J1320.7+3314_daily_bin1134.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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/494600/ft1_filtered_4FGL_J1320.7+3314_daily_bin1134.fits scfile=/scratch/kocevski/494600/ft2_4FGL_J1320.7+3314_daily_bin1134.fits outfile=/scratch/kocevski/494600/cmap_HighResolution_533260801_533520001_4FGL_J1320.7+3314_daily_bin1134.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.57
user 0.41
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/494600/ft1_filtered_4FGL_J1320.7+3314_daily_bin1134.fits', '/scratch/kocevski/494600/ft2_4FGL_J1320.7+3314_daily_bin1134.fits', expMap='/scratch/kocevski/494600/expmap_533260801_533520001_4FGL_J1320.7+3314_daily_bin1134.fits', expCube='/scratch/kocevski/494600/ltcube_533260801_533520001_4FGL_J1320.7+3314_daily_bin1134.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/494600/Model_4FGL_J1320.7+3314_daily_bin1134.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/494600/ft1_filtered_4FGL_J1320.7+3314_daily_bin1134.fits
Spacecraft file(s): /scratch/kocevski/494600/ft2_4FGL_J1320.7+3314_daily_bin1134.fits
Exposure map: /scratch/kocevski/494600/expmap_533260801_533520001_4FGL_J1320.7+3314_daily_bin1134.fits
Exposure cube: /scratch/kocevski/494600/ltcube_533260801_533520001_4FGL_J1320.7+3314_daily_bin1134.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/494600/Model_4FGL_J1320.7+3314_daily_bin1134.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5859.69411182

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    33.392       1.0000         .10000E-03   10000.    
     3 'Prefactor '    168.92       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .35763       1.0000         .10000E-03   10000.    
     6 'Prefactor '    77.620       1.0000         .10000E-03   10000.    
     7 'Prefactor '    25.833       1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.455       1.0000         .10000E-03   10000.    
    10 'norm      '    4.3816       1.0000         .10000E-03   10000.    
    11 'norm      '    4.9245       1.0000         .10000E-03   10000.    
    12 'norm      '    .45930       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .92584       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.7568       1.0000         .10000E-03   10000.    
    18 'Prefactor '    50.398       1.0000         .10000E-03   10000.    
    19 'norm      '    4.5596       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10412E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .38374       1.0000         .10000E-03   10000.    
    24 'norm      '    16.325       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .95300       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .83295       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=   5859.660     FROM MIGRAD    STATUS=CONVERGED    671 CALLS     3341 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0710       -.17778E-06** at limit **
   2  Prefactor     33.390        22.378        .27563E-06    .11799E-04
   3  Prefactor     169.17        86.831        .90953E-05    .36107E-03
   4  Prefactor     .10000E-03    3.3988        .63472E-06** at limit **
   5  norm          .30070        20.125       -.70222E-05    .53154E-03
   6  Prefactor     77.562        62.024       -.10389E-05   -.36280E-04
   7  Prefactor     25.982        29.184       -.31835E-06    .26574E-03
   8  norm          .10000E-03    1.6907        .34851E-06** at limit **
   9  Prefactor     16.460        14.518       -.29743E-07    .28958E-04
  10  norm          4.3795        3.9919       -.10510E-06    .64329E-04
  11  norm          4.9270        9.1220        .21464E-06   -.13337E-04
  12  norm          .45564        3.3658       -.74060E-06    .87841E-03
  13  norm          .10000E-03    2.5922       -.48998E-06** at limit **
  14  norm          .94235        21.769        .46213E-05    .36250E-03
  15  Prefactor     .10000E-03    1.1884        .20158E-06** at limit **
  16  Prefactor     .10000E-03    8.4549       -.21469E-06** at limit **
  17  norm          7.7550        5.8101       -.15357E-06    .33308E-04
  18  Prefactor     50.450        46.020       -.53117E-06    .16663E-06
  19  norm          4.5589        4.7241        .90684E-07    .44617E-04
  20  Prefactor     .10000E-03    6.8506        .42978E-06** at limit **
  21  Prefactor     .10000E-03    13.542        .91721E-06** at limit **
  22  Prefactor     .10000E-03    16.630        .31735E-06** at limit **
  23  Prefactor     .38602        2.8876       -.38465E-06    .63454E-03
  24  norm          16.323        12.693        .44204E-07   -.28639E-04
  25  Prefactor     .10000E-03    5.7277        .12816E-06** at limit **
  26  Normalizat    .95303        .15949        .10606E-05   -.20632E-04
  27  Prefactor     .83299        .19217       -.40133E-05    .10548E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 33.3903
  Prefactor  = 169.167
  Prefactor  = 0.0001
  norm       = 0.300695
  Prefactor  = 77.5619
  Prefactor  = 25.9817
  norm       = 0.0001
  Prefactor  = 16.4604
  norm       = 4.37949
  norm       = 4.92696
  norm       = 0.455643
  norm       = 0.0001
  norm       = 0.942352
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.75504
  Prefactor  = 50.4502
  norm       = 4.55886
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.386017
  norm       = 16.3229
  Prefactor  = 0.0001
  Normalizat = 0.953029
  Prefactor  = 0.832994
 **********
 **   18 **HESSE 
 **********

 FCN=   5859.660     FROM HESSE     STATUS=OK           496 CALLS     3837 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0760        .13101E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     33.390        22.368        .69345E-04   -1.4552    
   3  Prefactor     169.17        90.030        .15520E-03   -1.3099    
   4  Prefactor     .10000E-03    3.4307        .13784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .30070        29.276        .22794E-02   -1.5598    
   6  Prefactor     77.562        61.977        .22790E-03   -1.3944    
   7  Prefactor     25.982        31.087        .78816E-04   -1.4688    
   8  norm          .10000E-03    1.7266        .97229E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.460        14.518        .98734E-04   -1.4896    
  10  norm          4.3795        3.9885        .13810E-03   -1.5289    
  11  norm          4.9270        9.1135        .18124E-03   -1.5264    
  12  norm          .45564        5.5137        .22883E-02   -1.5573    
  13  norm          .10000E-03    2.5954        .11978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .94235        55.154        .46235E-02   -1.5514    
  15  Prefactor     .10000E-03    1.2034        .81452E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.5409        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.7550        5.7840        .14398E-03   -1.5151    
  18  Prefactor     50.450        45.951        .56490E-04   -1.4286    
  19  norm          4.5589        4.7260        .16244E-03   -1.5281    
  20  Prefactor     .10000E-03    6.8878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    16.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .38602        5.8463        .23782E-02   -1.5584    
  24  norm          16.323        12.696        .99126E-04   -1.4900    
  25  Prefactor     .10000E-03    5.7304        .17894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .95303        .18823        .21379E-03   -.94621    
  27  Prefactor     .83299        .22480        .28029E-03   -.98523    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00196e-08
Minuit parameter uncertainties:
  1  4.35135e-06
  2  22.3739
  3  90.1033
  4  2.4578e-05
  5  5.93599
  6  62.0286
  7  31.1059
  8  1.10486e-05
  9  14.5209
  10  3.98875
  11  9.11608
  12  3.17005
  13  1.39932e-05
  14  14.4319
  15  1.32534e-05
  16  4.80315e-05
  17  5.78439
  18  45.9833
  19  4.72635
  20  3.37881e-05
  21  7.96125e-05
  22  2.5647e-05
  23  3.00448
  24  12.6976
  25  6.71675e-06
  26  0.188358
  27  0.225047
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  4.803e-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.330e-01  2.250e-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:  9.530e-01  1.884e-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: 5.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/494600/likelihoodResults_533260801_533520001_4FGL_J1320.7+3314_daily_bin1134.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) = 5859.66007739
delta logL = -0.000558064035431

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5859.65951935
delta logL = -1.90566424862e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5015       1.0000          .0000       10.000    
     3 'Normalizat'    .95302       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83303       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=   5859.660     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      244 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10032E-03    125.57        .18142E-02** at limit **
   2  Index         2.4655        8.5560        .50000        .55237E-05
   3  Normalizat    .95303        .14471E-01    .21380E-03    .10476E-04
   4  Prefactor     .83299        .17934E-01    .28029E-03    .64085E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010032
  Index      = 2.46548
  Normalizat = 0.95303
  Prefactor  = 0.832992
 **********
 **   18 **HESSE 
 **********

 FCN=   5859.660     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10032E-03    561.27        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4655        5.6566        .50000       -.53159    
   3  Normalizat    .95303        .32900E-01    .85518E-05   -.94621    
   4  Prefactor     .83299        .40754E-01    .11212E-04   -.98523    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.44813e-09
Minuit parameter uncertainties:
  1  0.0270482
  2  1253.17
  3  0.0329006
  4  0.0407551
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/494600': 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) = 5859.65951928
delta logL = 4.42078089691e-08

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.003e-04  2.705e-02  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.465e+00  1.253e+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.330e-01  4.076e-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:  9.530e-01  3.290e-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/494600/cmap_HighResolution_533260801_533520001_4FGL_J1320.7+3314_daily_bin1134.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.48e-03', job_status='DONE', photon_flux_upper_limit='5.76e-08', time_completed='2021-09-07 13:17:05.299702', job_id='494600', GAL2='0.83', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1631045825.3', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='4.42e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1134' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:17:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0136>
Subject: Job 494600: <4FGL_J1320.7+3314_daily_bin1134> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin1134> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep  7 13:00:33 2021
Job was executed on host(s) <bullet0136>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 13:00:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 13:00:34 2021
Terminated at Tue Sep  7 13:17:06 2021
Results reported at Tue Sep  7 13:17:06 2021

Your job looked like:

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

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

