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


Performing analysis on: 4FGL_J1320.7+3314_daily_bin93
RA = 200.185, Dec = 33.2378
tmin = 263433601, tmax = 263692801
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='487893', job_status='RUN', time_executed='2021-09-07 12:37:33.373916', time_epoch_executed='1631043453.37' WHERE source_name='4FGL J1320.7+3314' and cadence='daily' and bin_id='93'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/487893

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/487893/ft1_4FGL_J1320.7+3314_daily_bin93.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/487893/ft2_4FGL_J1320.7+3314_daily_bin93.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/487893/ft1_4FGL_J1320.7+3314_daily_bin93.fits outfile=/scratch/kocevski/487893/ft1_filteredMKT_4FGL_J1320.7+3314_daily_bin93.fits ra=200.185 dec=33.2378 rad=12.0 tmin=263433601.0 tmax=263692801.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.54
user 3.25
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/487893/ft1_filtered_4FGL_J1320.7+3314_daily_bin93.fits" evtable="EVENTS" scfile=/scratch/kocevski/487893/ft2_4FGL_J1320.7+3314_daily_bin93.fits sctable="SC_DATA" outfile=/scratch/kocevski/487893/ltcube_263433601_263692801_4FGL_J1320.7+3314_daily_bin93.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/487893/ft2_4FGL_J1320.7+3314_daily_bin93.fits
.....................!
real 15.53
user 15.15
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/487893/ft1_filtered_4FGL_J1320.7+3314_daily_bin93.fits evtable="EVENTS" scfile=/scratch/kocevski/487893/ft2_4FGL_J1320.7+3314_daily_bin93.fits sctable="SC_DATA" expcube=/scratch/kocevski/487893/ltcube_263433601_263692801_4FGL_J1320.7+3314_daily_bin93.fits outfile=/scratch/kocevski/487893/expmap_263433601_263692801_4FGL_J1320.7+3314_daily_bin93.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/487893/ltcube_263433601_263692801_4FGL_J1320.7+3314_daily_bin93.fits
.....................!
real 191.81
user 186.36
sys 5.01

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/487893/ft1_filtered_4FGL_J1320.7+3314_daily_bin93.fits scfile=/scratch/kocevski/487893/ft2_4FGL_J1320.7+3314_daily_bin93.fits outfile=/scratch/kocevski/487893/cmap_263433601_263692801_4FGL_J1320.7+3314_daily_bin93.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 1.01
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/487893/ft1_filtered_4FGL_J1320.7+3314_daily_bin93.fits scfile=/scratch/kocevski/487893/ft2_4FGL_J1320.7+3314_daily_bin93.fits outfile=/scratch/kocevski/487893/cmap_HighResolution_263433601_263692801_4FGL_J1320.7+3314_daily_bin93.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.57
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/487893/ft1_filtered_4FGL_J1320.7+3314_daily_bin93.fits evtable="EVENTS" scfile=/scratch/kocevski/487893/ft2_4FGL_J1320.7+3314_daily_bin93.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/487893/Model_4FGL_J1320.7+3314_daily_bin93.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/487893/ft1_filtered_4FGL_J1320.7+3314_daily_bin93.fits.....................!
real 45.20
user 43.78
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    47.590       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .50135E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.276       1.0000         .10000E-03   10000.    
     7 'Prefactor '    50.439       1.0000         .10000E-03   10000.    
     8 'norm      '    6.0662       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.2871       1.0000         .10000E-03   10000.    
    10 'norm      '    10.268       1.0000         .10000E-03   10000.    
    11 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.3126       1.0000         .10000E-03   10000.    
    13 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    25.053       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5569       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.0179       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.4032       1.0000         .10000E-03   10000.    
    19 'norm      '    13.635       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.3259       1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.561       1.0000         .10000E-03   10000.    
    22 'Prefactor '    44.763       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .29749       1.0000         .10000E-03   10000.    
    24 'norm      '    22.332       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10572E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .78224       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2507       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=   5323.082     FROM MIGRAD    STATUS=CONVERGED    650 CALLS     3277 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.894        .16262E-06** at limit **
   2  Prefactor     .10000E-03    6.0926        .69348E-07** at limit **
   3  Prefactor     47.643        80.399       -.50835E-05    .23835E-04
   4  Prefactor     .10000E-03    4.4123        .92773E-07** at limit **
   5  norm          .10006E-03    3.1705        .63803E-06** at limit **
   6  Prefactor     34.320        50.639        .38662E-05    .92753E-04
   7  Prefactor     50.488        28.910       -.18045E-05   -.34301E-04
   8  norm          6.0656        4.0478       -.50191E-07   -.13683E-03
   9  Prefactor     5.2832        18.437        .13518E-06   -.10258E-04
  10  norm          10.268        6.9474        .48386E-06   -.85702E-04
  11  norm          .10000E-03    4.9133        .12304E-06** at limit **
  12  norm          7.3173        4.2282       -.44022E-06   -.13109E-03
  13  norm          .10000E-03    8.8273       -.28327E-06** at limit **
  14  norm          25.075        20.922       -.73111E-06   -.77111E-04
  15  Prefactor     3.5569        3.3214        .15530E-06   -.75550E-04
  16  Prefactor     .10000E-03    9.3013        .38779E-06** at limit **
  17  norm          9.0144        8.6592        .15876E-05   -.65645E-04
  18  Prefactor     6.3994        79.820        .19895E-06   -.82979E-05
  19  norm          13.636        11.605       -.44626E-06   -.11946E-04
  20  Prefactor     9.3231        14.825        .77146E-06   -.31289E-04
  21  Prefactor     13.568        17.685        .91417E-07   -.61680E-04
  22  Prefactor     44.797        59.605        .34026E-05    .66619E-04
  23  Prefactor     .29600        2.2998        .87176E-06   -.59589E-03
  24  norm          22.310        15.443        .91204E-06    .14578E-03
  25  Prefactor     .10000E-03    31.479       -.13265E-06** at limit **
  26  Normalizat    .78238        .19864       -.37593E-05   -.13125E-03
  27  Prefactor     1.2507        .23307        .17405E-05   -.30110E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.6427
  Prefactor  = 0.0001
  norm       = 0.000100057
  Prefactor  = 34.3198
  Prefactor  = 50.4881
  norm       = 6.06558
  Prefactor  = 5.28316
  norm       = 10.268
  norm       = 0.0001
  norm       = 7.31727
  norm       = 0.0001
  norm       = 25.0747
  Prefactor  = 3.55693
  Prefactor  = 0.0001
  norm       = 9.01439
  Prefactor  = 6.39943
  norm       = 13.6361
  Prefactor  = 9.32306
  Prefactor  = 13.5681
  Prefactor  = 44.7975
  Prefactor  = 0.295999
  norm       = 22.3097
  Prefactor  = 0.0001
  Normalizat = 0.782381
  Prefactor  = 1.25066
 **********
 **   18 **HESSE 
 **********

 FCN=   5323.082     FROM HESSE     STATUS=OK           490 CALLS     3767 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.0942        .17590E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     47.643        80.173        .58125E-04   -1.4326    
   4  Prefactor     .10000E-03    4.4517        .14950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10006E-03    16.896        .24171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     34.320        50.869        .68448E-04   -1.4536    
   7  Prefactor     50.488        28.986        .56468E-04   -1.4286    
   8  norm          6.0656        4.0479        .11583E-03   -1.5215    
   9  Prefactor     5.2832        18.326        .17480E-03   -1.5248    
  10  norm          10.268        6.9084        .62521E-03   -1.5067    
  11  norm          .10000E-03    4.9148        .15794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.3173        4.1875        .10616E-03   -1.5167    
  13  norm          .10000E-03    8.8956        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          25.075        20.908        .80031E-04   -1.4706    
  15  Prefactor     3.5569        3.3029        .11828E-03   -1.5331    
  16  Prefactor     .10000E-03    9.3424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.0144        8.5832        .66734E-03   -1.5107    
  18  Prefactor     6.3994        79.532        .15861E-03   -1.5202    
  19  norm          13.636        11.592        .10847E-03   -1.4969    
  20  Prefactor     9.3231        14.802        .13123E-03   -1.5097    
  21  Prefactor     13.568        17.683        .10877E-03   -1.4971    
  22  Prefactor     44.797        59.765        .59924E-04   -1.4368    
  23  Prefactor     .29600        11.309        .20382E-02   -1.5599    
  24  norm          22.310        15.467        .84759E-04   -1.4763    
  25  Prefactor     .10000E-03    32.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .78238        .22960        .26113E-03   -1.0073    
  27  Prefactor     1.2507        .27551        .26785E-03   -.84786    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.92329e-09
