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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin1029
RA = 200.185, Dec = 33.2378
tmin = 506044801, tmax = 506304001
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='493678', job_status='RUN', time_executed='2021-09-07 12:59:33.047673', time_epoch_executed='1631044773.05' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='1029'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/493678

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/493678/ft1_4FGL_J1320.7+3314_daily_bin1029.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/493678/ft2_4FGL_J1320.7+3314_daily_bin1029.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/493678/ft1_4FGL_J1320.7+3314_daily_bin1029.fits outfile=/scratch/kocevski/493678/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin1029.fits ra=200.185 dec=33.2378 rad=12.0 tmin=506044801.0 tmax=506304001.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 4.36
user 4.12
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/493678/ft2_4FGL_J1320.7+3314_daily_bin1029.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/493678/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin1029.fits evtable="EVENTS" outfile="/scratch/kocevski/493678/ft1_filtered_4FGL_J1320.7+3314_daily_bin1029.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.37
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/493678/ft1_filtered_4FGL_J1320.7+3314_daily_bin1029.fits" evtable="EVENTS" scfile=/scratch/kocevski/493678/ft2_4FGL_J1320.7+3314_daily_bin1029.fits sctable="SC_DATA" outfile=/scratch/kocevski/493678/ltcube_506044801_506304001_4FGL_J1320.7+3314_daily_bin1029.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/493678/ft2_4FGL_J1320.7+3314_daily_bin1029.fits
.....................!
real 16.23
user 15.89
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/493678/ft1_filtered_4FGL_J1320.7+3314_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/493678/ft2_4FGL_J1320.7+3314_daily_bin1029.fits sctable="SC_DATA" expcube=/scratch/kocevski/493678/ltcube_506044801_506304001_4FGL_J1320.7+3314_daily_bin1029.fits outfile=/scratch/kocevski/493678/expmap_506044801_506304001_4FGL_J1320.7+3314_daily_bin1029.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/493678/ltcube_506044801_506304001_4FGL_J1320.7+3314_daily_bin1029.fits
.....................!
real 192.59
user 187.91
sys 4.00

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/493678/ft1_filtered_4FGL_J1320.7+3314_daily_bin1029.fits scfile=/scratch/kocevski/493678/ft2_4FGL_J1320.7+3314_daily_bin1029.fits outfile=/scratch/kocevski/493678/cmap_506044801_506304001_4FGL_J1320.7+3314_daily_bin1029.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.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/493678/ft1_filtered_4FGL_J1320.7+3314_daily_bin1029.fits scfile=/scratch/kocevski/493678/ft2_4FGL_J1320.7+3314_daily_bin1029.fits outfile=/scratch/kocevski/493678/cmap_HighResolution_506044801_506304001_4FGL_J1320.7+3314_daily_bin1029.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.43
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/493678/ft1_filtered_4FGL_J1320.7+3314_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/493678/ft2_4FGL_J1320.7+3314_daily_bin1029.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/493678/Model_4FGL_J1320.7+3314_daily_bin1029.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/493678/ft1_filtered_4FGL_J1320.7+3314_daily_bin1029.fits.....................!
real 45.22
user 43.81
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10743E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    47.321       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .33639       1.0000         .10000E-03   10000.    
     5 'norm      '    .13356E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13232E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.1387       1.0000         .10000E-03   10000.    
     8 'norm      '    6.8335       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    8.7085       1.0000         .10000E-03   10000.    
    11 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .63419E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    25.782       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.1163       1.0000         .10000E-03   10000.    
    17 'norm      '    12.963       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .26333       1.0000         .10000E-03   10000.    
    19 'norm      '    12.464       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .27121E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    50.344       1.0000         .10000E-03   10000.    
    22 'Prefactor '    34.879       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11168E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    17.730       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10973E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.0038       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .95476       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5137.012     FROM MIGRAD    STATUS=CONVERGED   1239 CALLS     3914 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.880        .36285E-03** at limit **
   2  Prefactor     .10000E-03    19.193        .18142E-02** at limit **
   3  Prefactor     47.247        63.139        .58289E-04    .58512E-06
   4  Prefactor     .35484        24.848        .27118E-02    .12473E-02
   5  norm          .10000E-03    28.000        .20196E-02** at limit **
   6  Prefactor     .10000E-03    147.36        .18142E-02** at limit **
   7  Prefactor     8.0978        16.751        .14054E-03    .32924E-04
   8  norm          6.8338        4.0454        .10729E-03    .34118E-04
   9  Prefactor     .10000E-03    6.1408        .17327E-02** at limit **
  10  norm          8.7074        5.0357        .11776E-03   -.57635E-04
  11  norm          .10000E-03    4.2878        .14493E-02** at limit **
  12  norm          .10000E-03    13.326        .16319E-02** at limit **
  13  norm          .10000E-03    3.5582        .13087E-02** at limit **
  14  norm          25.778        17.580        .78894E-04    .14410E-05
  15  Prefactor     .10000E-03    1.2481        .77403E-03** at limit **
  16  Prefactor     8.1185        10.594        .14073E-03   -.47016E-04
  17  norm          12.965        9.2971        .11125E-03    .25956E-04
  18  Prefactor     .43316        57.017        .15087        .78282E-04
  19  norm          12.461        12.623        .11346E-03    .25850E-04
  20  Prefactor     .10000E-03    31.600        .42864E-03** at limit **
  21  Prefactor     50.382        25.945        .56521E-04    .69032E-04
  22  Prefactor     34.936        61.991        .67855E-04   -.50263E-06
  23  Prefactor     .10000E-03    3.7486        .26489E-03** at limit **
  24  norm          17.728        16.746        .95119E-04   -.69322E-05
  25  Prefactor     .10000E-03    36.656        .18142E-02** at limit **
  26  Normalizat    1.0035        .21531        .22321E-03   -.30406E-04
  27  Prefactor     .95522        .26038        .28528E-03   -.10919E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.2473
  Prefactor  = 0.35484
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.09785
  norm       = 6.83378
  Prefactor  = 0.0001
  norm       = 8.70745
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 25.7779
  Prefactor  = 0.0001
  Prefactor  = 8.11848
  norm       = 12.9649
  Prefactor  = 0.433163
  norm       = 12.4615
  Prefactor  = 0.000100001
  Prefactor  = 50.382
  Prefactor  = 34.936
  Prefactor  = 0.0001
  norm       = 17.7279
  Prefactor  = 0.0001
  Normalizat = 1.00348
  Prefactor  = 0.955219
 **********
 **   18 **HESSE 
 **********

 FCN=   5137.012     FROM HESSE     STATUS=OK           472 CALLS     4386 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.881        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.195        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     47.247        63.186        .23316E-05   -1.4332    
   4  Prefactor     .35484        24.846        .54236E-03   -1.5589    
   5  norm          .10000E-03    28.931        .80785E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    147.41        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.0978        16.722        .56214E-05   -1.5139    
   8  norm          6.8338        4.0453        .42918E-05   -1.5185    
   9  Prefactor     .10000E-03    6.1411        .34654E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          8.7074        5.0326        .47104E-05   -1.5118    
  11  norm          .10000E-03    4.2878        .28986E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    13.614        .32638E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.5595        .26174E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          25.778        17.581        .31558E-05   -1.4692    
  15  Prefactor     .10000E-03    1.2482        .15481E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.1185        10.593        .56292E-05   -1.5138    
  17  norm          12.965        9.2972        .44501E-05   -1.4988    
  18  Prefactor     .43316        57.031        .15083       -1.5576    
  19  norm          12.461        12.623        .45386E-05   -1.5002    
  20  Prefactor     .10000E-03    31.601        .85727E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     50.382        25.942        .11304E-04   -1.4287    
  22  Prefactor     34.936        62.073        .27142E-05   -1.4525    
  23  Prefactor     .10000E-03    3.7487        .52977E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          17.728        16.745        .38048E-05   -1.4866    
  25  Prefactor     .10000E-03    36.670        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.0035        .21547        .89285E-05   -.92914    
  27  Prefactor     .95522        .26066        .11411E-04   -.94237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38544e-10
