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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin188
RA = 200.185, Dec = 33.2378
tmin = 288057601, tmax = 288316801
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='488018', job_status='RUN', time_executed='2021-09-07 12:39:11.483087', time_epoch_executed='1631043551.48' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='188'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/488018

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/488018/ft1_4FGL_J1320.7+3314_daily_bin188.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/488018/ft2_4FGL_J1320.7+3314_daily_bin188.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/488018/ft1_4FGL_J1320.7+3314_daily_bin188.fits outfile=/scratch/kocevski/488018/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin188.fits ra=200.185 dec=33.2378 rad=12.0 tmin=288057601.0 tmax=288316801.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.72
user 3.42
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/488018/ft2_4FGL_J1320.7+3314_daily_bin188.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/488018/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin188.fits evtable="EVENTS" outfile="/scratch/kocevski/488018/ft1_filtered_4FGL_J1320.7+3314_daily_bin188.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.54
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/488018/ft1_filtered_4FGL_J1320.7+3314_daily_bin188.fits" evtable="EVENTS" scfile=/scratch/kocevski/488018/ft2_4FGL_J1320.7+3314_daily_bin188.fits sctable="SC_DATA" outfile=/scratch/kocevski/488018/ltcube_288057601_288316801_4FGL_J1320.7+3314_daily_bin188.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/488018/ft2_4FGL_J1320.7+3314_daily_bin188.fits
.....................!
real 17.63
user 17.05
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/488018/ft1_filtered_4FGL_J1320.7+3314_daily_bin188.fits evtable="EVENTS" scfile=/scratch/kocevski/488018/ft2_4FGL_J1320.7+3314_daily_bin188.fits sctable="SC_DATA" expcube=/scratch/kocevski/488018/ltcube_288057601_288316801_4FGL_J1320.7+3314_daily_bin188.fits outfile=/scratch/kocevski/488018/expmap_288057601_288316801_4FGL_J1320.7+3314_daily_bin188.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/488018/ltcube_288057601_288316801_4FGL_J1320.7+3314_daily_bin188.fits
.....................!
real 196.18
user 188.48
sys 5.15

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/488018/ft1_filtered_4FGL_J1320.7+3314_daily_bin188.fits scfile=/scratch/kocevski/488018/ft2_4FGL_J1320.7+3314_daily_bin188.fits outfile=/scratch/kocevski/488018/cmap_288057601_288316801_4FGL_J1320.7+3314_daily_bin188.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=200.185 yref=33.2378 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/488018/ft1_filtered_4FGL_J1320.7+3314_daily_bin188.fits scfile=/scratch/kocevski/488018/ft2_4FGL_J1320.7+3314_daily_bin188.fits outfile=/scratch/kocevski/488018/cmap_HighResolution_288057601_288316801_4FGL_J1320.7+3314_daily_bin188.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.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.463       1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.280       1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.732       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10394E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.4662       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.311       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.939       1.0000         .10000E-03   10000.    
    10 'norm      '    1.1657       1.0000         .10000E-03   10000.    
    11 'norm      '    21.030       1.0000         .10000E-03   10000.    
    12 'norm      '    8.2273       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .22971E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.0313       1.0000         .10000E-03   10000.    
    17 'norm      '    .61912E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .15205E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    17.751       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.2777       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0871       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .98513       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=   5748.808     FROM MIGRAD    STATUS=CONVERGED    658 CALLS     3303 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.464        14.576        .56484E-07   -.27506E-04
   2  Prefactor     21.277        20.109        .94719E-07    .20635E-04
   3  Prefactor     32.696        93.085       -.54085E-06   -.98424E-04
   4  Prefactor     .10000E-03    6.2918        .20883E-06** at limit **
   5  norm          1.4615        4.1697        .94830E-06    .36768E-03
   6  Prefactor     .10000E-03    27.997        .10487E-06** at limit **
   7  Prefactor     .10000E-03    30.200       -.32832E-06** at limit **
   8  norm          10.312        5.3672       -.47058E-07   -.12067E-03
   9  Prefactor     14.934        17.418       -.22995E-06   -.53473E-04
  10  norm          1.1651        3.1136        .14668E-05    .83938E-03
  11  norm          21.030        15.307        .23198E-07   -.30575E-04
  12  norm          8.2271        4.9208       -.10368E-07   -.40523E-03
  13  norm          .10000E-03    3.6858        .11643E-06** at limit **
  14  norm          .10000E-03    27.027        .12259E-06** at limit **
  15  Prefactor     .10003E-03    3.5772        .21954E-05** at limit **
  16  Prefactor     1.0338        21.705       -.62466E-05    .16872E-03
  17  norm          .10000E-03    9.7135       -.46633E-05** at limit **
  18  Prefactor     .10000E-03    188.59        .24594E-06** at limit **
  19  norm          17.784        12.022       -.15808E-05   -.59925E-03
  20  Prefactor     .10000E-03    23.735        .30840E-06** at limit **
  21  Prefactor     .10000E-03    8.0584        .46024E-07** at limit **
  22  Prefactor     .10000E-03    24.965        .95285E-07** at limit **
  23  Prefactor     4.2776        4.6770        .46812E-06    .25020E-03
  24  norm          .10000E-03    8.0754        .13935E-06** at limit **
  25  Prefactor     .10000E-03    6.6503        .41372E-07** at limit **
  26  Normalizat    1.0871        .18862       -.36226E-06   -.33684E-03
  27  Prefactor     .98512        .21952       -.34637E-06   -.23192E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.4638
  Prefactor  = 21.2771
  Prefactor  = 32.696
  Prefactor  = 0.0001
  norm       = 1.46149
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.3121
  Prefactor  = 14.9338
  norm       = 1.16507
  norm       = 21.0297
  norm       = 8.22712
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100031
  Prefactor  = 1.03384
  norm       = 0.000100004
  Prefactor  = 0.0001
  norm       = 17.784
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.27764
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.0871
  Prefactor  = 0.985116
 **********
 **   18 **HESSE 
 **********

 FCN=   5748.808     FROM HESSE     STATUS=OK           486 CALLS     3789 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.464        14.579        .90786E-04   -1.4825    
   2  Prefactor     21.277        20.099        .86827E-04   -1.4785    
   3  Prefactor     32.696        92.344        .70038E-04   -1.4564    
   4  Prefactor     .10000E-03    6.3537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.4615        4.1274        .23896E-03   -1.5466    
   6  Prefactor     .10000E-03    28.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    30.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.312        5.3643        .12137E-03   -1.5066    
   9  Prefactor     14.934        17.316        .10363E-03   -1.4935    
  10  norm          1.1651        3.1333        .21548E-03   -1.5492    
  11  norm          21.030        15.310        .87342E-04   -1.4790    
  12  norm          8.2271        4.9156        .11474E-03   -1.5134    
  13  norm          .10000E-03    3.6972        .14174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    27.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10003E-03    33.013        .19700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.0338        69.871        .43084E-02   -1.5505    
  17  norm          .10000E-03    11.374        .31778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    191.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          17.784        11.380        .95062E-04   -1.4864    
  20  Prefactor     .10000E-03    24.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.0658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    24.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.2776        4.7014        .16335E-03   -1.5294    
  24  norm          .10000E-03    8.1284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.6523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0871        .22315        .23761E-03   -.90167    
  27  Prefactor     .98512        .25913        .29632E-03   -.93227    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.60981e-09
