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


Performing analysis on: 4FGL_J1318.7-1234_daily_bin1255
RA = 199.694, Dec = -12.581
tmin = 564624001, tmax = 564883201
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='466938', job_status='RUN', time_executed='2021-09-07 11:33:26.158792', time_epoch_executed='1631039606.16' WHERE source_name='4FGL J1318.7-1234' and cadence='daily' and bin_id='1255'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/466938

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/466938/ft1_4FGL_J1318.7-1234_daily_bin1255.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/466938/ft2_4FGL_J1318.7-1234_daily_bin1255.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/466938/ft1_4FGL_J1318.7-1234_daily_bin1255.fits outfile=/scratch/kocevski/466938/ft1_filteredMKT_4FGL_J1318.7-1234_daily_bin1255.fits ra=199.694 dec=-12.581 rad=12.0 tmin=564624001.0 tmax=564883201.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.67
user 3.42
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/466938/ft1_filtered_4FGL_J1318.7-1234_daily_bin1255.fits" evtable="EVENTS" scfile=/scratch/kocevski/466938/ft2_4FGL_J1318.7-1234_daily_bin1255.fits sctable="SC_DATA" outfile=/scratch/kocevski/466938/ltcube_564624001_564883201_4FGL_J1318.7-1234_daily_bin1255.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/466938/ft2_4FGL_J1318.7-1234_daily_bin1255.fits
.....................!
real 17.32
user 16.93
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/466938/ft1_filtered_4FGL_J1318.7-1234_daily_bin1255.fits evtable="EVENTS" scfile=/scratch/kocevski/466938/ft2_4FGL_J1318.7-1234_daily_bin1255.fits sctable="SC_DATA" expcube=/scratch/kocevski/466938/ltcube_564624001_564883201_4FGL_J1318.7-1234_daily_bin1255.fits outfile=/scratch/kocevski/466938/expmap_564624001_564883201_4FGL_J1318.7-1234_daily_bin1255.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/466938/ltcube_564624001_564883201_4FGL_J1318.7-1234_daily_bin1255.fits
.....................!
real 193.67
user 187.68
sys 5.25

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/466938/ft1_filtered_4FGL_J1318.7-1234_daily_bin1255.fits scfile=/scratch/kocevski/466938/ft2_4FGL_J1318.7-1234_daily_bin1255.fits outfile=/scratch/kocevski/466938/cmap_564624001_564883201_4FGL_J1318.7-1234_daily_bin1255.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.58
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/466938/ft1_filtered_4FGL_J1318.7-1234_daily_bin1255.fits scfile=/scratch/kocevski/466938/ft2_4FGL_J1318.7-1234_daily_bin1255.fits outfile=/scratch/kocevski/466938/cmap_HighResolution_564624001_564883201_4FGL_J1318.7-1234_daily_bin1255.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.58
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/466938/ft1_filtered_4FGL_J1318.7-1234_daily_bin1255.fits evtable="EVENTS" scfile=/scratch/kocevski/466938/ft2_4FGL_J1318.7-1234_daily_bin1255.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/466938/Model_4FGL_J1318.7-1234_daily_bin1255.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/466938/ft1_filtered_4FGL_J1318.7-1234_daily_bin1255.fits......................!
real 33.43
user 31.89
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5625       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    130.00       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10250E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.7638       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    18.303       1.0000         .10000E-03   10000.    
    11 'norm      '    16.147       1.0000         .10000E-03   10000.    
    12 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    39.447       1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.832       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    18.261       1.0000         .10000E-03   10000.    
    19 'norm      '    .10492E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10450E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    32.531       1.0000         .10000E-03   10000.    
    22 'norm      '    .10357E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.2503       1.0000         .10000E-03   10000.    
    24 'Prefactor '    69.289       1.0000         .10000E-03   10000.    
    25 'norm      '    3.9418       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.1662       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .60705       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=   3022.306     FROM MIGRAD    STATUS=CONVERGED    634 CALLS     3234 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5646        8.4354        .12983E-05   -.45674E-04
   2  Prefactor     .10000E-03    20.348        .66625E-05** at limit **
   3  Prefactor     129.97        118.04       -.22115E-04    .11296E-04
   4  Prefactor     .10000E-03    367.71       -.83191E-05** at limit **
   5  norm          4.7639        .76098        .22200E-06   -.16511E-02
   6  norm          .10000E-03    15.016       -.51713E-06** at limit **
   7  norm          .10000E-03    22.325       -.93215E-05** at limit **
   8  Prefactor     .10000E-03    38.328       -.19389E-04** at limit **
   9  Prefactor     .10000E-03    24.130       -.65322E-05** at limit **
  10  norm          18.306        18.455       -.15965E-05    .13004E-04
  11  norm          16.147        12.641       -.50007E-06   -.25219E-06
  12  norm          .10000E-03    10.639       -.19258E-06** at limit **
  13  Prefactor     .10000E-03    10.839        .11537E-06** at limit **
  14  Prefactor     39.438        31.383        .41059E-05   -.29125E-05
  15  Prefactor     26.834        21.063       -.33427E-05   -.73040E-04
  16  Prefactor     .10000E-03    27.493        .82298E-05** at limit **
  17  norm          .10000E-03    .57227       -.27645E-07** at limit **
  18  norm          18.244        9.4116        .14789E-05   -.53536E-03
  19  norm          .10000E-03    48.203        .95115E-05** at limit **
  20  Prefactor     .10000E-03    29.697        .11370E-04** at limit **
  21  Prefactor     32.539        51.003        .29656E-05   -.29299E-04
  22  norm          .10000E-03    6.2753        .21907E-06** at limit **
  23  Prefactor     6.2437        12.271        .97154E-06   -.20009E-03
  24  Prefactor     69.242        92.996       -.39959E-04   -.16329E-04
  25  norm          3.9432        13.613       -.25203E-05   -.15072E-03
  26  Normalizat    1.1672        .38957       -.15832E-05    .14206E-04
  27  Prefactor     .60645        .21632        .57144E-05   -.19270E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.56459
  Prefactor  = 0.0001
  Prefactor  = 129.973
  Prefactor  = 0.0001
  norm       = 4.76393
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.3057
  norm       = 16.1466
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.438
  Prefactor  = 26.8345
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 18.2439
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 32.5386
  norm       = 0.0001
  Prefactor  = 6.24366
  Prefactor  = 69.2424
  norm       = 3.94323
  Normalizat = 1.16721
  Prefactor  = 0.606449
 **********
 **   18 **HESSE 
 **********

 FCN=   3022.306     FROM HESSE     STATUS=OK           478 CALLS     3712 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5646        8.4375        .15665E-03   -1.5195    
   2  Prefactor     .10000E-03    20.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     129.97        118.93        .17656E-03   -1.3423    
   4  Prefactor     .10000E-03    367.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.7639        .77004        .17051E-04   -1.5271    
   6  norm          .10000E-03    15.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    22.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    38.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    24.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          18.306        18.478        .93618E-04   -1.4852    
  11  norm          16.147        12.644        .99672E-04   -1.4904    
  12  norm          .10000E-03    10.667        .17512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.855        .17677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     39.438        31.554        .63818E-04   -1.4451    
  15  Prefactor     26.834        21.148        .77338E-04   -1.4671    
  16  Prefactor     .10000E-03    27.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .57552        .40565E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          18.244        9.3308        .93725E-04   -1.4853    
  19  norm          .10000E-03    49.243        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    29.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     32.539        51.165        .70254E-04   -1.4566    
  22  norm          .10000E-03    6.2882        .13446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.2437        12.068        .16056E-03   -1.5208    
  24  Prefactor     69.242        93.395        .48223E-04   -1.4042    
  25  norm          3.9432        13.397        .20318E-03   -1.5311    
  26  Normalizat    1.1672        .46101        .36906E-03   -.87622    
  27  Prefactor     .60645        .25447        .27791E-03   -1.0732    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.58582e-10