Minuit parameter uncertainties:
  1  4.18573e-05
  2  7.59044e-06
  3  80.3552
  4  1.45644e-05
  5  0.00197147
  6  50.9339
  7  28.994
  8  4.0481
  9  18.3457
  10  6.90889
  11  3.59777e-06
  12  4.18767
  13  7.415e-05
  14  20.9145
  15  3.3031
  16  5.13937e-05
  17  8.58438
  18  45.1945
  19  11.5939
  20  14.8079
  21  17.6897
  22  59.8451
  23  3.65932
  24  15.4698
  25  8.29407e-06
  26  0.229881
  27  0.275828
Done.

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

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  5.139e-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:  1.251e+00  2.758e-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:  7.824e-01  2.299e-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.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/487893/likelihoodResults_263433601_263692801_4FGL_J1320.7+3314_daily_bin93.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) = 5323.08284834
delta logL = -0.000509773338308

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5323.08233919
delta logL = -6.29749592918e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10847E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4964       1.0000          .0000       10.000    
     3 'Normalizat'    .78226       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2508       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=   5323.082     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      243 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10077E-03    116.41        .18142E-02** at limit **
   2  Index         2.4465        6.1240        .50000        .89590E-05
   3  Normalizat    .78238        .15426E-01    .26114E-03    .19330E-04
   4  Prefactor     1.2507        .19613E-01    .26785E-03    .14941E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100767
  Index      = 2.44651
  Normalizat = 0.782379
  Prefactor  = 1.25067
 **********
 **   18 **HESSE 
 **********

 FCN=   5323.082     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      272 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10077E-03    507.05        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4465        5.7552        .50000       -.53600    
   3  Normalizat    .78238        .34070E-01    .10445E-04   -1.0073    
   4  Prefactor     1.2507        .43312E-01    .10714E-04   -.84786    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.49491e-08
