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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin966
RA = 200.185, Dec = 33.2378
tmin = 489715201, tmax = 489974401
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='493579', job_status='RUN', time_executed='2021-09-07 12:56:12.399692', time_epoch_executed='1631044572.4' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='966'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/493579

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/493579/ft1_4FGL_J1320.7+3314_daily_bin966.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/493579/ft2_4FGL_J1320.7+3314_daily_bin966.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/493579/ft1_4FGL_J1320.7+3314_daily_bin966.fits outfile=/scratch/kocevski/493579/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin966.fits ra=200.185 dec=33.2378 rad=12.0 tmin=489715201.0 tmax=489974401.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 4.15
user 3.87
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/493579/ft1_filtered_4FGL_J1320.7+3314_daily_bin966.fits" evtable="EVENTS" scfile=/scratch/kocevski/493579/ft2_4FGL_J1320.7+3314_daily_bin966.fits sctable="SC_DATA" outfile=/scratch/kocevski/493579/ltcube_489715201_489974401_4FGL_J1320.7+3314_daily_bin966.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/493579/ft2_4FGL_J1320.7+3314_daily_bin966.fits
.....................!
real 16.81
user 16.41
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/493579/ft1_filtered_4FGL_J1320.7+3314_daily_bin966.fits evtable="EVENTS" scfile=/scratch/kocevski/493579/ft2_4FGL_J1320.7+3314_daily_bin966.fits sctable="SC_DATA" expcube=/scratch/kocevski/493579/ltcube_489715201_489974401_4FGL_J1320.7+3314_daily_bin966.fits outfile=/scratch/kocevski/493579/expmap_489715201_489974401_4FGL_J1320.7+3314_daily_bin966.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/493579/ltcube_489715201_489974401_4FGL_J1320.7+3314_daily_bin966.fits
.....................!
real 193.47
user 188.13
sys 4.61

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/493579/ft1_filtered_4FGL_J1320.7+3314_daily_bin966.fits scfile=/scratch/kocevski/493579/ft2_4FGL_J1320.7+3314_daily_bin966.fits outfile=/scratch/kocevski/493579/cmap_489715201_489974401_4FGL_J1320.7+3314_daily_bin966.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.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/493579/ft1_filtered_4FGL_J1320.7+3314_daily_bin966.fits scfile=/scratch/kocevski/493579/ft2_4FGL_J1320.7+3314_daily_bin966.fits outfile=/scratch/kocevski/493579/cmap_HighResolution_489715201_489974401_4FGL_J1320.7+3314_daily_bin966.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.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/493579/ft1_filtered_4FGL_J1320.7+3314_daily_bin966.fits evtable="EVENTS" scfile=/scratch/kocevski/493579/ft2_4FGL_J1320.7+3314_daily_bin966.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/493579/Model_4FGL_J1320.7+3314_daily_bin966.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/493579/ft1_filtered_4FGL_J1320.7+3314_daily_bin966.fits.....................!
real 47.86
user 46.46
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.2564       1.0000         .10000E-03   10000.    
     5 'norm      '    2.8958       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    35.312       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5529       1.0000         .10000E-03   10000.    
    10 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.4239       1.0000         .10000E-03   10000.    
    12 'norm      '    .13231E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.8352       1.0000         .10000E-03   10000.    
    14 'norm      '    16.938       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.2292       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10252E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.737       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .16171E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.2070       1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.643       1.0000         .10000E-03   10000.    
    22 'Prefactor '    189.02       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .96430       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    9.5316       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1251       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .78755       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=   5419.261     FROM MIGRAD    STATUS=CONVERGED    671 CALLS     3398 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.350       -.54839E-06** at limit **
   2  Prefactor     .10000E-03    7.8470       -.11764E-06** at limit **
   3  Prefactor     .10000E-03    118.77        .12628E-05** at limit **
   4  Prefactor     8.2579        9.2841       -.11580E-06    .27768E-03
   5  norm          2.8967        4.2349        .42577E-06    .62630E-03
   6  Prefactor     .10000E-03    25.050        .55828E-07** at limit **
   7  Prefactor     35.321        29.264       -.12016E-05   -.18611E-03
   8  norm          .10000E-03    1.5677       -.16383E-07** at limit **
   9  Prefactor     2.5531        33.928        .28051E-05    .21319E-03
  10  norm          .10000E-03    3.4655        .72590E-07** at limit **
  11  norm          3.4236        6.8619        .49053E-06    .37706E-03
  12  norm          .10000E-03    3.0803        .57753E-06** at limit **
  13  norm          1.8429        6.0971       -.16777E-05   -.99110E-04
  14  norm          16.938        16.156        .59242E-08    .15171E-04
  15  Prefactor     3.2287        3.8227       -.62952E-06    .32472E-03
  16  Prefactor     .10000E-03    45.750       -.13067E-05** at limit **
  17  norm          10.736        8.0115       -.11402E-07    .17755E-03
  18  Prefactor     .10000E-03    19.147       -.85314E-06** at limit **
  19  norm          .10012E-03    14.805       -.32587E-05** at limit **
  20  Prefactor     8.2057        12.841       -.81765E-07    .16874E-04
  21  Prefactor     20.646        28.611        .22272E-07    .66081E-05
  22  Prefactor     189.02        93.765        .42580E-06    .58057E-05
  23  Prefactor     .96402        3.6115        .21611E-06    .14237E-03
  24  norm          .10000E-03    13.978        .84735E-06** at limit **
  25  Prefactor     9.5312        15.624        .87610E-07   -.14870E-04
  26  Normalizat    1.1251        .18942       -.60748E-06   -.57223E-04
  27  Prefactor     .78763        .21789        .65497E-07   -.32632E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 8.25795
  norm       = 2.8967
  Prefactor  = 0.0001
  Prefactor  = 35.321
  norm       = 0.0001
  Prefactor  = 2.55308
  norm       = 0.0001
  norm       = 3.42362
  norm       = 0.0001
  norm       = 1.8429
  norm       = 16.9377
  Prefactor  = 3.22869
  Prefactor  = 0.0001
  norm       = 10.7358
  Prefactor  = 0.0001
  norm       = 0.000100123
  Prefactor  = 8.20573
  Prefactor  = 20.6458
  Prefactor  = 189.016
  Prefactor  = 0.964016
  norm       = 0.0001
  Prefactor  = 9.53124
  Normalizat = 1.12508
  Prefactor  = 0.787628
 **********
 **   18 **HESSE 
 **********

 FCN=   5419.261     FROM HESSE     STATUS=OK           492 CALLS     3890 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.8512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    119.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.2579        9.1099        .69762E-03   -1.5133    
   5  norm          2.8967        4.4408        .88416E-03   -1.5368    
   6  Prefactor     .10000E-03    25.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     35.321        29.710        .67439E-04   -1.4519    
   8  norm          .10000E-03    1.5754        .89995E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.5531        36.542        .12777E-02   -1.5388    
  10  norm          .10000E-03    3.5049        .13365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.4236        6.9858        .10930E-02   -1.5338    
  12  norm          .10000E-03    8.7517        .21171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.8429        6.1426        .30800E-03   -1.5436    
  14  norm          16.938        16.154        .97316E-04   -1.4885    
  15  Prefactor     3.2287        3.7591        .14214E-03   -1.5349    
  16  Prefactor     .10000E-03    45.812        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.736        7.6983        .12227E-03   -1.5053    
  18  Prefactor     .10000E-03    19.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10012E-03    33.460        .31799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.2057        12.819        .13995E-03   -1.5135    
  21  Prefactor     20.646        28.622        .88156E-04   -1.4799    
  22  Prefactor     189.02        94.176        .29373E-04   -1.2950    
  23  Prefactor     .96402        3.6018        .25699E-03   -1.5512    
  24  norm          .10000E-03    14.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     9.5312        15.620        .12980E-03   -1.5090    
  26  Normalizat    1.1251        .22470        .21970E-03   -.88951    
  27  Prefactor     .78763        .25737        .30735E-03   -1.0019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.08446e-09
