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


Performing analysis on: 4FGL_J1318.7-1234_daily_bin609
RA = 199.694, Dec = -12.581
tmin = 397180801, tmax = 397440001
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='462994', job_status='RUN', time_executed='2021-09-07 11:18:50.985907', time_epoch_executed='1631038730.99' WHERE source_name='4FGL J1318.7-1234' and cadence='daily' and bin_id='609'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/462994

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/462994/ft1_4FGL_J1318.7-1234_daily_bin609.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/462994/ft2_4FGL_J1318.7-1234_daily_bin609.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/462994/ft1_4FGL_J1318.7-1234_daily_bin609.fits outfile=/scratch/kocevski/462994/ft1_filteredMKT_4FGL_J1318.7-1234_daily_bin609.fits ra=199.694 dec=-12.581 rad=12.0 tmin=397180801.0 tmax=397440001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.02
user 3.79
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/462994/ft2_4FGL_J1318.7-1234_daily_bin609.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/462994/ft2_4FGL_J1318.7-1234_daily_bin609.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/462994/ft1_filteredMKT_4FGL_J1318.7-1234_daily_bin609.fits evtable="EVENTS" outfile="/scratch/kocevski/462994/ft1_filtered_4FGL_J1318.7-1234_daily_bin609.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.55
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/462994/ft1_filtered_4FGL_J1318.7-1234_daily_bin609.fits" evtable="EVENTS" scfile=/scratch/kocevski/462994/ft2_4FGL_J1318.7-1234_daily_bin609.fits sctable="SC_DATA" outfile=/scratch/kocevski/462994/ltcube_397180801_397440001_4FGL_J1318.7-1234_daily_bin609.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/462994/ft2_4FGL_J1318.7-1234_daily_bin609.fits
.....................!
real 15.10
user 14.64
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/462994/ft1_filtered_4FGL_J1318.7-1234_daily_bin609.fits evtable="EVENTS" scfile=/scratch/kocevski/462994/ft2_4FGL_J1318.7-1234_daily_bin609.fits sctable="SC_DATA" expcube=/scratch/kocevski/462994/ltcube_397180801_397440001_4FGL_J1318.7-1234_daily_bin609.fits outfile=/scratch/kocevski/462994/expmap_397180801_397440001_4FGL_J1318.7-1234_daily_bin609.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/462994/ltcube_397180801_397440001_4FGL_J1318.7-1234_daily_bin609.fits
.....................!
real 191.91
user 186.34
sys 4.90

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

Setting source of interest to:
4FGL J1318.7-1234 @ 199.694 -12.581

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/462994/ft1_filtered_4FGL_J1318.7-1234_daily_bin609.fits scfile=/scratch/kocevski/462994/ft2_4FGL_J1318.7-1234_daily_bin609.fits outfile=/scratch/kocevski/462994/cmap_397180801_397440001_4FGL_J1318.7-1234_daily_bin609.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.694 yref=-12.581 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/462994/ft1_filtered_4FGL_J1318.7-1234_daily_bin609.fits scfile=/scratch/kocevski/462994/ft2_4FGL_J1318.7-1234_daily_bin609.fits outfile=/scratch/kocevski/462994/cmap_HighResolution_397180801_397440001_4FGL_J1318.7-1234_daily_bin609.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.694 yref=-12.581 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/462994/ft1_filtered_4FGL_J1318.7-1234_daily_bin609.fits evtable="EVENTS" scfile=/scratch/kocevski/462994/ft2_4FGL_J1318.7-1234_daily_bin609.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/462994/Model_4FGL_J1318.7-1234_daily_bin609.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/462994/ft1_filtered_4FGL_J1318.7-1234_daily_bin609.fits.....................!
real 47.14
user 45.71
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/462994/ft1_filtered_4FGL_J1318.7-1234_daily_bin609.fits', '/scratch/kocevski/462994/ft2_4FGL_J1318.7-1234_daily_bin609.fits', expMap='/scratch/kocevski/462994/expmap_397180801_397440001_4FGL_J1318.7-1234_daily_bin609.fits', expCube='/scratch/kocevski/462994/ltcube_397180801_397440001_4FGL_J1318.7-1234_daily_bin609.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/462994/Model_4FGL_J1318.7-1234_daily_bin609.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1318.7-1234'

4FGL J1318.7-1234
   Spectrum: PowerLaw
