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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin891
RA = 200.185, Dec = 33.2378
tmin = 470275201, tmax = 470534401
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='493462', job_status='RUN', time_executed='2021-09-07 12:55:50.782573', time_epoch_executed='1631044550.78' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='891'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/493462

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/493462/ft1_4FGL_J1320.7+3314_daily_bin891.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/493462/ft2_4FGL_J1320.7+3314_daily_bin891.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/493462/ft1_4FGL_J1320.7+3314_daily_bin891.fits outfile=/scratch/kocevski/493462/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin891.fits ra=200.185 dec=33.2378 rad=12.0 tmin=470275201.0 tmax=470534401.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.53
user 3.28
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/493462/ft1_filtered_4FGL_J1320.7+3314_daily_bin891.fits" evtable="EVENTS" scfile=/scratch/kocevski/493462/ft2_4FGL_J1320.7+3314_daily_bin891.fits sctable="SC_DATA" outfile=/scratch/kocevski/493462/ltcube_470275201_470534401_4FGL_J1320.7+3314_daily_bin891.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/493462/ft2_4FGL_J1320.7+3314_daily_bin891.fits
.....................!
real 17.76
user 17.30
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/493462/ft1_filtered_4FGL_J1320.7+3314_daily_bin891.fits evtable="EVENTS" scfile=/scratch/kocevski/493462/ft2_4FGL_J1320.7+3314_daily_bin891.fits sctable="SC_DATA" expcube=/scratch/kocevski/493462/ltcube_470275201_470534401_4FGL_J1320.7+3314_daily_bin891.fits outfile=/scratch/kocevski/493462/expmap_470275201_470534401_4FGL_J1320.7+3314_daily_bin891.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/493462/ltcube_470275201_470534401_4FGL_J1320.7+3314_daily_bin891.fits
.....................!
real 194.17
user 187.59
sys 4.74

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/493462/ft1_filtered_4FGL_J1320.7+3314_daily_bin891.fits scfile=/scratch/kocevski/493462/ft2_4FGL_J1320.7+3314_daily_bin891.fits outfile=/scratch/kocevski/493462/cmap_470275201_470534401_4FGL_J1320.7+3314_daily_bin891.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.55
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/493462/ft1_filtered_4FGL_J1320.7+3314_daily_bin891.fits scfile=/scratch/kocevski/493462/ft2_4FGL_J1320.7+3314_daily_bin891.fits outfile=/scratch/kocevski/493462/cmap_HighResolution_470275201_470534401_4FGL_J1320.7+3314_daily_bin891.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/493462/ft1_filtered_4FGL_J1320.7+3314_daily_bin891.fits evtable="EVENTS" scfile=/scratch/kocevski/493462/ft2_4FGL_J1320.7+3314_daily_bin891.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/493462/Model_4FGL_J1320.7+3314_daily_bin891.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/493462/ft1_filtered_4FGL_J1320.7+3314_daily_bin891.fits.....................!
real 45.36
user 43.94
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.237       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    106.60       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .11578E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    30.108       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.2548       1.0000         .10000E-03   10000.    
     8 'norm      '    7.3238       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.8831       1.0000         .10000E-03   10000.    
    13 'norm      '    .10233E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.7243       1.0000         .10000E-03   10000.    
    17 'norm      '    13.744       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10576E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10295E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    105.02       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.4387       1.0000         .10000E-03   10000.    
    24 'norm      '    7.4382       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .96951       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0126       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=   5377.822     FROM MIGRAD    STATUS=CONVERGED    631 CALLS     3271 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.235        13.934        .84479E-07   -.45604E-05
   2  Prefactor     .10000E-03    7.4231        .51463E-06** at limit **
   3  Prefactor     106.59        82.182       -.32928E-05   -.79705E-04
   4  Prefactor     .10000E-03    2.0949       -.61613E-08** at limit **
   5  norm          .10000E-03    3.8183       -.79867E-06** at limit **
   6  Prefactor     30.087        44.536       -.53268E-05   -.20553E-03
   7  Prefactor     3.2428        23.511        .11725E-04   -.13938E-03
   8  norm          7.3232        4.1218       -.16007E-06   -.22335E-03
   9  Prefactor     .10000E-03    5.4354        .74771E-06** at limit **
  10  norm          .10000E-03    1.3215       -.11026E-07** at limit **
  11  norm          .10000E-03    4.4264       -.11691E-06** at limit **
  12  norm          2.8908        3.2654       -.57149E-06   -.15840E-03
  13  norm          .10000E-03    5.1840        .65178E-06** at limit **
  14  norm          .10000E-03    7.3061        .17951E-06** at limit **
  15  Prefactor     .10003E-03    1.6396       -.11594E-05** at limit **
  16  Prefactor     2.6855        19.249        .21390E-05    .44667E-03
  17  norm          13.753        7.5675        .10806E-06    .21283E-04
  18  Prefactor     .10000E-03    64.286       -.85598E-06** at limit **
  19  norm          .10000E-03    14.307        .20002E-06** at limit **
  20  Prefactor     .10000E-03    7.4871        .93663E-06** at limit **
  21  Prefactor     .10000E-03    5.6357       -.99454E-07** at limit **
  22  Prefactor     105.00        71.323       -.42122E-05   -.19214E-03
  23  Prefactor     5.4381        3.7366        .98905E-08   -.23637E-04
  24  norm          7.4366        12.610        .24492E-05   -.16945E-03
  25  Prefactor     .10000E-03    10.891       -.47092E-06** at limit **
  26  Normalizat    .96981        .17524       -.31782E-06    .17037E-03
  27  Prefactor     1.0123        .21236       -.37590E-06    .11425E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.235
  Prefactor  = 0.0001
  Prefactor  = 106.588
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 30.0873
  Prefactor  = 3.24282
  norm       = 7.32323
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.89076
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100025
  Prefactor  = 2.68555
  norm       = 13.7535
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 104.995
  Prefactor  = 5.43814
  norm       = 7.43664
  Prefactor  = 0.0001
  Normalizat = 0.969806
  Prefactor  = 1.01233
 **********
 **   18 **HESSE 
 **********

 FCN=   5377.822     FROM HESSE     STATUS=OK           484 CALLS     3755 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.235        13.933        .91318E-04   -1.4831    
   2  Prefactor     .10000E-03    7.4349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     106.59        82.200        .38950E-04   -1.3639    
   4  Prefactor     .10000E-03    2.1028        .10365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.8967        .14000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     30.087        45.424        .73018E-04   -1.4610    
   7  Prefactor     3.2428        25.712        .11224E-02   -1.5348    
   8  norm          7.3232        4.1271        .10812E-03   -1.5167    
   9  Prefactor     .10000E-03    5.4615        .16712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.3243        .82322E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.4274        .15068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.8908        2.9328        .11951E-03   -1.5368    
  13  norm          .10000E-03    10.662        .28857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    7.3100        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10003E-03    6.5672        .16478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.6855        18.595        .24673E-03   -1.5380    
  17  norm          13.753        7.5269        .10804E-03   -1.4966    
  18  Prefactor     .10000E-03    64.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    14.582        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.5261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.6398        .17004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     105.00        72.498        .19620E-03   -1.3655    
  23  Prefactor     5.4381        3.7413        .11281E-03   -1.5242    
  24  norm          7.4366        12.664        .73527E-03   -1.5162    
  25  Prefactor     .10000E-03    10.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .96981        .21088        .22676E-03   -.94049    
  27  Prefactor     1.0123        .25435        .27895E-03   -.92320    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.9463e-09
