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


Performing analysis on: 4FGL_J1318.7-1234_daily_bin976
RA = 199.694, Dec = -12.581
tmin = 492307201, tmax = 492566401
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='465772', job_status='RUN', time_executed='2021-09-07 11:29:27.558065', time_epoch_executed='1631039367.56' WHERE source_name='4FGL J1318.7-1234' and cadence='daily' and bin_id='976'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/465772

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/465772/ft1_4FGL_J1318.7-1234_daily_bin976.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/465772/ft2_4FGL_J1318.7-1234_daily_bin976.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/465772/ft1_4FGL_J1318.7-1234_daily_bin976.fits outfile=/scratch/kocevski/465772/ft1_filteredMKT_4FGL_J1318.7-1234_daily_bin976.fits ra=199.694 dec=-12.581 rad=12.0 tmin=492307201.0 tmax=492566401.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.77
user 3.50
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/465772/ft1_filtered_4FGL_J1318.7-1234_daily_bin976.fits" evtable="EVENTS" scfile=/scratch/kocevski/465772/ft2_4FGL_J1318.7-1234_daily_bin976.fits sctable="SC_DATA" outfile=/scratch/kocevski/465772/ltcube_492307201_492566401_4FGL_J1318.7-1234_daily_bin976.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/465772/ft2_4FGL_J1318.7-1234_daily_bin976.fits
.....................!
real 16.09
user 15.64
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/465772/ft1_filtered_4FGL_J1318.7-1234_daily_bin976.fits evtable="EVENTS" scfile=/scratch/kocevski/465772/ft2_4FGL_J1318.7-1234_daily_bin976.fits sctable="SC_DATA" expcube=/scratch/kocevski/465772/ltcube_492307201_492566401_4FGL_J1318.7-1234_daily_bin976.fits outfile=/scratch/kocevski/465772/expmap_492307201_492566401_4FGL_J1318.7-1234_daily_bin976.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/465772/ltcube_492307201_492566401_4FGL_J1318.7-1234_daily_bin976.fits
.....................!
real 191.64
user 186.18
sys 4.66

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/465772/ft1_filtered_4FGL_J1318.7-1234_daily_bin976.fits scfile=/scratch/kocevski/465772/ft2_4FGL_J1318.7-1234_daily_bin976.fits outfile=/scratch/kocevski/465772/cmap_492307201_492566401_4FGL_J1318.7-1234_daily_bin976.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/465772/ft1_filtered_4FGL_J1318.7-1234_daily_bin976.fits scfile=/scratch/kocevski/465772/ft2_4FGL_J1318.7-1234_daily_bin976.fits outfile=/scratch/kocevski/465772/cmap_HighResolution_492307201_492566401_4FGL_J1318.7-1234_daily_bin976.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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/465772/ft1_filtered_4FGL_J1318.7-1234_daily_bin976.fits evtable="EVENTS" scfile=/scratch/kocevski/465772/ft2_4FGL_J1318.7-1234_daily_bin976.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/465772/Model_4FGL_J1318.7-1234_daily_bin976.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/465772/ft1_filtered_4FGL_J1318.7-1234_daily_bin976.fits.....................!
real 53.65
user 51.45
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/465772/ft1_filtered_4FGL_J1318.7-1234_daily_bin976.fits', '/scratch/kocevski/465772/ft2_4FGL_J1318.7-1234_daily_bin976.fits', expMap='/scratch/kocevski/465772/expmap_492307201_492566401_4FGL_J1318.7-1234_daily_bin976.fits', expCube='/scratch/kocevski/465772/ltcube_492307201_492566401_4FGL_J1318.7-1234_daily_bin976.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/465772/Model_4FGL_J1318.7-1234_daily_bin976.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/465772/ft1_filtered_4FGL_J1318.7-1234_daily_bin976.fits
Spacecraft file(s): /scratch/kocevski/465772/ft2_4FGL_J1318.7-1234_daily_bin976.fits
Exposure map: /scratch/kocevski/465772/expmap_492307201_492566401_4FGL_J1318.7-1234_daily_bin976.fits
Exposure cube: /scratch/kocevski/465772/ltcube_492307201_492566401_4FGL_J1318.7-1234_daily_bin976.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/465772/Model_4FGL_J1318.7-1234_daily_bin976.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) = 6005.48960026

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.011       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.2620       1.0000         .10000E-03   10000.    
     6 'norm      '    9.0715       1.0000         .10000E-03   10000.    
     7 'norm      '    19.089       1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.8894       1.0000         .10000E-03   10000.    
     9 'Prefactor '    68.180       1.0000         .10000E-03   10000.    
    10 'norm      '    4.4087       1.0000         .10000E-03   10000.    
    11 'norm      '    8.9183       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.733       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10254E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .12217E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    11.636       1.0000         .10000E-03   10000.    
    19 'norm      '    9.8477       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.1604       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10886E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.073       1.0000         .10000E-03   10000.    
    24 'Prefactor '    56.189       1.0000         .10000E-03   10000.    
    25 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.6734       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .78316       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=   6005.448     FROM MIGRAD    STATUS=CONVERGED    634 CALLS     3303 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.011        3.8946       -.24149E-06    .20398E-03
   2  Prefactor     .10000E-03    22.075       -.43225E-05** at limit **
   3  Prefactor     .10000E-03    30.536       -.10752E-04** at limit **
   4  Prefactor     .10000E-03    64.469       -.13189E-04** at limit **
   5  norm          1.2621        .37469        .28929E-06   -.52123E-03
   6  norm          9.0715        12.401       -.26060E-05   -.14585E-04
   7  norm          19.091        12.440       -.20135E-05    .10219E-03
   8  Prefactor     6.8868        11.272       -.25802E-05   -.74471E-04
   9  Prefactor     68.091        113.67       -.10212E-03    .43939E-05
  10  norm          4.4096        3.0210       -.19812E-06    .11181E-03
  11  norm          8.9107        17.794        .13094E-04    .80398E-04
  12  norm          .10000E-03    5.7176        .22924E-05** at limit **
  13  Prefactor     16.732        12.494       -.13003E-05   -.48208E-03
  14  Prefactor     .10000E-03    19.045        .44830E-05** at limit **
  15  Prefactor     .10000E-03    6.5765        .70177E-05** at limit **
  16  Prefactor     .10000E-03    41.676        .22536E-04** at limit **
  17  norm          .17373E-01    .76987       -.66782E-06    .79502E-04
  18  norm          11.635        7.7100       -.83336E-06   -.70708E-03
  19  norm          9.8472        14.788        .12391E-05   -.21001E-03
  20  Prefactor     5.1611        8.0678       -.56164E-06   -.24950E-04
  21  Prefactor     .10000E-03    3.3926        .15824E-07** at limit **
  22  norm          .10000E-03    5.7898       -.30447E-05** at limit **
  23  Prefactor     13.073        9.6181       -.30435E-06   -.15575E-02
  24  Prefactor     56.135        68.855       -.60165E-04    .38996E-04
  25  norm          .10000E-03    6.7513       -.57043E-05** at limit **
  26  Normalizat    1.6741        .29409        .64568E-05    .41418E-04
  27  Prefactor     .78281        .15010        .57475E-05    .18493E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.0112
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.26213
  norm       = 9.07147
  norm       = 19.0909
  Prefactor  = 6.88676
  Prefactor  = 68.0906
  norm       = 4.40961
  norm       = 8.91069
  norm       = 0.0001
  Prefactor  = 16.7319
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0173733
  norm       = 11.6355
  norm       = 9.84718
  Prefactor  = 5.16108
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 13.0727
  Prefactor  = 56.1352
  norm       = 0.0001
  Normalizat = 1.6741
  Prefactor  = 0.782806
 **********
 **   18 **HESSE 
 **********

 FCN=   6005.448     FROM HESSE     STATUS=OK           500 CALLS     3803 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.011        3.8953        .84749E-04   -1.5015    
   2  Prefactor     .10000E-03    22.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    30.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    64.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.2621        .37505        .24298E-04   -1.5483    
   6  norm          9.0715        12.411        .13307E-03   -1.5105    
   7  norm          19.091        12.401        .91671E-04   -1.4834    
   8  Prefactor     6.8868        11.235        .15285E-03   -1.5183    
   9  Prefactor     68.091        113.97        .24305E-03   -1.4056    
  10  norm          4.4096        3.0268        .10735E-03   -1.5288    
  11  norm          8.9107        17.798        .13422E-03   -1.5111    
  12  norm          .10000E-03    5.7243        .18096E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.732        12.507        .48956E-03   -1.4890    
  14  Prefactor     .10000E-03    19.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.6073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    41.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .17373E-01    1.2546        .25238E-01   -1.5682    
  18  norm          11.635        7.7123        .11744E-03   -1.5026    
  19  norm          9.8472        14.771        .12769E-03   -1.5080    
  20  Prefactor     5.1611        8.0618        .17697E-03   -1.5254    
  21  Prefactor     .10000E-03    3.3953        .13940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.8930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     13.073        9.6306        .55391E-03   -1.4985    
  24  Prefactor     56.135        68.703        .53515E-04   -1.4208    
  25  norm          .10000E-03    6.7789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.6741        .34301        .33748E-03   -.72997    
  27  Prefactor     .78281        .17357        .24569E-03   -1.0037    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.794e-09
