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


Performing analysis on: 4FGL_J1317.6+3428_daily_bin1226
RA = 199.401, Dec = 34.4676
tmin = 557107201, tmax = 557366401
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='448957', job_status='RUN', time_executed='2021-09-07 10:26:21.789729', time_epoch_executed='1631035581.79' WHERE source_name='4FGL J1317.6+3428' and cadence='daily' and bin_id='1226'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448957

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448957/ft1_4FGL_J1317.6+3428_daily_bin1226.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448957/ft2_4FGL_J1317.6+3428_daily_bin1226.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448957/ft1_4FGL_J1317.6+3428_daily_bin1226.fits outfile=/scratch/kocevski/448957/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin1226.fits ra=199.401 dec=34.4676 rad=12.0 tmin=557107201.0 tmax=557366401.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.68
user 3.46
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/448957/ft2_4FGL_J1317.6+3428_daily_bin1226.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/448957/ft1_filteredMKT_4FGL_J1317.6+3428_daily_bin1226.fits evtable="EVENTS" outfile="/scratch/kocevski/448957/ft1_filtered_4FGL_J1317.6+3428_daily_bin1226.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.53
user 0.32
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/448957/ft1_filtered_4FGL_J1317.6+3428_daily_bin1226.fits" evtable="EVENTS" scfile=/scratch/kocevski/448957/ft2_4FGL_J1317.6+3428_daily_bin1226.fits sctable="SC_DATA" outfile=/scratch/kocevski/448957/ltcube_557107201_557366401_4FGL_J1317.6+3428_daily_bin1226.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/448957/ft2_4FGL_J1317.6+3428_daily_bin1226.fits
.....................!
real 16.05
user 15.65
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448957/ft1_filtered_4FGL_J1317.6+3428_daily_bin1226.fits evtable="EVENTS" scfile=/scratch/kocevski/448957/ft2_4FGL_J1317.6+3428_daily_bin1226.fits sctable="SC_DATA" expcube=/scratch/kocevski/448957/ltcube_557107201_557366401_4FGL_J1317.6+3428_daily_bin1226.fits outfile=/scratch/kocevski/448957/expmap_557107201_557366401_4FGL_J1317.6+3428_daily_bin1226.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/448957/ltcube_557107201_557366401_4FGL_J1317.6+3428_daily_bin1226.fits
.....................!
real 193.53
user 187.38
sys 5.19

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/448957/ft1_filtered_4FGL_J1317.6+3428_daily_bin1226.fits scfile=/scratch/kocevski/448957/ft2_4FGL_J1317.6+3428_daily_bin1226.fits outfile=/scratch/kocevski/448957/cmap_557107201_557366401_4FGL_J1317.6+3428_daily_bin1226.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448957/ft1_filtered_4FGL_J1317.6+3428_daily_bin1226.fits scfile=/scratch/kocevski/448957/ft2_4FGL_J1317.6+3428_daily_bin1226.fits outfile=/scratch/kocevski/448957/cmap_HighResolution_557107201_557366401_4FGL_J1317.6+3428_daily_bin1226.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.56
user 0.39
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/448957/ft1_filtered_4FGL_J1317.6+3428_daily_bin1226.fits', '/scratch/kocevski/448957/ft2_4FGL_J1317.6+3428_daily_bin1226.fits', expMap='/scratch/kocevski/448957/expmap_557107201_557366401_4FGL_J1317.6+3428_daily_bin1226.fits', expCube='/scratch/kocevski/448957/ltcube_557107201_557366401_4FGL_J1317.6+3428_daily_bin1226.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/448957/Model_4FGL_J1317.6+3428_daily_bin1226.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/448957/ft1_filtered_4FGL_J1317.6+3428_daily_bin1226.fits
Spacecraft file(s): /scratch/kocevski/448957/ft2_4FGL_J1317.6+3428_daily_bin1226.fits
Exposure map: /scratch/kocevski/448957/expmap_557107201_557366401_4FGL_J1317.6+3428_daily_bin1226.fits
Exposure cube: /scratch/kocevski/448957/ltcube_557107201_557366401_4FGL_J1317.6+3428_daily_bin1226.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/448957/Model_4FGL_J1317.6+3428_daily_bin1226.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) = 4206.22341739

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.092       1.0000         .10000E-03   10000.    
     2 'Prefactor '    33.637       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10356E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.653       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    9.4440       1.0000         .10000E-03   10000.    
     7 'Prefactor '    76.130       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    30.842       1.0000         .10000E-03   10000.    
    12 'norm      '    15.093       1.0000         .10000E-03   10000.    
    13 'norm      '    1.8586       1.0000         .10000E-03   10000.    
    14 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10811E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    32.492       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .77865E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    142.39       1.0000         .10000E-03   10000.    
    22 'norm      '    .10338E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .54135       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.4262       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=   4206.208     FROM MIGRAD    STATUS=CONVERGED    666 CALLS     3318 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.089        21.701       -.12964E-06   -.61349E-05
   2  Prefactor     33.632        23.785       -.13652E-06   -.58222E-05
   3  Prefactor     .10000E-03    44.828        .19858E-05** at limit **
   4  Prefactor     23.582        74.677        .11351E-04    .12600E-03
   5  Prefactor     .10000E-03    3.8988        .17676E-07** at limit **
   6  norm          9.4447        7.1891       -.18411E-05    .14962E-03
   7  Prefactor     76.119        58.928        .71385E-06    .56016E-04
   8  Prefactor     .10000E-03    39.209        .15712E-06** at limit **
   9  norm          .10000E-03    1.4721       -.57249E-07** at limit **
  10  Prefactor     .10000E-03    14.021        .26043E-06** at limit **
  11  norm          30.839        10.276       -.36836E-06   -.96733E-03
  12  norm          15.087        17.636       -.88576E-06    .56524E-04
  13  norm          1.8551        4.9932       -.18021E-05   -.67277E-03
  14  norm          .10000E-03    8.9195        .15274E-05** at limit **
  15  norm          .10000E-03    12.595       -.34338E-06** at limit **
  16  Prefactor     .10000E-03    4.0726        .25068E-05** at limit **
  17  Prefactor     .10000E-03    42.273        .54269E-05** at limit **
  18  Prefactor     32.431        70.368        .18119E-05   -.86319E-04
  19  Prefactor     .10000E-03    5.6537        .26773E-07** at limit **
  20  Prefactor     .10002E-03    114.31        .47949E-04** at limit **
  21  Prefactor     142.37        88.463        .21892E-06    .35993E-04
  22  norm          .29628E-03    1.1729       -.29195E-05** at limit **
  23  Prefactor     .10000E-03    1.1762       -.16256E-06** at limit **
  24  norm          .10000E-03    8.6864       -.46755E-06** at limit **
  25  Prefactor     .10000E-03    9.1330       -.26701E-06** at limit **
  26  Normalizat    .54083        .20111        .18632E-05   -.89239E-04
  27  Prefactor     1.4272        .24533       -.21955E-06   -.21998E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.0886
  Prefactor  = 33.6319
  Prefactor  = 0.000100001
  Prefactor  = 23.582
  Prefactor  = 0.0001
  norm       = 9.44471
  Prefactor  = 76.1189
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 30.8388
  norm       = 15.0873
  norm       = 1.85514
  norm       = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 32.4311
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  Prefactor  = 142.375
  norm       = 0.000296279
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.540828
  Prefactor  = 1.42723
 **********
 **   18 **HESSE 
 **********

 FCN=   4206.208     FROM HESSE     STATUS=OK           486 CALLS     3804 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.089        21.699        .91663E-04   -1.4834    
   2  Prefactor     33.632        23.781        .69093E-04   -1.4547    
   3  Prefactor     .10000E-03    45.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     23.582        75.554        .82363E-04   -1.4736    
   5  Prefactor     .10000E-03    3.9102        .12505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          9.4447        7.1327        .65203E-03   -1.5093    
   7  Prefactor     76.119        58.945        .23010E-03   -1.3961    
   8  Prefactor     .10000E-03    39.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    1.4745        .76848E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          30.839        10.266        .72147E-04   -1.4597    
  12  norm          15.087        17.637        .51548E-03   -1.4931    
  13  norm          1.8551        4.9670        .21716E-03   -1.5436    
  14  norm          .10000E-03    9.0263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    12.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.1272        .25391E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    43.061        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     32.431        70.348        .70296E-04   -1.4568    
  19  Prefactor     .10000E-03    5.6592        .15060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10002E-03    111.80        .50377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     142.37        89.000        .33763E-04   -1.3316    
  22  norm          .29628E-03    2.6135        .19578E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.1871        .68681E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    8.7279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    9.1450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .54083        .23947        .28623E-03   -1.1056    
  27  Prefactor     1.4272        .29494        .23791E-03   -.79599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.00604e-09
