/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 115 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 = 7477
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1318.7-1234_daily_bin409
RA = 199.694, Dec = -12.581
tmin = 345340801, tmax = 345600001
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='461640', job_status='RUN', time_executed='2021-09-07 11:13:45.504962', time_epoch_executed='1631038425.5' WHERE source_name='4FGL J1318.7-1234' and cadence='daily' and bin_id='409'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/461640

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/461640/ft1_4FGL_J1318.7-1234_daily_bin409.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/461640/ft2_4FGL_J1318.7-1234_daily_bin409.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/461640/ft1_4FGL_J1318.7-1234_daily_bin409.fits outfile=/scratch/kocevski/461640/ft1_filteredMKT_4FGL_J1318.7-1234_daily_bin409.fits ra=199.694 dec=-12.581 rad=12.0 tmin=345340801.0 tmax=345600001.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.44
user 3.19
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/461640/ft2_4FGL_J1318.7-1234_daily_bin409.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/461640/ft1_filteredMKT_4FGL_J1318.7-1234_daily_bin409.fits evtable="EVENTS" outfile="/scratch/kocevski/461640/ft1_filtered_4FGL_J1318.7-1234_daily_bin409.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.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/461640/ft1_filtered_4FGL_J1318.7-1234_daily_bin409.fits" evtable="EVENTS" scfile=/scratch/kocevski/461640/ft2_4FGL_J1318.7-1234_daily_bin409.fits sctable="SC_DATA" outfile=/scratch/kocevski/461640/ltcube_345340801_345600001_4FGL_J1318.7-1234_daily_bin409.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/461640/ft2_4FGL_J1318.7-1234_daily_bin409.fits
.....................!
real 14.68
user 14.30
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/461640/ft1_filtered_4FGL_J1318.7-1234_daily_bin409.fits evtable="EVENTS" scfile=/scratch/kocevski/461640/ft2_4FGL_J1318.7-1234_daily_bin409.fits sctable="SC_DATA" expcube=/scratch/kocevski/461640/ltcube_345340801_345600001_4FGL_J1318.7-1234_daily_bin409.fits outfile=/scratch/kocevski/461640/expmap_345340801_345600001_4FGL_J1318.7-1234_daily_bin409.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/461640/ltcube_345340801_345600001_4FGL_J1318.7-1234_daily_bin409.fits
.....................!
real 191.02
user 185.97
sys 4.64

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/461640/ft1_filtered_4FGL_J1318.7-1234_daily_bin409.fits scfile=/scratch/kocevski/461640/ft2_4FGL_J1318.7-1234_daily_bin409.fits outfile=/scratch/kocevski/461640/cmap_345340801_345600001_4FGL_J1318.7-1234_daily_bin409.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/461640/ft1_filtered_4FGL_J1318.7-1234_daily_bin409.fits scfile=/scratch/kocevski/461640/ft2_4FGL_J1318.7-1234_daily_bin409.fits outfile=/scratch/kocevski/461640/cmap_HighResolution_345340801_345600001_4FGL_J1318.7-1234_daily_bin409.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/461640/ft1_filtered_4FGL_J1318.7-1234_daily_bin409.fits evtable="EVENTS" scfile=/scratch/kocevski/461640/ft2_4FGL_J1318.7-1234_daily_bin409.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/461640/Model_4FGL_J1318.7-1234_daily_bin409.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/461640/ft1_filtered_4FGL_J1318.7-1234_daily_bin409.fits.....................!
real 59.25
user 57.32
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/461640/ft1_filtered_4FGL_J1318.7-1234_daily_bin409.fits', '/scratch/kocevski/461640/ft2_4FGL_J1318.7-1234_daily_bin409.fits', expMap='/scratch/kocevski/461640/expmap_345340801_345600001_4FGL_J1318.7-1234_daily_bin409.fits', expCube='/scratch/kocevski/461640/ltcube_345340801_345600001_4FGL_J1318.7-1234_daily_bin409.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/461640/Model_4FGL_J1318.7-1234_daily_bin409.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/461640/ft1_filtered_4FGL_J1318.7-1234_daily_bin409.fits
Spacecraft file(s): /scratch/kocevski/461640/ft2_4FGL_J1318.7-1234_daily_bin409.fits
Exposure map: /scratch/kocevski/461640/expmap_345340801_345600001_4FGL_J1318.7-1234_daily_bin409.fits
Exposure cube: /scratch/kocevski/461640/ltcube_345340801_345600001_4FGL_J1318.7-1234_daily_bin409.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/461640/Model_4FGL_J1318.7-1234_daily_bin409.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 7270.44793173

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7066       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.947       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .73824       1.0000         .10000E-03   10000.    
     6 'norm      '    29.710       1.0000         .10000E-03   10000.    
     7 'norm      '    16.073       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.3290       1.0000         .10000E-03   10000.    
    11 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7747       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.3981       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.065       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.401       1.0000         .10000E-03   10000.    
    17 'norm      '    .22619       1.0000         .10000E-03   10000.    
    18 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.4741       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.2430       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.091       1.0000         .10000E-03   10000.    
    22 'norm      '    2.0604       1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.223       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .87633       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1498       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=   7270.395     FROM MIGRAD    STATUS=CONVERGED    645 CALLS     2835 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7066        1.9837       -.14780E-07    .38037E-04
   2  Prefactor     10.947        10.508        .57031E-07    .14822E-05
   3  Prefactor     .10000E-03    14.080        .38571E-05** at limit **
   4  Prefactor     .10000E-03    27.279        .49191E-05** at limit **
   5  norm          .73826        .24190       -.76821E-08   -.57808E-04
   6  norm          29.711        12.354        .42269E-07    .24629E-04
   7  norm          16.071        6.7404        .80863E-07    .15727E-04
   8  Prefactor     .10000E-03    2.5764       -.14513E-07** at limit **
   9  Prefactor     .10000E-03    57.556       -.36696E-05** at limit **
  10  norm          1.3289        2.2894       -.82693E-07   -.20542E-03
  11  norm          .10000E-03    6.5888        .31939E-06** at limit **
  12  norm          .10000E-03    4.3117       -.48584E-08** at limit **
  13  Prefactor     2.7749        4.5914        .13545E-05   -.16081E-02
  14  Prefactor     2.3968        37.173        .24397E-05   -.29259E-03
  15  Prefactor     17.066        11.728       -.86379E-07    .39621E-04
  16  Prefactor     11.402        15.366       -.23054E-06    .95626E-05
  17  norm          .22719        1.0271       -.17461E-06   -.16101E-03
  18  norm          .10000E-03    1.8442        .21483E-07** at limit **
  19  norm          6.4749        6.6746        .29576E-07    .14537E-05
  20  Prefactor     8.2427        15.488       -.10811E-07    .20843E-04
  21  Prefactor     16.092        14.056        .34267E-07    .35481E-04
  22  norm          2.0603        4.5739       -.45580E-05   -.47182E-03
  23  Prefactor     11.222        5.7555       -.30680E-06    .38418E-05
  24  Prefactor     .10000E-03    17.049       -.61917E-05** at limit **
  25  norm          .10000E-03    7.4437       -.52494E-06** at limit **
  26  Normalizat    .87630        .24841       -.45459E-06    .98082E-04
  27  Prefactor     1.1498        .13439        .76450E-06    .86126E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.70663
  Prefactor  = 10.9472
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.738259
  norm       = 29.7107
  norm       = 16.0713
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.32886
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 2.77487
  Prefactor  = 2.3968
  Prefactor  = 17.066
  Prefactor  = 11.4024
  norm       = 0.227193
  norm       = 0.0001
  norm       = 6.4749
  Prefactor  = 8.24271
  Prefactor  = 16.0916
  norm       = 2.06029
  Prefactor  = 11.2224
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.876296
  Prefactor  = 1.1498
 **********
 **   18 **HESSE 
 **********

 FCN=   7270.395     FROM HESSE     STATUS=OK           496 CALLS     3331 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7066        1.9860        .85564E-04   -1.5323    
   2  Prefactor     10.947        10.525        .12109E-03   -1.5046    
   3  Prefactor     .10000E-03    14.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .73826        .24197        .22756E-04   -1.5536    
   6  norm          29.711        12.359        .73505E-04   -1.4617    
   7  norm          16.071        6.7330        .99902E-04   -1.4906    
   8  Prefactor     .10000E-03    2.5809        .13352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    57.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.3289        2.2668        .16327E-03   -1.5477    
  11  norm          .10000E-03    6.6370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    4.3304        .17292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.7749        6.5802        .12216E-02   -1.5375    
  14  Prefactor     2.3968        47.575        .13222E-02   -1.5398    
  15  Prefactor     17.066        11.775        .96954E-04   -1.4882    
  16  Prefactor     11.402        15.297        .11865E-03   -1.5032    
  17  norm          .22719        1.9674        .15930E-02   -1.5613    
  18  norm          .10000E-03    1.8631        .11257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.4749        6.6583        .15773E-03   -1.5199    
  20  Prefactor     8.2427        15.406        .13964E-03   -1.5134    
  21  Prefactor     16.092        13.989        .99847E-04   -1.4905    
  22  norm          2.0603        4.6477        .26432E-03   -1.5421    
  23  Prefactor     11.222        5.7533        .11959E-03   -1.5038    
  24  Prefactor     .10000E-03    17.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    7.6669        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .87630        .27708        .38923E-03   -.97298    
  27  Prefactor     1.1498        .15042        .19868E-03   -.87890    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7924e-08