321    Prefactor:  1.941e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
322        Index:  2.126e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
323        Scale:  1.734e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/462994/ft1_filtered_4FGL_J1318.7-1234_daily_bin609.fits
Spacecraft file(s): /scratch/kocevski/462994/ft2_4FGL_J1318.7-1234_daily_bin609.fits
Exposure map: /scratch/kocevski/462994/expmap_397180801_397440001_4FGL_J1318.7-1234_daily_bin609.fits
Exposure cube: /scratch/kocevski/462994/ltcube_397180801_397440001_4FGL_J1318.7-1234_daily_bin609.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/462994/Model_4FGL_J1318.7-1234_daily_bin609.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) = 5447.00167879

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5350       1.0000         .10000E-03   10000.    
     2 'Prefactor '    39.147       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    56.941       1.0000         .10000E-03   10000.    
     5 'norm      '    2.1848       1.0000         .10000E-03   10000.    
     6 'norm      '    7.2511       1.0000         .10000E-03   10000.    
     7 'norm      '    6.6473       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.1190       1.0000         .10000E-03   10000.    
    12 'norm      '    5.3580       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12236E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11025E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    33.234       1.0000         .10000E-03   10000.    
    17 'norm      '    3.1847       1.0000         .10000E-03   10000.    
    18 'norm      '    .16069E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10668E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.982       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11034E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.5770       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .99738       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.0159       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5446.939     FROM MIGRAD    STATUS=CONVERGED    628 CALLS     3339 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5346        3.7419       -.16817E-06   -.68465E-04
   2  Prefactor     39.145        20.971       -.24834E-05    .14227E-04
   3  Prefactor     .10000E-03    24.684        .67444E-05** at limit **
   4  Prefactor     56.903        139.23       -.49018E-04   -.25741E-04
   5  norm          2.1848        .40752       -.24421E-07    .42786E-03
   6  norm          7.2494        10.986       -.84231E-06   -.73286E-04
   7  norm          6.6494        12.223        .74267E-05   -.15252E-03
   8  Prefactor     .10000E-03    5.7397        .27983E-05** at limit **
   9  Prefactor     .10000E-03    32.514       -.49266E-05** at limit **
  10  norm          .10000E-03    2.3327       -.35201E-06** at limit **
  11  norm          8.1185        12.565       -.13172E-05   -.43917E-04
  12  norm          5.3580        8.0993       -.21279E-06   -.40952E-04
  13  Prefactor     .10000E-03    16.269       -.82609E-05** at limit **
  14  Prefactor     .10000E-03    22.150        .11064E-05** at limit **
  15  Prefactor     .10000E-03    13.487        .38233E-05** at limit **
  16  Prefactor     33.216        24.112       -.12121E-04   -.70145E-04
  17  norm          3.1850        2.3199       -.38776E-06   -.28484E-03
  18  norm          .10001E-03    4.4761        .26282E-05** at limit **
  19  norm          .10000E-03    4.4978       -.15855E-05** at limit **
  20  Prefactor     12.972        17.818       -.54086E-05   -.36599E-04
  21  Prefactor     .10000E-03    7.3548        .20836E-05** at limit **
  22  norm          .10000E-03    2.7399       -.11362E-06** at limit **
  23  Prefactor     4.5783        6.1719       -.21965E-06   -.10226E-03
  24  Prefactor     .10000E-03    30.965        .12406E-05** at limit **
  25  norm          .10000E-03    6.2831       -.43049E-05** at limit **
  26  Normalizat    .99721        .29508        .72591E-05   -.51429E-04
  27  Prefactor     1.0160        .15103        .53507E-06    .14374E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.53464
  Prefactor  = 39.1453
  Prefactor  = 0.0001
  Prefactor  = 56.9034
  norm       = 2.18481
  norm       = 7.24939
  norm       = 6.64937
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 8.11848
  norm       = 5.35803
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.2158
  norm       = 3.18501
  norm       = 0.000100005
  norm       = 0.000100001
  Prefactor  = 12.9719
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.57829
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.997213
  Prefactor  = 1.01603
 **********
 **   18 **HESSE 
 **********

 FCN=   5446.939     FROM HESSE     STATUS=OK           486 CALLS     3825 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5346        3.7436        .11299E-03   -1.5237    
   2  Prefactor     39.145        21.024        .64062E-04   -1.4456    
   3  Prefactor     .10000E-03    24.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     56.903        137.66        .53162E-04   -1.4198    
   5  norm          2.1848        .40887        .19469E-04   -1.5412    
   6  norm          7.2494        10.993        .14896E-03   -1.5169    
   7  norm          6.6494        12.015        .15564E-03   -1.5192    
   8  Prefactor     .10000E-03    5.7462        .17221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    32.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.1481        .21687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.1185        12.560        .14071E-03   -1.5138    
  12  norm          5.3580        8.0928        .17362E-03   -1.5245    
  13  Prefactor     .10000E-03    16.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    22.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     33.216        24.154        .69509E-04   -1.4555    
  17  norm          3.1850        2.3267        .88642E-04   -1.5351    
  18  norm          .10001E-03    4.6312        .30626E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.4958        .15243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.972        17.831        .11117E-03   -1.4987    
  21  Prefactor     .10000E-03    7.3850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.7574        .11927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.5783        6.1567        .18815E-03   -1.5280    
  24  Prefactor     .10000E-03    30.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    6.3700        .18031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .99721        .33816        .37955E-03   -.93124    
  27  Prefactor     1.0160        .17356        .20562E-03   -.92197    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83267e-09