Minuit parameter uncertainties:
  1  14.5814
  2  20.1059
  3  92.7515
  4  4.16057e-05
  5  4.12821
  6  0.00010499
  7  0.000239452
  8  5.36455
  9  17.322
  10  3.13369
  11  15.3124
  12  4.91581
  13  1.48039e-05
  14  8.21403e-06
  15  0.00202726
  16  17.0181
  17  0.000441288
  18  0.000164158
  19  11.3811
  20  0.000228171
  21  7.37631e-05
  22  9.39838e-05
  23  4.70185
  24  2.32884e-06
  25  1.86653e-05
  26  0.223339
  27  0.259462
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.034e+00  1.702e+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:  9.851e-01  2.595e-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.087e+00  2.233e-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.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/488018/likelihoodResults_288057601_288316801_4FGL_J1320.7+3314_daily_bin188.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) = 5747.20118042
delta logL = 1.60678374588

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5747.1736294
delta logL = 1.63433476734

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .85017E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.6551       1.0000          .0000       10.000    
     3 'Normalizat'    .93865       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1057       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=   5747.174     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      246 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .84679E-01    .73837        .28916E-02    .61410E-03
   2  Index         5.6571        2.2680        .91504E-01    .10671E-03
   3  Normalizat    .93886        .49789E-01    .45394E-01   -.24378E-04
   4  Prefactor     1.1056        .59691E-01    .63668E-01   -.20267E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0846789
  Index      = 5.65712
  Normalizat = 0.938863
  Prefactor  = 1.10562
 **********
 **   18 **HESSE 
 **********

 FCN=   5747.174     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      279 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .84679E-01    1.5420        .13005E-04   -1.5650    
   2  Index         5.6571        3.5263        .35954E-02    .13180    
   3  Normalizat    .93886        .19495        .25282E-03   -.95108    
   4  Prefactor     1.1056        .22810        .28161E-03   -.89287    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.54869e-10
Minuit parameter uncertainties:
  1  0.722295
  2  3.92339
  3  0.195097
  4  0.228299
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/488018': 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) = 5747.17362731
delta logL = 1.63433686115

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  8.468e-02  7.223e-01  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  5.657e+00  3.923e+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:  1.106e+00  2.283e-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.389e-01  1.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.67
Ra Dec: 200.185 33.238
Photon Index (Free Index): 5.66 +/- 3.92
Photon Flux (Free Index): 1.25e-07 +/- 7.60e-08
Energy Flux (Free Index): 1.58e-05 +/- 1.05e-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/488018/cmap_HighResolution_288057601_288316801_4FGL_J1320.7+3314_daily_bin188.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.79e-03', comment='SUCCESS', energy_flux2='1.58e-05', dlogl='1.63e+00', photon_flux2='1.25e-07', job_status='DONE', time_completed='2021-09-07 12:51:40.273624', photon_index_error2='3.92', photon_index2='5.66', ts='0.00', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.00e-07', energy_flux_error2='1.05e-05', EG='1.09', time_epoch_completed='1631044300.27', return_code='0', job_id='488018', GAL2='1.11', EG2='0.94', return_code2='102', photon_flux_error2='7.60e-08', ts2='3.67', photon_index='2.51' WHERE bin_id='188' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 12:51:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 488018: <4FGL_J1320.7+3314_daily_bin188> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin188> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 12:36:02 2021
Job was executed on host(s) <bullet0119>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 12:39:01 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:39:01 2021
Terminated at Tue Sep  7 12:51:41 2021
Results reported at Tue Sep  7 12:51:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin188 200.185 33.2378 288057601 288316801 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 :                                   740.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             337.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            939 sec.

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

