/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 9 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7375
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1317.6+3428_daily_bin971
RA = 199.401, Dec = 34.4676
tmin = 491011201, tmax = 491270401
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='447566', job_status='RUN', time_executed='2021-09-07 10:22:13.007428', time_epoch_executed='1631035333.01' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='971'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/447566

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/447566/ft1_4FGL_J1317.6+3428_daily_bin971.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/447566/ft2_4FGL_J1317.6+3428_daily_bin971.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/447566/ft1_4FGL_J1317.6+3428_daily_bin971.fits outfile=/scratch/kocevski/447566/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin971.fits ra=199.401 dec=34.4676 rad=12.0 tmin=491011201.0 tmax=491270401.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.61
user 3.34
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/447566/ft2_4FGL_J1317.6+3428_daily_bin971.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/447566/ft2_4FGL_J1317.6+3428_daily_bin971.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/447566/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin971.fits evtable="EVENTS" outfile="/scratch/kocevski/447566/ft1_filtered_4FGL_J1317.6+3428_daily_bin971.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.60
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/447566/ft1_filtered_4FGL_J1317.6+3428_daily_bin971.fits" evtable="EVENTS" scfile=/scratch/kocevski/447566/ft2_4FGL_J1317.6+3428_daily_bin971.fits sctable="SC_DATA" outfile=/scratch/kocevski/447566/ltcube_491011201_491270401_4FGL_J1317.6+3428_daily_bin971.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/447566/ft2_4FGL_J1317.6+3428_daily_bin971.fits
.....................!
real 15.36
user 14.92
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/447566/ft1_filtered_4FGL_J1317.6+3428_daily_bin971.fits evtable="EVENTS" scfile=/scratch/kocevski/447566/ft2_4FGL_J1317.6+3428_daily_bin971.fits sctable="SC_DATA" expcube=/scratch/kocevski/447566/ltcube_491011201_491270401_4FGL_J1317.6+3428_daily_bin971.fits outfile=/scratch/kocevski/447566/expmap_491011201_491270401_4FGL_J1317.6+3428_daily_bin971.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/447566/ltcube_491011201_491270401_4FGL_J1317.6+3428_daily_bin971.fits
.....................!
real 193.12
user 186.54
sys 5.61

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 179 point sources and 0 extended sources

