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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin1282
RA = 200.185, Dec = 33.2378
tmin = 571622401, tmax = 571881601
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='494776', job_status='RUN', time_executed='2021-09-07 13:05:17.049158', time_epoch_executed='1631045117.05' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='1282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/494776

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/494776/ft1_4FGL_J1320.7+3314_daily_bin1282.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/494776/ft2_4FGL_J1320.7+3314_daily_bin1282.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/494776/ft1_4FGL_J1320.7+3314_daily_bin1282.fits outfile=/scratch/kocevski/494776/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin1282.fits ra=200.185 dec=33.2378 rad=12.0 tmin=571622401.0 tmax=571881601.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 2.72
user 2.51
sys 0.19

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/494776/ft1_filtered_4FGL_J1320.7+3314_daily_bin1282.fits" evtable="EVENTS" scfile=/scratch/kocevski/494776/ft2_4FGL_J1320.7+3314_daily_bin1282.fits sctable="SC_DATA" outfile=/scratch/kocevski/494776/ltcube_571622401_571881601_4FGL_J1320.7+3314_daily_bin1282.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/494776/ft2_4FGL_J1320.7+3314_daily_bin1282.fits
.....................!
real 17.95
user 17.47
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/494776/ft1_filtered_4FGL_J1320.7+3314_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/494776/ft2_4FGL_J1320.7+3314_daily_bin1282.fits sctable="SC_DATA" expcube=/scratch/kocevski/494776/ltcube_571622401_571881601_4FGL_J1320.7+3314_daily_bin1282.fits outfile=/scratch/kocevski/494776/expmap_571622401_571881601_4FGL_J1320.7+3314_daily_bin1282.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/494776/ltcube_571622401_571881601_4FGL_J1320.7+3314_daily_bin1282.fits
.....................!
real 192.32
user 186.52
sys 5.20

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/494776/ft1_filtered_4FGL_J1320.7+3314_daily_bin1282.fits scfile=/scratch/kocevski/494776/ft2_4FGL_J1320.7+3314_daily_bin1282.fits outfile=/scratch/kocevski/494776/cmap_571622401_571881601_4FGL_J1320.7+3314_daily_bin1282.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/494776/ft1_filtered_4FGL_J1320.7+3314_daily_bin1282.fits scfile=/scratch/kocevski/494776/ft2_4FGL_J1320.7+3314_daily_bin1282.fits outfile=/scratch/kocevski/494776/cmap_HighResolution_571622401_571881601_4FGL_J1320.7+3314_daily_bin1282.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/494776/ft1_filtered_4FGL_J1320.7+3314_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/494776/ft2_4FGL_J1320.7+3314_daily_bin1282.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/494776/Model_4FGL_J1320.7+3314_daily_bin1282.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/494776/ft1_filtered_4FGL_J1320.7+3314_daily_bin1282.fits.....................!
real 41.04
user 39.42
sys 1.41

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.005       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12862E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.3797       1.0000         .10000E-03   10000.    
     5 'norm      '    .10171E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.9721       1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.159       1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.2157       1.0000         .10000E-03   10000.    
    11 'norm      '    33.575       1.0000         .10000E-03   10000.    
    12 'norm      '    1.2074       1.0000         .10000E-03   10000.    
    13 'norm      '    .10274E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    3.6369       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.1762       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    15.972       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    19.011       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.821       1.0000         .10000E-03   10000.    
    24 'norm      '    14.410       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3305       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .65527       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=   4505.154     FROM MIGRAD    STATUS=CONVERGED    655 CALLS     3838 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.004        21.389        .25731E-07   -.11753E-05
   2  Prefactor     .10000E-03    15.046       -.27178E-06** at limit **
   3  Prefactor     .10000E-03    87.382        .52492E-06** at limit **
   4  Prefactor     4.3801        7.4006        .86315E-06   -.23691E-04
   5  norm          .10000E-03    13.728        .10058E-05** at limit **
   6  Prefactor     8.0366        206.38       -.13138E-04    .32076E-04
   7  Prefactor     32.175        44.253       -.20201E-05   -.22827E-05
   8  norm          .10000E-03    3.6182       -.73036E-07** at limit **
   9  Prefactor     .10000E-03    10.957        .14720E-06** at limit **
  10  norm          4.2159        8.7270        .16752E-05   -.38912E-04
  11  norm          33.572        24.696        .68265E-06    .80657E-05
  12  norm          1.2067        4.3830       -.14566E-05   -.26258E-03
  13  norm          .10008E-03    9.0561        .22417E-06** at limit **
  14  norm          3.6375        20.587        .25581E-07   -.20773E-06
  15  Prefactor     2.1760        4.6024       -.35354E-06   -.74883E-04
  16  Prefactor     .10000E-03    26.732        .64642E-06** at limit **
  17  norm          15.972        12.281       -.59311E-07   -.11916E-05
  18  Prefactor     .10000E-03    21.586       -.71011E-06** at limit **
  19  norm          19.010        16.703        .14623E-06   -.29168E-05
  20  Prefactor     .10000E-03    4.1512       -.77053E-08** at limit **
  21  Prefactor     .10000E-03    5.0101       -.13476E-07** at limit **
  22  Prefactor     .10000E-03    39.684       -.15401E-05** at limit **
  23  Prefactor     10.822        5.6776       -.17757E-07    .22934E-04
  24  norm          14.410        13.724        .20558E-07    .10153E-05
  25  Prefactor     .10000E-03    6.4184       -.13389E-07** at limit **
  26  Normalizat    1.3305        .21164       -.37294E-06   -.21681E-04
  27  Prefactor     .65532        .24421        .83035E-06   -.22389E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.0044
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.38008
  norm       = 0.0001
  Prefactor  = 8.03662
  Prefactor  = 32.1754
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.21585
  norm       = 33.572
  norm       = 1.2067
  norm       = 0.000100082
  norm       = 3.63751
  Prefactor  = 2.17599
  Prefactor  = 0.0001
  norm       = 15.9724
  Prefactor  = 0.0001
  norm       = 19.0102
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.8216
  norm       = 14.4103
  Prefactor  = 0.0001
  Normalizat = 1.33045
  Prefactor  = 0.65532
 **********
 **   18 **HESSE 
 **********

 FCN=   4505.154     FROM HESSE     STATUS=OK           490 CALLS     4328 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.004        21.384        .12077E-03   -1.5044    
   2  Prefactor     .10000E-03    15.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    87.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.3801        7.3489        .96226E-03   -1.5289    
   5  norm          .10000E-03    14.143        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.0366        190.75        .14201E-03   -1.5141    
   7  Prefactor     32.175        43.610        .70658E-04   -1.4573    
   8  norm          .10000E-03    3.7390        .24923E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.2159        8.7535        .98132E-03   -1.5297    
  11  norm          33.572        24.571        .69156E-04   -1.4548    
  12  norm          1.2067        4.0634        .22578E-03   -1.5488    
  13  norm          .10008E-03    32.907        .33710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.6375        20.537        .21184E-03   -1.5327    
  15  Prefactor     2.1760        4.5036        .18154E-03   -1.5413    
  16  Prefactor     .10000E-03    27.179        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          15.972        12.287        .10022E-03   -1.4908    
  18  Prefactor     .10000E-03    21.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          19.010        16.723        .45929E-03   -1.4836    
  20  Prefactor     .10000E-03    4.1528        .13356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.0108        .14674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    39.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     10.822        5.6890        .10913E-03   -1.5050    
  24  norm          14.410        13.740        .10551E-03   -1.4949    
  25  Prefactor     .10000E-03    6.4202        .16609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.3305        .24831        .21820E-03   -.82662    
  27  Prefactor     .65532        .28270        .34950E-03   -1.0530    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8108e-09
