/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 1 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 = 7415
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1320.7+3314_daily_bin173
RA = 200.185, Dec = 33.2378
tmin = 284169601, tmax = 284428801
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='488002', job_status='RUN', time_executed='2021-09-07 12:38:56.753767', time_epoch_executed='1631043536.75' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='173'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/488002

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/488002/ft1_4FGL_J1320.7+3314_daily_bin173.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/488002/ft2_4FGL_J1320.7+3314_daily_bin173.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/488002/ft1_4FGL_J1320.7+3314_daily_bin173.fits outfile=/scratch/kocevski/488002/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin173.fits ra=200.185 dec=33.2378 rad=12.0 tmin=284169601.0 tmax=284428801.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.61
user 3.39
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/488002/ft1_filtered_4FGL_J1320.7+3314_daily_bin173.fits" evtable="EVENTS" scfile=/scratch/kocevski/488002/ft2_4FGL_J1320.7+3314_daily_bin173.fits sctable="SC_DATA" outfile=/scratch/kocevski/488002/ltcube_284169601_284428801_4FGL_J1320.7+3314_daily_bin173.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/488002/ft2_4FGL_J1320.7+3314_daily_bin173.fits
.....................!
real 16.85
user 16.46
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/488002/ft1_filtered_4FGL_J1320.7+3314_daily_bin173.fits evtable="EVENTS" scfile=/scratch/kocevski/488002/ft2_4FGL_J1320.7+3314_daily_bin173.fits sctable="SC_DATA" expcube=/scratch/kocevski/488002/ltcube_284169601_284428801_4FGL_J1320.7+3314_daily_bin173.fits outfile=/scratch/kocevski/488002/expmap_284169601_284428801_4FGL_J1320.7+3314_daily_bin173.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/488002/ltcube_284169601_284428801_4FGL_J1320.7+3314_daily_bin173.fits
.....................!
real 195.09
user 189.82
sys 4.47

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/488002/ft1_filtered_4FGL_J1320.7+3314_daily_bin173.fits scfile=/scratch/kocevski/488002/ft2_4FGL_J1320.7+3314_daily_bin173.fits outfile=/scratch/kocevski/488002/cmap_284169601_284428801_4FGL_J1320.7+3314_daily_bin173.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/488002/ft1_filtered_4FGL_J1320.7+3314_daily_bin173.fits scfile=/scratch/kocevski/488002/ft2_4FGL_J1320.7+3314_daily_bin173.fits outfile=/scratch/kocevski/488002/cmap_HighResolution_284169601_284428801_4FGL_J1320.7+3314_daily_bin173.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.58
user 0.42
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/488002/ft1_filtered_4FGL_J1320.7+3314_daily_bin173.fits evtable="EVENTS" scfile=/scratch/kocevski/488002/ft2_4FGL_J1320.7+3314_daily_bin173.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/488002/Model_4FGL_J1320.7+3314_daily_bin173.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/488002/ft1_filtered_4FGL_J1320.7+3314_daily_bin173.fits.....................!
real 45.90
user 44.46
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    44.577       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10474E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.6249       1.0000         .10000E-03   10000.    
    10 'norm      '    2.8708       1.0000         .10000E-03   10000.    
    11 'norm      '    16.000       1.0000         .10000E-03   10000.    
    12 'norm      '    .10115E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .25593E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10242E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .47643       1.0000         .10000E-03   10000.    
    17 'norm      '    21.032       1.0000         .10000E-03   10000.    
    18 'Prefactor '    41.148       1.0000         .10000E-03   10000.    
    19 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.037       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10859E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    5.8778       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2058       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .75714       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=   5331.221     FROM MIGRAD    STATUS=CONVERGED    674 CALLS     3413 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.603        .18096E-06** at limit **
   2  Prefactor     .10000E-03    6.3565        .10528E-06** at limit **
   3  Prefactor     44.569        44.261        .12903E-06    .95189E-05
   4  Prefactor     .10000E-03    3.1956        .46759E-06** at limit **
   5  norm          .10000E-03    1.2249        .51939E-07** at limit **
   6  Prefactor     .10000E-03    48.403        .19885E-06** at limit **
   7  Prefactor     .10000E-03    10.590        .17373E-06** at limit **
   8  norm          .10000E-03    2.7640        .88912E-07** at limit **
   9  Prefactor     2.6175        24.520        .26283E-05    .13587E-03
  10  norm          2.8676        4.6168        .89313E-07    .21030E-03
  11  norm          16.009        11.834       -.37549E-07    .55112E-05
  12  norm          .10000E-03    1.1047        .73923E-07** at limit **
  13  norm          .10000E-03    1.8201        .27117E-07** at limit **
  14  norm          .10026E-03    18.923        .11254E-05** at limit **
  15  Prefactor     .10000E-03    3.5457       -.65398E-06** at limit **
  16  Prefactor     .49465        25.274        .33397E-05   -.56588E-03
  17  norm          21.027        10.017        .69612E-08   -.87716E-04
  18  Prefactor     41.045        74.758        .91352E-05    .10494E-03
  19  norm          .10000E-03    20.301        .11309E-06** at limit **
  20  Prefactor     11.049        13.481        .13451E-06    .87093E-04
  21  Prefactor     .10000E-03    11.113        .16490E-06** at limit **
  22  Prefactor     .10000E-03    19.260        .21940E-06** at limit **
  23  Prefactor     .10000E-03    1.4644        .45737E-07** at limit **
  24  norm          5.8798        12.865        .59100E-06    .10143E-03
  25  Prefactor     .10000E-03    15.244        .39920E-07** at limit **
  26  Normalizat    1.2057        .18466        .14688E-05    .33362E-03
  27  Prefactor     .75722        .21515       -.22092E-05    .13359E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.5689
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.61747
  norm       = 2.8676
  norm       = 16.0086
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100259
  Prefactor  = 0.000100001
  Prefactor  = 0.494653
  norm       = 21.0267
  Prefactor  = 41.045
  norm       = 0.0001
  Prefactor  = 11.0487
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.87976
  Prefactor  = 0.0001
  Normalizat = 1.20573
  Prefactor  = 0.757216
 **********
 **   18 **HESSE 
 **********

 FCN=   5331.221     FROM HESSE     STATUS=OK           488 CALLS     3901 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.488        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.3591        .17979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     44.569        44.272        .60049E-04   -1.4372    
   4  Prefactor     .10000E-03    3.2127        .12743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.2299        .78905E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    48.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.8184        .11845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.6175        25.711        .12586E-02   -1.5384    
  10  norm          2.8676        4.5962        .18452E-03   -1.5369    
  11  norm          16.009        11.836        .10013E-03   -1.4908    
  12  norm          .10000E-03    1.1073        .74868E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.8254        .96191E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10026E-03    21.496        .10051       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.6682        .26755E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .49465        210.73        .47053E-02   -1.5567    
  17  norm          21.027        9.9922        .87338E-04   -1.4791    
  18  Prefactor     41.045        90.394        .62490E-04   -1.4426    
  19  norm          .10000E-03    20.787        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.049        13.491        .12060E-03   -1.5043    
  21  Prefactor     .10000E-03    11.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    19.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.4752        .86256E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.8798        12.911        .82822E-03   -1.5223    
  25  Prefactor     .10000E-03    15.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2057        .22151        .20962E-03   -.86426    
  27  Prefactor     .75722        .25219        .30582E-03   -1.0133    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97214e-08