Minuit parameter uncertainties:
  1  13.9355
  2  3.53255e-05
  3  82.2879
  4  1.35475e-06
  5  3.83017e-05
  6  45.476
  7  18.2729
  8  4.12725
  9  4.40266e-05
  10  1.06136e-06
  11  7.30428e-07
  12  2.93293
  13  2.58278e-05
  14  1.27121e-05
  15  0.000815801
  16  14.1393
  17  7.5274
  18  0.000360108
  19  5.37422e-06
  20  5.25893e-05
  21  8.29225e-06
  22  72.5591
  23  3.74144
  24  12.6689
  25  4.06194e-05
  26  0.21106
  27  0.254654
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  2.686e+00  1.414e+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.012e+00  2.547e-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.698e-01  2.111e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 200.185 33.238
Photon Flux Upper Limit: 9.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/493462/likelihoodResults_470275201_470534401_4FGL_J1320.7+3314_daily_bin891.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) = 5377.82184014
delta logL = 4.08672549383e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5377.82182984
delta logL = 5.116083139e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6855       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4950       1.0000          .0000       10.000    
     3 'Normalizat'    .96986       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0124       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=   5377.822     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      216 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7647        168.80        .62159E-02    .31405E-03
   2  Index         2.4859        1.0351        .49939        .64590E-04
   3  Normalizat    .96995        .13215E-01    .45788E-01    .99483E-04
   4  Prefactor     1.0122        .16660E-01    .63078E-01    .77181E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.76465
  Index      = 2.4859
  Normalizat = 0.969946
  Prefactor  = 1.01218
 **********
 **   18 **HESSE 
 **********

 FCN=   5377.822     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7647        23.715        .24863E-03   -1.5375    
   2  Index         2.4859        1.9126        .55155E-02   -.52686    
   3  Normalizat    .96995        .20331        .22675E-03   -.94044    
   4  Prefactor     1.0122        .25388        .27897E-03   -.92325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.29343e-10
Minuit parameter uncertainties:
  1  16.2028
  2  1.98131
  3  0.203475
  4  0.254177
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/493462': 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) = 5377.82181274
delta logL = 6.82680938553e-05

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  2.765e+00  1.620e+01  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.486e+00  1.981e+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.012e+00  2.542e-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.699e-01  2.035e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
Ra Dec: 200.185 33.238

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/493462/cmap_HighResolution_470275201_470534401_4FGL_J1320.7+3314_daily_bin891.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.05e-03', job_status='DONE', photon_flux_upper_limit='9.06e-08', time_completed='2021-09-07 13:07:56.476852', job_id='493462', GAL2='1.01', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1631045276.48', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='6.83e-05', ts2='0.04', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='891' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:07:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0008>
Subject: Job 493462: <4FGL_J1320.7+3314_daily_bin891> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin891> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 12:55:29 2021
Job was executed on host(s) <bullet0008>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 12:55:38 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:55:38 2021
Terminated at Tue Sep  7 13:07:57 2021
Results reported at Tue Sep  7 13:07:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin891 200.185 33.2378 470275201 470534401 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 :                                   723.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   738 sec.
    Turnaround time :                            748 sec.

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