Minuit parameter uncertainties:
  1  0.0397926
  2  1028.16
  3  0.0340709
  4  0.0433132
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/487893': 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) = 5323.08233846
delta logL = 1.02970261651e-07

Extracting fit parameters...

4FGL J1320.7+3314
   Spectrum: PowerLaw
325    Prefactor:  1.008e-04  3.979e-02  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.447e+00  1.028e+03  0.000e+00  1.000e+01 (-1.000e+00)
327        Scale:  1.074e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
589    Prefactor:  1.251e+00  4.331e-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:  7.824e-01  3.407e-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/487893/cmap_HighResolution_263433601_263692801_4FGL_J1320.7+3314_daily_bin93.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.02e-03', job_status='DONE', photon_flux_upper_limit='7.74e-08', time_completed='2021-09-07 12:49:27.081577', job_id='487893', GAL2='1.25', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1631044167.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='1.03e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='93' AND source_name='4FGL J1320.7+3314' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 12:49:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0010>
Subject: Job 487893: <4FGL_J1320.7+3314_daily_bin93> in cluster <slac> Done

Job <4FGL_J1320.7+3314_daily_bin93> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 12:35:50 2021
Job was executed on host(s) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 12:37:07 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:37:07 2021
Terminated at Tue Sep  7 12:49:27 2021
Results reported at Tue Sep  7 12:49:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1320.7+3314_daily_bin93 200.185 33.2378 263433601 263692801 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 :                                   711.59 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   740 sec.
    Turnaround time :                            817 sec.

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

