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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin1403
RA = 200.185, Dec = 33.2378
tmin = 602985601, tmax = 603244801
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='494918', job_status='RUN', time_executed='2021-09-07 13:05:27.673368', time_epoch_executed='1631045127.67' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='1403'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/494918

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/494918/ft1_4FGL_J1320.7+3314_daily_bin1403.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/494918/ft2_4FGL_J1320.7+3314_daily_bin1403.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/494918/ft1_4FGL_J1320.7+3314_daily_bin1403.fits outfile=/scratch/kocevski/494918/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin1403.fits ra=200.185 dec=33.2378 rad=12.0 tmin=602985601.0 tmax=603244801.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.08
user 2.86
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/494918/ft1_filtered_4FGL_J1320.7+3314_daily_bin1403.fits" evtable="EVENTS" scfile=/scratch/kocevski/494918/ft2_4FGL_J1320.7+3314_daily_bin1403.fits sctable="SC_DATA" outfile=/scratch/kocevski/494918/ltcube_602985601_603244801_4FGL_J1320.7+3314_daily_bin1403.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/494918/ft2_4FGL_J1320.7+3314_daily_bin1403.fits
.....................!
real 18.81
user 18.28
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/494918/ft1_filtered_4FGL_J1320.7+3314_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/494918/ft2_4FGL_J1320.7+3314_daily_bin1403.fits sctable="SC_DATA" expcube=/scratch/kocevski/494918/ltcube_602985601_603244801_4FGL_J1320.7+3314_daily_bin1403.fits outfile=/scratch/kocevski/494918/expmap_602985601_603244801_4FGL_J1320.7+3314_daily_bin1403.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/494918/ltcube_602985601_603244801_4FGL_J1320.7+3314_daily_bin1403.fits
.....................!
real 192.35
user 186.62
sys 4.82

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/494918/ft1_filtered_4FGL_J1320.7+3314_daily_bin1403.fits scfile=/scratch/kocevski/494918/ft2_4FGL_J1320.7+3314_daily_bin1403.fits outfile=/scratch/kocevski/494918/cmap_602985601_603244801_4FGL_J1320.7+3314_daily_bin1403.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.62
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/494918/ft1_filtered_4FGL_J1320.7+3314_daily_bin1403.fits scfile=/scratch/kocevski/494918/ft2_4FGL_J1320.7+3314_daily_bin1403.fits outfile=/scratch/kocevski/494918/cmap_HighResolution_602985601_603244801_4FGL_J1320.7+3314_daily_bin1403.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.58
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/494918/ft1_filtered_4FGL_J1320.7+3314_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/494918/ft2_4FGL_J1320.7+3314_daily_bin1403.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/494918/Model_4FGL_J1320.7+3314_daily_bin1403.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/494918/ft1_filtered_4FGL_J1320.7+3314_daily_bin1403.fits.....................!
real 48.48
user 46.60
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8532       1.0000         .10000E-03   10000.    
     5 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.9669       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    46.827       1.0000         .10000E-03   10000.    
    12 'norm      '    27.630       1.0000         .10000E-03   10000.    
    13 'norm      '    2.7543       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.807       1.0000         .10000E-03   10000.    
    17 'norm      '    1.2179       1.0000         .10000E-03   10000.    
    18 'Prefactor '    42.028       1.0000         .10000E-03   10000.    
    19 'norm      '    29.703       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    49.790       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.2224       1.0000         .10000E-03   10000.    
    24 'norm      '    12.211       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .96613       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1136       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=   5744.945     FROM MIGRAD    STATUS=CONVERGED    629 CALLS     3229 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.6101       -.22029E-05** at limit **
   2  Prefactor     .10000E-03    9.3111        .27306E-05** at limit **
   3  Prefactor     .10000E-03    41.036       -.26472E-05** at limit **
   4  Prefactor     2.8532        4.9445       -.48656E-07   -.20166E-04
   5  norm          .10000E-03    2.1259        .58834E-07** at limit **
   6  Prefactor     .10000E-03    21.567        .30583E-05** at limit **
   7  Prefactor     .10000E-03    18.249       -.88156E-05** at limit **
   8  norm          4.9670        3.7035       -.86215E-06    .18797E-03
   9  Prefactor     .10000E-03    5.7058        .28159E-05** at limit **
  10  norm          .10000E-03    1.5556       -.16499E-08** at limit **
  11  norm          46.826        20.833       -.28508E-06    .69783E-05
  12  norm          27.618        11.898       -.24041E-05   -.50991E-03
  13  norm          2.7603        32.392        .13190E-04    .65079E-04
  14  norm          .10000E-03    6.6882       -.85725E-06** at limit **
  15  Prefactor     .10000E-03    1.2153       -.16628E-07** at limit **
  16  Prefactor     18.807        12.877        .26625E-06   -.85566E-04
  17  norm          1.2131        .79450       -.56535E-07   -.82397E-03
  18  Prefactor     42.026        47.457       -.11985E-05    .51612E-05
  19  norm          29.712        12.861        .12097E-07   -.68127E-05
  20  Prefactor     .10000E-03    21.933        .60412E-05** at limit **
  21  Prefactor     .10000E-03    13.081        .14689E-05** at limit **
  22  Prefactor     49.791        72.176        .15915E-05   -.10367E-04
  23  Prefactor     5.2228        4.3369       -.71471E-06    .58255E-04
  24  norm          12.211        11.915       -.12314E-06   -.23487E-04
  25  Prefactor     .10000E-03    5.4934       -.20114E-05** at limit **
  26  Normalizat    .96600        .19317        .14996E-05   -.12038E-03
  27  Prefactor     1.1137        .22592       -.65163E-06   -.77117E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.85321
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.96696
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 46.8261
  norm       = 27.618
  norm       = 2.76033
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.8072
  norm       = 1.21312
  Prefactor  = 42.0263
  norm       = 29.7118
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 49.7909
  Prefactor  = 5.22279
  norm       = 12.2109
  Prefactor  = 0.0001
  Normalizat = 0.966001
  Prefactor  = 1.11375
 **********
 **   18 **HESSE 
 **********

 FCN=   5744.945     FROM HESSE     STATUS=OK           480 CALLS     3709 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.6117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.2883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    41.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.8532        4.9269        .21529E-03   -1.5370    
   5  norm          .10000E-03    2.1331        .10791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.9670        3.6955        .12217E-03   -1.5262    
   9  Prefactor     .10000E-03    5.6875        .17644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.5590        .92318E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          46.826        20.837        .58594E-04   -1.4338    
  12  norm          27.618        11.464        .76215E-04   -1.4656    
  13  norm          2.7603        30.204        .24528E-03   -1.5376    
  14  norm          .10000E-03    6.6862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.2224        .81527E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     18.807        12.875        .92356E-04   -1.4840    
  17  norm          1.2131        6.1096        .17038E-02   -1.5488    
  18  Prefactor     42.026        47.439        .61836E-04   -1.4411    
  19  norm          29.712        13.796        .73514E-04   -1.4617    
  20  Prefactor     .10000E-03    22.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     49.791        72.521        .56833E-04   -1.4296    
  23  Prefactor     5.2228        4.3411        .13518E-03   -1.5251    
  24  norm          12.211        11.928        .57317E-03   -1.5009    
  25  Prefactor     .10000E-03    5.4819        .17329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .96600        .23334        .25299E-03   -.94178    
  27  Prefactor     1.1137        .27256        .29065E-03   -.89028    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9572e-09