Minuit parameter uncertainties:
  1  6.37217e-05
  2  9.15833e-06
  3  44.3048
  4  2.76015e-05
  5  1.27994e-06
  6  3.44132e-05
  7  1.17336e-05
  8  5.02639e-06
  9  16.4159
  10  4.59676
  11  11.8378
  12  1.22689e-06
  13  7.77494e-07
  14  0.00472169
  15  0.000137495
  16  20.4901
  17  9.99299
  18  90.6981
  19  2.52994e-05
  20  13.4946
  21  1.27899e-05
  22  9.4179e-06
  23  1.09851e-06
  24  12.9176
  25  1.7213e-05
  26  0.221678
  27  0.252576
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  4.947e-01  2.049e+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:  7.572e-01  2.526e-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.206e+00  2.217e-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: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/488002/likelihoodResults_284169601_284428801_4FGL_J1320.7+3314_daily_bin173.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) = 5330.74344285
delta logL = 0.477823941556

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5330.72437016
delta logL = 0.496896625737

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1812       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0374       1.0000          .0000       10.000    
     3 'Normalizat'    1.1349       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81037       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=   5330.724     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      236 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1826        25.927        .10514E-01    .75382E-03
   2  Index         4.0369        3.2818        .10905        .13989E-03
   3  Normalizat    1.1350        .42927E-01    .36729E-01   -.46574E-05
   4  Prefactor     .81032        .51122E-01    .67023E-01    .17347E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.18262
  Index      = 4.03689
  Normalizat = 1.13498
  Prefactor  = 0.810317
 **********
 **   18 **HESSE 
 **********

 FCN=   5330.724     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      269 TOTAL
                     EDM=   .67E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1826        64.202        .80466E-04   -1.5490    
   2  Index         4.0369        7.0155        .57862E-02   -.19383    
   3  Normalizat    1.1350        .19112        .21500E-03   -.88637    
   4  Prefactor     .81032        .22221        .29651E-03   -.99349    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.74773e-07
Minuit parameter uncertainties:
  1  17.4462
  2  6.99313
  3  0.191235
  4  0.222457
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/488002': 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) = 5330.72437006
delta logL = 0.496896727269

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.183e+00  1.745e+01  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  4.037e+00  6.993e+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:  8.103e-01  2.225e-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.135e+00  1.912e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.08
Ra Dec: 200.185 33.238
Photon Index (Free Index): 4.04 +/- 6.99
Photon Flux (Free Index): 5.68e-08 +/- 6.47e-08
Energy Flux (Free Index): 8.45e-06 +/- 1.58e-05

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/488002/cmap_HighResolution_284169601_284428801_4FGL_J1320.7+3314_daily_bin173.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.01e-03', comment='SUCCESS', energy_flux2='8.45e-06', dlogl='4.97e-01', photon_flux2='5.68e-08', job_status='DONE', time_completed='2021-09-07 12:50:53.021347', photon_index_error2='6.99', photon_index2='4.04', ts='0.00', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='1.03e-07', energy_flux_error2='1.58e-05', EG='1.21', time_epoch_completed='1631044253.02', return_code='0', job_id='488002', GAL2='0.81', EG2='1.13', return_code2='102', photon_flux_error2='6.47e-08', ts2='1.08', photon_index='2.51' WHERE bin_id='173' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 12:50:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 488002: <4FGL_J1320.7+3314_daily_bin173> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin173> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 12:36:00 2021
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 12:38:46 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:38:46 2021
Terminated at Tue Sep  7 12:50:53 2021
Results reported at Tue Sep  7 12:50:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin173 200.185 33.2378 284169601 284428801 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 :                                   714.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   727 sec.
    Turnaround time :                            893 sec.

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

