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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin1230
RA = 200.185, Dec = 33.2378
tmin = 558144001, tmax = 558403201
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='494717', job_status='RUN', time_executed='2021-09-07 13:03:07.166122', time_epoch_executed='1631044987.17' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='1230'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/494717

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/494717/ft1_4FGL_J1320.7+3314_daily_bin1230.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/494717/ft2_4FGL_J1320.7+3314_daily_bin1230.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/494717/ft1_4FGL_J1320.7+3314_daily_bin1230.fits outfile=/scratch/kocevski/494717/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin1230.fits ra=200.185 dec=33.2378 rad=12.0 tmin=558144001.0 tmax=558403201.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.48
user 4.16
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/494717/ft1_filtered_4FGL_J1320.7+3314_daily_bin1230.fits" evtable="EVENTS" scfile=/scratch/kocevski/494717/ft2_4FGL_J1320.7+3314_daily_bin1230.fits sctable="SC_DATA" outfile=/scratch/kocevski/494717/ltcube_558144001_558403201_4FGL_J1320.7+3314_daily_bin1230.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/494717/ft2_4FGL_J1320.7+3314_daily_bin1230.fits
.....................!
real 17.39
user 16.89
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/494717/ft1_filtered_4FGL_J1320.7+3314_daily_bin1230.fits evtable="EVENTS" scfile=/scratch/kocevski/494717/ft2_4FGL_J1320.7+3314_daily_bin1230.fits sctable="SC_DATA" expcube=/scratch/kocevski/494717/ltcube_558144001_558403201_4FGL_J1320.7+3314_daily_bin1230.fits outfile=/scratch/kocevski/494717/expmap_558144001_558403201_4FGL_J1320.7+3314_daily_bin1230.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/494717/ltcube_558144001_558403201_4FGL_J1320.7+3314_daily_bin1230.fits
.....................!
real 193.30
user 187.81
sys 4.46

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/494717/ft1_filtered_4FGL_J1320.7+3314_daily_bin1230.fits scfile=/scratch/kocevski/494717/ft2_4FGL_J1320.7+3314_daily_bin1230.fits outfile=/scratch/kocevski/494717/cmap_558144001_558403201_4FGL_J1320.7+3314_daily_bin1230.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/494717/ft1_filtered_4FGL_J1320.7+3314_daily_bin1230.fits scfile=/scratch/kocevski/494717/ft2_4FGL_J1320.7+3314_daily_bin1230.fits outfile=/scratch/kocevski/494717/cmap_HighResolution_558144001_558403201_4FGL_J1320.7+3314_daily_bin1230.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/494717/ft1_filtered_4FGL_J1320.7+3314_daily_bin1230.fits evtable="EVENTS" scfile=/scratch/kocevski/494717/ft2_4FGL_J1320.7+3314_daily_bin1230.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/494717/Model_4FGL_J1320.7+3314_daily_bin1230.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/494717/ft1_filtered_4FGL_J1320.7+3314_daily_bin1230.fits...........................!
real 18.45
user 17.11
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/494717/ft1_filtered_4FGL_J1320.7+3314_daily_bin1230.fits', '/scratch/kocevski/494717/ft2_4FGL_J1320.7+3314_daily_bin1230.fits', expMap='/scratch/kocevski/494717/expmap_558144001_558403201_4FGL_J1320.7+3314_daily_bin1230.fits', expCube='/scratch/kocevski/494717/ltcube_558144001_558403201_4FGL_J1320.7+3314_daily_bin1230.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/494717/Model_4FGL_J1320.7+3314_daily_bin1230.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/494717/ft1_filtered_4FGL_J1320.7+3314_daily_bin1230.fits
Spacecraft file(s): /scratch/kocevski/494717/ft2_4FGL_J1320.7+3314_daily_bin1230.fits
Exposure map: /scratch/kocevski/494717/expmap_558144001_558403201_4FGL_J1320.7+3314_daily_bin1230.fits
Exposure cube: /scratch/kocevski/494717/ltcube_558144001_558403201_4FGL_J1320.7+3314_daily_bin1230.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/494717/Model_4FGL_J1320.7+3314_daily_bin1230.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 720.775066599

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 713.778495142

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44278E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .48058       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.736       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .13406E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.0898       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3085       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .57180       1.0000         .10000E-03   10000.    
     8 'norm      '    .10050E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    125.12       1.0000         .10000E-03   10000.    
    10 'norm      '    .11777E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    2.8465       1.0000         .10000E-03   10000.    
    12 'norm      '    .44139E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .23485E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    32.215       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11985E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .56903E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .10477E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    74.577       1.0000         .10000E-03   10000.    
    19 'norm      '    .11836E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.0533       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .74930E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.3631       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.0580       1.0000         .10000E-03   10000.    
    24 'norm      '    144.85       1.0000         .10000E-03   10000.    
    25 'Prefactor '    119.22       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .42311       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .80545       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   713.6562     FROM MIGRAD    STATUS=CONVERGED    275 CALLS      627 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.006       -.24269E-05** at limit **
   2  Prefactor     .10000E-03    201.39       -.16884E-04** at limit **
   3  Prefactor     203.79        370.11        .65963E-05   -.59009E-04
   4  Prefactor     .10000E-03    39.426        .57860E-06** at limit **
   5  norm          .10000E-03    51.317       -.95743E-05** at limit **
   6  Prefactor     4.3085        1.0069         .0000         .0000    
   7  Prefactor     .10001E-03    72.615        .46123E-04** at limit **
   8  norm          .10000E-03    2.7569        .12232E-06** at limit **
   9  Prefactor     122.22        7.0105       -.26810E-06   -.40775E-03
  10  norm          .10000E-03    21.482        .37337E-05** at limit **
  11  norm          .10477E-03    683.00       -.51425E-04** at limit **
  12  norm          .10000E-03    9.4164        .40518E-06** at limit **
  13  norm          .10000E-03    11.651       -.11534E-07** at limit **
  14  norm          31.904        29.541        .39272E-05   -.85359E-04
  15  Prefactor     .10000E-03    7.2190       -.46902E-06** at limit **
  16  Prefactor     .10000E-03    20.725       -.15862E-06** at limit **
  17  norm          .10000E-03    3.0066       -.79129E-09** at limit **
  18  Prefactor     73.271        32.542       -.19546E-06   -.21715E-01
  19  norm          .10000E-03    6.4504       -.17980E-05** at limit **
  20  Prefactor     7.7638        30.242       -.39318E-05    .33874E-04
  21  Prefactor     .10000E-03    22.577       -.64716E-05** at limit **
  22  Prefactor     .10000E-03    405.64       -.37544E-07** at limit **
  23  Prefactor     1.2207        11.682        .16712E-05   -.11063E-03
  24  norm          149.39        130.84        .88419E-06    .34933E-02
  25  Prefactor     120.78        42.456        .55709E-06   -.31130E-01
  26  Normalizat    .38602        .46258       -.19075E-05   -.21073E-04
  27  Prefactor     .82335        .49941       -.35735E-05   -.58675E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 203.788
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 4.30848
  Prefactor  = 0.000100009
  norm       = 0.0001
  Prefactor  = 122.222
  norm       = 0.0001
  norm       = 0.000104772
  norm       = 0.0001
  norm       = 0.0001
  norm       = 31.9039
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 73.2712
  norm       = 0.0001
  Prefactor  = 7.76377
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.22071
  norm       = 149.391
  Prefactor  = 120.779
  Normalizat = 0.386022
  Prefactor  = 0.823345
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   713.6562     FROM HESSE     STATUS=FAILED        31 CALLS      658 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.408        .10608E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    200.03        .11191E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     203.79        351.37        .20555E-02   -1.2843    
   4  Prefactor     .10000E-03    39.002        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    50.670        .40673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     538.73        534.36         .0000       -1.5293    
   7  Prefactor     .10001E-03    .33411        .46123E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .20571        .12232E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     122.22        .98851       -.26810E-06   -1.3492    
  10  norm          .10000E-03    .20620        .37337E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10477E-03    .90747E-01   -.51425E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    .23448        .40518E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    .20571       -.11534E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          31.904        .99529        .39272E-05   -1.4578    
  15  Prefactor     .10000E-03    .20571       -.46902E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .22606       -.15862E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .20571       -.79129E-09   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     73.271        .99129       -.19546E-06   -1.3994    
  19  norm          .10000E-03    .26645       -.17980E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.7638        1.0518       -.39318E-05   -1.5151    
  21  Prefactor     .10000E-03    .21594       -.64716E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    .21846       -.37544E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.2207        1.3189        .16712E-05   -1.5487    
  24  norm          149.39        1.0153        .88419E-06   -1.3257    
  25  Prefactor     120.78        1.0064        .55709E-06   -1.3506    
  26  Normalizat    .38602        .71337       -.19075E-05   -1.1803    
  27  Prefactor     .82335        1.1655       -.35735E-05   -.98873    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.01907e-09
