/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 7 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 = 7398
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1320.7+3314_daily_bin324
RA = 200.185, Dec = 33.2378
tmin = 323308801, tmax = 323568001
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='489229', job_status='RUN', time_executed='2021-09-07 12:42:11.630832', time_epoch_executed='1631043731.63' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='324'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/489229

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/489229/ft1_4FGL_J1320.7+3314_daily_bin324.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/489229/ft2_4FGL_J1320.7+3314_daily_bin324.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/489229/ft1_4FGL_J1320.7+3314_daily_bin324.fits outfile=/scratch/kocevski/489229/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin324.fits ra=200.185 dec=33.2378 rad=12.0 tmin=323308801.0 tmax=323568001.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.76
user 2.55
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/489229/ft1_filtered_4FGL_J1320.7+3314_daily_bin324.fits" evtable="EVENTS" scfile=/scratch/kocevski/489229/ft2_4FGL_J1320.7+3314_daily_bin324.fits sctable="SC_DATA" outfile=/scratch/kocevski/489229/ltcube_323308801_323568001_4FGL_J1320.7+3314_daily_bin324.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/489229/ft2_4FGL_J1320.7+3314_daily_bin324.fits
.....................!
real 17.28
user 16.82
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/489229/ft1_filtered_4FGL_J1320.7+3314_daily_bin324.fits evtable="EVENTS" scfile=/scratch/kocevski/489229/ft2_4FGL_J1320.7+3314_daily_bin324.fits sctable="SC_DATA" expcube=/scratch/kocevski/489229/ltcube_323308801_323568001_4FGL_J1320.7+3314_daily_bin324.fits outfile=/scratch/kocevski/489229/expmap_323308801_323568001_4FGL_J1320.7+3314_daily_bin324.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/489229/ltcube_323308801_323568001_4FGL_J1320.7+3314_daily_bin324.fits
.....................!
real 160.51
user 155.03
sys 4.71

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/489229/ft1_filtered_4FGL_J1320.7+3314_daily_bin324.fits scfile=/scratch/kocevski/489229/ft2_4FGL_J1320.7+3314_daily_bin324.fits outfile=/scratch/kocevski/489229/cmap_323308801_323568001_4FGL_J1320.7+3314_daily_bin324.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.49
user 0.32
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/489229/ft1_filtered_4FGL_J1320.7+3314_daily_bin324.fits scfile=/scratch/kocevski/489229/ft2_4FGL_J1320.7+3314_daily_bin324.fits outfile=/scratch/kocevski/489229/cmap_HighResolution_323308801_323568001_4FGL_J1320.7+3314_daily_bin324.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.50
user 0.33
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/489229/ft1_filtered_4FGL_J1320.7+3314_daily_bin324.fits evtable="EVENTS" scfile=/scratch/kocevski/489229/ft2_4FGL_J1320.7+3314_daily_bin324.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/489229/Model_4FGL_J1320.7+3314_daily_bin324.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/489229/ft1_filtered_4FGL_J1320.7+3314_daily_bin324.fits.....................!
real 37.02
user 35.64
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.8909       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.9948       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.5014       1.0000         .10000E-03   10000.    
     5 'norm      '    2.8869       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.3027       1.0000         .10000E-03   10000.    
    11 'norm      '    6.8367       1.0000         .10000E-03   10000.    
    12 'norm      '    .10404       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.914       1.0000         .10000E-03   10000.    
    17 'norm      '    1.8883       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    21.371       1.0000         .10000E-03   10000.    
    20 'Prefactor '    46.726       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.4668       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .92282       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0041       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5212.709     FROM MIGRAD    STATUS=CONVERGED    637 CALLS     2799 TOTAL
                     EDM=   .94E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.8920        9.4956         .0000        .28276E-02
   2  Prefactor     .10001E-03    24.174         .0000    ** at limit **
   3  Prefactor     5.9939        280.69         .0000        .41581E-03
   4  Prefactor     1.5152        8.0181         .0000        .18341E-01
   5  norm          2.8854        4.0160         .0000       -.33603E-02
   6  Prefactor     .10014E-03    30.085         .0000    ** at limit **
   7  Prefactor     .10000E-03    17.192         .0000    ** at limit **
   8  norm          .10000E-03    1.0671         .0000    ** at limit **
   9  Prefactor     .10006E-03    27.650         .0000    ** at limit **
  10  norm          4.3036        4.1074         .0000        .65596E-02
  11  norm          6.8396        14.784         .0000        .10332E-02
  12  norm          .12449        2.0717         .0000        .65884E-05
  13  norm          .10000E-03    2.2405         .0000    ** at limit **
  14  norm          .10002E-03    5.8713         .0000    ** at limit **
  15  Prefactor     .10000E-03    1.8689         .0000    ** at limit **
  16  Prefactor     14.906        14.575         .0000        .80490E-03
  17  norm          1.8948        16.992         .0000        .11406E-01
  18  Prefactor     .10008E-03    21.133         .0000    ** at limit **
  19  norm          21.338        16.999         .0000        .51634E-02
  20  Prefactor     46.720        19.792         .0000        .14473E-02
  21  Prefactor     .10000E-03    10.641         .0000    ** at limit **
  22  Prefactor     .10002E-03    37.623         .0000    ** at limit **
  23  Prefactor     1.4674        3.4426         .0000        .10824E-02
  24  norm          .10000E-03    4.7663         .0000    ** at limit **
  25  Prefactor     .10002E-03    5.5047         .0000    ** at limit **
  26  Normalizat    .92283        .17206         .0000        .21453E-05
  27  Prefactor     1.0040        .20930         .0000        .15160E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.89197
  Prefactor  = 0.000100006
  Prefactor  = 5.99392
  Prefactor  = 1.5152
  norm       = 2.88543
  Prefactor  = 0.000100138
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.00010006
  norm       = 4.30362
  norm       = 6.83962
  norm       = 0.124492
  norm       = 0.0001
  norm       = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 14.906
  norm       = 1.8948
  Prefactor  = 0.000100085
  norm       = 21.3377
  Prefactor  = 46.7202
  Prefactor  = 0.000100003
  Prefactor  = 0.000100021
  Prefactor  = 1.46741
  norm       = 0.000100001
  Prefactor  = 0.000100024
  Normalizat = 0.92283
  Prefactor  = 1.00397
 **********
 **   18 **HESSE 
 **********

 FCN=   5212.709     FROM HESSE     STATUS=OK           480 CALLS     3279 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.8920        9.4896        .82728E-03   -1.5222    
   2  Prefactor     .10001E-03    24.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.9939        276.81        .16400E-03   -1.5218    
   4  Prefactor     1.5152        7.9123        .17472E-02   -1.5462    
   5  norm          2.8854        3.9759        .15640E-03   -1.5368    
   6  Prefactor     .10014E-03    30.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.0707        .72828E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10006E-03    27.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.3036        4.0951        .13647E-03   -1.5293    
  11  norm          6.8396        14.788        .76723E-03   -1.5185    
  12  norm          .12449        23.092        .18726E-02   -1.5637    
  13  norm          .10000E-03    2.2474        .10547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10002E-03    5.8723        .17086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.8985        .19188E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.906        14.566        .10371E-03   -1.4936    
  17  norm          1.8948        15.078        .15142E-02   -1.5433    
  18  Prefactor     .10008E-03    21.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          21.338        16.006        .86642E-04   -1.4784    
  20  Prefactor     46.720        19.791        .58658E-04   -1.4340    
  21  Prefactor     .10000E-03    10.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10002E-03    37.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.4674        3.4237        .19469E-03   -1.5466    
  24  norm          .10000E-03    4.7750        .15394E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10002E-03    5.5072        .16545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .92283        .20326        .22024E-03   -.95662    
  27  Prefactor     1.0040        .24703        .26688E-03   -.92597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12838e-07
