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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin1339
RA = 200.185, Dec = 33.2378
tmin = 586396801, tmax = 586656001
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='494841', job_status='RUN', time_executed='2021-09-07 13:05:18.625561', time_epoch_executed='1631045118.63' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='1339'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/494841

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/494841/ft1_4FGL_J1320.7+3314_daily_bin1339.fits


Retrieving the FT1 file...

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

Retrieving 31 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/494841/ft2_4FGL_J1320.7+3314_daily_bin1339.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/494841/ft1_4FGL_J1320.7+3314_daily_bin1339.fits outfile=/scratch/kocevski/494841/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin1339.fits ra=200.185 dec=33.2378 rad=12.0 tmin=586396801.0 tmax=586656001.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 2.61
user 2.42
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/494841/ft1_filtered_4FGL_J1320.7+3314_daily_bin1339.fits" evtable="EVENTS" scfile=/scratch/kocevski/494841/ft2_4FGL_J1320.7+3314_daily_bin1339.fits sctable="SC_DATA" outfile=/scratch/kocevski/494841/ltcube_586396801_586656001_4FGL_J1320.7+3314_daily_bin1339.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/494841/ft2_4FGL_J1320.7+3314_daily_bin1339.fits
.....................!
real 11.75
user 11.33
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/494841/ft1_filtered_4FGL_J1320.7+3314_daily_bin1339.fits evtable="EVENTS" scfile=/scratch/kocevski/494841/ft2_4FGL_J1320.7+3314_daily_bin1339.fits sctable="SC_DATA" expcube=/scratch/kocevski/494841/ltcube_586396801_586656001_4FGL_J1320.7+3314_daily_bin1339.fits outfile=/scratch/kocevski/494841/expmap_586396801_586656001_4FGL_J1320.7+3314_daily_bin1339.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/494841/ltcube_586396801_586656001_4FGL_J1320.7+3314_daily_bin1339.fits
.....................!
real 191.80
user 186.96
sys 4.32

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/494841/ft1_filtered_4FGL_J1320.7+3314_daily_bin1339.fits scfile=/scratch/kocevski/494841/ft2_4FGL_J1320.7+3314_daily_bin1339.fits outfile=/scratch/kocevski/494841/cmap_586396801_586656001_4FGL_J1320.7+3314_daily_bin1339.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/494841/ft1_filtered_4FGL_J1320.7+3314_daily_bin1339.fits scfile=/scratch/kocevski/494841/ft2_4FGL_J1320.7+3314_daily_bin1339.fits outfile=/scratch/kocevski/494841/cmap_HighResolution_586396801_586656001_4FGL_J1320.7+3314_daily_bin1339.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39516       1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.427       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .68769E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.5321       1.0000         .10000E-03   10000.    
     5 'norm      '    .11123E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    59.489       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    14.763       1.0000         .10000E-03   10000.    
    13 'norm      '    .11295E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    21.833       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.0236       1.0000         .10000E-03   10000.    
    17 'norm      '    7.2625       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.5557       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.272       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1599       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .57310       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=   3499.545     FROM MIGRAD    STATUS=CONVERGED    630 CALLS     3248 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .51817        13.652       -.24914E-05    .22240E-03
   2  Prefactor     25.429        25.217        .19065E-05    .16705E-04
   3  Prefactor     .10000E-03    213.23       -.14330E-03** at limit **
   4  Prefactor     8.5324        7.5857       -.32062E-06   -.25632E-05
   5  norm          .10000E-03    6.4779       -.39907E-05** at limit **
   6  Prefactor     59.506        63.512        .18651E-04   -.55054E-05
   7  Prefactor     .10000E-03    11.321       -.39325E-05** at limit **
   8  norm          .10000E-03    1.6798        .50068E-07** at limit **
   9  Prefactor     .10000E-03    11.733        .26769E-05** at limit **
  10  norm          .10000E-03    2.4935       -.16853E-07** at limit **
  11  norm          .10000E-03    6.3421        .26856E-05** at limit **
  12  norm          14.765        6.0052       -.25582E-06   -.73686E-03
  13  norm          .10000E-03    19.025        .11748E-04** at limit **
  14  norm          21.836        20.544        .11509E-05    .13394E-04
  15  Prefactor     .10000E-03    2.2338        .17358E-08** at limit **
  16  Prefactor     4.0279        13.477       -.65251E-06   -.13120E-03
  17  norm          7.2634        8.0424       -.47766E-06   -.55258E-03
  18  Prefactor     .10000E-03    50.604        .80966E-05** at limit **
  19  norm          5.5589        10.921        .25960E-07   -.62985E-04
  20  Prefactor     .10000E-03    7.3570        .21720E-05** at limit **
  21  Prefactor     .10000E-03    21.367       -.12916E-04** at limit **
  22  Prefactor     .10000E-03    42.172       -.50639E-05** at limit **
  23  Prefactor     11.277        7.9743        .48753E-08   -.28431E-04
  24  norm          .10000E-03    5.4876       -.85216E-07** at limit **
  25  Prefactor     .10000E-03    8.5561       -.32622E-08** at limit **
  26  Normalizat    1.1599        .21680        .26256E-06    .36554E-03
  27  Prefactor     .57274        .25150       -.69817E-06    .19959E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.518168
  Prefactor  = 25.4292
  Prefactor  = 0.000100004
  Prefactor  = 8.53241
  norm       = 0.0001
  Prefactor  = 59.5055
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 14.7649
  norm       = 0.0001
  norm       = 21.8359
  Prefactor  = 0.0001
  Prefactor  = 4.02791
  norm       = 7.2634
  Prefactor  = 0.0001
  norm       = 5.5589
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.2774
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.15993
  Prefactor  = 0.572739
 **********
 **   18 **HESSE 
 **********

 FCN=   3499.545     FROM HESSE     STATUS=OK           480 CALLS     3728 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .51817        71.428        .42047E-02   -1.5564    
   2  Prefactor     25.429        25.215        .79442E-04   -1.4699    
   3  Prefactor     .10000E-03    213.03        .20990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.5324        7.5845        .13724E-03   -1.5124    
   5  norm          .10000E-03    6.6302        .29322E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     59.506        63.442        .52018E-04   -1.4164    
   7  Prefactor     .10000E-03    11.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.6872        .74871E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.5081        .91219E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.3392        .14546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          14.765        5.9437        .86644E-04   -1.4939    
  13  norm          .10000E-03    19.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          21.836        20.543        .85722E-04   -1.4773    
  15  Prefactor     .10000E-03    2.2609        .86163E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.0279        13.428        .20104E-03   -1.5307    
  17  norm          7.2634        8.0369        .74419E-03   -1.5169    
  18  Prefactor     .10000E-03    50.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.5589        10.895        .17045E-03   -1.5236    
  20  Prefactor     .10000E-03    7.3618        .15672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    21.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    42.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     11.277        7.9858        .11932E-03   -1.5036    
  24  norm          .10000E-03    5.4911        .13535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8.5573        .16902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1599        .24907        .20625E-03   -.87850    
  27  Prefactor     .57274        .28675        .33047E-03   -1.0875    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49942e-09
