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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin25
RA = 200.185, Dec = 33.2378
tmin = 245808001, tmax = 246067201
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='487777', job_status='RUN', time_executed='2021-09-07 12:38:54.772767', time_epoch_executed='1631043534.77' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='25'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/487777

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/487777/ft1_4FGL_J1320.7+3314_daily_bin25.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/487777/ft2_4FGL_J1320.7+3314_daily_bin25.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/487777/ft1_4FGL_J1320.7+3314_daily_bin25.fits outfile=/scratch/kocevski/487777/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin25.fits ra=200.185 dec=33.2378 rad=12.0 tmin=245808001.0 tmax=246067201.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.54
user 1.31
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/487777/ft1_filtered_4FGL_J1320.7+3314_daily_bin25.fits" evtable="EVENTS" scfile=/scratch/kocevski/487777/ft2_4FGL_J1320.7+3314_daily_bin25.fits sctable="SC_DATA" outfile=/scratch/kocevski/487777/ltcube_245808001_246067201_4FGL_J1320.7+3314_daily_bin25.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/487777/ft2_4FGL_J1320.7+3314_daily_bin25.fits
.....................!
real 18.48
user 18.08
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/487777/ft1_filtered_4FGL_J1320.7+3314_daily_bin25.fits evtable="EVENTS" scfile=/scratch/kocevski/487777/ft2_4FGL_J1320.7+3314_daily_bin25.fits sctable="SC_DATA" expcube=/scratch/kocevski/487777/ltcube_245808001_246067201_4FGL_J1320.7+3314_daily_bin25.fits outfile=/scratch/kocevski/487777/expmap_245808001_246067201_4FGL_J1320.7+3314_daily_bin25.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/487777/ltcube_245808001_246067201_4FGL_J1320.7+3314_daily_bin25.fits
.....................!
real 192.70
user 186.95
sys 5.10

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/487777/ft1_filtered_4FGL_J1320.7+3314_daily_bin25.fits scfile=/scratch/kocevski/487777/ft2_4FGL_J1320.7+3314_daily_bin25.fits outfile=/scratch/kocevski/487777/cmap_245808001_246067201_4FGL_J1320.7+3314_daily_bin25.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.60
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/487777/ft1_filtered_4FGL_J1320.7+3314_daily_bin25.fits scfile=/scratch/kocevski/487777/ft2_4FGL_J1320.7+3314_daily_bin25.fits outfile=/scratch/kocevski/487777/cmap_HighResolution_245808001_246067201_4FGL_J1320.7+3314_daily_bin25.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.59
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/487777/ft1_filtered_4FGL_J1320.7+3314_daily_bin25.fits evtable="EVENTS" scfile=/scratch/kocevski/487777/ft2_4FGL_J1320.7+3314_daily_bin25.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/487777/Model_4FGL_J1320.7+3314_daily_bin25.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/487777/ft1_filtered_4FGL_J1320.7+3314_daily_bin25.fits.....................!
real 54.31
user 52.73
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12111       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.265       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.1030       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.1878       1.0000         .10000E-03   10000.    
    11 'norm      '    15.902       1.0000         .10000E-03   10000.    
    12 'norm      '    7.5703       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 '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .49361E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    44.170       1.0000         .10000E-03   10000.    
    19 'norm      '    5.3187       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .84720E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.969       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2872       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .74333       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5920E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6801.690     FROM MIGRAD    STATUS=CONVERGED    104 CALLS     2742 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10223        2.2491        .22625E-06   -.17012E-02
   2  Prefactor     .10000E-03    4.3504        .18507E-05** at limit **
   3  Prefactor     .10089E-03    15.990        .13519E-05** at limit **
   4  Prefactor     .10000E-03    1.0956        .16940E-06** at limit **
   5  norm          .10000E-03    1.1055        .27946E-06** at limit **
   6  Prefactor     15.264        1.0109       -.12067E-07    .81435E-03
   7  Prefactor     .10000E-03    8.4844        .55420E-06** at limit **
   8  norm          5.1030        1.8101       -.15953E-07   -.23258E-02
   9  Prefactor     .10000E-03    2.6700        .13916E-06** at limit **
  10  norm          4.1870        3.0865        .11816E-06   -.24733E-03
  11  norm          15.900        1.0246        .96132E-08   -.83867E-03
  12  norm          7.5711        2.3426       -.88927E-08   -.30172E-02
  13  norm          .10000E-03    2.8795       -.30369E-06** at limit **
  14  norm          .10001E-03    13.196        .16668E-05** at limit **
  15  Prefactor     .10000E-03    3.0787       -.27245E-06** at limit **
  16  Prefactor     .10000E-03    2.9477        .13763E-06** at limit **
  17  norm          .23530E-01    12.088       -.51287E-06    .12096E-02
  18  Prefactor     44.158        1.2472       -.23638E-07    .40468E-02
  19  norm          5.3438        1.5250        .52835E-07   -.80893E-03
  20  Prefactor     .10031E-03    203.72       -.12014E-05** at limit **
  21  Prefactor     12.974        1.2609        .21521E-08    .11645E-02
  22  Prefactor     .10099E-03    14.789        .83560E-06** at limit **
  23  Prefactor     .10000E-03    2.4551       -.31575E-06** at limit **
  24  norm          .10000E-03    5.2854        .15913E-05** at limit **
  25  Prefactor     .10003E-03    6.7305        .13807E-05** at limit **
  26  Normalizat    1.2870        .18663        .90211E-06    .47001E-03
  27  Prefactor     .74356        .22347        .72928E-07    .27634E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.102232
  Prefactor  = 0.000100001
  Prefactor  = 0.000100894
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.2645
  Prefactor  = 0.0001
  norm       = 5.10301
  Prefactor  = 0.0001
  norm       = 4.18703
  norm       = 15.9002
  norm       = 7.57108
  norm       = 0.0001
  norm       = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0235304
  Prefactor  = 44.1583
  norm       = 5.34376
  Prefactor  = 0.000100313
  Prefactor  = 12.9736
  Prefactor  = 0.000100986
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.000100031
  Normalizat = 1.28703
  Prefactor  = 0.743564
 **********
 **   18 **HESSE 
 **********

 FCN=   6801.690     FROM HESSE     STATUS=OK           554 CALLS     3296 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10223        5.7305        .96114E-01   -1.5644    
   2  Prefactor     .10000E-03    4.3626        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10089E-03    30.566        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.0946        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.1017        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.264        40.715        .25628E-02   -1.4926    
   7  Prefactor     .10000E-03    8.4780        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.1030        3.4266        .44496E-02   -1.5256    
   9  Prefactor     .10000E-03    2.6775        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.1870        3.4202        .49234E-02   -1.5299    
  11  norm          15.900        12.315        .25110E-02   -1.4910    
  12  norm          7.5711        3.8788        .36439E-02   -1.5158    
  13  norm          .10000E-03    2.8758        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10001E-03    13.477        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.5540        .34854E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.6174        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .23530E-01    5.8382        .52757E-01   -1.5677    
  18  Prefactor     44.158        50.660        .15081E-02   -1.4378    
  19  norm          5.3438        8.0299        .43567E-02   -1.5246    
  20  Prefactor     .10031E-03    9.8047        .94381E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.974        15.414        .27807E-02   -1.4987    
  22  Prefactor     .10099E-03    29.280        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.3685        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    11.727        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10003E-03    11.489        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2870        .16366        .33039E-01   -.83954    
  27  Prefactor     .74356        .19357        .71504E-01   -1.0184    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87337e-07