Setting source of interest to:
4FGL J1317.6+3428 @ 199.401 34.4676

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/447566/ft1_filtered_4FGL_J1317.6+3428_daily_bin971.fits scfile=/scratch/kocevski/447566/ft2_4FGL_J1317.6+3428_daily_bin971.fits outfile=/scratch/kocevski/447566/cmap_491011201_491270401_4FGL_J1317.6+3428_daily_bin971.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=199.401 yref=34.4676 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/447566/ft1_filtered_4FGL_J1317.6+3428_daily_bin971.fits scfile=/scratch/kocevski/447566/ft2_4FGL_J1317.6+3428_daily_bin971.fits outfile=/scratch/kocevski/447566/cmap_HighResolution_491011201_491270401_4FGL_J1317.6+3428_daily_bin971.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=199.401 yref=34.4676 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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/447566/ft1_filtered_4FGL_J1317.6+3428_daily_bin971.fits evtable="EVENTS" scfile=/scratch/kocevski/447566/ft2_4FGL_J1317.6+3428_daily_bin971.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/447566/Model_4FGL_J1317.6+3428_daily_bin971.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/447566/ft1_filtered_4FGL_J1317.6+3428_daily_bin971.fits.....................!
real 49.38
user 47.89
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/447566/ft1_filtered_4FGL_J1317.6+3428_daily_bin971.fits', '/scratch/kocevski/447566/ft2_4FGL_J1317.6+3428_daily_bin971.fits', expMap='/scratch/kocevski/447566/expmap_491011201_491270401_4FGL_J1317.6+3428_daily_bin971.fits', expCube='/scratch/kocevski/447566/ltcube_491011201_491270401_4FGL_J1317.6+3428_daily_bin971.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/447566/Model_4FGL_J1317.6+3428_daily_bin971.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1317.6+3428'

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.307e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.534e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
321        Scale:  7.492e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/447566/ft1_filtered_4FGL_J1317.6+3428_daily_bin971.fits
Spacecraft file(s): /scratch/kocevski/447566/ft2_4FGL_J1317.6+3428_daily_bin971.fits
Exposure map: /scratch/kocevski/447566/expmap_491011201_491270401_4FGL_J1317.6+3428_daily_bin971.fits
Exposure cube: /scratch/kocevski/447566/ltcube_491011201_491270401_4FGL_J1317.6+3428_daily_bin971.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/447566/Model_4FGL_J1317.6+3428_daily_bin971.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) = 5760.8641564

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.110       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.5805       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    6.4053       1.0000         .10000E-03   10000.    
     7 'Prefactor '    48.665       1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.453       1.0000         .10000E-03   10000.    
     9 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10105E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10674E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .57526       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .66092       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10918E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.7325       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .18686E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    3.7466       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.7186       1.0000         .10000E-03   10000.    
    24 'norm      '    44.278       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1005       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0092       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5760.852     FROM MIGRAD    STATUS=CONVERGED    661 CALLS     3285 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.104        9.9919        .16937E-06   -.22029E-04
   2  Prefactor     7.5779        9.5485        .25598E-05    .53433E-03
   3  Prefactor     .10000E-03    18.407        .44968E-06** at limit **
   4  Prefactor     .10000E-03    20.898        .37469E-07** at limit **
   5  Prefactor     .10000E-03    4.3115        .19198E-06** at limit **
   6  norm          6.4053        4.6584        .52673E-07   -.30816E-03
   7  Prefactor     48.621        50.795        .21603E-06   -.95704E-04
   8  Prefactor     24.463        26.571       -.34084E-06   -.25925E-03
   9  norm          .10000E-03    2.5380        .21974E-06** at limit **
  10  Prefactor     .10000E-03    6.4342        .49157E-07** at limit **
  11  norm          .10000E-03    3.4252       -.18440E-07** at limit **
  12  norm          .10000E-03    10.819       -.45065E-06** at limit **
  13  norm          .10000E-03    2.0577        .16534E-06** at limit **
  14  norm          .10000E-03    3.0866        .19024E-07** at limit **
  15  norm          .10000E-03    15.551        .12641E-06** at limit **
  16  Prefactor     .59289        4.2475        .43062E-07   -.86245E-03
  17  Prefactor     .45970        19.378        .50042E-05   -.84063E-03
  18  Prefactor     .10000E-03    47.498       -.38856E-06** at limit **
  19  Prefactor     .10000E-03    11.050        .13256E-06** at limit **
  20  Prefactor     3.7227        29.157        .17542E-05   -.91763E-05
  21  Prefactor     .10004E-03    373.70       -.73916E-05** at limit **
  22  norm          3.7462        2.0124        .89211E-08   -.34138E-03
  23  Prefactor     4.7182        4.6422        .35491E-06   -.12655E-03
  24  norm          44.293        21.510       -.40378E-06   -.28596E-03
  25  Prefactor     .10000E-03    6.1968        .15188E-07** at limit **
  26  Normalizat    1.1005        .18855       -.24423E-05   -.99262E-03
  27  Prefactor     1.0097        .21687       -.18709E-06   -.74178E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.1042
  Prefactor  = 7.57792
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.40531
  Prefactor  = 48.6214
  Prefactor  = 24.4632
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.592887
  Prefactor  = 0.459698
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.72267
  Prefactor  = 0.000100036
  norm       = 3.74621
  Prefactor  = 4.71816
  norm       = 44.2927
  Prefactor  = 0.0001
  Normalizat = 1.10051
  Prefactor  = 1.00966
 **********
 **   18 **HESSE 
 **********

 FCN=   5760.852     FROM HESSE     STATUS=OK           482 CALLS     3767 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.104        9.9930        .11512E-03   -1.5012    
   2  Prefactor     7.5779        9.5475        .72828E-03   -1.5157    
   3  Prefactor     .10000E-03    18.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    20.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.3806        .15399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          6.4053        4.6497        .12933E-03   -1.5202    
   7  Prefactor     48.621        50.919        .57482E-04   -1.4312    
   8  Prefactor     24.463        26.337        .81005E-04   -1.4718    
   9  norm          .10000E-03    2.5870        .11819E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.4441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.5031        .27394E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    10.872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.9332        .20617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.1069        .13006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    15.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .59289        10.354        .22714E-02   -1.5554    
  17  Prefactor     .45970        245.26        .42074E-02   -1.5572    
  18  Prefactor     .10000E-03    47.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.7227        29.198        .20900E-03   -1.5322    
  21  Prefactor     .10004E-03    376.59        .20289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.7462        2.0109        .76146E-04   -1.5321    
  23  Prefactor     4.7182        4.6427        .15404E-03   -1.5274    
  24  norm          44.293        21.536        .60250E-04   -1.4376    
  25  Prefactor     .10000E-03    6.1977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1005        .21993        .23235E-03   -.89735    
  27  Prefactor     1.0097        .25883        .29270E-03   -.92408    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.94455e-08