Minuit parameter uncertainties:
  1  3.89539
  2  0.000335653
  3  5.87391e-05
  4  0.000151699
  5  0.375047
  6  12.4146
  7  12.403
  8  11.2388
  9  114.333
  10  3.02686
  11  17.8081
  12  1.68855e-05
  13  12.509
  14  4.60672e-06
  15  4.41523e-05
  16  5.06222e-06
  17  0.294432
  18  7.71297
  19  14.7767
  20  8.06346
  21  5.10743e-06
  22  0.000179932
  23  9.63174
  24  68.8002
  25  5.58126e-06
  26  0.343499
  27  0.17369
Done.

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

Extracting fit parameters...

4FGL J1318.7-1234
   Spectrum: PowerLaw
321    Prefactor:  1.673e+01  1.251e+01  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:  7.828e-01  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:  1.674e+00  3.435e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.46
Ra Dec: 199.694 -12.581
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 6.40e-08 +/- 4.78e-08
Energy Flux (Fixed Index): 3.32e-05 +/- 2.49e-05

TS (Fixed Index): 3.46
Ra Dec: 199.694 -12.581
Photon Flux Upper Limit: 1.75e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.32e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/465772/likelihoodResults_492307201_492566401_4FGL_J1318.7-1234_daily_bin976.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) = 6005.44360333
delta logL = 0.00391335520544

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6005.44165424
delta logL = 0.00586244513943

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6005.442     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      242 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.614        15.660        .95432E-04   -.41976E-03
   2  Index         2.0580        .64048        .81904E-02   -.10738E-03
   3  Normalizat    1.6794        .32395        .33707E-03    .10692E-04
   4  Prefactor     .78128        .16853        .24591E-03    .14748E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.6136
  Index      = 2.058
  Normalizat = 1.67939
  Prefactor  = 0.781282
 **********
 **   18 **HESSE 
 **********

 FCN=   6005.442     FROM HESSE     STATUS=OK            25 CALLS      267 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.614        15.156        .19086E-04   -1.4868    
   2  Index         2.0580        .61939        .32762E-03   -.62908    
   3  Normalizat    1.6794        .32379        .13483E-04   -.72855    
   4  Prefactor     .78128        .16857        .98363E-05   -1.0042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.97125e-10
