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


Performing analysis on: 4FGL_J1318.7-1234_daily_bin601
RA = 199.694, Dec = -12.581
tmin = 395107201, tmax = 395366401
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='462981', job_status='RUN', time_executed='2021-09-07 11:17:29.027961', time_epoch_executed='1631038649.03' WHERE source_name='4FGL J1318.7-1234' and cadence='daily' and bin_id='601'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/462981

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

Retrieving the FT1 file...

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

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

Retrieving 55 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/462981/ft1_4FGL_J1318.7-1234_daily_bin601.fits


Retrieving the FT1 file...

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

Retrieving 55 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/462981/ft2_4FGL_J1318.7-1234_daily_bin601.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/462981/ft1_4FGL_J1318.7-1234_daily_bin601.fits outfile=/scratch/kocevski/462981/ft1_filteredMKT_4FGL_J1318.7-1234_daily_bin601.fits ra=199.694 dec=-12.581 rad=12.0 tmin=395107201.0 tmax=395366401.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 8.02
user 7.67
sys 0.32

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/462981/ft1_filtered_4FGL_J1318.7-1234_daily_bin601.fits" evtable="EVENTS" scfile=/scratch/kocevski/462981/ft2_4FGL_J1318.7-1234_daily_bin601.fits sctable="SC_DATA" outfile=/scratch/kocevski/462981/ltcube_395107201_395366401_4FGL_J1318.7-1234_daily_bin601.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/462981/ft2_4FGL_J1318.7-1234_daily_bin601.fits
.....................!
real 13.98
user 13.59
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/462981/ft1_filtered_4FGL_J1318.7-1234_daily_bin601.fits evtable="EVENTS" scfile=/scratch/kocevski/462981/ft2_4FGL_J1318.7-1234_daily_bin601.fits sctable="SC_DATA" expcube=/scratch/kocevski/462981/ltcube_395107201_395366401_4FGL_J1318.7-1234_daily_bin601.fits outfile=/scratch/kocevski/462981/expmap_395107201_395366401_4FGL_J1318.7-1234_daily_bin601.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/462981/ltcube_395107201_395366401_4FGL_J1318.7-1234_daily_bin601.fits
.....................!
real 192.43
user 186.70
sys 5.05

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/462981/ft1_filtered_4FGL_J1318.7-1234_daily_bin601.fits scfile=/scratch/kocevski/462981/ft2_4FGL_J1318.7-1234_daily_bin601.fits outfile=/scratch/kocevski/462981/cmap_395107201_395366401_4FGL_J1318.7-1234_daily_bin601.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.55
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/462981/ft1_filtered_4FGL_J1318.7-1234_daily_bin601.fits scfile=/scratch/kocevski/462981/ft2_4FGL_J1318.7-1234_daily_bin601.fits outfile=/scratch/kocevski/462981/cmap_HighResolution_395107201_395366401_4FGL_J1318.7-1234_daily_bin601.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/462981/ft1_filtered_4FGL_J1318.7-1234_daily_bin601.fits evtable="EVENTS" scfile=/scratch/kocevski/462981/ft2_4FGL_J1318.7-1234_daily_bin601.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/462981/Model_4FGL_J1318.7-1234_daily_bin601.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/462981/ft1_filtered_4FGL_J1318.7-1234_daily_bin601.fits.....................!
real 55.90
user 54.57
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3219       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.0748       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.5214       1.0000         .10000E-03   10000.    
     4 'Prefactor '    60.549       1.0000         .10000E-03   10000.    
     5 'norm      '    1.5572       1.0000         .10000E-03   10000.    
     6 'norm      '    2.3119       1.0000         .10000E-03   10000.    
     7 'norm      '    .10667E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .89764       1.0000         .10000E-03   10000.    
    11 'norm      '    22.091       1.0000         .10000E-03   10000.    
    12 'norm      '    2.1399       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.121       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.6832       1.0000         .10000E-03   10000.    
    17 'norm      '    2.2889       1.0000         .10000E-03   10000.    
    18 'norm      '    1.0853       1.0000         .10000E-03   10000.    
    19 'norm      '    30.335       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.6284       1.0000         .10000E-03   10000.    
    22 'norm      '    1.0440       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .37138       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'    1.1121       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .89654       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=   6959.208     FROM MIGRAD    STATUS=CONVERGED    662 CALLS     2878 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3219        2.6536       -.66105E-08    .36700E-04
   2  Prefactor     2.0742        11.440        .67536E-06   -.15978E-03
   3  Prefactor     7.5150        74.558       -.14047E-05   -.16980E-04
   4  Prefactor     60.521        49.575       -.29168E-05   -.20338E-03
   5  norm          1.5572        .33376        .11883E-07   -.28976E-03
   6  norm          2.3127        9.8033        .81230E-06   -.14416E-03
   7  norm          .10000E-03    3.0869       -.20795E-06** at limit **
   8  Prefactor     .10000E-03    1.6151       -.46248E-07** at limit **
   9  Prefactor     .10000E-03    30.478       -.40510E-08** at limit **
  10  norm          .89802        2.0749        .34385E-06   -.45792E-03
  11  norm          22.090        12.601        .11893E-07   -.20284E-05
  12  norm          2.1389        19.834        .68134E-06   -.83184E-04
  13  Prefactor     .10000E-03    6.0350        .57030E-07** at limit **
  14  Prefactor     15.123        20.818       -.78001E-08   -.88574E-05
  15  Prefactor     .10000E-03    6.8959        .38193E-07** at limit **
  16  Prefactor     5.7180        28.002       -.77852E-05   -.22627E-03
  17  norm          2.2890        1.4595        .16809E-07   -.10861E-03
  18  norm          1.0785        8.1016        .47039E-05   -.22431E-03
  19  norm          30.339        10.793       -.57630E-06   -.31984E-03
  20  Prefactor     .10000E-03    15.651       -.10494E-06** at limit **
  21  Prefactor     2.6240        12.443        .16047E-06   -.10790E-03
  22  norm          1.0432        5.2465        .12941E-05   -.68076E-03
  23  Prefactor     .37990        3.0719        .29151E-06   -.34718E-03
  24  Prefactor     .10000E-03    13.961       -.25410E-07** at limit **
  25  norm          .10000E-03    1.9603        .30206E-08** at limit **
  26  Normalizat    1.1121        .23300       -.14282E-07   -.60499E-04
  27  Prefactor     .89654        .12342       -.42711E-06   -.18033E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.32187
  Prefactor  = 2.07419
  Prefactor  = 7.51497
  Prefactor  = 60.5205
  norm       = 1.55717
  norm       = 2.31267
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.898025
  norm       = 22.0901
  norm       = 2.13889
  Prefactor  = 0.0001
  Prefactor  = 15.1234
  Prefactor  = 0.0001
  Prefactor  = 5.71799
  norm       = 2.28896
  norm       = 1.07854
  norm       = 30.3394
  Prefactor  = 0.0001
  Prefactor  = 2.62402
  norm       = 1.04324
  Prefactor  = 0.379903
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.11212
  Prefactor  = 0.896542
 **********
 **   18 **HESSE 
 **********

 FCN=   6959.208     FROM HESSE     STATUS=OK           498 CALLS     3376 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3219        2.6511        .85206E-04   -1.5205    
   2  Prefactor     2.0742        11.615        .28675E-03   -1.5420    
   3  Prefactor     7.5150        76.296        .14623E-03   -1.5160    
   4  Prefactor     60.521        50.301        .25782E-03   -1.4150    
   5  norm          1.5572        .33765        .20052E-04   -1.5458    
   6  norm          2.3127        9.7423        .26983E-03   -1.5404    
   7  norm          .10000E-03    3.1265        .14295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.6184        .10352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    30.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .89802        1.9134        .17472E-02   -1.5518    
  11  norm          22.090        12.608        .85220E-04   -1.4768    
  12  norm          2.1389        19.931        .28176E-03   -1.5415    
  13  Prefactor     .10000E-03    6.0947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.123        20.838        .10300E-03   -1.4930    
  15  Prefactor     .10000E-03    6.9720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.7180        26.489        .16850E-03   -1.5230    
  17  norm          2.2890        1.4581        .76992E-04   -1.5405    
  18  norm          1.0785        7.6990        .24835E-03   -1.5500    
  19  norm          30.339        10.678        .72745E-04   -1.4606    
  20  Prefactor     .10000E-03    15.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.6240        12.185        .25154E-03   -1.5384    
  22  norm          1.0432        5.3718        .36197E-03   -1.5504    
  23  Prefactor     .37990        6.7097        .27695E-02   -1.5585    
  24  Prefactor     .10000E-03    13.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    1.9628        .11404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    1.1121        .27276        .32910E-03   -.89364    
  27  Prefactor     .89654        .14552        .20016E-03   -.96262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07051e-09
