/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 163 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 = 7416
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1320.7+3314_daily_bin79
RA = 200.185, Dec = 33.2378
tmin = 259804801, tmax = 260064001
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='487871', job_status='RUN', time_executed='2021-09-07 12:39:48.874528', time_epoch_executed='1631043588.87' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='79'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/487871

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/487871/ft1_4FGL_J1320.7+3314_daily_bin79.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/487871/ft2_4FGL_J1320.7+3314_daily_bin79.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/487871/ft1_4FGL_J1320.7+3314_daily_bin79.fits outfile=/scratch/kocevski/487871/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin79.fits ra=200.185 dec=33.2378 rad=12.0 tmin=259804801.0 tmax=260064001.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 2.29
user 2.06
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/487871/ft1_filtered_4FGL_J1320.7+3314_daily_bin79.fits" evtable="EVENTS" scfile=/scratch/kocevski/487871/ft2_4FGL_J1320.7+3314_daily_bin79.fits sctable="SC_DATA" outfile=/scratch/kocevski/487871/ltcube_259804801_260064001_4FGL_J1320.7+3314_daily_bin79.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/487871/ft2_4FGL_J1320.7+3314_daily_bin79.fits
.....................!
real 16.10
user 15.51
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/487871/ft1_filtered_4FGL_J1320.7+3314_daily_bin79.fits evtable="EVENTS" scfile=/scratch/kocevski/487871/ft2_4FGL_J1320.7+3314_daily_bin79.fits sctable="SC_DATA" expcube=/scratch/kocevski/487871/ltcube_259804801_260064001_4FGL_J1320.7+3314_daily_bin79.fits outfile=/scratch/kocevski/487871/expmap_259804801_260064001_4FGL_J1320.7+3314_daily_bin79.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/487871/ltcube_259804801_260064001_4FGL_J1320.7+3314_daily_bin79.fits
.....................!
real 157.91
user 152.51
sys 4.64

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/487871/ft1_filtered_4FGL_J1320.7+3314_daily_bin79.fits scfile=/scratch/kocevski/487871/ft2_4FGL_J1320.7+3314_daily_bin79.fits outfile=/scratch/kocevski/487871/cmap_259804801_260064001_4FGL_J1320.7+3314_daily_bin79.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.49
user 0.35
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/487871/ft1_filtered_4FGL_J1320.7+3314_daily_bin79.fits scfile=/scratch/kocevski/487871/ft2_4FGL_J1320.7+3314_daily_bin79.fits outfile=/scratch/kocevski/487871/cmap_HighResolution_259804801_260064001_4FGL_J1320.7+3314_daily_bin79.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.60
user 0.35
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/487871/ft1_filtered_4FGL_J1320.7+3314_daily_bin79.fits evtable="EVENTS" scfile=/scratch/kocevski/487871/ft2_4FGL_J1320.7+3314_daily_bin79.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/487871/Model_4FGL_J1320.7+3314_daily_bin79.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/487871/ft1_filtered_4FGL_J1320.7+3314_daily_bin79.fits.....................!
real 51.40
user 49.91
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8773       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.6513       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.7009       1.0000         .10000E-03   10000.    
     5 'norm      '    2.6505       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.425       1.0000         .10000E-03   10000.    
     8 'norm      '    7.9011       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .32149       1.0000         .10000E-03   10000.    
    10 'norm      '    1.2317       1.0000         .10000E-03   10000.    
    11 'norm      '    4.4175       1.0000         .10000E-03   10000.    
    12 'norm      '    9.1716       1.0000         .10000E-03   10000.    
    13 'norm      '    4.8420       1.0000         .10000E-03   10000.    
    14 'norm      '    14.678       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.055       1.0000         .10000E-03   10000.    
    17 'norm      '    .28705       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    21.378       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .61047       1.0000         .10000E-03   10000.    
    22 'Prefactor '    36.218       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    11.168       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0100       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2270       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7846.301     FROM MIGRAD    STATUS=CONVERGED    129 CALLS     2771 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8757        2.4751        .16925E-06   -.19260E-02
   2  Prefactor     1.6517        1.0961       -.24731E-07   -.49938E-04
   3  Prefactor     .10007E-03    89.204       -.15929E-05** at limit **
   4  Prefactor     3.7239        4.8231       -.31900E-06   -.17348E-02
   5  norm          2.6334        4.8622        .56736E-06    .16695E-03
   6  Prefactor     .10001E-03    16.281       -.24098E-06** at limit **
   7  Prefactor     21.508        8.1529       -.43924E-06    .87080E-02
   8  norm          7.9002        3.9077       -.19428E-06   -.19661E-03
   9  Prefactor     .15455E-03    2061.8        .19202E-04** at limit **
  10  norm          1.2573        4.1312        .74125E-06    .19252E-03
  11  norm          4.4173        1.0945        .48801E-07   -.58159E-03
  12  norm          9.1725        3.3093       -.28311E-06    .42869E-03
  13  norm          4.8388        2.1987       -.15593E-06   -.15635E-02
  14  norm          14.679        1.0622       -.11566E-07   -.21818E-03
  15  Prefactor     .10000E-03    1.1415       -.19089E-07** at limit **
  16  Prefactor     13.053        1.0625       -.28191E-07    .38840E-03
  17  norm          .28635        8.9879       -.31124E-06   -.53681E-03
  18  Prefactor     .10000E-03    31.586        .35397E-05** at limit **
  19  norm          21.382        2.7808       -.73105E-07    .16832E-02
  20  Prefactor     .10000E-03    6.7580       -.18103E-05** at limit **
  21  Prefactor     .64341        2.5341       -.39214E-06    .94685E-03
  22  Prefactor     36.205        1.6992        .41436E-07    .13311E-02
  23  Prefactor     .10000E-03    1.7374        .12347E-06** at limit **
  24  norm          11.163        1.1602        .48741E-07   -.17803E-02
  25  Prefactor     .10000E-03    19.051        .27144E-06** at limit **
  26  Normalizat    1.0103        .18721        .12311E-05    .12287E-03
  27  Prefactor     1.2269        .23166       -.80050E-06    .60303E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.87573
  Prefactor  = 1.65168
  Prefactor  = 0.00010007
  Prefactor  = 3.72389
  norm       = 2.63341
  Prefactor  = 0.000100009
  Prefactor  = 21.5075
  norm       = 7.90015
  Prefactor  = 0.000154554
  norm       = 1.25734
  norm       = 4.41727
  norm       = 9.17247
  norm       = 4.83882
  norm       = 14.6786
  Prefactor  = 0.0001
  Prefactor  = 13.0528
  norm       = 0.286353
  Prefactor  = 0.000100001
  norm       = 21.3819
  Prefactor  = 0.0001
  Prefactor  = 0.64341
  Prefactor  = 36.2054
  Prefactor  = 0.0001
  norm       = 11.1628
  Prefactor  = 0.0001
  Normalizat = 1.01029
  Prefactor  = 1.22693
 **********
 **   18 **HESSE 
 **********

 FCN=   7846.301     FROM HESSE     STATUS=OK           560 CALLS     3331 TOTAL
                     EDM=   .64E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8757        6.9668        .35716E-02   -1.5147    
   2  Prefactor     1.6517        17.381        .82135E-02   -1.5451    
   3  Prefactor     .10007E-03    89.996        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.7239        5.1466        .52482E-02   -1.5322    
   5  norm          2.6334        5.8307        .62600E-02   -1.5383    
   6  Prefactor     .10001E-03    17.324        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.508        31.882        .21633E-02   -1.4780    
   8  norm          7.9002        3.9307        .35662E-02   -1.5146    
   9  Prefactor     .15455E-03    13.826        .10519       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.2573        4.5648        .10126E-01   -1.5484    
  11  norm          4.4173        9.2577        .47902E-02   -1.5288    
  12  norm          9.1725        6.8190        .33085E-02   -1.5102    
  13  norm          4.8388        9.5812        .45703E-02   -1.5268    
  14  norm          14.679        12.712        .26136E-02   -1.4942    
  15  Prefactor     .10000E-03    1.1364        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.053        13.700        .27715E-02   -1.4985    
  17  norm          .28635        4.3434        .54609E-01   -1.5601    
  18  Prefactor     .10000E-03    31.803        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          21.382        10.279        .21657E-02   -1.4783    
  20  Prefactor     .10000E-03    6.7362        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .64341        6.3189        .11714       -1.5548    
  22  Prefactor     36.205        58.566        .16648E-02   -1.4504    
  23  Prefactor     .10000E-03    1.7179        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          11.163        13.924        .29971E-02   -1.5040    
  25  Prefactor     .10000E-03    19.109        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0103        .16240        .46260E-01   -.92686    
  27  Prefactor     1.2269        .19508        .64233E-01   -.85507    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.37288e-07
