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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin1093
RA = 200.185, Dec = 33.2378
tmin = 522633601, tmax = 522892801
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='493775', job_status='RUN', time_executed='2021-09-07 12:56:55.967617', time_epoch_executed='1631044615.97' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='1093'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/493775

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/493775/ft1_4FGL_J1320.7+3314_daily_bin1093.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/493775/ft2_4FGL_J1320.7+3314_daily_bin1093.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/493775/ft1_4FGL_J1320.7+3314_daily_bin1093.fits outfile=/scratch/kocevski/493775/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin1093.fits ra=200.185 dec=33.2378 rad=12.0 tmin=522633601.0 tmax=522892801.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 3.61
user 3.38
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/493775/ft1_filtered_4FGL_J1320.7+3314_daily_bin1093.fits" evtable="EVENTS" scfile=/scratch/kocevski/493775/ft2_4FGL_J1320.7+3314_daily_bin1093.fits sctable="SC_DATA" outfile=/scratch/kocevski/493775/ltcube_522633601_522892801_4FGL_J1320.7+3314_daily_bin1093.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/493775/ft2_4FGL_J1320.7+3314_daily_bin1093.fits
.....................!
real 15.71
user 15.35
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/493775/ft1_filtered_4FGL_J1320.7+3314_daily_bin1093.fits evtable="EVENTS" scfile=/scratch/kocevski/493775/ft2_4FGL_J1320.7+3314_daily_bin1093.fits sctable="SC_DATA" expcube=/scratch/kocevski/493775/ltcube_522633601_522892801_4FGL_J1320.7+3314_daily_bin1093.fits outfile=/scratch/kocevski/493775/expmap_522633601_522892801_4FGL_J1320.7+3314_daily_bin1093.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/493775/ltcube_522633601_522892801_4FGL_J1320.7+3314_daily_bin1093.fits
.....................!
real 192.78
user 187.26
sys 4.68

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/493775/ft1_filtered_4FGL_J1320.7+3314_daily_bin1093.fits scfile=/scratch/kocevski/493775/ft2_4FGL_J1320.7+3314_daily_bin1093.fits outfile=/scratch/kocevski/493775/cmap_522633601_522892801_4FGL_J1320.7+3314_daily_bin1093.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/493775/ft1_filtered_4FGL_J1320.7+3314_daily_bin1093.fits scfile=/scratch/kocevski/493775/ft2_4FGL_J1320.7+3314_daily_bin1093.fits outfile=/scratch/kocevski/493775/cmap_HighResolution_522633601_522892801_4FGL_J1320.7+3314_daily_bin1093.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/493775/ft1_filtered_4FGL_J1320.7+3314_daily_bin1093.fits evtable="EVENTS" scfile=/scratch/kocevski/493775/ft2_4FGL_J1320.7+3314_daily_bin1093.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/493775/Model_4FGL_J1320.7+3314_daily_bin1093.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/493775/ft1_filtered_4FGL_J1320.7+3314_daily_bin1093.fits.....................!
real 50.29
user 48.85
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.8183       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.1736       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1145       1.0000         .10000E-03   10000.    
     5 'norm      '    .10531E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    27.735       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.694       1.0000         .10000E-03   10000.    
     8 'norm      '    6.9033       1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.211       1.0000         .10000E-03   10000.    
    10 'norm      '    5.8413       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.8571       1.0000         .10000E-03   10000.    
    13 'norm      '    2.0722       1.0000         .10000E-03   10000.    
    14 'norm      '    9.5166       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.3487       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    13.948       1.0000         .10000E-03   10000.    
    18 'Prefactor '    43.571       1.0000         .10000E-03   10000.    
    19 'norm      '    .11089E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    55.730       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.2669       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.6078       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .26478       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=   5752.740     FROM MIGRAD    STATUS=CONVERGED    626 CALLS     3243 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8189        9.2965        .27839E-07   -.63107E-04
   2  Prefactor     .10000E-03    38.765        .21611E-05** at limit **
   3  Prefactor     7.2000        126.89       -.14621E-04   -.53278E-04
   4  Prefactor     2.1141        5.6331        .55953E-05   -.46893E-03
   5  norm          .10000E-03    2.8279       -.17231E-06** at limit **
   6  Prefactor     27.736        50.753       -.47695E-06   -.37798E-04
   7  Prefactor     17.678        36.925        .29107E-05   -.17285E-05
   8  norm          6.9036        4.4208       -.15329E-07   -.18435E-03
   9  Prefactor     23.214        19.219       -.19299E-05   -.19720E-03
  10  norm          5.8419        5.5389       -.28147E-06   -.21692E-03
  11  norm          .10000E-03    5.0046        .71090E-06** at limit **
  12  norm          4.8540        7.7913        .52387E-07   -.35998E-03
  13  norm          2.0797        12.182       -.11879E-05   -.34423E-03
  14  norm          9.5186        16.492       -.24279E-06   -.47162E-04
  15  Prefactor     3.3486        3.3218        .24150E-07   -.21024E-03
  16  Prefactor     .10000E-03    4.7371        .37358E-07** at limit **
  17  norm          13.952        7.8615       -.15921E-06   -.16610E-03
  18  Prefactor     43.572        46.472       -.32396E-06   -.38864E-04
  19  norm          .10000E-03    17.815       -.15149E-06** at limit **
  20  Prefactor     .10000E-03    5.5778       -.41888E-06** at limit **
  21  Prefactor     55.732        30.004       -.37881E-06   -.12581E-03
  22  Prefactor     .10000E-03    35.430       -.26223E-05** at limit **
  23  Prefactor     2.2669        2.4282       -.30201E-07   -.10082E-03
  24  norm          .10000E-03    4.6617       -.40552E-06** at limit **
  25  Prefactor     .10000E-03    7.8423        .95557E-07** at limit **
  26  Normalizat    1.6082        .23697       -.22146E-05   -.17353E-03
  27  Prefactor     .26434        .26703        .56874E-05    .75144E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.81889
  Prefactor  = 0.0001
  Prefactor  = 7.19998
  Prefactor  = 2.11411
  norm       = 0.0001
  Prefactor  = 27.7355
  Prefactor  = 17.6779
  norm       = 6.90363
  Prefactor  = 23.2138
  norm       = 5.84187
  norm       = 0.0001
  norm       = 4.85399
  norm       = 2.07974
  norm       = 9.51858
  Prefactor  = 3.34859
  Prefactor  = 0.0001
  norm       = 13.9522
  Prefactor  = 43.5721
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 55.7323
  Prefactor  = 0.0001
  Prefactor  = 2.26694
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.6082
  Prefactor  = 0.264338
 **********
 **   18 **HESSE 
 **********

 FCN=   5752.740     FROM HESSE     STATUS=OK           484 CALLS     3727 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8189        9.2914        .63943E-03   -1.5081    
   2  Prefactor     .10000E-03    38.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.2000        128.33        .14977E-03   -1.5171    
   4  Prefactor     2.1141        5.6646        .13891E-02   -1.5417    
   5  norm          .10000E-03    2.8356        .12417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     27.736        50.792        .76071E-04   -1.4654    
   7  Prefactor     17.678        36.997        .95215E-04   -1.4867    
   8  norm          6.9036        4.4179        .12247E-03   -1.5182    
   9  Prefactor     23.214        19.271        .83141E-04   -1.4744    
  10  norm          5.8419        5.5273        .16122E-03   -1.5225    
  11  norm          .10000E-03    4.9998        .16560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.8540        8.3973        .13769E-03   -1.5267    
  13  norm          2.0797        14.289        .28695E-03   -1.5420    
  14  norm          9.5186        16.466        .12991E-03   -1.5091    
  15  Prefactor     3.3486        3.3081        .12812E-03   -1.5342    
  16  Prefactor     .10000E-03    4.7402        .16119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          13.952        7.8424        .10725E-03   -1.4961    
  18  Prefactor     43.572        46.450        .60735E-04   -1.4387    
  19  norm          .10000E-03    18.527        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.5768        .17486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     55.732        30.104        .53734E-04   -1.4213    
  22  Prefactor     .10000E-03    35.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.2669        2.4261        .11874E-03   -1.5407    
  24  norm          .10000E-03    4.6645        .15992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    7.8450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.6082        .23030        .20347E-03   -.74782    
  27  Prefactor     .26434        .25158        .52399E-03   -1.2442    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43554e-09