Minuit parameter uncertainties:
  1  2.70333e-05
  2  4.13956e-06
  3  63.2754
  4  5.94023
  5  1.6609e-05
  6  3.35322e-05
  7  16.7314
  8  4.04542
  9  5.23215e-06
  10  5.03281
  11  5.00248e-07
  12  0.000128878
  13  6.53497e-07
  14  17.5842
  15  2.49337e-06
  16  10.5959
  17  9.29825
  18  9.94912
  19  12.6256
  20  0.000402597
  21  25.9482
  22  62.1876
  23  4.08035e-06
  24  16.7494
  25  1.72334e-05
  26  0.21566
  27  0.261006
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  8.118e+00  1.060e+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.552e-01  2.610e-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.003e+00  2.157e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/493678/likelihoodResults_506044801_506304001_4FGL_J1320.7+3314_daily_bin1029.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) = 5136.60457638
delta logL = 0.407499193539

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5136.60326473
delta logL = 0.40881084153

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.723       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9256       1.0000          .0000       10.000    
     3 'Normalizat'    1.0139       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93869       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5136.603     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      294 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.724        20.726        .90187E-04   -.42075E-03
   2  Index         1.9256        .53868        .75391E-02   -.18833E-03
   3  Normalizat    1.0138        .20547        .22210E-03    .11184E-03
   4  Prefactor     .93878        .25829        .28720E-03    .12623E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.7242
  Index      = 1.92556
  Normalizat = 1.01384
  Prefactor  = 0.938777
 **********
 **   18 **HESSE 
 **********

 FCN=   5136.603     FROM HESSE     STATUS=OK            23 CALLS      317 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.724        20.473        .18037E-04   -1.4819    
   2  Index         1.9256        .53220        .30157E-03   -.66224    
   3  Normalizat    1.0138        .20568        .88840E-05   -.92568    
   4  Prefactor     .93878        .25854        .11488E-04   -.94799    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.1408e-10