Minuit parameter uncertainties:
  1  8.43903
  2  2.19338e-05
  3  119.151
  4  5.72823e-06
  5  0.770038
  6  4.87749e-06
  7  1.3521e-06
  8  1.4244e-06
  9  6.81212e-06
  10  18.4836
  11  12.6462
  12  9.4851e-06
  13  4.62315e-06
  14  31.5674
  15  21.1538
  16  0.000124863
  17  2.52735e-06
  18  9.33151
  19  0.000378559
  20  4.20535e-05
  21  51.2345
  22  6.42163e-05
  23  12.0726
  24  93.5937
  25  13.4069
  26  0.462626
  27  0.254953
Done.

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

Extracting fit parameters...

4FGL J1318.7-1234
   Spectrum: PowerLaw
321    Prefactor:  1.000e-04  4.623e-06  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:  6.064e-01  2.550e-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.167e+00  4.626e-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.73e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.31e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/466938/likelihoodResults_564624001_564883201_4FGL_J1318.7-1234_daily_bin1255.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) = 3022.30677548
delta logL = -0.000435201098753

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3022.30634025
delta logL = 3.52461029252e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1111       1.0000          .0000       10.000    
     3 'Normalizat'    1.1672       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60647       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=   3022.306     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      248 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10262E-03    5.2122        .17836E-01** at limit **
   2  Index         1.9748        8.8967        .50000        .72789E-05
   3  Normalizat    1.1672        .65479E-02    .36906E-03   -.11552E-05
   4  Prefactor     .60645        .36818E-02    .27791E-03    .35038E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102616
  Index      = 1.9748
  Normalizat = 1.1672
  Prefactor  = 0.606455
 **********
 **   18 **HESSE 
 **********

 FCN=   3022.306     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10262E-03    309.35        .18354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9748        8.8332        .50000       -.64982    
   3  Normalizat    1.1672        .52006E-01    .14763E-04   -.87623    
   4  Prefactor     .60645        .29241E-01    .11116E-04   -1.0732    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.69267e-08