Minuit parameter uncertainties:
  1  9.2928
  2  8.99829e-05
  3  60.9468
  4  5.66599
  5  1.51442e-05
  6  50.8711
  7  37.0445
  8  4.41814
  9  19.2765
  10  5.52778
  11  1.48516e-05
  12  8.39938
  13  10.906
  14  16.4742
  15  3.30826
  16  5.63718e-07
  17  7.84302
  18  46.4885
  19  4.83897e-05
  20  4.56145e-06
  21  30.1118
  22  0.000176981
  23  2.42621
  24  1.08254e-05
  25  1.54088e-06
  26  0.230457
  27  0.252619
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  5.637e-07  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:  2.643e-01  2.526e-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.608e+00  2.305e-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: 6.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/493775/likelihoodResults_522633601_522892801_4FGL_J1320.7+3314_daily_bin1093.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) = 5752.74134037
delta logL = -0.000981952169241

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5752.74035832
delta logL = 1.03708771348e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4889       1.0000          .0000       10.000    
     3 'Normalizat'    1.6082       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .26434       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=   5752.740     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      249 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10240E-03    4.7536        .16379E-01** at limit **
   2  Index         2.4055        7.1397        .50000        .30730E-04
   3  Normalizat    1.6082        .43346E-02    .20347E-03    .18662E-04
   4  Prefactor     .26433        .48825E-02    .52400E-03    .26469E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102396
  Index      = 2.40551
  Normalizat = 1.6082
  Prefactor  = 0.264333
 **********
 **   18 **HESSE 
 **********

 FCN=   5752.740     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10240E-03    62.362        .16762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4055        8.2423        .50000       -.54556    
   3  Normalizat    1.6082        .15876E-01    .81389E-05   -.74782    
   4  Prefactor     .26433        .17883E-01    .20960E-04   -1.2442    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.3546e-08
Minuit parameter uncertainties:
  1  0.0244736
  2  337.172
  3  0.0158762
  4  0.0178829
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/493775': 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) = 5752.74035784
delta logL = 5.77280843572e-07

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.024e-04  2.447e-02  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.406e+00  3.372e+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:  2.643e-01  1.788e-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.608e+00  1.588e-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/493775/cmap_HighResolution_522633601_522892801_4FGL_J1320.7+3314_daily_bin1093.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.78e-03', job_status='DONE', photon_flux_upper_limit='6.14e-08', time_completed='2021-09-07 13:08:54.582241', job_id='493775', GAL2='0.26', fit_tolerance='1e-08', EG2='1.61', EG='1.61', time_epoch_completed='1631045334.58', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.26', dlogl='5.77e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1093' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:08:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 493775: <4FGL_J1320.7+3314_daily_bin1093> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin1093> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 12:55:57 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 12:56:43 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:56:43 2021
Terminated at Tue Sep  7 13:08:55 2021
Results reported at Tue Sep  7 13:08:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin1093 200.185 33.2378 522633601 522892801 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 :                                   717.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             314.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            778 sec.

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

