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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin1180
RA = 200.185, Dec = 33.2378
tmin = 545184001, tmax = 545443201
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='494657', job_status='RUN', time_executed='2021-09-07 13:03:28.180965', time_epoch_executed='1631045008.18' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='1180'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/494657

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/494657/ft1_4FGL_J1320.7+3314_daily_bin1180.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/494657/ft2_4FGL_J1320.7+3314_daily_bin1180.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/494657/ft1_4FGL_J1320.7+3314_daily_bin1180.fits outfile=/scratch/kocevski/494657/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin1180.fits ra=200.185 dec=33.2378 rad=12.0 tmin=545184001.0 tmax=545443201.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.20
user 3.86
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/494657/ft1_filtered_4FGL_J1320.7+3314_daily_bin1180.fits" evtable="EVENTS" scfile=/scratch/kocevski/494657/ft2_4FGL_J1320.7+3314_daily_bin1180.fits sctable="SC_DATA" outfile=/scratch/kocevski/494657/ltcube_545184001_545443201_4FGL_J1320.7+3314_daily_bin1180.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/494657/ft2_4FGL_J1320.7+3314_daily_bin1180.fits
.....................!
real 16.11
user 15.71
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/494657/ft1_filtered_4FGL_J1320.7+3314_daily_bin1180.fits evtable="EVENTS" scfile=/scratch/kocevski/494657/ft2_4FGL_J1320.7+3314_daily_bin1180.fits sctable="SC_DATA" expcube=/scratch/kocevski/494657/ltcube_545184001_545443201_4FGL_J1320.7+3314_daily_bin1180.fits outfile=/scratch/kocevski/494657/expmap_545184001_545443201_4FGL_J1320.7+3314_daily_bin1180.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/494657/ltcube_545184001_545443201_4FGL_J1320.7+3314_daily_bin1180.fits
.....................!
real 194.79
user 189.43
sys 4.79

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/494657/ft1_filtered_4FGL_J1320.7+3314_daily_bin1180.fits scfile=/scratch/kocevski/494657/ft2_4FGL_J1320.7+3314_daily_bin1180.fits outfile=/scratch/kocevski/494657/cmap_545184001_545443201_4FGL_J1320.7+3314_daily_bin1180.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.67
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/494657/ft1_filtered_4FGL_J1320.7+3314_daily_bin1180.fits scfile=/scratch/kocevski/494657/ft2_4FGL_J1320.7+3314_daily_bin1180.fits outfile=/scratch/kocevski/494657/cmap_HighResolution_545184001_545443201_4FGL_J1320.7+3314_daily_bin1180.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.67
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/494657/ft1_filtered_4FGL_J1320.7+3314_daily_bin1180.fits evtable="EVENTS" scfile=/scratch/kocevski/494657/ft2_4FGL_J1320.7+3314_daily_bin1180.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/494657/Model_4FGL_J1320.7+3314_daily_bin1180.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/494657/ft1_filtered_4FGL_J1320.7+3314_daily_bin1180.fits.....................!
real 32.52
user 31.05
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .23637E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    7.0845       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .40463E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .41825       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.9123       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.4165       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.5934       1.0000         .10000E-03   10000.    
    21 'Prefactor '    42.345       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    67.915       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.3922       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .42330       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=   3093.321     FROM MIGRAD    STATUS=CONVERGED   1161 CALLS     3356 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.4152        .13746E-02** at limit **
   2  Prefactor     .10000E-03    33.210        .18142E-02** at limit **
   3  Prefactor     .10000E-03    25.599        .18142E-02** at limit **
   4  Prefactor     .10000E-03    11.923        .56822E-01** at limit **
   5  norm          7.0847        5.7972        .11700E-03    .21037E-03
   6  Prefactor     .10000E-03    344.28        .18142E-02** at limit **
   7  Prefactor     .10000E-03    27.278        .18142E-02** at limit **
   8  norm          .10001E-03    42.445        .17993E-02** at limit **
   9  Prefactor     .10000E-03    53.162        .18142E-02** at limit **
  10  norm          .44189        20.985        .25591E-02    .11172E-02
  11  norm          .10000E-03    41.614        .18142E-02** at limit **
  12  norm          .10000E-03    1.9318        .75298E-03** at limit **
  13  norm          .10000E-03    3.4978        .10139E-02** at limit **
  14  norm          .10000E-03    9.9519        .17130E-02** at limit **
  15  Prefactor     .10000E-03    2.2575        .81297E-03** at limit **
  16  Prefactor     .10000E-03    15.604        .18142E-02** at limit **
  17  norm          2.9341        8.8533        .21244E-03   -.18385E-03
  18  Prefactor     .10000E-03    34.496        .18142E-02** at limit **
  19  norm          1.3893        19.371        .36120E-03   -.79648E-04
  20  Prefactor     3.5919        15.090        .10658E-02    .27962E-04
  21  Prefactor     42.343        29.583        .61604E-04   -.30450E-05
  22  Prefactor     .10000E-03    44.438        .18142E-02** at limit **
  23  Prefactor     .10000E-03    3.1616        .95773E-03** at limit **
  24  norm          .10000E-03    11.667        .18142E-02** at limit **
  25  Prefactor     67.912        53.677        .48705E-04   -.50652E-05
  26  Normalizat    1.3923        .26864        .19628E-03    .27921E-03
  27  Prefactor     .42336        .28458        .36637E-03    .82758E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 7.08471
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100008
  Prefactor  = 0.0001
  norm       = 0.441889
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.93408
  Prefactor  = 0.0001
  norm       = 1.38928
  Prefactor  = 3.59189
  Prefactor  = 42.3431
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 67.9116
  Normalizat = 1.39233
  Prefactor  = 0.423361
 **********
 **   18 **HESSE 
 **********

 FCN=   3093.321     FROM HESSE     STATUS=OK           474 CALLS     3830 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.4155        .27491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    33.213        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    25.599        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.566        .58086E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.0847        5.7967        .46801E-05   -1.5176    
   6  Prefactor     .10000E-03    344.29        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    27.282        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10001E-03    42.881        .35985E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    53.164        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .44189        20.957        .51182E-03   -1.5575    
  11  norm          .10000E-03    41.616        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.9318        .15060E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.4980        .20278E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    9.9522        .34261E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.2576        .16259E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.607        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.9341        8.8105        .84978E-05   -1.5365    
  18  Prefactor     .10000E-03    34.496        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.3893        19.175        .14448E-04   -1.5472    
  20  Prefactor     3.5919        15.062        .42634E-04   -1.5329    
  21  Prefactor     42.343        29.564        .24642E-05   -1.4406    
  22  Prefactor     .10000E-03    44.438        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.1621        .19155E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    11.667        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     67.912        53.676        .97409E-05   -1.4058    
  26  Normalizat    1.3923        .26860        .39256E-04   -.80851    
  27  Prefactor     .42336        .28472        .14655E-04   -1.1563    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.97475e-10
