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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin76
RA = 200.185, Dec = 33.2378
tmin = 259027201, tmax = 259286401
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='487867', job_status='RUN', time_executed='2021-09-07 12:37:43.289194', time_epoch_executed='1631043463.29' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='76'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/487867

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/487867/ft1_4FGL_J1320.7+3314_daily_bin76.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/487867/ft2_4FGL_J1320.7+3314_daily_bin76.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/487867/ft1_4FGL_J1320.7+3314_daily_bin76.fits outfile=/scratch/kocevski/487867/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin76.fits ra=200.185 dec=33.2378 rad=12.0 tmin=259027201.0 tmax=259286401.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 1.53
user 1.29
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/487867/ft1_filtered_4FGL_J1320.7+3314_daily_bin76.fits" evtable="EVENTS" scfile=/scratch/kocevski/487867/ft2_4FGL_J1320.7+3314_daily_bin76.fits sctable="SC_DATA" outfile=/scratch/kocevski/487867/ltcube_259027201_259286401_4FGL_J1320.7+3314_daily_bin76.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/487867/ft2_4FGL_J1320.7+3314_daily_bin76.fits
.....................!
real 18.39
user 17.84
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/487867/ft1_filtered_4FGL_J1320.7+3314_daily_bin76.fits evtable="EVENTS" scfile=/scratch/kocevski/487867/ft2_4FGL_J1320.7+3314_daily_bin76.fits sctable="SC_DATA" expcube=/scratch/kocevski/487867/ltcube_259027201_259286401_4FGL_J1320.7+3314_daily_bin76.fits outfile=/scratch/kocevski/487867/expmap_259027201_259286401_4FGL_J1320.7+3314_daily_bin76.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/487867/ltcube_259027201_259286401_4FGL_J1320.7+3314_daily_bin76.fits
.....................!
real 193.48
user 186.78
sys 4.58

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/487867/ft1_filtered_4FGL_J1320.7+3314_daily_bin76.fits scfile=/scratch/kocevski/487867/ft2_4FGL_J1320.7+3314_daily_bin76.fits outfile=/scratch/kocevski/487867/cmap_259027201_259286401_4FGL_J1320.7+3314_daily_bin76.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.59
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/487867/ft1_filtered_4FGL_J1320.7+3314_daily_bin76.fits scfile=/scratch/kocevski/487867/ft2_4FGL_J1320.7+3314_daily_bin76.fits outfile=/scratch/kocevski/487867/cmap_HighResolution_259027201_259286401_4FGL_J1320.7+3314_daily_bin76.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/487867/ft1_filtered_4FGL_J1320.7+3314_daily_bin76.fits evtable="EVENTS" scfile=/scratch/kocevski/487867/ft2_4FGL_J1320.7+3314_daily_bin76.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/487867/Model_4FGL_J1320.7+3314_daily_bin76.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/487867/ft1_filtered_4FGL_J1320.7+3314_daily_bin76.fits.....................!
real 50.12
user 47.25
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.454       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10104E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.459       1.0000         .10000E-03   10000.    
     7 'Prefactor '    84.605       1.0000         .10000E-03   10000.    
     8 'norm      '    4.1559       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.7896       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10177E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    14.127       1.0000         .10000E-03   10000.    
    14 'norm      '    53.544       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.0639       1.0000         .10000E-03   10000.    
    17 'norm      '    2.3007       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.039       1.0000         .10000E-03   10000.    
    19 'norm      '    25.889       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10651E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    12.750       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1591       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .71156       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=   5571.148     FROM MIGRAD    STATUS=CONVERGED    656 CALLS     3291 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.1147       -.23622E-07** at limit **
   2  Prefactor     14.454        13.736       -.86548E-08    .62779E-05
   3  Prefactor     .10000E-03    25.894       -.22168E-07** at limit **
   4  Prefactor     .10000E-03    1.6756       -.50561E-08** at limit **
   5  norm          .10000E-03    2.0331        .42829E-07** at limit **
   6  Prefactor     22.446        51.707       -.10470E-06   -.14591E-04
   7  Prefactor     84.613        31.501        .28003E-06    .13558E-03
   8  norm          4.1562        3.9313        .73016E-07   -.10197E-03
   9  Prefactor     .10000E-03    13.123       -.14480E-06** at limit **
  10  norm          3.7883        4.2295        .88730E-07   -.64080E-04
  11  norm          .10000E-03    5.2705       -.56944E-07** at limit **
  12  norm          .10000E-03    2.8154       -.10547E-05** at limit **
  13  norm          14.121        7.5569        .74010E-06    .43499E-03
  14  norm          53.537        27.391       -.14077E-06   -.11925E-04
  15  Prefactor     .10000E-03    2.2082        .16374E-06** at limit **
  16  Prefactor     8.0755        15.193        .92854E-06    .22100E-04
  17  norm          2.3008        6.1481        .58959E-06   -.17485E-03
  18  Prefactor     15.082        61.942       -.34238E-06    .34604E-04
  19  norm          25.891        11.078       -.10653E-06   -.57313E-05
  20  Prefactor     .10000E-03    6.0836       -.61240E-07** at limit **
  21  Prefactor     .10000E-03    4.6581       -.39371E-08** at limit **
  22  Prefactor     .10000E-03    26.407        .31325E-07** at limit **
  23  Prefactor     .10000E-03    2.1497       -.13770E-06** at limit **
  24  norm          12.753        15.135        .48818E-08   -.12404E-04
  25  Prefactor     .10000E-03    4.8154       -.20459E-07** at limit **
  26  Normalizat    1.1591        .17491        .41356E-07    .12452E-03
  27  Prefactor     .71149        .20764        .15003E-06    .40998E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 14.4544
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.4461
  Prefactor  = 84.6134
  norm       = 4.15622
  Prefactor  = 0.000100001
  norm       = 3.78829
  norm       = 0.0001
  norm       = 0.000100002
  norm       = 14.1212
  norm       = 53.5374
  Prefactor  = 0.0001
  Prefactor  = 8.07552
  norm       = 2.30084
  Prefactor  = 15.0816
  norm       = 25.8905
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 12.7534
  Prefactor  = 0.0001
  Normalizat = 1.15908
  Prefactor  = 0.711492
 **********
 **   18 **HESSE 
 **********

 FCN=   5571.148     FROM HESSE     STATUS=OK           488 CALLS     3779 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.1285        .16486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.454        13.729        .10535E-03   -1.4947    
   3  Prefactor     .10000E-03    25.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.6770        .94346E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.0423        .10378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.446        51.683        .84520E-04   -1.4760    
   7  Prefactor     84.613        31.487        .43673E-04   -1.3866    
   8  norm          4.1562        3.9181        .13758E-03   -1.5300    
   9  Prefactor     .10000E-03    93.165        .51021E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.7883        4.1670        .15459E-03   -1.5319    
  11  norm          .10000E-03    5.2774        .16734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    11.005        .20934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          14.121        7.7320        .10657E-03   -1.4956    
  14  norm          53.537        27.304        .54814E-04   -1.4243    
  15  Prefactor     .10000E-03    2.2000        .10697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.0755        15.160        .14119E-03   -1.5140    
  17  norm          2.3008        6.0053        .27034E-03   -1.5405    
  18  Prefactor     15.082        60.930        .10328E-03   -1.4931    
  19  norm          25.891        11.023        .78732E-04   -1.4690    
  20  Prefactor     .10000E-03    6.0946        .17978E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.6599        .15733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    26.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    17.986        .20701E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          12.753        15.125        .11218E-03   -1.4994    
  25  Prefactor     .10000E-03    4.8147        .15996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1591        .19987        .21078E-03   -.87877    
  27  Prefactor     .71149        .23852        .31978E-03   -1.0308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.69608e-10
