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


Performing analysis on: 4FGL_J1318.7-1234_daily_bin181
RA = 199.694, Dec = -12.581
tmin = 286243201, tmax = 286502401
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='460246', job_status='RUN', time_executed='2021-09-07 11:09:02.963380', time_epoch_executed='1631038142.96' WHERE source_name='4FGL J1318.7-1234' and cadence='daily' and bin_id='181'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/460246

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/460246/ft1_4FGL_J1318.7-1234_daily_bin181.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/460246/ft2_4FGL_J1318.7-1234_daily_bin181.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/460246/ft1_4FGL_J1318.7-1234_daily_bin181.fits outfile=/scratch/kocevski/460246/ft1_filteredMKT_4FGL_J1318.7-1234_daily_bin181.fits ra=199.694 dec=-12.581 rad=12.0 tmin=286243201.0 tmax=286502401.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.55
user 3.31
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/460246/ft1_filtered_4FGL_J1318.7-1234_daily_bin181.fits" evtable="EVENTS" scfile=/scratch/kocevski/460246/ft2_4FGL_J1318.7-1234_daily_bin181.fits sctable="SC_DATA" outfile=/scratch/kocevski/460246/ltcube_286243201_286502401_4FGL_J1318.7-1234_daily_bin181.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/460246/ft2_4FGL_J1318.7-1234_daily_bin181.fits
.....................!
real 16.82
user 16.40
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/460246/ft1_filtered_4FGL_J1318.7-1234_daily_bin181.fits evtable="EVENTS" scfile=/scratch/kocevski/460246/ft2_4FGL_J1318.7-1234_daily_bin181.fits sctable="SC_DATA" expcube=/scratch/kocevski/460246/ltcube_286243201_286502401_4FGL_J1318.7-1234_daily_bin181.fits outfile=/scratch/kocevski/460246/expmap_286243201_286502401_4FGL_J1318.7-1234_daily_bin181.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/460246/ltcube_286243201_286502401_4FGL_J1318.7-1234_daily_bin181.fits
.....................!
real 192.70
user 186.52
sys 5.65

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/460246/ft1_filtered_4FGL_J1318.7-1234_daily_bin181.fits scfile=/scratch/kocevski/460246/ft2_4FGL_J1318.7-1234_daily_bin181.fits outfile=/scratch/kocevski/460246/cmap_286243201_286502401_4FGL_J1318.7-1234_daily_bin181.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/460246/ft1_filtered_4FGL_J1318.7-1234_daily_bin181.fits scfile=/scratch/kocevski/460246/ft2_4FGL_J1318.7-1234_daily_bin181.fits outfile=/scratch/kocevski/460246/cmap_HighResolution_286243201_286502401_4FGL_J1318.7-1234_daily_bin181.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/460246/ft1_filtered_4FGL_J1318.7-1234_daily_bin181.fits evtable="EVENTS" scfile=/scratch/kocevski/460246/ft2_4FGL_J1318.7-1234_daily_bin181.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/460246/Model_4FGL_J1318.7-1234_daily_bin181.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/460246/ft1_filtered_4FGL_J1318.7-1234_daily_bin181.fits.....................!
real 50.21
user 48.73
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4815       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18464E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .83999       1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    7.5005       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    16.440       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.734       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.5364       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.2452       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.556       1.0000         .10000E-03   10000.    
    22 'norm      '    5.8790       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.9194       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.7930       1.0000         .10000E-03   10000.    
    26 'Normalizat'    1.5785       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .74623       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=   5794.757     FROM MIGRAD    STATUS=CONVERGED    674 CALLS     3296 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4815        2.5156        .38327E-08    .13694E-04
   2  Prefactor     .10000E-03    3.4166        .15036E-07** at limit **
   3  Prefactor     .10000E-03    497.38       -.41887E-05** at limit **
   4  Prefactor     .10000E-03    58.789       -.37927E-06** at limit **
   5  norm          .84009        .28177       -.82874E-09    .28380E-03
   6  norm          .10000E-03    5.8174        .74625E-08** at limit **
   7  norm          7.5003        6.6186        .88239E-07   -.52794E-03
   8  Prefactor     .10000E-03    3.6511       -.15512E-07** at limit **
   9  Prefactor     .10000E-03    22.036        .14720E-06** at limit **
  10  norm          .10000E-03    .77762        .19219E-08** at limit **
  11  norm          16.440        13.348        .30719E-07   -.97208E-04
  12  norm          .10000E-03    3.7642        .51246E-08** at limit **
  13  Prefactor     13.734        10.703        .29137E-07    .44792E-05
  14  Prefactor     .10000E-03    24.749       -.21515E-06** at limit **
  15  Prefactor     .10000E-03    6.9159        .17435E-07** at limit **
  16  Prefactor     .10000E-03    14.851        .53333E-07** at limit **
  17  norm          9.5364        2.6609        .13095E-08    .82297E-06
  18  norm          .10000E-03    2.1726        .10924E-07** at limit **
  19  norm          .10000E-03    5.7474        .21043E-07** at limit **
  20  Prefactor     3.2516        42.832       -.16028E-04   -.23164E-04
  21  Prefactor     10.550        22.099        .81322E-05    .61444E-04
  22  norm          5.8789        5.2551       -.10152E-07    .10679E-03
  23  Prefactor     8.9187        9.8052       -.52478E-07   -.54397E-03
  24  Prefactor     .10000E-03    35.525        .22977E-06** at limit **
  25  norm          2.7925        5.5636        .79119E-06   -.10171E-02
  26  Normalizat    1.5786        .26550        .18407E-06    .47706E-04
  27  Prefactor     .74624        .13495       -.33824E-06    .10009E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.48154
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.840089
  norm       = 0.0001
  norm       = 7.50026
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 16.4396
  norm       = 0.0001
  Prefactor  = 13.7341
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.5364
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.25155
  Prefactor  = 10.5505
  norm       = 5.87886
  Prefactor  = 8.91869
  Prefactor  = 0.0001
  norm       = 2.79255
  Normalizat = 1.57857
  Prefactor  = 0.746242
 **********
 **   18 **HESSE 
 **********

 FCN=   5794.757     FROM HESSE     STATUS=OK           486 CALLS     3782 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4815        2.5166        .88188E-04   -1.5285    
   2  Prefactor     .10000E-03    3.4206        .13741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    513.01        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    58.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .84009        .28170        .22298E-04   -1.5525    
   6  norm          .10000E-03    5.8560        .17928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          7.5003        6.7911        .73219E-03   -1.5160    
   8  Prefactor     .10000E-03    3.6591        .14186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    22.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .77889        .65551E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          16.440        13.421        .49390E-03   -1.4897    
  12  norm          .10000E-03    3.7655        .14424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.734        10.722        .10808E-03   -1.4967    
  14  Prefactor     .10000E-03    24.891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.9706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    14.927        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.5364        2.6797        .61807E-04   -1.5090    
  18  norm          .10000E-03    2.2029        .10950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.8061        .17810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.2516        43.753        .22484E-03   -1.5347    
  21  Prefactor     10.550        22.251        .12332E-03   -1.5058    
  22  norm          5.8789        5.2532        .15812E-03   -1.5223    
  23  Prefactor     8.9187        9.9537        .67103E-03   -1.5111    
  24  Prefactor     .10000E-03    35.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.7925        10.558        .12173E-02   -1.5374    
  26  Normalizat    1.5786        .30866        .31115E-03   -.75594    
  27  Prefactor     .74624        .15628        .22801E-03   -1.0174    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59239e-09
