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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin1239
RA = 200.185, Dec = 33.2378
tmin = 560476801, tmax = 560736001
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='494728', job_status='RUN', time_executed='2021-09-07 13:05:09.746483', time_epoch_executed='1631045109.75' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='1239'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/494728

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/494728/ft1_4FGL_J1320.7+3314_daily_bin1239.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/494728/ft2_4FGL_J1320.7+3314_daily_bin1239.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/494728/ft1_4FGL_J1320.7+3314_daily_bin1239.fits outfile=/scratch/kocevski/494728/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin1239.fits ra=200.185 dec=33.2378 rad=12.0 tmin=560476801.0 tmax=560736001.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.81
user 3.54
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/494728/ft2_4FGL_J1320.7+3314_daily_bin1239.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/494728/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin1239.fits evtable="EVENTS" outfile="/scratch/kocevski/494728/ft1_filtered_4FGL_J1320.7+3314_daily_bin1239.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.53
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/494728/ft1_filtered_4FGL_J1320.7+3314_daily_bin1239.fits" evtable="EVENTS" scfile=/scratch/kocevski/494728/ft2_4FGL_J1320.7+3314_daily_bin1239.fits sctable="SC_DATA" outfile=/scratch/kocevski/494728/ltcube_560476801_560736001_4FGL_J1320.7+3314_daily_bin1239.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/494728/ft2_4FGL_J1320.7+3314_daily_bin1239.fits
.....................!
real 15.94
user 15.50
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/494728/ft1_filtered_4FGL_J1320.7+3314_daily_bin1239.fits evtable="EVENTS" scfile=/scratch/kocevski/494728/ft2_4FGL_J1320.7+3314_daily_bin1239.fits sctable="SC_DATA" expcube=/scratch/kocevski/494728/ltcube_560476801_560736001_4FGL_J1320.7+3314_daily_bin1239.fits outfile=/scratch/kocevski/494728/expmap_560476801_560736001_4FGL_J1320.7+3314_daily_bin1239.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/494728/ltcube_560476801_560736001_4FGL_J1320.7+3314_daily_bin1239.fits
.....................!
real 195.32
user 189.23
sys 5.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/494728/ft1_filtered_4FGL_J1320.7+3314_daily_bin1239.fits scfile=/scratch/kocevski/494728/ft2_4FGL_J1320.7+3314_daily_bin1239.fits outfile=/scratch/kocevski/494728/cmap_560476801_560736001_4FGL_J1320.7+3314_daily_bin1239.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.58
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/494728/ft1_filtered_4FGL_J1320.7+3314_daily_bin1239.fits scfile=/scratch/kocevski/494728/ft2_4FGL_J1320.7+3314_daily_bin1239.fits outfile=/scratch/kocevski/494728/cmap_HighResolution_560476801_560736001_4FGL_J1320.7+3314_daily_bin1239.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.42
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/494728/ft1_filtered_4FGL_J1320.7+3314_daily_bin1239.fits evtable="EVENTS" scfile=/scratch/kocevski/494728/ft2_4FGL_J1320.7+3314_daily_bin1239.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/494728/Model_4FGL_J1320.7+3314_daily_bin1239.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/494728/ft1_filtered_4FGL_J1320.7+3314_daily_bin1239.fits.....................!
real 31.26
user 29.65
sys 1.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    232.05       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10627E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    5.2181       1.0000         .10000E-03   10000.    
     6 'Prefactor '    76.122       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.8571       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.141       1.0000         .10000E-03   10000.    
    10 'norm      '    10.735       1.0000         .10000E-03   10000.    
    11 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .32947E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    22.025       1.0000         .10000E-03   10000.    
    14 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.740       1.0000         .10000E-03   10000.    
    16 'Prefactor '    16.839       1.0000         .10000E-03   10000.    
    17 'norm      '    4.4014       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .24386E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    62.506       1.0000         .10000E-03   10000.    
    22 'Prefactor '    158.13       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11219E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    14.744       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .83390       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0128       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=   2923.038     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     3293 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.424       -.99851E-06** at limit **
   2  Prefactor     .10000E-03    17.239       -.19962E-06** at limit **
   3  Prefactor     231.92        138.09       -.13243E-05   -.15111E-03
   4  Prefactor     .10001E-03    24.526        .12019E-04** at limit **
   5  norm          5.2187        6.4891       -.70446E-06   -.30869E-03
   6  Prefactor     76.173        80.846        .89315E-06    .99131E-04
   7  Prefactor     3.8435        109.92        .73485E-05    .10719E-03
   8  norm          .10000E-03    2.3929       -.50712E-07** at limit **
   9  Prefactor     28.133        24.475        .79947E-06    .11457E-03
  10  norm          10.735        9.1039        .25749E-07    .10635E-03
  11  norm          .10000E-03    6.9416        .79363E-06** at limit **
  12  norm          .10000E-03    6.2339       -.85658E-06** at limit **
  13  norm          22.017        13.122        .30792E-06    .57038E-03
  14  norm          .10000E-03    18.419       -.17515E-06** at limit **
  15  Prefactor     10.733        7.8742       -.10053E-06    .24882E-03
  16  Prefactor     16.866        23.572        .32735E-07    .47653E-04
  17  norm          4.4015        11.007        .13615E-05    .32073E-03
  18  Prefactor     .10000E-03    94.011        .86695E-06** at limit **
  19  norm          .10000E-03    10.174       -.46707E-06** at limit **
  20  Prefactor     .10000E-03    11.272        .17363E-06** at limit **
  21  Prefactor     62.511        39.766       -.42385E-06   -.11200E-03
  22  Prefactor     158.12        98.748       -.50293E-06   -.31144E-04
  23  Prefactor     .10000E-03    6.3893        .48788E-05** at limit **
  24  norm          14.741        22.788       -.34156E-07   -.69495E-05
  25  Prefactor     .10000E-03    16.846       -.17122E-07** at limit **
  26  Normalizat    .83392        .25988        .33365E-05   -.11255E-03
  27  Prefactor     1.0128        .29694       -.39463E-05   -.24278E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 231.918
  Prefactor  = 0.000100013
  norm       = 5.2187
  Prefactor  = 76.1731
  Prefactor  = 3.84352
  norm       = 0.0001
  Prefactor  = 28.133
  norm       = 10.735
  norm       = 0.000100001
  norm       = 0.000100002
  norm       = 22.017
  norm       = 0.0001
  Prefactor  = 10.7332
  Prefactor  = 16.8658
  norm       = 4.40147
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.5111
  Prefactor  = 158.122
  Prefactor  = 0.000100003
  norm       = 14.741
  Prefactor  = 0.0001
  Normalizat = 0.833918
  Prefactor  = 1.01275
 **********
 **   18 **HESSE 
 **********

 FCN=   2923.038     FROM HESSE     STATUS=OK           482 CALLS     3775 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     231.92        138.58        .13284E-03   -1.2650    
   4  Prefactor     .10001E-03    30.573        .30599E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.2187        6.4739        .13442E-03   -1.5251    
   6  Prefactor     76.173        81.039        .23011E-03   -1.3960    
   7  Prefactor     3.8435        108.99        .20548E-03   -1.5316    
   8  norm          .10000E-03    2.4080        .81675E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     28.133        24.211        .75521E-04   -1.4647    
  10  norm          10.735        9.0960        .12228E-03   -1.5053    
  11  norm          .10000E-03    6.9834        .13954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    14.125        .22019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          22.017        11.623        .85348E-04   -1.4769    
  14  norm          .10000E-03    18.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.733        7.8549        .10524E-03   -1.5053    
  16  Prefactor     16.866        23.560        .97601E-04   -1.4886    
  17  norm          4.4015        11.095        .19197E-03   -1.5288    
  18  Prefactor     .10000E-03    94.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    10.234        .16819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.298        .17731E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     62.511        39.836        .50755E-04   -1.4125    
  22  Prefactor     158.12        99.067        .32064E-04   -1.3186    
  23  Prefactor     .10000E-03    13.781        .20269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          14.741        22.782        .10431E-03   -1.4940    
  25  Prefactor     .10000E-03    16.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .83392        .30481        .25051E-03   -.98823    
  27  Prefactor     1.0128        .35548        .28283E-03   -.92306    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.91972e-09