Minuit parameter uncertainties:
  1  3.74372
  2  21.0276
  3  2.07678e-05
  4  138.443
  5  0.408874
  6  10.9956
  7  12.0195
  8  8.66399e-07
  9  1.57329e-05
  10  0.000139511
  11  12.5645
  12  8.09449
  13  0.000196988
  14  5.28207e-05
  15  7.63302e-05
  16  24.1608
  17  2.3268
  18  0.000309061
  19  9.73216e-05
  20  17.8385
  21  4.97145e-05
  22  8.40665e-06
  23  6.1575
  24  1.19167e-05
  25  9.75368e-07
  26  0.338893
  27  0.17366
Done.

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

Extracting fit parameters...

4FGL J1318.7-1234
   Spectrum: PowerLaw
321    Prefactor:  1.000e-04  1.970e-04  1.000e-04  1.000e+04 ( 1.000e-13)
322        Index:  2.126e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
323        Scale:  1.734e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  1.016e+00  1.737e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  9.972e-01  3.389e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 199.694 -12.581
Photon Flux Upper Limit: 1.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/462994/likelihoodResults_397180801_397440001_4FGL_J1318.7-1234_daily_bin609.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) = 5446.9394715
delta logL = -0.000292354604426

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5446.93917992
delta logL = -7.78301910032e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5446.135     FROM MIGRAD    STATUS=CONVERGED    136 CALLS      292 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .51226E-01    1.9876        .32087E-02   -.58501E-02
   2  Index         4.7807        3.3508        .10634        .22730E-03
   3  Normalizat    .86271        .27158        .91453E-01    .97811E-04
   4  Prefactor     1.0595        .10033        .42579E-01    .29598E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0512257
  Index      = 4.7807
  Normalizat = 0.862711
  Prefactor  = 1.05952
 **********
 **   18 **HESSE 
 **********

 FCN=   5446.135     FROM HESSE     STATUS=OK            33 CALLS      325 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .51226E-01    .57607        .14705E-03   -1.5753    
   2  Index         4.7807        2.4452        .37614E-02   -.43875E-01
   3  Normalizat    .86271        .32475        .40507E-03   -.97783    
   4  Prefactor     1.0595        .17379        .20184E-03   -.90771    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51439e-10
Minuit parameter uncertainties:
  1  0.343237
  2  2.55516
  3  0.325485
  4  0.173886
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/462994': 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) = 5446.13538788
delta logL = 0.803791262042

Extracting fit parameters...

4FGL J1318.7-1234
   Spectrum: PowerLaw
321    Prefactor:  5.123e-02  3.432e-01  1.000e-04  1.000e+04 ( 1.000e-13)
322        Index:  4.781e+00  2.555e+00  0.000e+00  1.000e+01 (-1.000e+00)
323        Scale:  1.734e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  1.060e+00  1.739e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  8.627e-01  3.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.76
Ra Dec: 199.694 -12.581
Photon Index (Free Index): 4.78 +/- 2.56
Photon Flux (Free Index): 1.14e-07 +/- 1.51e-06
Energy Flux (Free Index): 1.55e-05 +/- 2.01e-04

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/462994/cmap_HighResolution_397180801_397440001_4FGL_J1318.7-1234_daily_bin609.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.58e-03', comment='SUCCESS', energy_flux2='1.55e-05', dlogl='8.04e-01', photon_flux2='1.14e-07', job_status='DONE', time_completed='2021-09-07 11:30:43.364484', photon_index_error2='2.56', photon_index2='4.78', ts='-0.00', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='2.01e-04', EG='1.00', time_epoch_completed='1631039443.36', return_code='0', job_id='462994', GAL2='1.06', EG2='0.86', return_code2='0', photon_flux_error2='1.51e-06', ts2='1.76', photon_index='2.13' WHERE bin_id='609' AND source_name='4FGL J1318.7-1234' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 11:30:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 462994: <4FGL_J1318.7-1234_daily_bin609> in cluster <slac> Done

Job <4FGL_J1318.7-1234_daily_bin609> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 11:15:21 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 11:15:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 11:15:31 2021
Terminated at Tue Sep  7 11:30:44 2021
Results reported at Tue Sep  7 11:30:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1318.7-1234_daily_bin609 199.694 -12.581 397180801 397440001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1318.7-1234 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   712.04 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             279.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            923 sec.

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