Minuit parameter uncertainties:
  1  1.78096e-07
  2  13.7319
  3  1.41432e-05
  4  5.82212e-07
  5  5.58357e-06
  6  51.7863
  7  31.4931
  8  3.91837
  9  0.000680668
  10  4.16736
  11  1.1671e-05
  12  0.000299034
  13  7.73255
  14  27.3099
  15  2.35046e-05
  16  15.1672
  17  6.00692
  18  60.7352
  19  11.0238
  20  4.35008e-06
  21  3.77073e-06
  22  2.38517e-09
  23  0.000479342
  24  15.1292
  25  3.50662e-06
  26  0.200005
  27  0.238863
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  8.076e+00  1.517e+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.115e-01  2.389e-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.159e+00  2.000e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/487867/likelihoodResults_259027201_259286401_4FGL_J1320.7+3314_daily_bin76.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) = 5570.23092143
delta logL = 0.917211535333

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5570.17488836
delta logL = 0.973244606144

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .48901       1.0000         .10000E-03   10000.    
     2 'Index     '    4.4943       1.0000          .0000       10.000    
     3 'Normalizat'    1.1066       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75590       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=   5570.175     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      314 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .49716        6.1309        .87836E-02    .86833E-03
   2  Index         4.4871        2.5280        .11709        .13812E-03
   3  Normalizat    1.1065        .41168E-01    .37737E-01    .30009E-05
   4  Prefactor     .75571        .50336E-01    .70301E-01    .18395E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.497157
  Index      = 4.48707
  Normalizat = 1.1065
  Prefactor  = 0.755706
 **********
 **   18 **HESSE 
 **********

 FCN=   5570.175     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      349 TOTAL
                     EDM=   .91E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .49716        15.085        .40169E-03   -1.5567    
   2  Index         4.4871        7.0193        .43237E-02   -.10277    
   3  Normalizat    1.1065        .15462        .21473E-03   -.89543    
   4  Prefactor     .75571        .18675        .31109E-03   -1.0138    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.1313e-08
Minuit parameter uncertainties:
  1  5.47807
  2  5.17898
  3  0.154684
  4  0.186906
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/487867': 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) = 5570.17487601
delta logL = 0.973256957111

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  4.972e-01  5.478e+00  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  4.487e+00  5.179e+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:  7.557e-01  1.869e-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.106e+00  1.547e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.39
Ra Dec: 200.185 33.238
Photon Index (Free Index): 4.49 +/- 5.18
Photon Flux (Free Index): 6.06e-08 +/- 4.63e-08
Energy Flux (Free Index): 8.48e-06 +/- 9.13e-06

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/487867/cmap_HighResolution_259027201_259286401_4FGL_J1320.7+3314_daily_bin76.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.96e-03', comment='SUCCESS', energy_flux2='8.48e-06', dlogl='9.73e-01', photon_flux2='6.06e-08', job_status='DONE', time_completed='2021-09-07 12:50:04.372748', photon_index_error2='5.18', photon_index2='4.49', ts='0.36', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='9.13e-06', EG='1.16', time_epoch_completed='1631044204.37', return_code='0', job_id='487867', GAL2='0.76', EG2='1.11', return_code2='102', photon_flux_error2='4.63e-08', ts2='2.39', photon_index='2.51' WHERE bin_id='76' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 12:50:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 487867: <4FGL_J1320.7+3314_daily_bin76> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin76> 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) <bullet0296>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 12:36:52 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:52 2021
Terminated at Tue Sep  7 12:50:05 2021
Results reported at Tue Sep  7 12:50:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin76 200.185 33.2378 259027201 259286401 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 :                                   734.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             324.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            857 sec.

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