Minuit parameter uncertainties:
  1  0.000236584
  2  9.35671e-05
  3  138.781
  4  0.00126014
  5  6.47472
  6  81.1567
  7  41.0173
  8  5.0786e-06
  9  24.2195
  10  9.09718
  11  0.000141407
  12  0.000352828
  13  11.6244
  14  6.26787e-05
  15  7.85565
  16  23.5728
  17  11.1006
  18  0.000545841
  19  0.000113068
  20  2.23937e-05
  21  39.8534
  22  99.1717
  23  0.000384967
  24  22.7953
  25  1.22345e-05
  26  0.305441
  27  0.356311
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.687e+01  2.357e+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.013e+00  3.563e-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.339e-01  3.054e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/494728/likelihoodResults_560476801_560736001_4FGL_J1320.7+3314_daily_bin1239.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) = 2922.90842413
delta logL = 0.129202933796

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2922.90777645
delta logL = 0.129850617584

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.559       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9302       1.0000          .0000       10.000    
     3 'Normalizat'    .85966       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98801       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=   2922.908     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      266 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.512        1632.4        .20208E-02    .29339E-05
   2  Index         1.9282        7.4192        .19981       -.54542E-05
   3  Normalizat    .85974        .38464        .44384E-01    .11255E-04
   4  Prefactor     .98802        .30880        .46117E-01    .87143E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.5121
  Index      = 1.92818
  Normalizat = 0.859735
  Prefactor  = 0.98802
 **********
 **   18 **HESSE 
 **********

 FCN=   2922.908     FROM HESSE     STATUS=OK            33 CALLS      299 TOTAL
                     EDM=   .38E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.512        29.001        .80832E-04   -1.4717    
   2  Index         1.9282        .92987        .10267E-01   -.66158    
   3  Normalizat    .85974        .28332        .24726E-03   -.97890    
   4  Prefactor     .98802        .34871        .28558E-03   -.93130    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.8469e-11