Minuit parameter uncertainties:
  1  2.51665
  2  2.08697e-07
  3  0.00200924
  4  4.38214e-05
  5  0.281696
  6  1.12569e-06
  7  6.79175
  8  5.80396e-07
  9  9.88246e-06
  10  1.97759e-07
  11  13.4233
  12  4.45237e-08
  13  10.7233
  14  1.67726e-05
  15  3.85232e-07
  16  3.24747e-06
  17  2.67977
  18  8.56192e-07
  19  1.74469e-06
  20  23.876
  21  22.2682
  22  5.25366
  23  9.95556
  24  1.63934e-05
  25  10.5655
  26  0.309035
  27  0.156377
Done.

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

Extracting fit parameters...

4FGL J1318.7-1234
   Spectrum: PowerLaw
321    Prefactor:  1.373e+01  1.072e+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.462e-01  1.564e-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.579e+00  3.090e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.07
Ra Dec: 199.694 -12.581
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 5.25e-08 +/- 4.10e-08
Energy Flux (Fixed Index): 2.73e-05 +/- 2.13e-05

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) = 5793.91169382
delta logL = 0.845140224665

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5793.88395195
delta logL = 0.872882091162

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2391       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2410       1.0000          .0000       10.000    
     3 'Normalizat'    1.4648       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78231       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=   5793.884     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      251 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2362        29.794        .56265E-02    .55024E-03
   2  Index         3.2414        2.3633        .90588E-01    .23180E-03
   3  Normalizat    1.4647        .10643        .72461E-01    .55429E-05
   4  Prefactor     .78230        .50614E-01    .43487E-01   -.21025E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.23618
  Index      = 3.24142
  Normalizat = 1.46475
  Prefactor  = 0.782303
 **********
 **   18 **HESSE 
 **********

 FCN=   5793.884     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      284 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2362        47.312        .71711E-04   -1.5348    
   2  Index         3.2414        3.3278        .34632E-02   -.35940    
   3  Normalizat    1.4647        .38691        .32062E-03   -.78774    
   4  Prefactor     .78230        .18316        .22321E-03   -1.0038    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.99099e-10