Minuit parameter uncertainties:
  1  9.49197
  2  0.000747717
  3  81.8714
  4  6.92616
  5  3.97624
  6  0.00407881
  7  0.000241082
  8  2.41294e-06
  9  0.00257828
  10  4.09537
  11  14.7954
  12  3.391
  13  2.37963e-06
  14  0.000629341
  15  5.45162e-06
  16  14.569
  17  10.6937
  18  0.00267569
  19  16.0096
  20  19.7937
  21  0.000375663
  22  0.00177425
  23  3.4242
  24  0.000159252
  25  0.00072055
  26  0.203434
  27  0.247312
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.491e+01  1.457e+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.004e+00  2.473e-01  0.000e+00  1.000e+01 ( 1.000e+00)
590        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
591        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
588   Normalization:  9.228e-01  2.034e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.62
Ra Dec: 200.185 33.238
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 3.82e-08 +/- 3.73e-08
Energy Flux (Fixed Index): 1.10e-05 +/- 1.07e-05

TS (Fixed Index): 1.62
Ra Dec: 200.185 33.238
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/489229/likelihoodResults_323308801_323568001_4FGL_J1320.7+3314_daily_bin324.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) = 5211.57550091
delta logL = 1.13398354492

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5211.53854704
delta logL = 1.17093741422

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16185       1.0000         .10000E-03   10000.    
     2 'Index     '    5.1735       1.0000          .0000       10.000    
     3 'Normalizat'    .84739       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0782       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=   5211.539     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      266 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16187        1.5577        .37612E-02    .13250E-02
   2  Index         5.1735        2.4275        .85310E-01    .76352E-04
   3  Normalizat    .84748        .49071E-01    .44226E-01    .12598E-04
   4  Prefactor     1.0782        .62006E-01    .58556E-01    .28984E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.161866
  Index      = 5.17351
  Normalizat = 0.847485
  Prefactor  = 1.07818
 **********
 **   18 **HESSE 
 **********

 FCN=   5211.539     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      299 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16187        2.9480        .16933E-04   -1.5628    
   2  Index         5.1735        3.5248        .34398E-02    .34710E-01
   3  Normalizat    .84748        .17550        .22839E-03   -.98331    
   4  Prefactor     1.0782        .21829        .25894E-03   -.90167    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.75324e-09