Minuit parameter uncertainties:
  1  0.0571902
  2  1293.36
  3  0.052008
  4  0.0292422
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/466938': 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) = 3022.30634005
delta logL = 2.37357198785e-07

Extracting fit parameters...

4FGL J1318.7-1234
   Spectrum: PowerLaw
321    Prefactor:  1.026e-04  5.719e-02  1.000e-04  1.000e+04 ( 1.000e-13)
322        Index:  1.975e+00  1.293e+03  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:  6.065e-01  2.924e-02  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.167e+00  5.201e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 199.694 -12.581

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/466938/cmap_HighResolution_564624001_564883201_4FGL_J1318.7-1234_daily_bin1255.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.31e-02', job_status='DONE', photon_flux_upper_limit='1.73e-07', time_completed='2021-09-07 11:42:20.549866', job_id='466938', GAL2='0.61', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1631040140.55', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.61', dlogl='2.37e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1255' AND source_name='4FGL J1318.7-1234' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 11:42:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 466938: <4FGL_J1318.7-1234_daily_bin1255> in cluster <slac> Done

Job <4FGL_J1318.7-1234_daily_bin1255> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 11:30:24 2021
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 11:30:53 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:30:53 2021
Terminated at Tue Sep  7 11:42:21 2021
Results reported at Tue Sep  7 11:42:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1318.7-1234_daily_bin1255 199.694 -12.581 564624001 564883201 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 :                                   532.28 sec.
    Max Memory :                                 1171 MB
    Average Memory :                             270.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   687 sec.
    Turnaround time :                            717 sec.

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