Minuit parameter uncertainties:
  1  1.53021
  2  0.000135663
  3  0.0104599
  4  5.85413e-06
  5  9.63398e-06
  6  40.7891
  7  4.71434e-05
  8  3.42674
  9  2.02453e-05
  10  3.42038
  11  12.3168
  12  3.87896
  13  2.42887e-05
  14  0.000596155
  15  5.49157e-05
  16  4.86844e-05
  17  0.739782
  18  50.7097
  19  8.03155
  20  0.00350282
  21  15.4185
  22  0.0107492
  23  1.17778e-05
  24  0.000280047
  25  0.00118444
  26  0.163724
  27  0.19375
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  4.868e-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:  7.436e-01  1.938e-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.287e+00  1.637e-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: 4.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/487777/likelihoodResults_245808001_246067201_4FGL_J1320.7+3314_daily_bin25.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) = 6801.69135627
delta logL = -0.00130821655785

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6801.690049
delta logL = -9.47470653045e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10592E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4928       1.0000          .0000       10.000    
     3 'Normalizat'    1.2872       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74341       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=   6801.690     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      253 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.082        .15464E-01** at limit **
   2  Index         1.7714        8.8062        .50000        .48622E-06
   3  Normalizat    1.2870        .88641E-02    .20673E-03    .24076E-04
   4  Prefactor     .74356        .10651E-01    .31644E-03    .23388E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.77141
  Normalizat = 1.28703
  Prefactor  = 0.743564
 **********
 **   18 **HESSE 
 **********

 FCN=   6801.690     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      282 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    271.94        .17508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7714        7.2542        .50000       -.70196    
   3  Normalizat    1.2870        .31206E-01    .41346E-04   -.83954    
   4  Prefactor     .74356        .37497E-01    .12658E-04   -1.0184    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.27861e-08
Minuit parameter uncertainties:
  1  0.000417071
  2  1233.71
  3  0.031207
  4  0.0374983
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/487777': 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) = 6801.69004482
delta logL = 3.23281892634e-06

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  4.171e-04  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  1.771e+00  1.234e+03  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:  7.436e-01  3.750e-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.287e+00  3.121e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/487777/cmap_HighResolution_245808001_246067201_4FGL_J1320.7+3314_daily_bin25.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.70e-03', job_status='DONE', photon_flux_upper_limit='4.75e-08', time_completed='2021-09-07 12:51:45.224031', job_id='487777', GAL2='0.74', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1631044305.22', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='3.23e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='25' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 12:51:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 487777: <4FGL_J1320.7+3314_daily_bin25> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin25> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 12:35:41 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 12:36:10 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:10 2021
Terminated at Tue Sep  7 12:51:46 2021
Results reported at Tue Sep  7 12:51:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin25 200.185 33.2378 245808001 246067201 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 :                                   770.55 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            965 sec.

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

