/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 3 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 = 7674
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1320.7+3314_daily_bin163
RA = 200.185, Dec = 33.2378
tmin = 281577601, tmax = 281836801
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='487992', job_status='RUN', time_executed='2021-09-07 12:38:50.235113', time_epoch_executed='1631043530.24' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='163'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/487992

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/487992/ft1_4FGL_J1320.7+3314_daily_bin163.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/487992/ft2_4FGL_J1320.7+3314_daily_bin163.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/487992/ft1_4FGL_J1320.7+3314_daily_bin163.fits outfile=/scratch/kocevski/487992/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin163.fits ra=200.185 dec=33.2378 rad=12.0 tmin=281577601.0 tmax=281836801.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.60
user 3.38
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/487992/ft1_filtered_4FGL_J1320.7+3314_daily_bin163.fits" evtable="EVENTS" scfile=/scratch/kocevski/487992/ft2_4FGL_J1320.7+3314_daily_bin163.fits sctable="SC_DATA" outfile=/scratch/kocevski/487992/ltcube_281577601_281836801_4FGL_J1320.7+3314_daily_bin163.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/487992/ft2_4FGL_J1320.7+3314_daily_bin163.fits
.....................!
real 16.13
user 15.74
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/487992/ft1_filtered_4FGL_J1320.7+3314_daily_bin163.fits evtable="EVENTS" scfile=/scratch/kocevski/487992/ft2_4FGL_J1320.7+3314_daily_bin163.fits sctable="SC_DATA" expcube=/scratch/kocevski/487992/ltcube_281577601_281836801_4FGL_J1320.7+3314_daily_bin163.fits outfile=/scratch/kocevski/487992/expmap_281577601_281836801_4FGL_J1320.7+3314_daily_bin163.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/487992/ltcube_281577601_281836801_4FGL_J1320.7+3314_daily_bin163.fits
.....................!
real 191.65
user 186.61
sys 4.57

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/487992/ft1_filtered_4FGL_J1320.7+3314_daily_bin163.fits scfile=/scratch/kocevski/487992/ft2_4FGL_J1320.7+3314_daily_bin163.fits outfile=/scratch/kocevski/487992/cmap_281577601_281836801_4FGL_J1320.7+3314_daily_bin163.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.57
user 0.40
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13106E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.011       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.9313       1.0000         .10000E-03   10000.    
     5 'norm      '    .10126E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.0418       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.9835       1.0000         .10000E-03   10000.    
     8 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .12905E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    14.396       1.0000         .10000E-03   10000.    
    14 'norm      '    24.224       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10853E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10165E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    17.136       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.3534       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .95615E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.8129       1.0000         .10000E-03   10000.    
    24 'norm      '    14.151       1.0000         .10000E-03   10000.    
    25 'Prefactor '    10.518       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3008       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .78581       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=   5831.367     FROM MIGRAD    STATUS=CONVERGED    692 CALLS     3324 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.277        .24009E-06** at limit **
   2  Prefactor     .10000E-03    11.419       -.55338E-07** at limit **
   3  Prefactor     23.186        75.935       -.35268E-06    .30421E-04
   4  Prefactor     3.9313        4.0386       -.53983E-07    .73371E-04
   5  norm          .10000E-03    1.5766        .26942E-06** at limit **
   6  Prefactor     4.1091        143.61       -.52666E-06   -.43049E-05
   7  Prefactor     3.0217        43.682        .44891E-05    .45593E-04
   8  norm          .10000E-03    2.4511        .30204E-06** at limit **
   9  Prefactor     .10000E-03    6.1376       -.11907E-06** at limit **
  10  norm          .10000E-03    1.7929       -.12890E-06** at limit **
  11  norm          .10000E-03    6.3716       -.44596E-06** at limit **
  12  norm          .10000E-03    2.4591       -.91235E-06** at limit **
  13  norm          14.393        7.8343        .60614E-06    .61215E-03
  14  norm          24.240        18.907       -.31559E-09    .29540E-04
  15  Prefactor     .10000E-03    2.3020       -.66414E-06** at limit **
  16  Prefactor     .10000E-03    14.898       -.87597E-07** at limit **
  17  norm          .10000E-03    2.7543        .10351E-06** at limit **
  18  Prefactor     .10000E-03    20.356       -.15417E-07** at limit **
  19  norm          17.134        9.1863       -.56159E-08   -.11516E-04
  20  Prefactor     .10000E-03    4.0593       -.77118E-08** at limit **
  21  Prefactor     7.3571        16.240        .16163E-06   -.60456E-06
  22  Prefactor     .10000E-03    690.35       -.17213E-05** at limit **
  23  Prefactor     1.8142        2.2090        .27943E-07   -.21704E-05
  24  norm          14.152        11.510        .21445E-07   -.38207E-05
  25  Prefactor     10.520        10.450       -.26617E-07    .75161E-05
  26  Normalizat    1.3005        .17700       -.63538E-07    .28536E-03
  27  Prefactor     .78591        .21766        .26079E-06    .10298E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.1863
  Prefactor  = 3.93133
  norm       = 0.0001
  Prefactor  = 4.10906
  Prefactor  = 3.02165
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 14.393
  norm       = 24.2399
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 17.1336
  Prefactor  = 0.0001
  Prefactor  = 7.35711
  Prefactor  = 0.000100001
  Prefactor  = 1.81419
  norm       = 14.1517
  Prefactor  = 10.5196
  Normalizat = 1.30055
  Prefactor  = 0.785908
 **********
 **   18 **HESSE 
 **********

 FCN=   5831.367     FROM HESSE     STATUS=OK           486 CALLS     3810 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     23.186        75.571        .83502E-04   -1.4745    
   4  Prefactor     3.9313        4.0390        .15097E-03   -1.5311    
   5  norm          .10000E-03    1.5562        .92862E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.1091        144.57        .20057E-03   -1.5303    
   7  Prefactor     3.0217        43.748        .23504E-03   -1.5360    
   8  norm          .10000E-03    4.8548        .22879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.1481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.7991        .99822E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.3442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    6.8772        .20735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          14.393        7.8851        .10556E-03   -1.4949    
  14  norm          24.240        18.856        .40694E-03   -1.4723    
  15  Prefactor     .10000E-03    3.6937        .21136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.7606        .12361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          17.134        9.1790        .96752E-04   -1.4880    
  20  Prefactor     .10000E-03    4.0653        .15025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.3571        16.225        .14791E-03   -1.5165    
  22  Prefactor     .10000E-03    711.00        .36314E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.8142        2.1981        .12145E-03   -1.5439    
  24  norm          14.152        11.506        .10648E-03   -1.4955    
  25  Prefactor     10.520        10.453        .12354E-03   -1.5059    
  26  Normalizat    1.3005        .20354        .20650E-03   -.83550    
  27  Prefactor     .78591        .25081        .31947E-03   -1.0025    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.76878e-10