Minuit parameter uncertainties:
  1  21.7075
  2  23.7881
  3  0.00043545
  4  75.863
  5  5.6788e-06
  6  7.1333
  7  58.9906
  8  0.00044379
  9  1.69381e-07
  10  2.82315e-05
  11  10.2663
  12  17.6433
  13  4.96809
  14  0.000270217
  15  2.53746e-05
  16  9.84476e-05
  17  0.000465229
  18  70.5284
  19  3.47941e-06
  20  0.00286372
  21  89.0835
  22  0.0452995
  23  3.24309e-06
  24  2.99259e-05
  25  1.35493e-05
  26  0.239926
  27  0.295292
Done.

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

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.000e-04  9.845e-05  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.427e+00  2.953e-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:  5.408e-01  2.399e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 199.401 34.468
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/448957/likelihoodResults_557107201_557366401_4FGL_J1317.6+3428_daily_bin1226.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) = 4206.20914054
delta logL = -0.00115425884178

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4206.20798631
delta logL = -2.83134795609e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5164       1.0000          .0000       10.000    
     3 'Normalizat'    .54082       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4273       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4206.208     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      252 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10132E-03    44.167        .25717E-02** at limit **
   2  Index         2.4507        6.1495        .50000        .26385E-04
   3  Normalizat    .54083        .14561E-01    .28622E-03    .31418E-04
   4  Prefactor     1.4272        .18923E-01    .23791E-03    .32781E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101321
  Index      = 2.45074
  Normalizat = 0.540826
  Prefactor  = 1.42724
 **********
 **   18 **HESSE 
 **********

 FCN=   4206.208     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10132E-03    205.42        .51435E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4507        7.3175        .50000       -.53501    
   3  Normalizat    .54083        .32868E-01    .11449E-04   -1.1056    
   4  Prefactor     1.4272        .42712E-01    .47581E-04   -.79598    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.62963e-08