Minuit parameter uncertainties:
  1  21.3988
  2  2.39254e-05
  3  5.55951e-05
  4  7.35041
  5  0.000113855
  6  78.5887
  7  43.6529
  8  9.28308e-07
  9  3.20006e-07
  10  8.75614
  11  24.5781
  12  4.06435
  13  0.0032892
  14  17.2951
  15  4.50434
  16  2.79177e-05
  17  12.2891
  18  7.24983e-05
  19  16.7268
  20  5.801e-07
  21  3.35183e-07
  22  0.000206225
  23  5.68924
  24  13.7429
  25  3.43393e-07
  26  0.24853
  27  0.283323
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  6.553e-01  2.833e-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.330e+00  2.485e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 200.185 33.238
Photon Flux Upper Limit: 8.82e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/494776/likelihoodResults_571622401_571881601_4FGL_J1320.7+3314_daily_bin1282.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) = 4505.15450034
delta logL = -0.000175491972186

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4505.1543256
delta logL = -7.53148924559e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10517E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7028       1.0000          .0000       10.000    
     3 'Normalizat'    1.3304       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65532       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=   4505.154     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      288 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10205E-03    48.876        .36285E-02** at limit **
   2  Index         2.6336        6.7860        .50000        .16312E-04
   3  Normalizat    1.3305        .73750E-02    .21820E-03   -.10500E-03
   4  Prefactor     .65532        .86218E-02    .34950E-03   -.12758E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102047
  Index      = 2.63362
  Normalizat = 1.33045
  Prefactor  = 0.655319
 **********
 **   18 **HESSE 
 **********

 FCN=   4505.154     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      317 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10205E-03    238.20        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6336        7.2289        .50000       -.49301    
   3  Normalizat    1.3305        .16431E-01    .43639E-04   -.82662    
   4  Prefactor     .65532        .19209E-01    .13980E-04   -1.0530    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.05619e-09
Minuit parameter uncertainties:
  1  0.044344
  2  272.675
  3  0.0164315
  4  0.0192094
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/494776': 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) = 4505.15432523
delta logL = -3.81204699806e-07

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.020e-04  4.434e-02  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.634e+00  2.727e+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:  6.553e-01  1.921e-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:  1.330e+00  1.643e-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/494776/cmap_HighResolution_571622401_571881601_4FGL_J1320.7+3314_daily_bin1282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.86e-03', job_status='DONE', photon_flux_upper_limit='8.82e-08', time_completed='2021-09-07 13:16:35.500531', job_id='494776', GAL2='0.66', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1631045795.5', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='-3.81e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1282' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:16:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 494776: <4FGL_J1320.7+3314_daily_bin1282> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin1282 200.185 33.2378 571622401 571881601 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 :                                   674.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             284.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            940 sec.

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

