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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin1258
RA = 200.185, Dec = 33.2378
tmin = 565401601, tmax = 565660801
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='494750', job_status='RUN', time_executed='2021-09-07 13:05:01.045615', time_epoch_executed='1631045101.05' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='1258'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/494750

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/494750/ft1_4FGL_J1320.7+3314_daily_bin1258.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/494750/ft2_4FGL_J1320.7+3314_daily_bin1258.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/494750/ft1_4FGL_J1320.7+3314_daily_bin1258.fits outfile=/scratch/kocevski/494750/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin1258.fits ra=200.185 dec=33.2378 rad=12.0 tmin=565401601.0 tmax=565660801.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.68
user 3.43
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/494750/ft2_4FGL_J1320.7+3314_daily_bin1258.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/494750/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin1258.fits evtable="EVENTS" outfile="/scratch/kocevski/494750/ft1_filtered_4FGL_J1320.7+3314_daily_bin1258.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/494750/ft1_filtered_4FGL_J1320.7+3314_daily_bin1258.fits" evtable="EVENTS" scfile=/scratch/kocevski/494750/ft2_4FGL_J1320.7+3314_daily_bin1258.fits sctable="SC_DATA" outfile=/scratch/kocevski/494750/ltcube_565401601_565660801_4FGL_J1320.7+3314_daily_bin1258.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/494750/ft2_4FGL_J1320.7+3314_daily_bin1258.fits
.....................!
real 17.22
user 16.79
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/494750/ft1_filtered_4FGL_J1320.7+3314_daily_bin1258.fits evtable="EVENTS" scfile=/scratch/kocevski/494750/ft2_4FGL_J1320.7+3314_daily_bin1258.fits sctable="SC_DATA" expcube=/scratch/kocevski/494750/ltcube_565401601_565660801_4FGL_J1320.7+3314_daily_bin1258.fits outfile=/scratch/kocevski/494750/expmap_565401601_565660801_4FGL_J1320.7+3314_daily_bin1258.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/494750/ltcube_565401601_565660801_4FGL_J1320.7+3314_daily_bin1258.fits
.....................!
real 192.97
user 186.93
sys 5.55

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/494750/ft1_filtered_4FGL_J1320.7+3314_daily_bin1258.fits scfile=/scratch/kocevski/494750/ft2_4FGL_J1320.7+3314_daily_bin1258.fits outfile=/scratch/kocevski/494750/cmap_565401601_565660801_4FGL_J1320.7+3314_daily_bin1258.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/494750/ft1_filtered_4FGL_J1320.7+3314_daily_bin1258.fits scfile=/scratch/kocevski/494750/ft2_4FGL_J1320.7+3314_daily_bin1258.fits outfile=/scratch/kocevski/494750/cmap_HighResolution_565401601_565660801_4FGL_J1320.7+3314_daily_bin1258.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/494750/ft1_filtered_4FGL_J1320.7+3314_daily_bin1258.fits evtable="EVENTS" scfile=/scratch/kocevski/494750/ft2_4FGL_J1320.7+3314_daily_bin1258.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/494750/Model_4FGL_J1320.7+3314_daily_bin1258.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/494750/ft1_filtered_4FGL_J1320.7+3314_daily_bin1258.fits.....................!
real 46.52
user 44.96
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2596       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    52.179       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.021       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    60.638       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.899       1.0000         .10000E-03   10000.    
     8 'norm      '    1.1673       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.1080       1.0000         .10000E-03   10000.    
    10 'norm      '    10.064       1.0000         .10000E-03   10000.    
    11 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.9134       1.0000         .10000E-03   10000.    
    13 'norm      '    2.8290       1.0000         .10000E-03   10000.    
    14 'norm      '    25.838       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .74282       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .28717E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    69.222       1.0000         .10000E-03   10000.    
    19 'norm      '    .30182E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    63.331       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10591E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1502       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .62629       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=   5435.510     FROM MIGRAD    STATUS=CONVERGED    628 CALLS     3265 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2593        6.1433        .56729E-05    .88824E-04
   2  Prefactor     .10000E-03    8.0645        .12269E-06** at limit **
   3  Prefactor     52.177        42.369        .86409E-07    .31174E-05
   4  Prefactor     13.019        7.7381        .42856E-07    .63095E-04
   5  norm          .10000E-03    1.6583        .19693E-07** at limit **
   6  Prefactor     60.634        50.175        .20200E-06   -.10599E-04
   7  Prefactor     10.894        17.563        .77148E-06    .63239E-04
   8  norm          1.1675        3.2267        .56908E-06    .74764E-04
   9  Prefactor     5.1059        12.697        .56811E-07    .36120E-04
  10  norm          10.064        5.6852        .10675E-06    .20051E-03
  11  norm          .10000E-03    4.0173        .30299E-08** at limit **
  12  norm          4.9098        4.6785       -.26686E-05    .67222E-03
  13  norm          2.8321        7.6912        .83232E-05    .25755E-03
  14  norm          25.838        17.995       -.24359E-07   -.39989E-04
  15  Prefactor     .74156        2.7372       -.64849E-06    .79119E-04
  16  Prefactor     .10015E-03    10.225       -.33236E-05** at limit **
  17  norm          .10000E-03    1.7553        .52840E-07** at limit **
  18  Prefactor     69.191        52.827        .40775E-05    .39768E-04
  19  norm          .10000E-03    5.2238        .12290E-05** at limit **
  20  Prefactor     .10000E-03    28.065        .82437E-06** at limit **
  21  Prefactor     .10000E-03    10.820       -.65648E-06** at limit **
  22  Prefactor     63.255        76.010        .81742E-05   -.10487E-03
  23  Prefactor     .10000E-03    1.4943        .10437E-06** at limit **
  24  norm          .10000E-03    23.213       -.17935E-05** at limit **
  25  Prefactor     .10000E-03    11.774        .97621E-06** at limit **
  26  Normalizat    1.1505        .17108        .32679E-05    .34953E-03
  27  Prefactor     .62603        .20072       -.68450E-05    .17939E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.25928
  Prefactor  = 0.0001
  Prefactor  = 52.1772
  Prefactor  = 13.0194
  norm       = 0.0001
  Prefactor  = 60.634
  Prefactor  = 10.8944
  norm       = 1.16751
  Prefactor  = 5.1059
  norm       = 10.0636
  norm       = 0.0001
  norm       = 4.90979
  norm       = 2.83207
  norm       = 25.8378
  Prefactor  = 0.741558
  Prefactor  = 0.000100155
  norm       = 0.0001
  Prefactor  = 69.1912
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 63.2553
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.15045
  Prefactor  = 0.626027
 **********
 **   18 **HESSE 
 **********

 FCN=   5435.510     FROM HESSE     STATUS=OK           490 CALLS     3755 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2593        6.2059        .13664E-02   -1.5407    
   2  Prefactor     .10000E-03    8.0691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     52.177        42.367        .55522E-04   -1.4262    
   4  Prefactor     13.019        7.7237        .11101E-03   -1.4986    
   5  norm          .10000E-03    1.6869        .92603E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     60.634        50.205        .25763E-03   -1.4149    
   7  Prefactor     10.894        17.531        .12136E-03   -1.5048    
   8  norm          1.1675        3.1945        .20972E-03   -1.5492    
   9  Prefactor     5.1059        12.653        .17789E-03   -1.5256    
  10  norm          10.064        5.6658        .12299E-03   -1.5073    
  11  norm          .10000E-03    4.0180        .14432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.9098        4.6870        .10445E-03   -1.5265    
  13  norm          2.8321        7.7628        .11611E-02   -1.5371    
  14  norm          25.838        17.964        .78808E-04   -1.4691    
  15  Prefactor     .74156        2.5872        .20507E-03   -1.5536    
  16  Prefactor     .10015E-03    53.233        .41674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.7580        .95349E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     69.191        52.538        .24123E-03   -1.4042    
  19  norm          .10000E-03    15.044        .32511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    28.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     63.255        76.355        .25212E-03   -1.4116    
  23  Prefactor     .10000E-03    1.5124        .87983E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    23.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    11.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1505        .19554        .20004E-03   -.88148    
  27  Prefactor     .62603        .22801        .31829E-03   -1.0650    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54525e-09
