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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin21
RA = 200.185, Dec = 33.2378
tmin = 244771201, tmax = 245030401
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='487771', job_status='RUN', time_executed='2021-09-07 12:39:19.695573', time_epoch_executed='1631043559.7' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='21'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/487771

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/487771/ft1_4FGL_J1320.7+3314_daily_bin21.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/487771/ft2_4FGL_J1320.7+3314_daily_bin21.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/487771/ft1_4FGL_J1320.7+3314_daily_bin21.fits outfile=/scratch/kocevski/487771/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin21.fits ra=200.185 dec=33.2378 rad=12.0 tmin=244771201.0 tmax=245030401.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 1.48
user 1.30
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/487771/ft2_4FGL_J1320.7+3314_daily_bin21.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/487771/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin21.fits evtable="EVENTS" outfile="/scratch/kocevski/487771/ft1_filtered_4FGL_J1320.7+3314_daily_bin21.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/487771/ft1_filtered_4FGL_J1320.7+3314_daily_bin21.fits" evtable="EVENTS" scfile=/scratch/kocevski/487771/ft2_4FGL_J1320.7+3314_daily_bin21.fits sctable="SC_DATA" outfile=/scratch/kocevski/487771/ltcube_244771201_245030401_4FGL_J1320.7+3314_daily_bin21.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/487771/ft2_4FGL_J1320.7+3314_daily_bin21.fits
.....................!
real 17.37
user 16.63
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/487771/ft1_filtered_4FGL_J1320.7+3314_daily_bin21.fits evtable="EVENTS" scfile=/scratch/kocevski/487771/ft2_4FGL_J1320.7+3314_daily_bin21.fits sctable="SC_DATA" expcube=/scratch/kocevski/487771/ltcube_244771201_245030401_4FGL_J1320.7+3314_daily_bin21.fits outfile=/scratch/kocevski/487771/expmap_244771201_245030401_4FGL_J1320.7+3314_daily_bin21.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/487771/ltcube_244771201_245030401_4FGL_J1320.7+3314_daily_bin21.fits
.....................!
real 191.45
user 187.11
sys 3.91

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

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

This is gtbin version HEAD
real 0.56
user 0.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/487771/ft1_filtered_4FGL_J1320.7+3314_daily_bin21.fits scfile=/scratch/kocevski/487771/ft2_4FGL_J1320.7+3314_daily_bin21.fits outfile=/scratch/kocevski/487771/cmap_HighResolution_244771201_245030401_4FGL_J1320.7+3314_daily_bin21.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=200.185 yref=33.2378 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/487771/ft1_filtered_4FGL_J1320.7+3314_daily_bin21.fits evtable="EVENTS" scfile=/scratch/kocevski/487771/ft2_4FGL_J1320.7+3314_daily_bin21.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/487771/Model_4FGL_J1320.7+3314_daily_bin21.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/487771/ft1_filtered_4FGL_J1320.7+3314_daily_bin21.fits.....................!
real 40.19
user 38.89
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.064       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10358E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9618       1.0000         .10000E-03   10000.    
     5 'norm      '    4.0348       1.0000         .10000E-03   10000.    
     6 'Prefactor '    42.084       1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.867       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.863       1.0000         .10000E-03   10000.    
    13 'norm      '    .80034E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .64858       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.1249       1.0000         .10000E-03   10000.    
    17 'norm      '    1.8832       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10845E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.5734       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .84036       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    63.761       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .99695       1.0000         .10000E-03   10000.    
    24 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10559E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .55544       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.3570       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=   4522.663     FROM MIGRAD    STATUS=CONVERGED    654 CALLS     3304 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.0970        .21282E-07** at limit **
   2  Prefactor     14.063        14.342        .67455E-08    .28962E-05
   3  Prefactor     .10000E-03    30.869       -.10926E-07** at limit **
   4  Prefactor     2.9631        3.7941       -.95671E-08    .64095E-04
   5  norm          4.0328        4.6071       -.76156E-07   -.37752E-04
   6  Prefactor     42.133        58.078        .26997E-06   -.96029E-04
   7  Prefactor     24.894        33.484        .12174E-05   -.53133E-04
   8  norm          .10000E-03    1.0264        .24470E-07** at limit **
   9  Prefactor     .10000E-03    4.9399       -.61659E-08** at limit **
  10  norm          .10000E-03    1.6359        .72506E-08** at limit **
  11  norm          .10000E-03    7.5669       -.13216E-06** at limit **
  12  norm          10.879        5.3261       -.89197E-06   -.42584E-03
  13  norm          .10000E-03    12.855       -.35530E-06** at limit **
  14  norm          .10000E-03    5.7699        .25051E-07** at limit **
  15  Prefactor     .64468        6.9791       -.10270E-05    .16784E-03
  16  Prefactor     7.1256        20.614        .26126E-05    .11795E-03
  17  norm          1.8848        5.3356       -.26563E-06    .15969E-03
  18  Prefactor     .10000E-03    102.43        .43390E-06** at limit **
  19  norm          4.5736        8.4749        .11845E-07    .67887E-04
  20  Prefactor     .88195        33.640        .42391E-05   -.61841E-04
  21  Prefactor     .10000E-03    13.728        .13825E-06** at limit **
  22  Prefactor     63.794        54.337        .25608E-06   -.79885E-04
  23  Prefactor     .99704        2.0701        .45617E-07   -.85411E-05
  24  norm          .10000E-03    8.9526       -.31152E-07** at limit **
  25  Prefactor     .10000E-03    9.8431        .41417E-07** at limit **
  26  Normalizat    .55543        .18506        .54909E-06   -.31553E-05
  27  Prefactor     1.3569        .22695       -.39625E-06    .16861E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 14.0628
  Prefactor  = 0.0001
  Prefactor  = 2.96312
  norm       = 4.03278
  Prefactor  = 42.1333
  Prefactor  = 24.8936
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 10.8789
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.644675
  Prefactor  = 7.12556
  norm       = 1.88477
  Prefactor  = 0.0001
  norm       = 4.57362
  Prefactor  = 0.881955
  Prefactor  = 0.0001
  Prefactor  = 63.7938
  Prefactor  = 0.997037
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.555426
  Prefactor  = 1.35693
 **********
 **   18 **HESSE 
 **********

 FCN=   4522.663     FROM HESSE     STATUS=OK           496 CALLS     3800 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.1032        .13294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.063        14.342        .10680E-03   -1.4958    
   3  Prefactor     .10000E-03    30.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.9631        3.7862        .14399E-03   -1.5364    
   5  norm          4.0328        4.5844        .13817E-03   -1.5306    
   6  Prefactor     42.133        57.882        .30897E-03   -1.4409    
   7  Prefactor     24.894        33.555        .80330E-04   -1.4710    
   8  norm          .10000E-03    1.0290        .66533E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.9441        .14597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.6385        .83974E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    7.5797        .18063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.879        5.5688        .95825E-04   -1.5048    
  13  norm          .10000E-03    21.235        .34376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    5.7708        .15777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .64468        10.483        .21442E-02   -1.5547    
  16  Prefactor     7.1256        21.900        .15028E-03   -1.5174    
  17  norm          1.8848        5.2347        .23509E-03   -1.5433    
  18  Prefactor     .10000E-03    102.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.5736        8.3517        .18823E-03   -1.5280    
  20  Prefactor     .88195        46.412        .45721E-02   -1.5520    
  21  Prefactor     .10000E-03    13.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     63.794        54.283        .25128E-03   -1.4109    
  23  Prefactor     .99704        1.6736        .13524E-02   -1.5508    
  24  norm          .10000E-03    8.9818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    9.8524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .55543        .22161        .26923E-03   -1.0991    
  27  Prefactor     1.3569        .27709        .22984E-03   -.81630    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46191e-08
