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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin1349
RA = 200.185, Dec = 33.2378
tmin = 588988801, tmax = 589248001
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='494853', job_status='RUN', time_executed='2021-09-07 13:03:58.143167', time_epoch_executed='1631045038.14' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='1349'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/494853

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/494853/ft1_4FGL_J1320.7+3314_daily_bin1349.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/494853/ft2_4FGL_J1320.7+3314_daily_bin1349.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/494853/ft1_4FGL_J1320.7+3314_daily_bin1349.fits outfile=/scratch/kocevski/494853/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin1349.fits ra=200.185 dec=33.2378 rad=12.0 tmin=588988801.0 tmax=589248001.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.23
user 2.99
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/494853/ft2_4FGL_J1320.7+3314_daily_bin1349.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/494853/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin1349.fits evtable="EVENTS" outfile="/scratch/kocevski/494853/ft1_filtered_4FGL_J1320.7+3314_daily_bin1349.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/494853/ft1_filtered_4FGL_J1320.7+3314_daily_bin1349.fits" evtable="EVENTS" scfile=/scratch/kocevski/494853/ft2_4FGL_J1320.7+3314_daily_bin1349.fits sctable="SC_DATA" outfile=/scratch/kocevski/494853/ltcube_588988801_589248001_4FGL_J1320.7+3314_daily_bin1349.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/494853/ft2_4FGL_J1320.7+3314_daily_bin1349.fits
.....................!
real 18.15
user 17.68
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/494853/ft1_filtered_4FGL_J1320.7+3314_daily_bin1349.fits evtable="EVENTS" scfile=/scratch/kocevski/494853/ft2_4FGL_J1320.7+3314_daily_bin1349.fits sctable="SC_DATA" expcube=/scratch/kocevski/494853/ltcube_588988801_589248001_4FGL_J1320.7+3314_daily_bin1349.fits outfile=/scratch/kocevski/494853/expmap_588988801_589248001_4FGL_J1320.7+3314_daily_bin1349.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/494853/ltcube_588988801_589248001_4FGL_J1320.7+3314_daily_bin1349.fits
.....................!
real 193.14
user 187.19
sys 5.35

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/494853/ft1_filtered_4FGL_J1320.7+3314_daily_bin1349.fits scfile=/scratch/kocevski/494853/ft2_4FGL_J1320.7+3314_daily_bin1349.fits outfile=/scratch/kocevski/494853/cmap_588988801_589248001_4FGL_J1320.7+3314_daily_bin1349.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.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/494853/ft1_filtered_4FGL_J1320.7+3314_daily_bin1349.fits scfile=/scratch/kocevski/494853/ft2_4FGL_J1320.7+3314_daily_bin1349.fits outfile=/scratch/kocevski/494853/cmap_HighResolution_588988801_589248001_4FGL_J1320.7+3314_daily_bin1349.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.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/494853/ft1_filtered_4FGL_J1320.7+3314_daily_bin1349.fits evtable="EVENTS" scfile=/scratch/kocevski/494853/ft2_4FGL_J1320.7+3314_daily_bin1349.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/494853/Model_4FGL_J1320.7+3314_daily_bin1349.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/494853/ft1_filtered_4FGL_J1320.7+3314_daily_bin1349.fits.....................!
real 38.20
user 36.73
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.1951       1.0000         .10000E-03   10000.    
     3 'Prefactor '    36.427       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.6409       1.0000         .10000E-03   10000.    
     5 'norm      '    .10452E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    67.243       1.0000         .10000E-03   10000.    
     8 'norm      '    5.0610       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.9380       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.2537       1.0000         .10000E-03   10000.    
    12 'norm      '    .13508E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    4.9369       1.0000         .10000E-03   10000.    
    14 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.3222       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.170       1.0000         .10000E-03   10000.    
    17 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.0794       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    13.365       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .91944       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .96393       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=   4092.440     FROM MIGRAD    STATUS=CONVERGED    645 CALLS     3342 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.514       -.35110E-05** at limit **
   2  Prefactor     6.1956        19.980        .32461E-05   -.77029E-04
   3  Prefactor     36.405        85.708       -.43254E-05   -.55426E-04
   4  Prefactor     5.6410        7.5312       -.14838E-06   -.19023E-04
   5  norm          .10000E-03    6.1300        .25749E-06** at limit **
   6  Prefactor     .10000E-03    52.389        .28673E-05** at limit **
   7  Prefactor     67.249        41.318        .35432E-06    .16666E-04
   8  norm          5.0614        5.6114       -.60735E-07   -.54814E-04
   9  Prefactor     5.9388        18.466        .16244E-06   -.99891E-05
  10  norm          .10000E-03    2.0787        .20444E-08** at limit **
  11  norm          7.2536        14.825        .24854E-05   -.12444E-03
  12  norm          .10006E-03    4.4300        .13983E-07** at limit **
  13  norm          4.9491        9.4329       -.26071E-06    .17581E-04
  14  norm          .10000E-03    95.981       -.28385E-05** at limit **
  15  Prefactor     6.3228        5.4289       -.20248E-07   -.20007E-04
  16  Prefactor     16.176        25.878       -.10567E-06    .19910E-04
  17  norm          .10000E-03    7.9348       -.32552E-06** at limit **
  18  Prefactor     .10000E-03    50.305        .15720E-05** at limit **
  19  norm          1.0786        10.045        .22654E-05   -.92314E-04
  20  Prefactor     .10000E-03    15.001       -.13187E-06** at limit **
  21  Prefactor     .10000E-03    45.595       -.10930E-05** at limit **
  22  Prefactor     .10000E-03    26.376        .23749E-05** at limit **
  23  Prefactor     .10000E-03    1.4157        .22621E-07** at limit **
  24  norm          .10000E-03    4.8028        .21106E-07** at limit **
  25  Prefactor     13.366        18.966        .17279E-06   -.24762E-05
  26  Normalizat    .91929        .19308       -.63624E-06    .79788E-05
  27  Prefactor     .96410        .23191       -.14827E-06   -.10605E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 6.19558
  Prefactor  = 36.4052
  Prefactor  = 5.64104
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 67.2485
  norm       = 5.06144
  Prefactor  = 5.93878
  norm       = 0.0001
  norm       = 7.25359
  norm       = 0.000100055
  norm       = 4.94907
  norm       = 0.000100001
  Prefactor  = 6.32276
  Prefactor  = 16.1764
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.07864
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.3661
  Normalizat = 0.919285
  Prefactor  = 0.964102
 **********
 **   18 **HESSE 
 **********

 FCN=   4092.440     FROM HESSE     STATUS=OK           488 CALLS     3830 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.1956        20.184        .80644E-03   -1.5210    
   3  Prefactor     36.405        87.069        .66402E-04   -1.4500    
   4  Prefactor     5.6410        7.5009        .16914E-03   -1.5233    
   5  norm          .10000E-03    12.239        .28955E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    53.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     67.249        38.910        .48946E-04   -1.4066    
   8  norm          5.0614        5.6085        .15339E-03   -1.5258    
   9  Prefactor     5.9388        18.380        .16479E-03   -1.5221    
  10  norm          .10000E-03    2.0798        .90011E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.2536        15.007        .74465E-03   -1.5169    
  12  norm          .10006E-03    56.696        .20795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.9491        8.4956        .18101E-03   -1.5263    
  14  norm          .10000E-03    98.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.3228        5.4205        .10714E-03   -1.5205    
  16  Prefactor     16.176        25.179        .99602E-04   -1.4903    
  17  norm          .10000E-03    8.0343        .17580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    50.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.0786        10.391        .39650E-03   -1.5500    
  20  Prefactor     .10000E-03    15.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    46.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    26.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.4274        .74311E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    4.8089        .13692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     13.366        18.971        .10956E-03   -1.4977    
  26  Normalizat    .91929        .22909        .22328E-03   -.95786    
  27  Prefactor     .96410        .27498        .26752E-03   -.93936    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2814e-09