Minuit parameter uncertainties:
  1  6.96756
  2  10.7196
  3  0.00502758
  4  5.1472
  5  5.832
  6  0.0007975
  7  31.9073
  8  3.93082
  9  0.0549409
  10  4.56609
  11  9.26066
  12  6.81953
  13  9.58422
  14  12.7145
  15  5.43081e-07
  16  13.7034
  17  2.23027
  18  0.000320422
  19  10.2798
  20  0.000102206
  21  4.03292
  22  58.6597
  23  3.13696e-06
  24  13.9281
  25  0.000123047
  26  0.162476
  27  0.195193
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.305e+01  1.370e+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.227e+00  1.952e-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.010e+00  1.625e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.26
Ra Dec: 200.185 33.238
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 3.34e-08 +/- 3.51e-08
Energy Flux (Fixed Index): 9.61e-06 +/- 1.01e-05

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

Saving results to:
/scratch/kocevski/487871/likelihoodResults_259804801_260064001_4FGL_J1320.7+3314_daily_bin79.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) = 7846.20102246
delta logL = 0.0996607808065

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7846.1963482
delta logL = 0.104335040027

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7395       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8611       1.0000          .0000       10.000    
     3 'Normalizat'    .99891       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2365       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=   7846.196     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      290 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7353        16.818        .13559E-03    .93992E-04
   2  Index         2.8614        1.0215        .75676E-02    .40052E-04
   3  Normalizat    .99897        .18949        .25069E-03   -.13959E-02
   4  Prefactor     1.2367        .23263        .28316E-03   -.12233E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.73526
  Index      = 2.86137
  Normalizat = 0.998967
  Prefactor  = 1.23665
 **********
 **   18 **HESSE 
 **********

 FCN=   7846.196     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7353        13.636        .54235E-05   -1.5117    
   2  Index         2.8614        .82966        .30270E-03   -.44198    
   3  Normalizat    .99897        .18945        .50137E-04   -.93065    
   4  Prefactor     1.2367        .23246        .56632E-04   -.85211    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86416e-09
