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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin1516
RA = 200.185, Dec = 33.2378
tmin = 632275201, tmax = 632534401
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='495455', job_status='RUN', time_executed='2021-09-07 13:06:06.998319', time_epoch_executed='1631045167.0' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='1516'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/495455

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/495455/ft1_4FGL_J1320.7+3314_daily_bin1516.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/495455/ft2_4FGL_J1320.7+3314_daily_bin1516.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/495455/ft1_4FGL_J1320.7+3314_daily_bin1516.fits outfile=/scratch/kocevski/495455/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin1516.fits ra=200.185 dec=33.2378 rad=12.0 tmin=632275201.0 tmax=632534401.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.81
user 3.56
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/495455/ft1_filtered_4FGL_J1320.7+3314_daily_bin1516.fits" evtable="EVENTS" scfile=/scratch/kocevski/495455/ft2_4FGL_J1320.7+3314_daily_bin1516.fits sctable="SC_DATA" outfile=/scratch/kocevski/495455/ltcube_632275201_632534401_4FGL_J1320.7+3314_daily_bin1516.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/495455/ft2_4FGL_J1320.7+3314_daily_bin1516.fits
.....................!
real 17.02
user 16.60
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/495455/ft1_filtered_4FGL_J1320.7+3314_daily_bin1516.fits evtable="EVENTS" scfile=/scratch/kocevski/495455/ft2_4FGL_J1320.7+3314_daily_bin1516.fits sctable="SC_DATA" expcube=/scratch/kocevski/495455/ltcube_632275201_632534401_4FGL_J1320.7+3314_daily_bin1516.fits outfile=/scratch/kocevski/495455/expmap_632275201_632534401_4FGL_J1320.7+3314_daily_bin1516.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/495455/ltcube_632275201_632534401_4FGL_J1320.7+3314_daily_bin1516.fits
.....................!
real 193.10
user 187.79
sys 4.59

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/495455/ft1_filtered_4FGL_J1320.7+3314_daily_bin1516.fits scfile=/scratch/kocevski/495455/ft2_4FGL_J1320.7+3314_daily_bin1516.fits outfile=/scratch/kocevski/495455/cmap_632275201_632534401_4FGL_J1320.7+3314_daily_bin1516.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.38
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/495455/ft1_filtered_4FGL_J1320.7+3314_daily_bin1516.fits evtable="EVENTS" scfile=/scratch/kocevski/495455/ft2_4FGL_J1320.7+3314_daily_bin1516.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/495455/Model_4FGL_J1320.7+3314_daily_bin1516.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/495455/ft1_filtered_4FGL_J1320.7+3314_daily_bin1516.fits.....................!
real 54.91
user 53.00
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6213       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13338E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .42107       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13478       1.0000         .10000E-03   10000.    
     8 'norm      '    .67243E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4665       1.0000         .10000E-03   10000.    
    10 'norm      '    18.400       1.0000         .10000E-03   10000.    
    11 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.2508       1.0000         .10000E-03   10000.    
    13 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    11.538       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.606       1.0000         .10000E-03   10000.    
    17 'norm      '    10.540       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .12273E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.8589       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10357E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.4199       1.0000         .10000E-03   10000.    
    24 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.2885       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .75237       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=   6520.728     FROM MIGRAD    STATUS=CONVERGED    703 CALLS     3375 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6220        7.8414       -.31828E-06    .97723E-04
   2  Prefactor     .10000E-03    8.9873       -.27902E-07** at limit **
   3  Prefactor     .10000E-03    105.84        .29877E-06** at limit **
   4  Prefactor     .10000E-03    3.5218        .17035E-07** at limit **
   5  norm          .42091        5.7772       -.18464E-06   -.39270E-03
   6  Prefactor     .10000E-03    46.223       -.25779E-06** at limit **
   7  Prefactor     .10004E-03    30.381       -.59010E-06** at limit **
   8  norm          .10619E-03    1.7198        .94022E-07** at limit **
   9  Prefactor     1.4664        43.738        .11556E-04   -.27254E-03
  10  norm          18.400        7.5907       -.75550E-06   -.41867E-03
  11  norm          .10000E-03    7.6883       -.48010E-07** at limit **
  12  norm          6.2499        4.3805       -.16303E-06   -.44287E-03
  13  norm          .10000E-03    2.5395        .46168E-07** at limit **
  14  norm          11.542        15.308        .22682E-06    .15737E-03
  15  Prefactor     .10000E-03    1.2196        .62547E-09** at limit **
  16  Prefactor     10.601        16.049       -.10148E-06   -.76043E-04
  17  norm          10.540        6.0071        .11334E-05    .21234E-02
  18  Prefactor     .10000E-03    47.626       -.19354E-06** at limit **
  19  norm          .10000E-03    6.4974       -.23826E-05** at limit **
  20  Prefactor     7.8594        11.783        .11181E-06    .20815E-04
  21  Prefactor     .10000E-03    4.7996       -.39794E-07** at limit **
  22  Prefactor     .10000E-03    28.142       -.45830E-07** at limit **
  23  Prefactor     1.4200        2.3610        .22953E-07   -.64156E-04
  24  norm          .10000E-03    48.127       -.13578E-05** at limit **
  25  Prefactor     .10000E-03    8.3168       -.46561E-07** at limit **
  26  Normalizat    1.2887        .16684       -.98192E-07    .36091E-03
  27  Prefactor     .75224        .19320        .77309E-08    .17775E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.62199
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.420914
  Prefactor  = 0.0001
  Prefactor  = 0.000100044
  norm       = 0.00010619
  Prefactor  = 1.46645
  norm       = 18.4003
  norm       = 0.0001
  norm       = 6.24989
  norm       = 0.0001
  norm       = 11.5421
  Prefactor  = 0.0001
  Prefactor  = 10.6009
  norm       = 10.54
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 7.85941
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.41999
  norm       = 0.000100005
  Prefactor  = 0.0001
  Normalizat = 1.28867
  Prefactor  = 0.752245
 **********
 **   18 **HESSE 
 **********

 FCN=   6520.728     FROM HESSE     STATUS=OK           500 CALLS     3875 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6220        7.7575        .25190E-03   -1.5384    
   2  Prefactor     .10000E-03    9.0025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    106.13        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.5527        .14794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .42091        5.7838        .34804E-03   -1.5578    
   6  Prefactor     .10000E-03    46.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10004E-03    35.639        .10375       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10619E-03    3.9925        .35512E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.4664        48.615        .17752E-02   -1.5466    
  10  norm          18.400        7.5975        .93371E-04   -1.4850    
  11  norm          .10000E-03    7.7068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.2499        4.3660        .12618E-03   -1.5208    
  13  norm          .10000E-03    2.5472        .12550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          11.542        15.304        .11794E-03   -1.5028    
  15  Prefactor     .10000E-03    1.2229        .86881E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.601        15.997        .12303E-03   -1.5057    
  17  norm          10.540        6.3207        .12341E-03   -1.5059    
  18  Prefactor     .10000E-03    47.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    19.246        .37491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.8594        11.783        .14303E-03   -1.5147    
  21  Prefactor     .10000E-03    4.8015        .17278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    28.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.4200        2.3239        .15469E-03   -1.5470    
  24  norm          .10000E-03    49.948        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8.3256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.2887        .20136        .21319E-03   -.83905    
  27  Prefactor     .75224        .23051        .32040E-03   -1.0151    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.79329e-09