Minuit parameter uncertainties:
  1  0.000418292
  2  20.2059
  3  87.3747
  4  7.50212
  5  6.95608e-05
  6  0.000501459
  7  38.9252
  8  5.60909
  9  18.3976
  10  1.74327e-07
  11  15.0148
  12  0.00354038
  13  8.49763
  14  0.000492338
  15  5.42092
  16  25.1951
  17  1.81124e-05
  18  0.000277196
  19  6.6968
  20  5.84983e-06
  21  0.000144924
  22  0.000305699
  23  8.9087e-07
  24  1.07011e-06
  25  18.9794
  26  0.229335
  27  0.275378
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.618e+01  2.520e+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.641e-01  2.754e-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.193e-01  2.293e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.75
Ra Dec: 200.185 33.238
Photon Flux Upper Limit: 1.47e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.15e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/494853/likelihoodResults_588988801_589248001_4FGL_J1320.7+3314_daily_bin1349.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) = 4092.05055241
delta logL = 0.389372113555

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4092.01310831
delta logL = 0.426816207043

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2667       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5406       1.0000          .0000       10.000    
     3 'Normalizat'    .87716       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0010       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=   4092.013     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      247 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2609        78.519        .48764E-02    .31347E-03
   2  Index         3.5415        3.1424        .12197        .10235E-03
   3  Normalizat    .87705        .56893E-01    .44609E-01    .74045E-05
   4  Prefactor     1.0011        .68931E-01    .45359E-01    .59928E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.26092
  Index      = 3.54146
  Normalizat = 0.877051
  Prefactor  = 1.00114
 **********
 **   18 **HESSE 
 **********

 FCN=   4092.013     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      280 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2609        150.98        .10686E-03   -1.5295    
   2  Index         3.5415        6.7703        .43121E-02   -.29601    
   3  Normalizat    .87705        .22108        .22767E-03   -.97271    
   4  Prefactor     1.0011        .27367        .26309E-03   -.92691    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.06697e-10
Minuit parameter uncertainties:
  1  50.8668
  2  6.00741
  3  0.221304
  4  0.274051
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/494853': 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) = 4092.01310802
delta logL = 0.426816498557

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  4.261e+00  5.087e+01  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  3.541e+00  6.007e+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.001e+00  2.741e-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:  8.771e-01  2.213e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.70
Ra Dec: 200.185 33.238
Photon Index (Free Index): 3.54 +/- 6.01
Photon Flux (Free Index): 7.54e-08 +/- 6.45e-08
Energy Flux (Free Index): 1.24e-05 +/- 2.19e-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/494853/cmap_HighResolution_588988801_589248001_4FGL_J1320.7+3314_daily_bin1349.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', comment='SUCCESS', energy_flux2='1.24e-05', dlogl='4.27e-01', photon_flux2='7.54e-08', job_status='DONE', time_completed='2021-09-07 13:14:29.793925', photon_index_error2='6.01', photon_index2='3.54', ts='0.75', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.47e-07', energy_flux_error2='2.19e-05', EG='0.92', time_epoch_completed='1631045669.79', return_code='0', job_id='494853', GAL2='1.00', EG2='0.88', return_code2='102', photon_flux_error2='6.45e-08', ts2='1.70', photon_index='2.51' WHERE bin_id='1349' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:14:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 494853: <4FGL_J1320.7+3314_daily_bin1349> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin1349 200.185 33.2378 588988801 589248001 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 :                                   628.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   746 sec.
    Turnaround time :                            805 sec.

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