Minuit parameter uncertainties:
  1  2.65118
  2  9.81941
  3  47.9689
  4  50.3364
  5  0.337648
  6  9.49575
  7  6.24574e-05
  8  1.01317e-05
  9  8.63681e-06
  10  1.91354
  11  12.6091
  12  13.0638
  13  5.50131e-07
  14  20.8484
  15  4.54797e-06
  16  24.632
  17  1.45817
  18  5.764
  19  10.6785
  20  2.5605e-05
  21  11.3125
  22  4.73504
  23  3.19313
  24  1.93877e-06
  25  4.08869e-08
  26  0.273102
  27  0.145582
Done.

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

Extracting fit parameters...

4FGL J1318.7-1234
   Spectrum: PowerLaw
321    Prefactor:  1.000e-04  5.501e-07  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:  8.965e-01  1.456e-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.112e+00  2.731e-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: 7.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.38e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/462981/likelihoodResults_395107201_395366401_4FGL_J1318.7-1234_daily_bin601.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) = 6959.20907725
delta logL = -0.000782302094194

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6959.20829509
delta logL = -1.50651430886e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1110       1.0000          .0000       10.000    
     3 'Normalizat'    1.1121       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89658       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=   6959.208     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      244 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10144E-03    .89909        .18142E-01** at limit **
   2  Index         1.9632        7.5585        .50000        .73988E-05
   3  Normalizat    1.1121        .21251E-02    .32909E-03    .24251E-04
   4  Prefactor     .89654        .11813E-02    .20016E-03    .56286E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101436
  Index      = 1.96317
  Normalizat = 1.11212
  Prefactor  = 0.896541
 **********
 **   18 **HESSE 
 **********

 FCN=   6959.208     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10144E-03    884.77        .41005E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9632        8.9441        .50000       -.65274    
   3  Normalizat    1.1121        .84304E-01    .13164E-04   -.89364    
   4  Prefactor     .89654        .46295E-01    .80065E-05   -.96262    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.07245e-06