Minuit parameter uncertainties:
  1  4.14305e-05
  2  1.04357e-06
  3  75.8859
  4  4.03929
  5  1.19319e-05
  6  48.8736
  7  23.0149
  8  0.000110655
  9  5.30168e-06
  10  2.2709e-06
  11  2.59715e-05
  12  0.000135804
  13  7.88564
  14  18.861
  15  0.000106168
  16  3.56419e-05
  17  4.5717e-06
  18  1.44915e-05
  19  9.1798
  20  2.23946e-07
  21  16.2349
  22  0.00160999
  23  2.19825
  24  11.5079
  25  10.4549
  26  0.203666
  27  0.251177
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  3.564e-05  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:  7.859e-01  2.512e-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.301e+00  2.037e-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.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.72e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/487992/likelihoodResults_281577601_281836801_4FGL_J1320.7+3314_daily_bin163.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) = 5831.36771213
delta logL = -0.000316610134178

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5831.36739553
delta logL = -8.90486262506e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5333       1.0000          .0000       10.000    
     3 'Normalizat'    1.3006       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78587       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5831.367     FROM MIGRAD    STATUS=FAILED        88 CALLS      243 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1700.6        .18142E-02** at limit **
   2  Index         2.5604        8.6748        .50000       -.16512E-04
   3  Normalizat    1.3005        .52167E-01    .20651E-03    .15550E-03
   4  Prefactor     .78591        .64623E-01    .31947E-03    .73771E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5831.367     FROM SIMPLEX   STATUS=UNCHANGED    185 CALLS      428 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1700.6        .67815E-03** at limit **
   2  Index         2.5604        8.6748        .46430E-05   -.16512E-04
   3  Normalizat    1.3005        .52167E-01    .82742E-07    .15550E-03
   4  Prefactor     .78591        .64623E-01    .37636E-07    .73771E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5831.367     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      462 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.972        .36285E-03** at limit **
   2  Index         2.5605        6.0800        .50000       -.16516E-04
   3  Normalizat    1.3005        .19908        .41301E-04    .15145E-03
   4  Prefactor     .78591        .24655        .12779E-04    .71173E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.56051
  Normalizat = 1.30055
  Prefactor  = 0.785909
 **********
 **   18 **HESSE 
 **********

 FCN=   5831.367     FROM HESSE     STATUS=OK            29 CALLS      491 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.228        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5605        6.2772        .50000       -.50968    
   3  Normalizat    1.3005        .19916        .82602E-05   -.83550    
   4  Prefactor     .78591        .24666        .25557E-05   -1.0025    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.90923e-10
Minuit parameter uncertainties:
  1  0.000530234
  2  4.4149
  3  0.199279
  4  0.247007
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/487992': 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) = 5831.36739534
delta logL = 1.87316800293e-07

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  5.302e-04  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.561e+00  4.415e+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:  7.859e-01  2.470e-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.301e+00  1.993e-01  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/487992/cmap_HighResolution_281577601_281836801_4FGL_J1320.7+3314_daily_bin163.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.72e-03', job_status='DONE', photon_flux_upper_limit='7.35e-08', time_completed='2021-09-07 12:51:31.141334', job_id='487992', GAL2='0.79', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1631044291.14', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='1.87e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='163' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 12:51:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 487992: <4FGL_J1320.7+3314_daily_bin163> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin163> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 12:35:59 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 12:38:37 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:38:37 2021
Terminated at Tue Sep  7 12:51:31 2021
Results reported at Tue Sep  7 12:51:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin163 200.185 33.2378 281577601 281836801 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 :                                   760.00 sec.
    Max Memory :                                 1098 MB
    Average Memory :                             325.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            932 sec.

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