Minuit parameter uncertainties:
  1  7.76052
  2  3.57971e-06
  3  0.000323226
  4  4.24992e-07
  5  3.12057
  6  0.000106777
  7  0.0025055
  8  0.00994327
  9  16.9012
  10  7.59793
  11  1.08481e-05
  12  4.36622
  13  5.87824e-06
  14  15.3094
  15  2.66538e-07
  16  16.0033
  17  6.32109
  18  4.11391e-05
  19  0.000313992
  20  11.7862
  21  5.82813e-06
  22  4.61328e-05
  23  2.32402
  24  0.000967981
  25  9.06127e-06
  26  0.201486
  27  0.230809
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.060e+01  1.600e+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:  7.522e-01  2.308e-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.289e+00  2.015e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/495455/likelihoodResults_632275201_632534401_4FGL_J1320.7+3314_daily_bin1516.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) = 6520.71166916
delta logL = 0.0163832626504

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6520.69612697
delta logL = 0.0319254497372

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9584       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9390       1.0000          .0000       10.000    
     3 'Normalizat'    1.2722       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76675       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6520.696     FROM MIGRAD    STATUS=FAILED       106 CALLS      282 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9387        519.94        .76043E-03    .14186E-03
   2  Index         2.9414        5.5312        .93733E-02    .45381E-03
   3  Normalizat    1.2723        .29537        .21431E-03    .95486E-06
   4  Prefactor     .76661        .31318        .31770E-03    .11809E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6520.696     FROM SIMPLEX   STATUS=UNCHANGED     87 CALLS      369 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9387        519.94        .22216E-03    .14186E-03
   2  Index         2.9414        5.5312        .11134E-02    .45381E-03
   3  Normalizat    1.2723        .29537        .21074E-03    .95486E-06
   4  Prefactor     .76661        .31318        .21140E-03    .11809E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6520.696     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      401 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9387        25.476        .15209E-03   -.48589E-05
   2  Index         2.9414        2.3183        .18747E-02    .16835E-04
   3  Normalizat    1.2723        .21133        .85725E-05    .10610E-05
   4  Prefactor     .76661        .24126        .12708E-04    .10735E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.93866
  Index      = 2.94141
  Normalizat = 1.27226
  Prefactor  = 0.766606
 **********
 **   18 **HESSE 
 **********

 FCN=   6520.696     FROM HESSE     STATUS=OK            25 CALLS      426 TOTAL
                     EDM=   .85E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9387        22.031        .60834E-05   -1.5181    
   2  Index         2.9414        2.0267        .37493E-03   -.42434    
   3  Normalizat    1.2723        .20818        .17145E-05   -.84398    
   4  Prefactor     .76661        .23809        .25416E-05   -1.0097    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.51578e-14
Minuit parameter uncertainties:
  1  22.0563
  2  2.1003
  3  0.208316
  4  0.23841
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/495455': 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): 0
logL (Free Index) = 6520.69612573
delta logL = 0.0319266921388

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  6.939e+00  2.206e+01  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.941e+00  2.100e+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:  7.666e-01  2.384e-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.272e+00  2.083e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.58
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/495455/cmap_HighResolution_632275201_632534401_4FGL_J1320.7+3314_daily_bin1516.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.83e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-09-07 13:19:40.393775', job_id='495455', GAL2='0.77', fit_tolerance='1e-08', EG2='1.27', EG='1.29', time_epoch_completed='1631045980.39', return_code2='0', ts='0.58', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='3.19e-02', ts2='0.66', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1516' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:19:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 495455: <4FGL_J1320.7+3314_daily_bin1516> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin1516> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep  7 13:05:25 2021
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 13:05: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:05:57 2021
Terminated at Tue Sep  7 13:19:43 2021
Results reported at Tue Sep  7 13:19:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin1516 200.185 33.2378 632275201 632534401 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 :                                   810.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   823 sec.
    Turnaround time :                            858 sec.

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