Minuit parameter uncertainties:
  1  12.1812
  2  25.2259
  3  0.00186531
  4  7.58533
  5  9.95407e-05
  6  63.5138
  7  1.70136e-05
  8  3.59093e-07
  9  4.73227e-06
  10  5.58046e-07
  11  2.8259e-05
  12  5.94395
  13  3.22148e-05
  14  20.5494
  15  2.72928e-06
  16  13.4384
  17  8.03805
  18  6.36337e-06
  19  10.8993
  20  3.48569e-06
  21  1.79019e-05
  22  2.66221e-06
  23  7.98659
  24  1.17764e-07
  25  6.74101e-09
  26  0.249324
  27  0.287486
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  4.028e+00  1.344e+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:  5.727e-01  2.875e-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.160e+00  2.493e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/494841/likelihoodResults_586396801_586656001_4FGL_J1320.7+3314_daily_bin1339.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) = 3499.53075604
delta logL = 0.0146447259381

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3499.52370178
delta logL = 0.0216989837336

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.0550       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2191       1.0000          .0000       10.000    
     3 'Normalizat'    1.1617       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57038       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=   3499.524     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      240 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0596        18.589        .16317E-03   -.12683E-02
   2  Index         2.2186        1.3035        .12687E-01   -.40480E-03
   3  Normalizat    1.1617        .24527        .20611E-03    .61342E-03
   4  Prefactor     .57038        .28513        .33106E-03    .43626E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.05961
  Index      = 2.21862
  Normalizat = 1.16169
  Prefactor  = 0.57038
 **********
 **   18 **HESSE 
 **********

 FCN=   3499.524     FROM HESSE     STATUS=OK            23 CALLS      263 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0596        18.063        .32634E-04   -1.5216    
   2  Index         2.2186        1.2684        .50746E-03   -.58990    
   3  Normalizat    1.1617        .24544        .41221E-04   -.87795    
   4  Prefactor     .57038        .28529        .66212E-04   -1.0885    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90344e-08
Minuit parameter uncertainties:
  1  18.0791
  2  1.28898
  3  0.245679
  4  0.28602
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/494841': 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) = 3499.52370173
delta logL = 0.0216990362983

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  6.060e+00  1.808e+01  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.219e+00  1.289e+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:  5.704e-01  2.860e-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.162e+00  2.457e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.11
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/494841/cmap_HighResolution_586396801_586656001_4FGL_J1320.7+3314_daily_bin1339.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.65e-03', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-09-07 13:14:38.004440', job_id='494841', GAL2='0.57', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1631045678.0', return_code2='0', ts='0.11', comment='SUCCESS', return_code='0', GAL='0.57', dlogl='2.17e-02', ts2='0.16', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1339' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:14:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 494841: <4FGL_J1320.7+3314_daily_bin1339> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin1339> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep  7 13:01:04 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 13:01:55 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:55 2021
Terminated at Tue Sep  7 13:14:38 2021
Results reported at Tue Sep  7 13:14:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin1339 200.185 33.2378 586396801 586656001 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 :                                   558.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             220.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   763 sec.
    Turnaround time :                            814 sec.

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