Minuit parameter uncertainties:
  1  0.033056
  2  607.633
  3  0.0328696
  4  0.0427135
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448957': 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) = 4206.20798581
delta logL = 4.70575287181e-07

Extracting fit parameters...

4FGL J1317.6+3428
   Spectrum: PowerLaw
319    Prefactor:  1.013e-04  3.306e-02  1.000e-04  1.000e+04 ( 1.000e-12)
320        Index:  2.451e+00  6.076e+02  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.427e+00  4.271e-02  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:  5.408e-01  3.287e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/448957/cmap_HighResolution_557107201_557366401_4FGL_J1317.6+3428_daily_bin1226.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.30e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-07 10:36:44.912405', job_id='448957', GAL2='1.43', fit_tolerance='1e-08', EG2='0.54', EG='0.54', time_epoch_completed='1631036204.91', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.43', dlogl='4.71e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.53' WHERE bin_id='1226' AND source_name='4FGL J1317.6+3428' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 10:36:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 448957: <4FGL_J1317.6+3428_daily_bin1226> in cluster <slac> Done

Job <4FGL_J1317.6+3428_daily_bin1226> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 10:25:45 2021
Job was executed on host(s) <bullet0205>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 10:26:04 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:26:04 2021
Terminated at Tue Sep  7 10:36:45 2021
Results reported at Tue Sep  7 10:36:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1317.6+3428_daily_bin1226 199.401 34.4676 557107201 557366401 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 :                                   621.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             298.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   641 sec.
    Turnaround time :                            660 sec.

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

