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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin68
RA = 200.185, Dec = 33.2378
tmin = 256953601, tmax = 257212801
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='487854', job_status='RUN', time_executed='2021-09-07 12:38:52.717810', time_epoch_executed='1631043532.72' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='68'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/487854

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/487854/ft1_4FGL_J1320.7+3314_daily_bin68.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/487854/ft2_4FGL_J1320.7+3314_daily_bin68.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/487854/ft1_4FGL_J1320.7+3314_daily_bin68.fits outfile=/scratch/kocevski/487854/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin68.fits ra=200.185 dec=33.2378 rad=12.0 tmin=256953601.0 tmax=257212801.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.24
user 1.05
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/487854/ft2_4FGL_J1320.7+3314_daily_bin68.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/487854/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin68.fits evtable="EVENTS" outfile="/scratch/kocevski/487854/ft1_filtered_4FGL_J1320.7+3314_daily_bin68.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.45
user 0.29
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/487854/ft1_filtered_4FGL_J1320.7+3314_daily_bin68.fits" evtable="EVENTS" scfile=/scratch/kocevski/487854/ft2_4FGL_J1320.7+3314_daily_bin68.fits sctable="SC_DATA" outfile=/scratch/kocevski/487854/ltcube_256953601_257212801_4FGL_J1320.7+3314_daily_bin68.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/487854/ft2_4FGL_J1320.7+3314_daily_bin68.fits
.....................!
real 14.47
user 14.11
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/487854/ft1_filtered_4FGL_J1320.7+3314_daily_bin68.fits evtable="EVENTS" scfile=/scratch/kocevski/487854/ft2_4FGL_J1320.7+3314_daily_bin68.fits sctable="SC_DATA" expcube=/scratch/kocevski/487854/ltcube_256953601_257212801_4FGL_J1320.7+3314_daily_bin68.fits outfile=/scratch/kocevski/487854/expmap_256953601_257212801_4FGL_J1320.7+3314_daily_bin68.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/487854/ltcube_256953601_257212801_4FGL_J1320.7+3314_daily_bin68.fits
.....................!
real 156.95
user 152.19
sys 4.33

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/487854/ft1_filtered_4FGL_J1320.7+3314_daily_bin68.fits scfile=/scratch/kocevski/487854/ft2_4FGL_J1320.7+3314_daily_bin68.fits outfile=/scratch/kocevski/487854/cmap_256953601_257212801_4FGL_J1320.7+3314_daily_bin68.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.47
user 0.32
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/487854/ft1_filtered_4FGL_J1320.7+3314_daily_bin68.fits scfile=/scratch/kocevski/487854/ft2_4FGL_J1320.7+3314_daily_bin68.fits outfile=/scratch/kocevski/487854/cmap_HighResolution_256953601_257212801_4FGL_J1320.7+3314_daily_bin68.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.49
user 0.32
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/487854/ft1_filtered_4FGL_J1320.7+3314_daily_bin68.fits evtable="EVENTS" scfile=/scratch/kocevski/487854/ft2_4FGL_J1320.7+3314_daily_bin68.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/487854/Model_4FGL_J1320.7+3314_daily_bin68.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/487854/ft1_filtered_4FGL_J1320.7+3314_daily_bin68.fits.....................!
real 49.33
user 48.05
sys 1.06

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10449E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .30971       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.5614       1.0000         .10000E-03   10000.    
     5 'norm      '    5.9544       1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.421       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.3437       1.0000         .10000E-03   10000.    
     8 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .43865E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    5.6343       1.0000         .10000E-03   10000.    
    11 'norm      '    25.343       1.0000         .10000E-03   10000.    
    12 'norm      '    10.238       1.0000         .10000E-03   10000.    
    13 'norm      '    7.0468       1.0000         .10000E-03   10000.    
    14 'norm      '    .46588E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.6369       1.0000         .10000E-03   10000.    
    17 'norm      '    .16559E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    31.945       1.0000         .10000E-03   10000.    
    19 'norm      '    27.010       1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.575       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    90.042       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .12052E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .12004E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .97368       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1394       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=   7551.171     FROM MIGRAD    STATUS=CONVERGED   1244 CALLS     3929 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.4181        .18142E-02** at limit **
   2  Prefactor     .10000E-03    38.429        .36285E-03** at limit **
   3  Prefactor     .31614        32.227        .16809       -.25318E-04
   4  Prefactor     2.5628        5.2449        .12754E-02    .17740E-03
   5  norm          5.9547        4.7027        .73927E-03   -.20953E-03
   6  Prefactor     28.477        64.805        .75150E-04    .22843E-04
   7  Prefactor     2.3406        41.362        .26779E-03    .16302E-04
   8  norm          .10000E-03    1.3094        .96166E-03** at limit **
   9  Prefactor     .10027E-03    12.597        .76760E-01** at limit **
  10  norm          5.6358        4.3366        .15017E-03   -.66546E-04
  11  norm          25.340        17.719        .79573E-04    .71436E-05
  12  norm          10.237        7.5154        .11081E-03    .68739E-04
  13  norm          7.0460        12.480        .75560E-03   -.51487E-04
  14  norm          .10002E-03    117.61        .49999E-02** at limit **
  15  Prefactor     .10000E-03    1.0279        .85517E-03** at limit **
  16  Prefactor     5.6360        9.3743        .16920E-03    .53753E-06
  17  norm          .10009E-03    6.1110        .52389E-01** at limit **
  18  Prefactor     31.932        43.016        .70894E-04    .72163E-05
  19  norm          27.000        10.022        .77083E-04   -.13097E-03
  20  Prefactor     26.573        15.571        .77710E-04   -.25017E-04
  21  Prefactor     .10000E-03    4.6343        .18142E-02** at limit **
  22  Prefactor     89.909        79.493        .21173E-03    .29532E-04
  23  Prefactor     .10000E-03    1.3736        .98495E-03** at limit **
  24  norm          .10000E-03    30.530        .18142E-02** at limit **
  25  Prefactor     .10000E-03    14.592        .18142E-02** at limit **
  26  Normalizat    .97412        .19900        .24709E-03    .61470E-04
  27  Prefactor     1.1387        .23304        .28526E-03    .37582E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.316142
  Prefactor  = 2.56283
  norm       = 5.95472
  Prefactor  = 28.4768
  Prefactor  = 2.34059
  norm       = 0.0001
  Prefactor  = 0.000100272
  norm       = 5.63575
  norm       = 25.3402
  norm       = 10.2375
  norm       = 7.04596
  norm       = 0.000100017
  Prefactor  = 0.0001
  Prefactor  = 5.63597
  norm       = 0.000100091
  Prefactor  = 31.9319
  norm       = 27.0005
  Prefactor  = 26.5734
  Prefactor  = 0.0001
  Prefactor  = 89.9092
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.974116
  Prefactor  = 1.13875
 **********
 **   18 **HESSE 
 **********

 FCN=   7551.171     FROM HESSE     STATUS=OK           494 CALLS     4423 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.4209        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    38.430        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .31614        32.130        .16858       -1.5596    
   4  Prefactor     2.5628        5.2326        .51016E-04   -1.5388    
   5  norm          5.9547        4.6983        .29571E-04   -1.5220    
   6  Prefactor     28.477        64.905        .30060E-05   -1.4640    
   7  Prefactor     2.3406        41.278        .10712E-04   -1.5402    
   8  norm          .10000E-03    1.3097        .19233E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10027E-03    11.703        .80575E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.6358        4.3351        .60067E-05   -1.5233    
  11  norm          25.340        17.723        .31829E-05   -1.4701    
  12  norm          10.237        7.5245        .44324E-05   -1.5068    
  13  norm          7.0460        12.494        .30224E-04   -1.5177    
  14  norm          .10002E-03    121.30        .20000E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.0280        .17103E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.6360        9.3737        .67679E-05   -1.5233    
  17  norm          .10009E-03    5.7168        .54710E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     31.932        43.029        .28358E-05   -1.4577    
  19  norm          27.000        10.011        .30833E-05   -1.4668    
  20  Prefactor     26.573        15.570        .31084E-05   -1.4677    
  21  Prefactor     .10000E-03    4.6345        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     89.909        79.496        .84691E-05   -1.3809    
  23  Prefactor     .10000E-03    1.3739        .19699E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    30.547        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    14.595        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .97412        .19922        .98836E-05   -.93903    
  27  Prefactor     1.1387        .23327        .11410E-04   -.88238    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78098e-10