Minuit parameter uncertainties:
  1  1.38122
  2  3.91251
  3  0.175615
  4  0.218468
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/489229': 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) = 5211.53854676
delta logL = 1.17093769736

Extracting fit parameters...

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

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


TS (Free Index): 4.21
Ra Dec: 200.185 33.238
Photon Index (Free Index): 5.17 +/- 3.91
Photon Flux (Free Index): 8.43e-08 +/- 5.18e-08
Energy Flux (Free Index): 1.11e-05 +/- 8.28e-06

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/489229/cmap_HighResolution_323308801_323568001_4FGL_J1320.7+3314_daily_bin324.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.94e-03', comment='SUCCESS', photon_flux='3.82e-08', energy_flux2='1.11e-05', photon_flux_error='3.73e-08', dlogl='1.17e+00', energy_flux='1.10e-05', photon_flux2='8.43e-08', job_status='DONE', time_completed='2021-09-07 12:51:44.265254', photon_index_error2='3.91', photon_index2='5.17', ts='1.62', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='8.28e-06', EG='0.92', time_epoch_completed='1631044304.27', return_code='0', job_id='489229', GAL2='1.08', EG2='0.85', return_code2='102', energy_flux_error='1.07e-05', photon_flux_error2='5.18e-08', ts2='4.21', photon_index='2.51' WHERE bin_id='324' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 12:51:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 489229: <4FGL_J1320.7+3314_daily_bin324> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin324> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 12:40:32 2021
Job was executed on host(s) <bullet0026>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 12:41:55 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:41:55 2021
Terminated at Tue Sep  7 12:51:45 2021
Results reported at Tue Sep  7 12:51:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin324 200.185 33.2378 323308801 323568001 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 :                                   571.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             351.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   589 sec.
    Turnaround time :                            673 sec.

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