Minuit parameter uncertainties:
  1  6.25478e-06
  2  1.98664e-06
  3  1.38059e-05
  4  0.000445147
  5  5.79713
  6  9.33739e-05
  7  0.000143535
  8  0.00115382
  9  3.29154e-05
  10  6.08791
  11  5.68974e-05
  12  8.73854e-06
  13  1.07326e-05
  14  2.65367e-05
  15  6.04872e-06
  16  3.8167e-05
  17  8.81436
  18  1.85401e-05
  19  10.3262
  20  14.7169
  21  29.574
  22  5.15678e-06
  23  1.36877e-05
  24  3.85312e-06
  25  53.7146
  26  0.268868
  27  0.285679
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  3.817e-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:  4.234e-01  2.857e-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.392e+00  2.689e-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: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/494657/likelihoodResults_545184001_545443201_4FGL_J1320.7+3314_daily_bin1180.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) = 3093.32134579
delta logL = -0.00030513130514

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3093.32104084
delta logL = -1.79191829375e-07

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 'Index     '    2.4015       1.0000          .0000       10.000    
     3 'Normalizat'    1.3923       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .42338       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=   3093.321     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      235 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1234.5        .90712E-02** at limit **
   2  Index         2.4087        7.3394        .50000       -.44932E-05
   3  Normalizat    1.3923        .58050E-01    .31328E-01   -.24961E-04
   4  Prefactor     .42336        .63063E-01    .82690E-01    .23016E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.40869
  Normalizat = 1.39232
  Prefactor  = 0.423364
 **********
 **   18 **HESSE 
 **********

 FCN=   3093.321     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      268 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6231.3        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4087        6.1765        .50000       -.54482    
   3  Normalizat    1.3923        .10773        .19628E-03   -.80851    
   4  Prefactor     .42336        .11674        .36637E-03   -1.1563    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.76455e-09
Minuit parameter uncertainties:
  1  0.00065717
  2  57.483
  3  0.107746
  4  0.116804
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/494657': 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) = 3093.32104079
delta logL = -1.28431111079e-07

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  6.572e-04  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.409e+00  5.748e+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:  4.234e-01  1.168e-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.392e+00  1.077e-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/494657/cmap_HighResolution_545184001_545443201_4FGL_J1320.7+3314_daily_bin1180.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.57e-03', job_status='DONE', photon_flux_upper_limit='1.10e-07', time_completed='2021-09-07 13:12:38.436070', job_id='494657', GAL2='0.42', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1631045558.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.42', dlogl='-1.28e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1180' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:12:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 494657: <4FGL_J1320.7+3314_daily_bin1180> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin1180> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep  7 13:00:43 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 13:00:48 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:00:48 2021
Terminated at Tue Sep  7 13:12:39 2021
Results reported at Tue Sep  7 13:12:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin1180 200.185 33.2378 545184001 545443201 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 :                                   547.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             241.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            716 sec.

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