Minuit parameter uncertainties:
  1  15.1593
  2  0.621841
  3  0.324203
  4  0.16868
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/465772': 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) = 6005.44165423
delta logL = 0.0058624546682

Extracting fit parameters...

4FGL J1318.7-1234
   Spectrum: PowerLaw
321    Prefactor:  1.761e+01  1.516e+01  1.000e-04  1.000e+04 ( 1.000e-13)
322        Index:  2.058e+00  6.218e-01  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:  7.813e-01  1.687e-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:  1.679e+00  3.242e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.46
Ra Dec: 199.694 -12.581
Photon Index (Free Index): 2.06 +/- 0.62
Photon Flux (Free Index): 5.90e-08 +/- 6.32e-08
Energy Flux (Free Index): 3.56e-05 +/- 3.54e-05

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/465772/cmap_HighResolution_492307201_492566401_4FGL_J1318.7-1234_daily_bin976.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.32e-02', comment='SUCCESS', photon_flux='6.40e-08', energy_flux2='3.56e-05', photon_flux_error='4.78e-08', dlogl='5.86e-03', energy_flux='3.32e-05', photon_flux2='5.90e-08', job_status='DONE', time_completed='2021-09-07 11:41:57.102964', photon_index_error2='0.62', photon_index2='2.06', ts='3.46', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='1.75e-07', energy_flux_error2='3.54e-05', EG='1.67', time_epoch_completed='1631040117.1', return_code='0', job_id='465772', GAL2='0.78', EG2='1.68', return_code2='0', energy_flux_error='2.49e-05', photon_flux_error2='6.32e-08', ts2='3.46', photon_index='2.13' WHERE bin_id='976' AND source_name='4FGL J1318.7-1234' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 11:41:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 465772: <4FGL_J1318.7-1234_daily_bin976> in cluster <slac> Done

Job <4FGL_J1318.7-1234_daily_bin976> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep  7 11:25:42 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 11:26:21 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:26:21 2021
Terminated at Tue Sep  7 11:41:57 2021
Results reported at Tue Sep  7 11:41:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1318.7-1234_daily_bin976 199.694 -12.581 492307201 492566401 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 :                                   746.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            975 sec.

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