Minuit parameter uncertainties:
  1  4.30013e-05
  2  1.44954e-05
  3  0.000801838
  4  9.11146
  5  4.44132
  6  1.65822e-05
  7  29.722
  8  1.59378e-06
  9  19.3317
  10  1.91129e-05
  11  6.98747
  12  6.01868e-05
  13  6.1447
  14  16.1586
  15  3.75939
  16  0.000232237
  17  7.699
  18  0.000157956
  19  0.00406612
  20  12.8234
  21  28.6411
  22  94.251
  23  3.60264
  24  0.000111116
  25  15.6268
  26  0.224896
  27  0.257766
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  2.322e-04  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.876e-01  2.578e-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.125e+00  2.249e-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: 9.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/493579/likelihoodResults_489715201_489974401_4FGL_J1320.7+3314_daily_bin966.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) = 5419.26151828
delta logL = -0.000104086493593

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5419.26141319
delta logL = 1.00585020846e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13881E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8079       1.0000          .0000       10.000    
     3 'Normalizat'    1.1251       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78763       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=   5419.257     FROM MIGRAD    STATUS=CONVERGED    134 CALLS      344 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .40947        4.9287        .65882E-01    .38835E-04
   2  Index         3.3710        .57779        .50000       -.17122E-04
   3  Normalizat    1.1194        .65325E-02    .37061E-01   -.37613E-03
   4  Prefactor     .79132        .78259E-02    .69311E-01   -.70411E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.409467
  Index      = 3.37096
  Normalizat = 1.11945
  Prefactor  = 0.791316
 **********
 **   18 **HESSE 
 **********

 FCN=   5419.257     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      377 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .40947        2173.7        .21041E-02   -1.5580    
   2  Index         3.3710        7.8743        .58061E-02   -.33187    
   3  Normalizat    1.1194        .31998        .22016E-03   -.89130    
   4  Prefactor     .79132        .25758        .30668E-03   -1.0005    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.36077e-09
Minuit parameter uncertainties:
  1  62.0676
  2  53.2576
  3  0.320533
  4  0.257976
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/493579': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5419.25730518
delta logL = 0.00410901027499

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  4.095e-01  6.207e+01  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  3.371e+00  5.326e+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:  7.913e-01  2.580e-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.119e+00  3.205e-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/493579/cmap_HighResolution_489715201_489974401_4FGL_J1320.7+3314_daily_bin966.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.41e-03', job_status='DONE', photon_flux_upper_limit='9.52e-08', time_completed='2021-09-07 13:08:24.998120', job_id='493579', GAL2='0.79', fit_tolerance='1e-08', EG2='1.12', EG='1.13', time_epoch_completed='1631045305.0', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='4.11e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='966' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:08:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 493579: <4FGL_J1320.7+3314_daily_bin966> in cluster <slac> Done

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

Your job looked like:

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

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