Minuit parameter uncertainties:
  1  3.94762e-05
  2  4.96199e-05
  3  0.00012633
  4  4.92759
  5  6.68557e-06
  6  8.47949e-05
  7  0.000267724
  8  3.69564
  9  3.68632e-05
  10  7.7061e-07
  11  20.8401
  12  11.4647
  13  18.273
  14  1.52241e-05
  15  3.42334e-06
  16  12.8773
  17  5.44555
  18  47.4817
  19  13.7977
  20  0.00019944
  21  3.51394e-05
  22  72.65
  23  4.34139
  24  11.9303
  25  2.65936e-05
  26  0.233583
  27  0.272898
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.881e+01  1.288e+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:  1.114e+00  2.729e-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.660e-01  2.336e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.83
Ra Dec: 200.185 33.238
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 4.81e-08 +/- 3.29e-08
Energy Flux (Fixed Index): 1.38e-05 +/- 9.48e-06

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) = 5744.0959548
delta logL = 0.848611912269

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5744.09456006
delta logL = 0.850006646177

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.178       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8291       1.0000          .0000       10.000    
     3 'Normalizat'    .99106       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0912       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=   5744.095     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      298 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.225        20.535        .71758E-04   -.37764E-03
   2  Index         1.8292        .45729        .75434E-02    .39004E-05
   3  Normalizat    .99111        .21812        .25021E-03    .21355E-05
   4  Prefactor     1.0912        .26722        .29307E-03    .23586E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.2252
  Index      = 1.82923
  Normalizat = 0.991106
  Prefactor  = 1.09116
 **********
 **   18 **HESSE 
 **********

 FCN=   5744.095     FROM HESSE     STATUS=OK            25 CALLS      323 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.225        20.502        .14352E-04   -1.4590    
   2  Index         1.8292        .45655        .30173E-03   -.68691    
   3  Normalizat    .99111        .21835        .10008E-04   -.93329    
   4  Prefactor     1.0912        .26752        .11723E-04   -.89749    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.97705e-10
Minuit parameter uncertainties:
  1  20.5062
  2  0.457617
  3  0.218546
  4  0.267846
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/494918': 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) = 5744.0945571
delta logL = 0.850009612922

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  3.123e+01  2.051e+01  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  1.829e+00  4.576e-01  0.000e+00  1.000e+01 (-1.000e+00)
327        Scale:  1.074e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  1.091e+00  2.678e-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.911e-01  2.185e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.57
Ra Dec: 200.185 33.238
Photon Index (Free Index): 1.83 +/- 0.46
Photon Flux (Free Index): 2.89e-08 +/- 2.40e-08
Energy Flux (Free Index): 3.17e-05 +/- 3.36e-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/494918/cmap_HighResolution_602985601_603244801_4FGL_J1320.7+3314_daily_bin1403.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.81e-08', energy_flux2='3.17e-05', photon_flux_error='3.29e-08', dlogl='8.50e-01', energy_flux='1.38e-05', photon_flux2='2.89e-08', job_status='DONE', time_completed='2021-09-07 13:16:32.835792', photon_index_error2='0.46', photon_index2='1.83', ts='4.83', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='3.36e-05', EG='0.97', time_epoch_completed='1631045792.84', return_code='0', job_id='494918', GAL2='1.09', EG2='0.99', return_code2='0', energy_flux_error='9.48e-06', photon_flux_error2='2.40e-08', ts2='6.57', photon_index='2.51' WHERE bin_id='1403' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:16:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 494918: <4FGL_J1320.7+3314_daily_bin1403> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin1403> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep  7 13:01:12 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 13:02:44 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:44 2021
Terminated at Tue Sep  7 13:16:33 2021
Results reported at Tue Sep  7 13:16:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin1403 200.185 33.2378 602985601 603244801 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 :                                   661.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            921 sec.

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

