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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin881
RA = 200.185, Dec = 33.2378
tmin = 467683201, tmax = 467942401
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='493447', job_status='RUN', time_executed='2021-09-07 12:55:53.624236', time_epoch_executed='1631044553.62' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='881'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/493447

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/493447/ft1_4FGL_J1320.7+3314_daily_bin881.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/493447/ft2_4FGL_J1320.7+3314_daily_bin881.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/493447/ft1_4FGL_J1320.7+3314_daily_bin881.fits outfile=/scratch/kocevski/493447/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin881.fits ra=200.185 dec=33.2378 rad=12.0 tmin=467683201.0 tmax=467942401.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.48
user 3.24
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/493447/ft1_filtered_4FGL_J1320.7+3314_daily_bin881.fits" evtable="EVENTS" scfile=/scratch/kocevski/493447/ft2_4FGL_J1320.7+3314_daily_bin881.fits sctable="SC_DATA" outfile=/scratch/kocevski/493447/ltcube_467683201_467942401_4FGL_J1320.7+3314_daily_bin881.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/493447/ft2_4FGL_J1320.7+3314_daily_bin881.fits
.....................!
real 14.60
user 14.22
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/493447/ft1_filtered_4FGL_J1320.7+3314_daily_bin881.fits evtable="EVENTS" scfile=/scratch/kocevski/493447/ft2_4FGL_J1320.7+3314_daily_bin881.fits sctable="SC_DATA" expcube=/scratch/kocevski/493447/ltcube_467683201_467942401_4FGL_J1320.7+3314_daily_bin881.fits outfile=/scratch/kocevski/493447/expmap_467683201_467942401_4FGL_J1320.7+3314_daily_bin881.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/493447/ltcube_467683201_467942401_4FGL_J1320.7+3314_daily_bin881.fits
.....................!
real 191.88
user 187.28
sys 4.09

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/493447/ft1_filtered_4FGL_J1320.7+3314_daily_bin881.fits scfile=/scratch/kocevski/493447/ft2_4FGL_J1320.7+3314_daily_bin881.fits outfile=/scratch/kocevski/493447/cmap_467683201_467942401_4FGL_J1320.7+3314_daily_bin881.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/493447/ft1_filtered_4FGL_J1320.7+3314_daily_bin881.fits scfile=/scratch/kocevski/493447/ft2_4FGL_J1320.7+3314_daily_bin881.fits outfile=/scratch/kocevski/493447/cmap_HighResolution_467683201_467942401_4FGL_J1320.7+3314_daily_bin881.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=200.185 yref=33.2378 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/493447/ft1_filtered_4FGL_J1320.7+3314_daily_bin881.fits evtable="EVENTS" scfile=/scratch/kocevski/493447/ft2_4FGL_J1320.7+3314_daily_bin881.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/493447/Model_4FGL_J1320.7+3314_daily_bin881.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/493447/ft1_filtered_4FGL_J1320.7+3314_daily_bin881.fits....................!
real 50.24
user 48.86
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11836E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.373       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .13939E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11819E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.8167       1.0000         .10000E-03   10000.    
    11 'norm      '    2.9356       1.0000         .10000E-03   10000.    
    12 'norm      '    3.1570       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    24.253       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.9615       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.7579       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .22155E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    10.552       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    104.54       1.0000         .10000E-03   10000.    
    22 'Prefactor '    105.88       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.6809       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1388       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .88925       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=   5909.989     FROM MIGRAD    STATUS=CONVERGED    678 CALLS     3317 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    7.0954        .79291E-01** at limit **
   2  Prefactor     18.379        21.492        .23360E-02   -.11036E-03
   3  Prefactor     .10000E-03    43.724        .90712E-02** at limit **
   4  Prefactor     .10000E-03    1.9418        .90712E-02** at limit **
   5  norm          .10000E-03    4.4271        .90712E-02** at limit **
   6  Prefactor     .10000E-03    105.40        .90712E-02** at limit **
   7  Prefactor     .10003E-03    23.999        .90712E-02** at limit **
   8  norm          .10000E-03    2.4926        .90712E-02** at limit **
   9  Prefactor     .10000E-03    7.1513        .90712E-02** at limit **
  10  norm          2.8177        3.6252        .60589E-02    .94807E-04
  11  norm          2.9316        10.406        .59267E-02    .17375E-03
  12  norm          3.1608        3.1278        .57030E-02    .12210E-03
  13  norm          .10000E-03    4.6845        .90712E-02** at limit **
  14  norm          24.249        24.689        .20335E-02   -.14454E-03
  15  Prefactor     1.9515        3.6879        .74044E-02    .73037E-03
  16  Prefactor     .10000E-03    13.954        .90712E-02** at limit **
  17  norm          4.7595        8.2112        .46115E-02   -.30122E-03
  18  Prefactor     .10000E-03    182.02        .90712E-02** at limit **
  19  norm          10.552        10.791        .30836E-02   -.36809E-03
  20  Prefactor     .10004E-03    22.432        .90712E-02** at limit **
  21  Prefactor     104.53        35.616        .98321E-03    .53338E-03
  22  Prefactor     105.88        71.244        .97705E-03    .73365E-03
  23  Prefactor     8.6810        4.9381        .34012E-02    .20916E-03
  24  norm          .10000E-03    7.3536        .90712E-02** at limit **
  25  Prefactor     .10000E-03    7.5852        .90712E-02** at limit **
  26  Normalizat    1.1387        .18196        .53177E-01    .44020E-05
  27  Prefactor     .88915        .21143        .69994E-01    .15017E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100053
  Prefactor  = 18.3792
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100026
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.81773
  norm       = 2.93156
  norm       = 3.16082
  norm       = 0.0001
  norm       = 24.2486
  Prefactor  = 1.95146
  Prefactor  = 0.0001
  norm       = 4.75953
  Prefactor  = 0.000100003
  norm       = 10.5517
  Prefactor  = 0.000100044
  Prefactor  = 104.533
  Prefactor  = 105.875
  Prefactor  = 8.68105
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.13875
  Prefactor  = 0.889146
 **********
 **   18 **HESSE 
 **********

 FCN=   5909.989     FROM HESSE     STATUS=OK           482 CALLS     3799 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    25.693        .39737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.379        21.493        .93440E-04   -1.4850    
   3  Prefactor     .10000E-03    43.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.9440        .10460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.6215        .31557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    106.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10003E-03    24.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.5296        .11846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.1789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.8177        3.6104        .15977E-03   -1.5372    
  11  norm          2.9316        10.389        .23707E-03   -1.5366    
  12  norm          3.1608        3.0971        .12744E-03   -1.5352    
  13  norm          .10000E-03    4.7078        .16162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          24.249        24.653        .81338E-04   -1.4723    
  15  Prefactor     1.9515        3.6498        .18581E-03   -1.5429    
  16  Prefactor     .10000E-03    14.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.7595        8.1594        .18446E-03   -1.5272    
  18  Prefactor     .10000E-03    183.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          10.552        10.752        .12334E-03   -1.5058    
  20  Prefactor     .10004E-03    22.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     104.53        35.641        .39328E-04   -1.3660    
  22  Prefactor     105.88        71.431        .39082E-04   -1.3646    
  23  Prefactor     8.6810        4.9388        .12334E-03   -1.5119    
  24  norm          .10000E-03    7.3757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    7.5872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1387        .21969        .23512E-03   -.88517    
  27  Prefactor     .88915        .25357        .30967E-03   -.96521    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.51434e-09
