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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin1341
RA = 200.185, Dec = 33.2378
tmin = 586915201, tmax = 587174401
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='494844', job_status='RUN', time_executed='2021-09-07 13:02:14.180257', time_epoch_executed='1631044934.18' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='1341'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/494844

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/494844/ft1_4FGL_J1320.7+3314_daily_bin1341.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/494844/ft2_4FGL_J1320.7+3314_daily_bin1341.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/494844/ft1_4FGL_J1320.7+3314_daily_bin1341.fits outfile=/scratch/kocevski/494844/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin1341.fits ra=200.185 dec=33.2378 rad=12.0 tmin=586915201.0 tmax=587174401.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.68
user 3.40
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/494844/ft1_filtered_4FGL_J1320.7+3314_daily_bin1341.fits" evtable="EVENTS" scfile=/scratch/kocevski/494844/ft2_4FGL_J1320.7+3314_daily_bin1341.fits sctable="SC_DATA" outfile=/scratch/kocevski/494844/ltcube_586915201_587174401_4FGL_J1320.7+3314_daily_bin1341.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/494844/ft2_4FGL_J1320.7+3314_daily_bin1341.fits
.....................!
real 16.95
user 16.57
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/494844/ft1_filtered_4FGL_J1320.7+3314_daily_bin1341.fits evtable="EVENTS" scfile=/scratch/kocevski/494844/ft2_4FGL_J1320.7+3314_daily_bin1341.fits sctable="SC_DATA" expcube=/scratch/kocevski/494844/ltcube_586915201_587174401_4FGL_J1320.7+3314_daily_bin1341.fits outfile=/scratch/kocevski/494844/expmap_586915201_587174401_4FGL_J1320.7+3314_daily_bin1341.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/494844/ltcube_586915201_587174401_4FGL_J1320.7+3314_daily_bin1341.fits
.....................!
real 193.30
user 187.99
sys 4.82

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/494844/ft1_filtered_4FGL_J1320.7+3314_daily_bin1341.fits scfile=/scratch/kocevski/494844/ft2_4FGL_J1320.7+3314_daily_bin1341.fits outfile=/scratch/kocevski/494844/cmap_586915201_587174401_4FGL_J1320.7+3314_daily_bin1341.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.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/494844/ft1_filtered_4FGL_J1320.7+3314_daily_bin1341.fits scfile=/scratch/kocevski/494844/ft2_4FGL_J1320.7+3314_daily_bin1341.fits outfile=/scratch/kocevski/494844/cmap_HighResolution_586915201_587174401_4FGL_J1320.7+3314_daily_bin1341.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.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.9474       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10635E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.4610       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.0757       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.9460       1.0000         .10000E-03   10000.    
    10 'norm      '    3.8082       1.0000         .10000E-03   10000.    
    11 'norm      '    17.881       1.0000         .10000E-03   10000.    
    12 'norm      '    7.4853       1.0000         .10000E-03   10000.    
    13 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .18297E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    13.134       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.2267       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.2632       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1360       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .98859       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=   5679.800     FROM MIGRAD    STATUS=CONVERGED    673 CALLS     2823 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9480        8.9659        .26551E-07   -.14198E-04
   2  Prefactor     .10000E-03    13.150        .20934E-05** at limit **
   3  Prefactor     .10000E-03    19.765       -.58323E-05** at limit **
   4  Prefactor     .10019E-03    6.1013       -.44005E-06** at limit **
   5  norm          2.4598        4.8197       -.91677E-06   -.22440E-03
   6  Prefactor     .10000E-03    20.858        .59222E-05** at limit **
   7  Prefactor     2.0676        38.129        .94550E-05   -.43750E-03
   8  norm          .10000E-03    1.1106        .15821E-07** at limit **
   9  Prefactor     3.9436        14.170        .75543E-06    .18825E-04
  10  norm          3.8080        4.6447       -.27842E-06   -.76216E-04
  11  norm          17.882        13.670       -.35378E-07   -.14584E-04
  12  norm          7.4833        4.9864       -.28101E-06   -.27736E-04
  13  norm          .10000E-03    2.8369       -.63917E-07** at limit **
  14  norm          .10000E-03    63.619        .92955E-05** at limit **
  15  Prefactor     .10000E-03    2.0161       -.68597E-07** at limit **
  16  Prefactor     .10000E-03    12.620       -.20755E-05** at limit **
  17  norm          13.128        8.4137       -.37035E-06   -.26273E-03
  18  Prefactor     .10001E-03    49.287       -.11423E-04** at limit **
  19  norm          6.2265        7.7932       -.29314E-06   -.12545E-03
  20  Prefactor     6.2623        14.675       -.40304E-07   -.22531E-04
  21  Prefactor     .10000E-03    6.8117        .65636E-07** at limit **
  22  Prefactor     .10000E-03    43.130        .34340E-05** at limit **
  23  Prefactor     .10000E-03    1.6530       -.35804E-07** at limit **
  24  norm          .10000E-03    8.0785        .12091E-06** at limit **
  25  Prefactor     .10000E-03    14.311        .40654E-06** at limit **
  26  Normalizat    1.1360        .18293       -.26041E-07   -.52881E-04
  27  Prefactor     .98850        .21851       -.36652E-06   -.37621E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.94796
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100193
  norm       = 2.45982
  Prefactor  = 0.000100002
  Prefactor  = 2.06763
  norm       = 0.0001
  Prefactor  = 3.94361
  norm       = 3.80801
  norm       = 17.8817
  norm       = 7.4833
  norm       = 0.0001
  norm       = 0.000100004
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 13.1285
  Prefactor  = 0.000100008
  norm       = 6.22653
  Prefactor  = 6.26233
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.13602
  Prefactor  = 0.988503
 **********
 **   18 **HESSE 
 **********

 FCN=   5679.800     FROM HESSE     STATUS=OK           496 CALLS     3319 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.9480        8.9658        .14223E-03   -1.5144    
   2  Prefactor     .10000E-03    13.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10019E-03    7.5376        .53424E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.4598        4.9501        .20484E-03   -1.5394    
   6  Prefactor     .10000E-03    21.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.0676        92.166        .14334E-02   -1.5420    
   8  norm          .10000E-03    1.1162        .77557E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.9436        14.102        .20307E-03   -1.5311    
  10  norm          3.8080        4.5905        .16905E-03   -1.5318    
  11  norm          17.882        13.670        .94717E-04   -1.4862    
  12  norm          7.4833        5.0039        .12336E-03   -1.5161    
  13  norm          .10000E-03    2.8388        .12383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    66.402        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.1361        .19952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          13.128        8.4203        .11052E-03   -1.4983    
  18  Prefactor     .10001E-03    50.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.2265        7.7845        .16087E-03   -1.5209    
  20  Prefactor     6.2623        14.667        .16040E-03   -1.5207    
  21  Prefactor     .10000E-03    6.8186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    43.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.6640        .94591E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    8.0972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    14.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1360        .21624        .22928E-03   -.88604    
  27  Prefactor     .98850        .25887        .29274E-03   -.93114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.29264e-09