Minuit parameter uncertainties:
  1  2.13145e-05
  2  0.000129725
  3  6.37672
  4  5.23357
  5  4.69862
  6  65.0663
  7  19.6741
  8  6.93847e-06
  9  0.0035706
  10  4.33536
  11  17.7269
  12  7.52521
  13  12.499
  14  0.00286621
  15  6.99229e-07
  16  9.37613
  17  0.00144503
  18  43.0704
  19  10.0114
  20  15.5726
  21  3.48036e-07
  22  79.59
  23  5.91304e-06
  24  0.000232274
  25  8.60957e-06
  26  0.199372
  27  0.233484
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  5.636e+00  9.376e+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

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  1.139e+00  2.335e-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:  9.741e-01  1.994e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.48
Ra Dec: 200.185 33.238
Photon Flux Upper Limit: 7.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/487854/likelihoodResults_256953601_257212801_4FGL_J1320.7+3314_daily_bin68.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) = 7551.16171156
delta logL = 0.00879988612542

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7551.15648654
delta logL = 0.0140249022525

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8862       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3502       1.0000          .0000       10.000    
     3 'Normalizat'    .97541       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1374       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=   7551.156     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      236 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8829        13.475        .15289E-03    .96912E-03
   2  Index         2.3503        .95456        .11009E-01    .29928E-03
   3  Normalizat    .97544        .18325        .24693E-03   -.81283E-03
   4  Prefactor     1.1373        .22720        .28540E-03   -.72801E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.88291
  Index      = 2.35025
  Normalizat = 0.975441
  Prefactor  = 1.13735
 **********
 **   18 **HESSE 
 **********

 FCN=   7551.156     FROM HESSE     STATUS=OK            23 CALLS      259 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8829        12.762        .61156E-05   -1.5183    
   2  Index         2.3503        .90506        .44034E-03   -.55854    
   3  Normalizat    .97544        .18340        .49387E-04   -.93858    
   4  Prefactor     1.1373        .22737        .57080E-04   -.88282    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.08055e-09
Minuit parameter uncertainties:
  1  12.7667
  2  0.912077
  3  0.183518
  4  0.227562
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/487854': 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) = 7551.15648649
delta logL = 0.0140249547803

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  6.883e+00  1.277e+01  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.350e+00  9.121e-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.137e+00  2.276e-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:  9.754e-01  1.835e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.48
Ra Dec: 200.185 33.238

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/487854/cmap_HighResolution_256953601_257212801_4FGL_J1320.7+3314_daily_bin68.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.83e-03', job_status='DONE', photon_flux_upper_limit='7.50e-08', time_completed='2021-09-07 12:51:41.937214', job_id='487854', GAL2='1.14', fit_tolerance='1e-08', EG2='0.98', EG='0.97', time_epoch_completed='1631044301.94', return_code2='0', ts='0.48', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='1.40e-02', ts2='0.51', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='68' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 12:51:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 487854: <4FGL_J1320.7+3314_daily_bin68> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin68 200.185 33.2378 256953601 257212801 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 :                                   768.54 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             298.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   899 sec.
    Turnaround time :                            955 sec.

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