Minuit parameter uncertainties:
  1  1.98603
  2  10.5269
  3  9.06849e-05
  4  0.000159538
  5  0.241967
  6  12.36
  7  6.7333
  8  2.59131e-06
  9  0.00019619
  10  2.26692
  11  5.27061e-07
  12  1.47208e-06
  13  6.58195
  14  21.3759
  15  11.7763
  16  15.3019
  17  1.33689
  18  2.63481e-06
  19  6.65906
  20  15.4136
  21  13.9922
  22  4.64851
  23  5.75363
  24  0.00014108
  25  3.79832e-06
  26  0.277535
  27  0.150479
Done.

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

Extracting fit parameters...

4FGL J1318.7-1234
   Spectrum: PowerLaw
321    Prefactor:  2.775e+00  6.582e+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

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  1.150e+00  1.505e-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.763e-01  2.775e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.24
Ra Dec: 199.694 -12.581
Photon Flux Upper Limit: 8.90e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.74e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/461640/likelihoodResults_345340801_345600001_4FGL_J1318.7-1234_daily_bin409.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) = 7269.59685219
delta logL = 0.798364242364

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7269.56531206
delta logL = 0.829904369109

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .76568E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    5.4780       1.0000          .0000       10.000    
     3 'Normalizat'    .76198       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1915       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=   7269.565     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      293 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .74754E-02    .82212E-01    .92758E-03    .17311E-01
   2  Index         5.4869        1.8227        .10853        .25050E-03
   3  Normalizat    .76241        .53905E-01    .93524E-01    .40485E-04
   4  Prefactor     1.1912        .31189E-01    .34834E-01    .77975E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00747545
  Index      = 5.48689
  Normalizat = 0.762411
  Prefactor  = 1.19117
 **********
 **   18 **HESSE 
 **********

 FCN=   7269.565     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      326 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .74754E-02    .23236        .56927E-05   -1.5691    
   2  Index         5.4869        3.6918        .37222E-02    .97532E-01
   3  Normalizat    .76241        .22009        .41435E-03   -1.0148    
   4  Prefactor     1.1912        .12458        .19560E-03   -.86604    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.78171e-10