Minuit parameter uncertainties:
  1  8.96734
  2  0.000125359
  3  0.000416305
  4  0.00241392
  5  4.95096
  6  0.000437703
  7  27.6539
  8  4.99789e-07
  9  14.1143
  10  4.59092
  11  13.6727
  12  5.00413
  13  7.73518e-07
  14  0.00100162
  15  0.000160151
  16  9.93056e-05
  17  8.42107
  18  0.00126782
  19  7.78579
  20  14.6753
  21  4.47623e-06
  22  0.000363906
  23  1.03534e-07
  24  5.99673e-06
  25  2.56294e-05
  26  0.216409
  27  0.2592
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  9.931e-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:  9.885e-01  2.592e-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.136e+00  2.164e-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: 7.97e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/494844/likelihoodResults_586915201_587174401_4FGL_J1320.7+3314_daily_bin1341.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) = 5679.80065485
delta logL = -0.000374868049221

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5679.80027983
delta logL = 1.52516804519e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4766       1.0000          .0000       10.000    
     3 'Normalizat'    1.1360       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98849       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=   5679.800     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      251 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10460E-03    6.4850        .18142E-01** at limit **
   2  Index         2.3680        8.5706        .50000        .16578E-04
   3  Normalizat    1.1360        .29332E-02    .22928E-03    .73284E-04
   4  Prefactor     .98850        .35338E-02    .29274E-03    .31496E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104601
  Index      = 2.36799
  Normalizat = 1.13602
  Prefactor  = 0.988503
 **********
 **   18 **HESSE 
 **********

 FCN=   5679.800     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      280 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10460E-03    461.93        .56216E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3680        5.1916        .50000       -.55436    
   3  Normalizat    1.1360        .25349E-01    .91714E-05   -.88604    
   4  Prefactor     .98850        .30540E-01    .11710E-04   -.93114    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.28974e-08
Minuit parameter uncertainties:
  1  0.0929328
  2  801.724
  3  0.0253495
  4  0.0305403
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/494844': 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) = 5679.80027951
delta logL = 4.65631273983e-07

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.046e-04  9.293e-02  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.368e+00  8.017e+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.885e-01  3.054e-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.136e+00  2.535e-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/494844/cmap_HighResolution_586915201_587174401_4FGL_J1320.7+3314_daily_bin1341.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.20e-03', job_status='DONE', photon_flux_upper_limit='7.97e-08', time_completed='2021-09-07 13:13:49.307438', job_id='494844', GAL2='0.99', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1631045629.31', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='4.66e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1341' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:13:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 494844: <4FGL_J1320.7+3314_daily_bin1341> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin1341> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep  7 13:01:04 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 13:01:57 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:01:57 2021
Terminated at Tue Sep  7 13:13:50 2021
Results reported at Tue Sep  7 13:13:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin1341 200.185 33.2378 586915201 587174401 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 :                                   693.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   712 sec.
    Turnaround time :                            766 sec.

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