Minuit parameter uncertainties:
  1  0.00233805
  2  21.5017
  3  0.000285417
  4  6.62158e-08
  5  7.72064e-07
  6  0.00103292
  7  0.00159292
  8  2.73324e-07
  9  3.22298e-05
  10  3.61065
  11  10.3953
  12  3.09724
  13  4.46866e-07
  14  24.6632
  15  3.65026
  16  1.416e-05
  17  8.16131
  18  0.00155466
  19  10.7542
  20  0.00199158
  21  35.6482
  22  71.4895
  23  4.93904
  24  7.30815e-05
  25  4.31889e-05
  26  0.219865
  27  0.253907
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  1.416e-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:  8.891e-01  2.539e-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.139e+00  2.199e-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: 8.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/493447/likelihoodResults_467683201_467942401_4FGL_J1320.7+3314_daily_bin881.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) = 5909.989777
delta logL = -0.000340043246069

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5909.9894409
delta logL = -3.94317976316e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11062E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5358       1.0000          .0000       10.000    
     3 'Normalizat'    1.1382       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88981       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=   5909.981     FROM MIGRAD    STATUS=CONVERGED    168 CALLS      326 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19056        15.393        .28643E-01   -.12577E-02
   2  Index         3.8400        1.2004        .50000        .11087E-05
   3  Normalizat    1.1319        .16811E-01    .23512E-03    .12302E-03
   4  Prefactor     .89391        .19838E-01    .30967E-03    .92551E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.19056
  Index      = 3.83999
  Normalizat = 1.13189
  Prefactor  = 0.893912
 **********
 **   18 **HESSE 
 **********

 FCN=   5909.981     FROM HESSE     STATUS=OK            31 CALLS      357 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19056        3.7893        .15801E-02   -1.5795    
   2  Index         3.8400        3.1885        .50203E-02   -.23413    
   3  Normalizat    1.1319        .21716        .47024E-04   -.88734    
   4  Prefactor     .89391        .25237        .12387E-04   -.96354    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.66068e-11
Minuit parameter uncertainties:
  1  1.69919
  2  3.47733
  3  0.217332
  4  0.252699
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/493447': 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) = 5909.98083629
delta logL = 0.00860066568566

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.906e-01  1.699e+00  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  3.840e+00  3.477e+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:  8.939e-01  2.527e-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.132e+00  2.173e-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/493447/cmap_HighResolution_467683201_467942401_4FGL_J1320.7+3314_daily_bin881.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.33e-03', job_status='DONE', photon_flux_upper_limit='8.14e-08', time_completed='2021-09-07 13:08:21.305034', job_id='493447', GAL2='0.89', fit_tolerance='1e-08', EG2='1.13', EG='1.14', time_epoch_completed='1631045301.31', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='8.60e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='881' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:08:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 493447: <4FGL_J1320.7+3314_daily_bin881> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin881> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 12:55:28 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 12:55: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:55:37 2021
Terminated at Tue Sep  7 13:08:22 2021
Results reported at Tue Sep  7 13:08:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin881 200.185 33.2378 467683201 467942401 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 :                                   746.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   764 sec.
    Turnaround time :                            774 sec.

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