Minuit parameter uncertainties:
  1  0.0723911
  2  2213.36
  3  0.0843146
  4  0.0462968
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/462981': 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) = 6959.20829451
delta logL = 4.35948095401e-07

Extracting fit parameters...

4FGL J1318.7-1234
   Spectrum: PowerLaw
321    Prefactor:  1.014e-04  7.239e-02  1.000e-04  1.000e+04 ( 1.000e-13)
322        Index:  1.963e+00  2.213e+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:  8.965e-01  4.630e-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.112e+00  8.431e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/462981/cmap_HighResolution_395107201_395366401_4FGL_J1318.7-1234_daily_bin601.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.38e-03', job_status='DONE', photon_flux_upper_limit='7.11e-08', time_completed='2021-09-07 11:31:02.780546', job_id='462981', GAL2='0.90', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1631039462.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='4.36e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='601' AND source_name='4FGL J1318.7-1234' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 11:31:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 462981: <4FGL_J1318.7-1234_daily_bin601> in cluster <slac> Done

Job <4FGL_J1318.7-1234_daily_bin601> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 11:15:20 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 11:15:29 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:29 2021
Terminated at Tue Sep  7 11:31:03 2021
Results reported at Tue Sep  7 11:31:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1318.7-1234_daily_bin601 199.694 -12.581 395107201 395366401 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 :                                   811.40 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             317.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            943 sec.

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