Minuit parameter uncertainties:
  1  29.0172
  2  0.9387
  3  0.283808
  4  0.349504
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/494728': 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) = 2922.90777251
delta logL = 0.129854553201

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  2.451e+01  2.902e+01  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  1.928e+00  9.387e-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:  9.880e-01  3.495e-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.597e-01  2.838e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.21
Ra Dec: 200.185 33.238
Photon Index (Free Index): 1.93 +/- 0.94
Photon Flux (Free Index): 2.57e-08 +/- 4.12e-08
Energy Flux (Free Index): 2.13e-05 +/- 3.92e-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/494728/cmap_HighResolution_560476801_560736001_4FGL_J1320.7+3314_daily_bin1239.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.37e-02', comment='SUCCESS', energy_flux2='2.13e-05', dlogl='1.30e-01', photon_flux2='2.57e-08', job_status='DONE', time_completed='2021-09-07 13:14:23.629333', photon_index_error2='0.94', photon_index2='1.93', ts='0.93', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.76e-07', energy_flux_error2='3.92e-05', EG='0.83', time_epoch_completed='1631045663.63', return_code='0', job_id='494728', GAL2='0.99', EG2='0.86', return_code2='0', photon_flux_error2='4.12e-08', ts2='1.21', photon_index='2.51' WHERE bin_id='1239' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:14:23 PDT 2021


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

Job <4FGL_J1320.7+3314_daily_bin1239> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep  7 13:00:50 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 13:01:05 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 13:01:05 2021
Terminated at Tue Sep  7 13:14:24 2021
Results reported at Tue Sep  7 13:14:24 2021

Your job looked like:

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

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

