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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin1009
RA = 200.185, Dec = 33.2378
tmin = 500860801, tmax = 501120001
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='493646', job_status='RUN', time_executed='2021-09-07 12:58:33.505964', time_epoch_executed='1631044713.51' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='1009'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/493646

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/493646/ft1_4FGL_J1320.7+3314_daily_bin1009.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/493646/ft2_4FGL_J1320.7+3314_daily_bin1009.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/493646/ft1_4FGL_J1320.7+3314_daily_bin1009.fits outfile=/scratch/kocevski/493646/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin1009.fits ra=200.185 dec=33.2378 rad=12.0 tmin=500860801.0 tmax=501120001.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 4.64
user 4.32
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/493646/ft1_filtered_4FGL_J1320.7+3314_daily_bin1009.fits" evtable="EVENTS" scfile=/scratch/kocevski/493646/ft2_4FGL_J1320.7+3314_daily_bin1009.fits sctable="SC_DATA" outfile=/scratch/kocevski/493646/ltcube_500860801_501120001_4FGL_J1320.7+3314_daily_bin1009.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/493646/ft2_4FGL_J1320.7+3314_daily_bin1009.fits
.....................!
real 16.28
user 15.81
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/493646/ft1_filtered_4FGL_J1320.7+3314_daily_bin1009.fits evtable="EVENTS" scfile=/scratch/kocevski/493646/ft2_4FGL_J1320.7+3314_daily_bin1009.fits sctable="SC_DATA" expcube=/scratch/kocevski/493646/ltcube_500860801_501120001_4FGL_J1320.7+3314_daily_bin1009.fits outfile=/scratch/kocevski/493646/expmap_500860801_501120001_4FGL_J1320.7+3314_daily_bin1009.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/493646/ltcube_500860801_501120001_4FGL_J1320.7+3314_daily_bin1009.fits
.....................!
real 192.79
user 186.57
sys 5.54

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/493646/ft1_filtered_4FGL_J1320.7+3314_daily_bin1009.fits scfile=/scratch/kocevski/493646/ft2_4FGL_J1320.7+3314_daily_bin1009.fits outfile=/scratch/kocevski/493646/cmap_500860801_501120001_4FGL_J1320.7+3314_daily_bin1009.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.61
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/493646/ft1_filtered_4FGL_J1320.7+3314_daily_bin1009.fits scfile=/scratch/kocevski/493646/ft2_4FGL_J1320.7+3314_daily_bin1009.fits outfile=/scratch/kocevski/493646/cmap_HighResolution_500860801_501120001_4FGL_J1320.7+3314_daily_bin1009.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.63
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/493646/ft1_filtered_4FGL_J1320.7+3314_daily_bin1009.fits evtable="EVENTS" scfile=/scratch/kocevski/493646/ft2_4FGL_J1320.7+3314_daily_bin1009.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/493646/Model_4FGL_J1320.7+3314_daily_bin1009.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/493646/ft1_filtered_4FGL_J1320.7+3314_daily_bin1009.fits.....................!
real 40.14
user 38.61
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9650       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    8.9001       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.8475       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.7572       1.0000         .10000E-03   10000.    
    11 'norm      '    26.570       1.0000         .10000E-03   10000.    
    12 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.5352       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.6186       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    24.422       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .42976E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .15654E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12376E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .32468E-02   1.0000         .10000E-03   10000.    
    24 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .41053       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.4515       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=   4472.322     FROM MIGRAD    STATUS=CONVERGED    694 CALLS     2854 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9667        10.896       -.88588E-06   -.11373E-03
   2  Prefactor     .10000E-03    9.0954       -.42490E-05** at limit **
   3  Prefactor     .10000E-03    81.908       -.30968E-04** at limit **
   4  Prefactor     .10000E-03    3.4505       -.69752E-07** at limit **
   5  norm          8.9006        5.9535        .14457E-05    .63863E-04
   6  Prefactor     .10000E-03    29.059       -.21841E-06** at limit **
   7  Prefactor     .10000E-03    7.7091       -.36293E-06** at limit **
   8  norm          6.8475        5.4805        .30566E-06   -.20217E-03
   9  Prefactor     .10000E-03    9.2345        .30695E-05** at limit **
  10  norm          4.7577        6.4019        .22103E-06   -.39129E-03
  11  norm          26.570        15.855       -.34033E-07   -.13930E-05
  12  norm          .10000E-03    1.7536       -.14858E-06** at limit **
  13  norm          .10000E-03    2.1055       -.28268E-06** at limit **
  14  norm          6.5352        20.484        .65182E-06   -.29556E-04
  15  Prefactor     8.6188        4.2522       -.14816E-06   -.52228E-03
  16  Prefactor     .10000E-03    8.8224        .21251E-05** at limit **
  17  norm          24.420        10.567        .19074E-06    .29625E-04
  18  Prefactor     .10000E-03    69.074        .11138E-04** at limit **
  19  norm          .10010E-03    7.5478       -.22810E-06** at limit **
  20  Prefactor     .10045E-03    11.701        .24616E-05** at limit **
  21  Prefactor     .10000E-03    14.284       -.47277E-06** at limit **
  22  Prefactor     .10000E-03    114.26        .18870E-04** at limit **
  23  Prefactor     .10004E-03    2.6763       -.17778E-06** at limit **
  24  norm          .10000E-03    6.1466        .76134E-07** at limit **
  25  Prefactor     .10000E-03    7.9542        .38639E-06** at limit **
  26  Normalizat    .41052        .17997       -.11998E-05   -.20231E-03
  27  Prefactor     1.4515        .22526        .32726E-07   -.16039E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.96666
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.90057
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.84749
  Prefactor  = 0.0001
  norm       = 4.75766
  norm       = 26.5697
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.53521
  Prefactor  = 8.61879
  Prefactor  = 0.0001
  norm       = 24.4201
  Prefactor  = 0.0001
  norm       = 0.000100096
  Prefactor  = 0.000100449
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100043
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.410519
  Prefactor  = 1.45149
 **********
 **   18 **HESSE 
 **********

 FCN=   4472.322     FROM HESSE     STATUS=OK           492 CALLS     3346 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9667        10.898        .20257E-03   -1.5310    
   2  Prefactor     .10000E-03    9.0968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    82.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.4822        .12127E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.9006        5.9601        .12712E-03   -1.5111    
   6  Prefactor     .10000E-03    29.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.7118        .18135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.8475        5.4595        .13264E-03   -1.5185    
   9  Prefactor     .10000E-03    9.2559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.7577        6.3702        .18199E-03   -1.5272    
  11  norm          26.570        15.851        .77718E-04   -1.4677    
  12  norm          .10000E-03    1.7746        .86368E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.1094        .94763E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.5352        20.444        .15698E-03   -1.5197    
  15  Prefactor     8.6188        4.2429        .88578E-04   -1.5121    
  16  Prefactor     .10000E-03    8.8481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          24.420        10.664        .81058E-04   -1.4719    
  18  Prefactor     .10000E-03    69.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10010E-03    16.622        .54645E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10045E-03    77.770        .42865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    114.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10004E-03    51.079        .20420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    6.1648        .16193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    7.9589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .41052        .20066        .30457E-03   -1.1676    
  27  Prefactor     1.4515        .25940        .22204E-03   -.78908    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.68639e-09