Minuit parameter uncertainties:
  1  9.99435
  2  9.54945
  3  0.000109089
  4  2.04995e-06
  5  2.06697e-05
  6  4.64992
  7  50.9644
  8  26.3492
  9  1.63239e-05
  10  7.77942e-06
  11  6.55372e-07
  12  2.03122e-05
  13  5.68098e-05
  14  3.86598e-06
  15  1.25569e-05
  16  4.95592
  17  21.3225
  18  0.000198148
  19  4.15092e-06
  20  20.8651
  21  0.00742803
  22  2.01098
  23  4.64305
  24  21.5402
  25  4.90778e-06
  26  0.220117
  27  0.259152
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  5.929e-01  4.956e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.534e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
321        Scale:  7.492e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  1.010e+00  2.592e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.101e+00  2.201e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 199.401 34.468
Photon Flux Upper Limit: 9.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/447566/likelihoodResults_491011201_491270401_4FGL_J1317.6+3428_daily_bin971.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) = 5760.84665404
delta logL = 0.00565583025309

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5760.84635469
delta logL = 0.00595518162663

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .52672       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8238       1.0000          .0000       10.000    
     3 'Normalizat'    1.0969       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0127       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5760.846     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      248 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .53060        11.898        .36021E-01    .10335E-02
   2  Index         2.8281        1.3580        .50000        .78679E-05
   3  Normalizat    1.0973        .11794E-01    .38127E-01    .21010E-04
   4  Prefactor     1.0122        .14373E-01    .66099E-01   -.15267E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.530604
  Index      = 2.82814
  Normalizat = 1.09728
  Prefactor  = 1.01223
 **********
 **   18 **HESSE 
 **********

 FCN=   5760.846     FROM HESSE     STATUS=OK            35 CALLS      283 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .53060        8.7955        .19067E-02   -1.5562    
   2  Index         2.8281        3.5081        .84639E-02   -.44934    
   3  Normalizat    1.0973        .21479        .23266E-03   -.89839    
   4  Prefactor     1.0122        .25745        .29237E-03   -.92323    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.99805e-11
Minuit parameter uncertainties:
  1  4.32096
  2  4.02166
  3  0.214961
  4  0.257765
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/447566': 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) = 5760.84634773
delta logL = 0.00596213200606

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  5.306e-01  4.321e+00  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.828e+00  4.022e+00  0.000e+00  1.000e+01 (-1.000e+00)
321        Scale:  7.492e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  1.012e+00  2.578e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.097e+00  2.150e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
Ra Dec: 199.401 34.468

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/447566/cmap_HighResolution_491011201_491270401_4FGL_J1317.6+3428_daily_bin971.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.31e-03', job_status='DONE', photon_flux_upper_limit='9.38e-08', time_completed='2021-09-07 10:34:24.362882', job_id='447566', GAL2='1.01', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1631036064.36', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='5.96e-03', ts2='0.05', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='971' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:34:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 447566: <4FGL_J1317.6+3428_daily_bin971> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin971> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 10:21:06 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:21:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 10:21:56 2021
Terminated at Tue Sep  7 10:34:25 2021
Results reported at Tue Sep  7 10:34:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin971 199.401 34.4676 491011201 491270401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1317.6+3428 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   728.54 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             330.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            799 sec.

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