Minuit parameter uncertainties:
  1  24.7706
  2  3.7019
  3  0.387692
  4  0.183302
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/460246': 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) = 5793.88395181
delta logL = 0.872882234978

Extracting fit parameters...

4FGL J1318.7-1234
   Spectrum: PowerLaw
321    Prefactor:  3.236e+00  2.477e+01  1.000e-04  1.000e+04 ( 1.000e-13)
322        Index:  3.241e+00  3.702e+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:  7.823e-01  1.833e-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.465e+00  3.877e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.94
Ra Dec: 199.694 -12.581
Photon Index (Free Index): 3.24 +/- 3.70
Photon Flux (Free Index): 1.50e-07 +/- 2.09e-07
Energy Flux (Free Index): 2.71e-05 +/- 1.51e-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/460246/cmap_HighResolution_286243201_286502401_4FGL_J1318.7-1234_daily_bin181.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.25e-08', energy_flux2='2.71e-05', photon_flux_error='4.10e-08', dlogl='8.73e-01', energy_flux='2.73e-05', photon_flux2='1.50e-07', job_status='DONE', time_completed='2021-09-07 11:20:04.185902', photon_index_error2='3.70', photon_index2='3.24', ts='4.07', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='1.51e-05', EG='1.58', time_epoch_completed='1631038804.19', return_code='0', job_id='460246', GAL2='0.78', EG2='1.46', return_code2='102', energy_flux_error='2.13e-05', photon_flux_error2='2.09e-07', ts2='5.94', photon_index='2.13' WHERE bin_id='181' AND source_name='4FGL J1318.7-1234' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 11:20:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 460246: <4FGL_J1318.7-1234_daily_bin181> in cluster <slac> Done

Job <4FGL_J1318.7-1234_daily_bin181> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep  7 11:05:30 2021
Job was executed on host(s) <bullet0153>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 11:06: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:06:29 2021
Terminated at Tue Sep  7 11:20:05 2021
Results reported at Tue Sep  7 11:20:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1318.7-1234_daily_bin181 199.694 -12.581 286243201 286502401 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 :                                   661.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             257.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            875 sec.

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