Minuit parameter uncertainties:
  1  20.4802
  2  0.533833
  3  0.205837
  4  0.258884
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/493678': 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) = 5136.6032646
delta logL = 0.408810973663

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.972e+01  2.048e+01  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  1.926e+00  5.338e-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:  9.388e-01  2.589e-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.014e+00  2.058e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.67
Ra Dec: 200.185 33.238
Photon Index (Free Index): 1.93 +/- 0.53
Photon Flux (Free Index): 2.06e-08 +/- 2.18e-08
Energy Flux (Free Index): 1.72e-05 +/- 2.48e-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/493678/cmap_HighResolution_506044801_506304001_4FGL_J1320.7+3314_daily_bin1029.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.83e-03', comment='SUCCESS', energy_flux2='1.72e-05', dlogl='4.09e-01', photon_flux2='2.06e-08', job_status='DONE', time_completed='2021-09-07 13:12:22.900818', photon_index_error2='0.53', photon_index2='1.93', ts='0.85', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='8.77e-08', energy_flux_error2='2.48e-05', EG='1.00', time_epoch_completed='1631045542.9', return_code='0', job_id='493678', GAL2='0.94', EG2='1.01', return_code2='0', photon_flux_error2='2.18e-08', ts2='1.67', photon_index='2.51' WHERE bin_id='1029' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:12:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 493678: <4FGL_J1320.7+3314_daily_bin1029> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin1029> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 12:55:48 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 12:56:14 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:56:14 2021
Terminated at Tue Sep  7 13:12:23 2021
Results reported at Tue Sep  7 13:12:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin1029 200.185 33.2378 506044801 506304001 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 :                                   767.49 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            995 sec.

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

