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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin1118
RA = 200.185, Dec = 33.2378
tmin = 529113601, tmax = 529372801
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='494578', job_status='RUN', time_executed='2021-09-07 13:02:33.092112', time_epoch_executed='1631044953.09' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='1118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/494578

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/494578/ft1_4FGL_J1320.7+3314_daily_bin1118.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/494578/ft2_4FGL_J1320.7+3314_daily_bin1118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/494578/ft1_4FGL_J1320.7+3314_daily_bin1118.fits outfile=/scratch/kocevski/494578/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin1118.fits ra=200.185 dec=33.2378 rad=12.0 tmin=529113601.0 tmax=529372801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.15
user 3.77
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/494578/ft1_filtered_4FGL_J1320.7+3314_daily_bin1118.fits" evtable="EVENTS" scfile=/scratch/kocevski/494578/ft2_4FGL_J1320.7+3314_daily_bin1118.fits sctable="SC_DATA" outfile=/scratch/kocevski/494578/ltcube_529113601_529372801_4FGL_J1320.7+3314_daily_bin1118.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/494578/ft2_4FGL_J1320.7+3314_daily_bin1118.fits
.....................!
real 15.85
user 15.47
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/494578/ft1_filtered_4FGL_J1320.7+3314_daily_bin1118.fits evtable="EVENTS" scfile=/scratch/kocevski/494578/ft2_4FGL_J1320.7+3314_daily_bin1118.fits sctable="SC_DATA" expcube=/scratch/kocevski/494578/ltcube_529113601_529372801_4FGL_J1320.7+3314_daily_bin1118.fits outfile=/scratch/kocevski/494578/expmap_529113601_529372801_4FGL_J1320.7+3314_daily_bin1118.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/494578/ltcube_529113601_529372801_4FGL_J1320.7+3314_daily_bin1118.fits
.....................!
real 193.24
user 187.78
sys 4.83

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/494578/ft1_filtered_4FGL_J1320.7+3314_daily_bin1118.fits scfile=/scratch/kocevski/494578/ft2_4FGL_J1320.7+3314_daily_bin1118.fits outfile=/scratch/kocevski/494578/cmap_529113601_529372801_4FGL_J1320.7+3314_daily_bin1118.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=200.185 yref=33.2378 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.36
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/494578/ft1_filtered_4FGL_J1320.7+3314_daily_bin1118.fits scfile=/scratch/kocevski/494578/ft2_4FGL_J1320.7+3314_daily_bin1118.fits outfile=/scratch/kocevski/494578/cmap_HighResolution_529113601_529372801_4FGL_J1320.7+3314_daily_bin1118.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.58
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/494578/ft1_filtered_4FGL_J1320.7+3314_daily_bin1118.fits evtable="EVENTS" scfile=/scratch/kocevski/494578/ft2_4FGL_J1320.7+3314_daily_bin1118.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/494578/Model_4FGL_J1320.7+3314_daily_bin1118.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/494578/ft1_filtered_4FGL_J1320.7+3314_daily_bin1118.fits.....................!
real 39.04
user 37.68
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    74.912       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .22163E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.490       1.0000         .10000E-03   10000.    
     7 'Prefactor '    41.140       1.0000         .10000E-03   10000.    
     8 'norm      '    7.6194       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.1618       1.0000         .10000E-03   10000.    
    11 'norm      '    18.201       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    32.887       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2971       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    11.247       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.2946       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .48183       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    17.104       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .78330       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .92790       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=   4210.665     FROM MIGRAD    STATUS=CONVERGED   1137 CALLS     3812 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2397        .11398E-02** at limit **
   2  Prefactor     .10000E-03    33.738        .18142E-02** at limit **
   3  Prefactor     74.842        92.711        .23195E-03    .16174E-05
   4  Prefactor     .10000E-03    1.8766        .86777E-03** at limit **
   5  norm          .10000E-03    11.573        .23109E-02** at limit **
   6  Prefactor     12.460        54.210        .11334E-03    .12638E-04
   7  Prefactor     41.105        31.255        .62496E-04    .76402E-05
   8  norm          7.6193        4.8230        .10902E-03    .15643E-05
   9  Prefactor     .10000E-03    5.0750        .14270E-02** at limit **
  10  norm          3.1617        5.2342        .17628E-03    .54495E-04
  11  norm          18.203        15.223        .93879E-04   -.11747E-04
  12  norm          .10000E-03    1.8438        .85509E-03** at limit **
  13  norm          .10000E-03    2.3243        .96506E-03** at limit **
  14  norm          32.883        23.505        .69874E-04    .10088E-04
  15  Prefactor     1.2974        3.0961        .16196E-03    .25930E-03
  16  Prefactor     .10000E-03    32.605        .36285E-03** at limit **
  17  norm          11.248        8.3389        .11946E-03    .12562E-04
  18  Prefactor     .10000E-03    18.125        .18142E-02** at limit **
  19  norm          4.2941        11.815        .19440E-03    .92399E-05
  20  Prefactor     .45013        157.28        .44165E-02    .20395E-04
  21  Prefactor     .10000E-03    9.9040        .18142E-02** at limit **
  22  Prefactor     .10000E-03    32.872        .18142E-02** at limit **
  23  Prefactor     .10000E-03    1.9520        .87783E-03** at limit **
  24  norm          17.103        13.264        .96842E-04    .61045E-05
  25  Prefactor     .10000E-03    6.0649        .15607E-02** at limit **
  26  Normalizat    .78346        .21242        .21801E-03    .42500E-04
  27  Prefactor     .92774        .25381        .25471E-03    .90740E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 74.8417
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.4601
  Prefactor  = 41.1048
  norm       = 7.61927
  Prefactor  = 0.0001
  norm       = 3.1617
  norm       = 18.203
  norm       = 0.0001
  norm       = 0.0001
  norm       = 32.8825
  Prefactor  = 1.29741
  Prefactor  = 0.0001
  norm       = 11.2477
  Prefactor  = 0.0001
  norm       = 4.29415
  Prefactor  = 0.450127
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.1031
  Prefactor  = 0.0001
  Normalizat = 0.783458
  Prefactor  = 0.927737
 **********
 **   18 **HESSE 
 **********

 FCN=   4210.665     FROM HESSE     STATUS=OK           462 CALLS     4274 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.2398        .22795E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    33.753        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     74.842        92.643        .92781E-05   -1.3976    
   4  Prefactor     .10000E-03    1.8766        .17355E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    11.599        .46217E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.460        54.180        .45337E-05   -1.5002    
   7  Prefactor     41.105        31.229        .24998E-05   -1.4425    
   8  norm          7.6193        4.8225        .43607E-05   -1.5156    
   9  Prefactor     .10000E-03    5.0751        .28541E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.1617        5.2320        .70513E-05   -1.5352    
  11  norm          18.203        15.221        .37552E-05   -1.4854    
  12  norm          .10000E-03    1.8440        .17102E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.3244        .19301E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          32.883        23.506        .27950E-05   -1.4560    
  15  Prefactor     1.2974        3.0949        .64782E-05   -1.5480    
  16  Prefactor     .10000E-03    32.606        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          11.248        8.3366        .47783E-05   -1.5037    
  18  Prefactor     .10000E-03    18.125        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.2941        11.810        .77761E-05   -1.5293    
  20  Prefactor     .45013        156.20        .17666E-03   -1.5574    
  21  Prefactor     .10000E-03    9.9046        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    32.875        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.9523        .17557E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          17.103        13.262        .38737E-05   -1.4881    
  25  Prefactor     .10000E-03    6.0650        .31215E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .78346        .21093        .87205E-05   -1.0069    
  27  Prefactor     .92774        .25375        .10188E-04   -.95179    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.5923e-11