Minuit parameter uncertainties:
  1  0.0827963
  2  4.1595
  3  0.220347
  4  0.124607
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/461640': 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) = 7269.56530155
delta logL = 0.829914876708

Extracting fit parameters...

4FGL J1318.7-1234
   Spectrum: PowerLaw
321    Prefactor:  7.475e-03  8.280e-02  1.000e-04  1.000e+04 ( 1.000e-13)
322        Index:  5.487e+00  4.159e+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.191e+00  1.246e-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:  7.624e-01  2.203e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.10
Ra Dec: 199.694 -12.581
Photon Index (Free Index): 5.49 +/- 4.16
Photon Flux (Free Index): 1.06e-07 +/- 8.32e-08
Energy Flux (Free Index): 1.35e-05 +/- 1.17e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/461640/cmap_HighResolution_345340801_345600001_4FGL_J1318.7-1234_daily_bin409.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.74e-03', comment='SUCCESS', energy_flux2='1.35e-05', dlogl='8.30e-01', photon_flux2='1.06e-07', job_status='DONE', time_completed='2021-09-07 11:27:06.476323', photon_index_error2='4.16', photon_index2='5.49', ts='0.24', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='8.90e-08', energy_flux_error2='1.17e-05', EG='0.88', time_epoch_completed='1631039226.48', return_code='0', job_id='461640', GAL2='1.19', EG2='0.76', return_code2='102', photon_flux_error2='8.32e-08', ts2='2.10', photon_index='2.13' WHERE bin_id='409' AND source_name='4FGL J1318.7-1234' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 11:27:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0129>
Subject: Job 461640: <4FGL_J1318.7-1234_daily_bin409> in cluster <slac> Done

Job <4FGL_J1318.7-1234_daily_bin409> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Sep  7 11:10:28 2021
Job was executed on host(s) <bullet0129>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 11:11:42 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:11:42 2021
Terminated at Tue Sep  7 11:27:07 2021
Results reported at Tue Sep  7 11:27:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1318.7-1234_daily_bin409 199.694 -12.581 345340801 345600001 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 :                                   800.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            999 sec.

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