Minuit parameter uncertainties:
  1  3.90194e-05
  2  0.00178529
  3  355.096
  4  2.38279e-05
  5  0.000333247
  6  1.0069
  7  0.000108619
  8  8.39988e-08
  9  0.988514
  10  5.73271e-06
  11  0.00131619
  12  6.62008e-07
  13  1.3127e-06
  14  0.99529
  15  5.01354e-07
  16  2.66218e-06
  17  1.54938e-07
  18  0.991291
  19  8.16129e-06
  20  1.05178
  21  1.60033e-05
  22  1.64542e-05
  23  1.31897
  24  1.01534
  25  1.00643
  26  0.731269
  27  1.20362
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 713.656243912

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  2.662e-06  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.233e-01  1.204e+00  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:  3.860e-01  7.313e-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: 2.78e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.16e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/494717/likelihoodResults_558144001_558403201_4FGL_J1320.7+3314_daily_bin1230.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) = 713.656458691
delta logL = -0.000214778946997

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 713.65624567
delta logL = -1.75812078851e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9166       1.0000          .0000       10.000    
     3 'Normalizat'    .38595       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82342       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=   713.6562     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      275 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10704E-03    25.722        .92479E-02** at limit **
   2  Index         2.7863        5.7526        .50000        .23061E-04
   3  Normalizat    .38602        .11598E-01    .26621E-03   -.20851E-04
   4  Prefactor     .82335        .12749E-01    .20206E-03   -.41914E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000107042
  Index      = 2.78627
  Normalizat = 0.386021
  Prefactor  = 0.823347
 **********
 **   18 **HESSE 
 **********

 FCN=   713.6562     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      304 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10704E-03    214.44        .98890E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7863        7.8312        .50000       -.45866    
   3  Normalizat    .38602        .34055E-01    .10649E-04   -1.1803    
   4  Prefactor     .82335        .37437E-01    .40412E-04   -.98873    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.58125e-08
Minuit parameter uncertainties:
  1  0.0780011
  2  522.482
  3  0.0340566
  4  0.037438
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/494717': 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) = 713.656245185
delta logL = -1.27307657749e-06

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.070e-04  7.800e-02  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.786e+00  5.225e+02  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.233e-01  3.744e-02  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:  3.860e-01  3.406e-02  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/494717/cmap_HighResolution_558144001_558403201_4FGL_J1320.7+3314_daily_bin1230.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.16e-02', job_status='DONE', photon_flux_upper_limit='2.78e-07', time_completed='2021-09-07 13:08:59.042102', job_id='494717', GAL2='0.82', fit_tolerance='1e-08', EG2='0.39', EG='0.39', time_epoch_completed='1631045339.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.82', dlogl='-1.27e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1230' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:08:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 494717: <4FGL_J1320.7+3314_daily_bin1230> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin1230> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep  7 13:00:49 2021
Job was executed on host(s) <bullet0172>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 13:01:01 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:01 2021
Terminated at Tue Sep  7 13:08:59 2021
Results reported at Tue Sep  7 13:08:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin1230 200.185 33.2378 558144001 558403201 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 :                                   349.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             391.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   478 sec.
    Turnaround time :                            490 sec.

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