Minuit parameter uncertainties:
  1  2.99091e-07
  2  3.84803e-05
  3  92.8225
  4  1.2805e-06
  5  1.7302e-05
  6  52.0444
  7  31.2413
  8  4.82276
  9  3.06546e-06
  10  5.23273
  11  15.2243
  12  7.77911e-06
  13  4.29708e-06
  14  23.5122
  15  3.09532
  16  0.000217874
  17  8.33745
  18  1.02422e-05
  19  11.8162
  20  16.8129
  21  1.39279e-05
  22  1.47062e-05
  23  2.49294e-06
  24  13.2643
  25  2.29617e-06
  26  0.211155
  27  0.25407
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  9.277e-01  2.541e-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:  7.835e-01  2.112e-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.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/494578/likelihoodResults_529113601_529372801_4FGL_J1320.7+3314_daily_bin1118.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) = 4210.66549488
delta logL = -0.000146345272697

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4210.66534963
delta logL = -1.08869062387e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12298E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7777       1.0000          .0000       10.000    
     3 'Normalizat'    .78345       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92774       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=   4210.665     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      241 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .18454        .67204E-01** at limit **
   2  Index         2.7325        8.6055        .50000        .15040E-04
   3  Normalizat    .78345        .64046E-03    .43394E-01   -.38272E-03
   4  Prefactor     .92774        .81311E-03    .45358E-01   -.10084E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.73253
  Normalizat = 0.783455
  Prefactor  = 0.92774
 **********
 **   18 **HESSE 
 **********

 FCN=   4210.665     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      274 TOTAL
                     EDM=   .43E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    61.097        .34894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7325        5.2965        .50000       -.47068    
   3  Normalizat    .78345        .64044E-02    .21801E-03   -1.0069    
   4  Prefactor     .92774        .81318E-02    .25471E-03   -.95178    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.29778e-07
Minuit parameter uncertainties:
  1  0.000201863
  2  195.422
  3  0.00640445
  4  0.00813181
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/494578': 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) = 4210.66534897
delta logL = -4.33755303675e-07

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  2.019e-04  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.733e+00  1.954e+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:  9.277e-01  8.132e-03  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:  7.835e-01  6.404e-03  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/494578/cmap_HighResolution_529113601_529372801_4FGL_J1320.7+3314_daily_bin1118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.31e-03', job_status='DONE', photon_flux_upper_limit='8.11e-08', time_completed='2021-09-07 13:13:39.482466', job_id='494578', GAL2='0.93', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1631045619.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='-4.34e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1118' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:13:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 494578: <4FGL_J1320.7+3314_daily_bin1118> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin1118 200.185 33.2378 529113601 529372801 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 :                                   663.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             258.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   791 sec.
    Turnaround time :                            795 sec.

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