Minuit parameter uncertainties:
  1  4.69318e-06
  2  14.3453
  3  2.19825e-05
  4  3.78651
  5  4.58482
  6  57.9588
  7  33.5799
  8  1.91624e-06
  9  4.47995e-06
  10  3.64099e-06
  11  2.0097e-05
  12  5.56904
  13  0.000164727
  14  2.48926e-06
  15  5.20003
  16  21.9247
  17  5.236
  18  0.000217369
  19  8.35387
  20  12.8056
  21  4.26433e-05
  22  54.3252
  23  1.67367
  24  1.94208e-05
  25  2.84965e-05
  26  0.221963
  27  0.277393
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  7.126e+00  2.192e+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.357e+00  2.774e-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:  5.554e-01  2.220e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/487771/likelihoodResults_244771201_245030401_4FGL_J1320.7+3314_daily_bin21.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) = 4521.97914062
delta logL = 0.683375989698

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4521.95583335
delta logL = 0.706683256148

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .98598       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1717       1.0000          .0000       10.000    
     3 'Normalizat'    .49422       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4110       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=   4521.956     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      265 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .98073        13.208        .12203E-01    .11643E-02
   2  Index         4.1739        2.6080        .11929        .16555E-03
   3  Normalizat    .49421        .39460E-01    .64182E-01   -.48444E-04
   4  Prefactor     1.4110        .50841E-01    .51098E-01   -.13582E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.980733
  Index      = 4.17392
  Normalizat = 0.494209
  Prefactor  = 1.41101
 **********
 **   18 **HESSE 
 **********

 FCN=   4521.956     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      298 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .98073        34.836        .55332E-03   -1.5510    
   2  Index         4.1739        7.0144        .42403E-02   -.16598    
   3  Normalizat    .49421        .16428        .28404E-03   -1.1268    
   4  Prefactor     1.4110        .20987        .22590E-03   -.80063    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.40783e-10
Minuit parameter uncertainties:
  1  11.697
  2  5.73634
  3  0.164436
  4  0.209997
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/487771': 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) = 4521.95583213
delta logL = 0.706684473727

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  9.807e-01  1.170e+01  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  4.174e+00  5.736e+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.411e+00  2.100e-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:  4.942e-01  1.644e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.79
Ra Dec: 200.185 33.238
Photon Index (Free Index): 4.17 +/- 5.74
Photon Flux (Free Index): 6.24e-08 +/- 5.15e-08
Energy Flux (Free Index): 9.10e-06 +/- 1.12e-05

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/487771/cmap_HighResolution_244771201_245030401_4FGL_J1320.7+3314_daily_bin21.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.24e-03', comment='SUCCESS', energy_flux2='9.10e-06', dlogl='7.07e-01', photon_flux2='6.24e-08', job_status='DONE', time_completed='2021-09-07 12:50:00.152190', photon_index_error2='5.74', photon_index2='4.17', ts='0.26', fit_tolerance='1e-08', GAL='1.36', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='1.12e-05', EG='0.56', time_epoch_completed='1631044200.15', return_code='0', job_id='487771', GAL2='1.41', EG2='0.49', return_code2='102', photon_flux_error2='5.15e-08', ts2='1.79', photon_index='2.51' WHERE bin_id='21' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 12:50:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 487771: <4FGL_J1320.7+3314_daily_bin21> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin21> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 12:35:40 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 12:36:09 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:36:09 2021
Terminated at Tue Sep  7 12:50:00 2021
Results reported at Tue Sep  7 12:50:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin21 200.185 33.2378 244771201 245030401 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 :                                   641.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            860 sec.

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