Minuit parameter uncertainties:
  1  10.9032
  2  1.32073e-06
  3  0.000239847
  4  1.35789e-06
  5  5.96048
  6  6.94434e-06
  7  1.34817e-05
  8  5.45988
  9  5.66003e-06
  10  6.37106
  11  15.8532
  12  5.619e-06
  13  2.29787e-06
  14  20.4656
  15  4.24302
  16  3.83955e-06
  17  10.6646
  18  1.35268e-06
  19  0.00252304
  20  0.0118391
  21  1.19007e-05
  22  1.51426e-05
  23  0.00295854
  24  2.31564e-06
  25  1.49834e-06
  26  0.201017
  27  0.259635
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  3.840e-06  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.451e+00  2.596e-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.105e-01  2.010e-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.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/493646/likelihoodResults_500860801_501120001_4FGL_J1320.7+3314_daily_bin1009.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) = 4472.32292274
delta logL = -0.000537444877409

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4472.32238528
delta logL = 9.9507815321e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5208       1.0000          .0000       10.000    
     3 'Normalizat'    .41053       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4515       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=   4472.322     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      212 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.601        .90712E-02** at limit **
   2  Index         2.5338        5.7690        .50000       -.13863E-04
   3  Normalizat    .41052        .16977        .68798E-01    .36074E-04
   4  Prefactor     1.4515        .22261        .50229E-01   -.13302E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.53381
  Normalizat = 0.410521
  Prefactor  = 1.45149
 **********
 **   18 **HESSE 
 **********

 FCN=   4472.322     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      245 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1078.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5338        8.1296        .50000       -.51581    
   3  Normalizat    .41052        .55024E-01    .30457E-03   -1.1676    
   4  Prefactor     1.4515        .72274E-01    .22204E-03   -.78908    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.48362e-08
Minuit parameter uncertainties:
  1  4.45054e-05
  2  48.6679
  3  0.0550315
  4  0.0722792
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/493646': 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) = 4472.32238521
delta logL = 7.69296093495e-08

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  4.451e-05  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.534e+00  4.867e+01  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.451e+00  7.228e-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:  4.105e-01  5.503e-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/493646/cmap_HighResolution_500860801_501120001_4FGL_J1320.7+3314_daily_bin1009.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.82e-03', job_status='DONE', photon_flux_upper_limit='7.47e-08', time_completed='2021-09-07 13:09:01.916010', job_id='493646', GAL2='1.45', fit_tolerance='1e-08', EG2='0.41', EG='0.41', time_epoch_completed='1631045341.92', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.45', dlogl='7.69e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1009' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:09:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 493646: <4FGL_J1320.7+3314_daily_bin1009> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin1009 200.185 33.2378 500860801 501120001 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 :                                   626.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            796 sec.

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