Minuit parameter uncertainties:
  1  13.641
  2  0.834391
  3  0.189576
  4  0.232654
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/487871': 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) = 7846.1963451
delta logL = 0.104338132641

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  8.735e+00  1.364e+01  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.861e+00  8.344e-01  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.237e+00  2.327e-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.990e-01  1.896e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.49
Ra Dec: 200.185 33.238
Photon Index (Free Index): 2.86 +/- 0.83
Photon Flux (Free Index): 4.19e-08 +/- 4.12e-08
Energy Flux (Free Index): 9.02e-06 +/- 8.72e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/487871/cmap_HighResolution_259804801_260064001_4FGL_J1320.7+3314_daily_bin79.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.14e-03', comment='SUCCESS', photon_flux='3.34e-08', energy_flux2='9.02e-06', photon_flux_error='3.51e-08', dlogl='1.04e-01', energy_flux='9.61e-06', photon_flux2='4.19e-08', job_status='DONE', time_completed='2021-09-07 12:51:43.805458', photon_index_error2='0.83', photon_index2='2.86', ts='1.26', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', photon_flux_upper_limit='1.05e-07', energy_flux_error2='8.72e-06', EG='1.01', time_epoch_completed='1631044303.81', return_code='0', job_id='487871', GAL2='1.24', EG2='1.00', return_code2='0', energy_flux_error='1.01e-05', photon_flux_error2='4.12e-08', ts2='1.49', photon_index='2.51' WHERE bin_id='79' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 12:51:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 487871: <4FGL_J1320.7+3314_daily_bin79> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin79> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 12:35:48 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 12:36:56 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:36:56 2021
Terminated at Tue Sep  7 12:51:44 2021
Results reported at Tue Sep  7 12:51:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin79 200.185 33.2378 259804801 260064001 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 :                                   711.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             249.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            956 sec.

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