Minuit parameter uncertainties:
  1  6.20763
  2  4.68452e-06
  3  42.3914
  4  7.72433
  5  8.80286e-07
  6  50.2404
  7  17.5395
  8  3.19493
  9  12.6597
  10  5.66611
  11  2.40334e-07
  12  4.68735
  13  7.76558
  14  17.9677
  15  2.58763
  16  0.00574224
  17  1.53424e-06
  18  52.5728
  19  0.000209191
  20  0.000175972
  21  7.00774e-05
  22  76.474
  23  4.97217e-06
  24  0.000271058
  25  4.80886e-05
  26  0.195662
  27  0.228344
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.002e-04  5.742e-03  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:  6.260e-01  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:  1.150e+00  1.957e-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: 7.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/494750/likelihoodResults_565401601_565660801_4FGL_J1320.7+3314_daily_bin1258.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) = 5435.5102296
delta logL = -8.81944934008e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5435.51022919
delta logL = -8.77766487974e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95736E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5088       1.0000          .0000       10.000    
     3 'Normalizat'    1.1503       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62623       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=   5435.510     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      224 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10057E-03    .62531E-01    .90773E-01** at limit **
   2  Index         2.6322        6.6330        .50000       -.21291E-04
   3  Normalizat    1.1504        .40493E-03    .36244E-01    .34138E-04
   4  Prefactor     .62603        .49130E-03    .71908E-01    .67852E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010057
  Index      = 2.6322
  Normalizat = 1.15045
  Prefactor  = 0.626031
 **********
 **   18 **HESSE 
 **********

 FCN=   5435.510     FROM HESSE     STATUS=NOT POSDEF    43 CALLS      267 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10057E-03    .15123        .59007E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6322        5.4797        .50000       -.49333    
   3  Normalizat    1.1504        .47036E-03    .20004E-03   -.88148    
   4  Prefactor     .62603        .56955E-03    .31829E-03   -1.0650    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.8716e-08
Minuit parameter uncertainties:
  1  0.000587249
  2  28.7038
  3  0.000470359
  4  0.000569545
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/494750': 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) = 5435.51014082
delta logL = 5.86122041568e-07

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.006e-04  5.872e-04  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.632e+00  2.870e+01  0.000e+00  1.000e+01 (-1.000e+00)
327        Scale:  1.074e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  6.260e-01  5.695e-04  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.150e+00  4.704e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/494750/cmap_HighResolution_565401601_565660801_4FGL_J1320.7+3314_daily_bin1258.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.50e-03', job_status='DONE', photon_flux_upper_limit='7.07e-08', time_completed='2021-09-07 13:17:14.542548', job_id='494750', GAL2='0.63', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1631045834.54', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='5.86e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1258' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:17:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 494750: <4FGL_J1320.7+3314_daily_bin1258> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin1258> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep  7 13:00:53 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 13:01:11 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 13:01:11 2021
Terminated at Tue Sep  7 13:17:15 2021
Results reported at Tue Sep  7 13:17:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin1258 200.185 33.2378 565401601 565660801 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 :                                   728.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   963 sec.
    Turnaround time :                            982 sec.

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

