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


Performing analysis on: 4FGL_J1318.7-1234_daily_bin204
RA = 199.694, Dec = -12.581
tmin = 292204801, tmax = 292464001
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='460280', job_status='RUN', time_executed='2021-09-07 11:09:09.436283', time_epoch_executed='1631038149.44' WHERE source_name='4FGL J1318.7-1234' and cadence='daily' and bin_id='204'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/460280

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/460280/ft1_4FGL_J1318.7-1234_daily_bin204.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/460280/ft2_4FGL_J1318.7-1234_daily_bin204.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/460280/ft1_4FGL_J1318.7-1234_daily_bin204.fits outfile=/scratch/kocevski/460280/ft1_filteredMKT_4FGL_J1318.7-1234_daily_bin204.fits ra=199.694 dec=-12.581 rad=12.0 tmin=292204801.0 tmax=292464001.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 9.54
user 9.19
sys 0.31

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/460280/ft2_4FGL_J1318.7-1234_daily_bin204.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/460280/ft1_filteredMKT_4FGL_J1318.7-1234_daily_bin204.fits evtable="EVENTS" outfile="/scratch/kocevski/460280/ft1_filtered_4FGL_J1318.7-1234_daily_bin204.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.55
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/460280/ft1_filtered_4FGL_J1318.7-1234_daily_bin204.fits" evtable="EVENTS" scfile=/scratch/kocevski/460280/ft2_4FGL_J1318.7-1234_daily_bin204.fits sctable="SC_DATA" outfile=/scratch/kocevski/460280/ltcube_292204801_292464001_4FGL_J1318.7-1234_daily_bin204.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/460280/ft2_4FGL_J1318.7-1234_daily_bin204.fits
.....................!
real 14.56
user 14.03
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/460280/ft1_filtered_4FGL_J1318.7-1234_daily_bin204.fits evtable="EVENTS" scfile=/scratch/kocevski/460280/ft2_4FGL_J1318.7-1234_daily_bin204.fits sctable="SC_DATA" expcube=/scratch/kocevski/460280/ltcube_292204801_292464001_4FGL_J1318.7-1234_daily_bin204.fits outfile=/scratch/kocevski/460280/expmap_292204801_292464001_4FGL_J1318.7-1234_daily_bin204.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/460280/ltcube_292204801_292464001_4FGL_J1318.7-1234_daily_bin204.fits
.....................!
real 194.16
user 188.44
sys 5.21

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/460280/ft1_filtered_4FGL_J1318.7-1234_daily_bin204.fits scfile=/scratch/kocevski/460280/ft2_4FGL_J1318.7-1234_daily_bin204.fits outfile=/scratch/kocevski/460280/cmap_292204801_292464001_4FGL_J1318.7-1234_daily_bin204.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/460280/ft1_filtered_4FGL_J1318.7-1234_daily_bin204.fits scfile=/scratch/kocevski/460280/ft2_4FGL_J1318.7-1234_daily_bin204.fits outfile=/scratch/kocevski/460280/cmap_HighResolution_292204801_292464001_4FGL_J1318.7-1234_daily_bin204.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.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/460280/ft1_filtered_4FGL_J1318.7-1234_daily_bin204.fits evtable="EVENTS" scfile=/scratch/kocevski/460280/ft2_4FGL_J1318.7-1234_daily_bin204.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/460280/Model_4FGL_J1318.7-1234_daily_bin204.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/460280/ft1_filtered_4FGL_J1318.7-1234_daily_bin204.fits.....................!
real 30.94
user 29.49
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7643       1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.745       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .29673E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.0712       1.0000         .10000E-03   10000.    
     6 'norm      '    23.226       1.0000         .10000E-03   10000.    
     7 'norm      '    13.826       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.1565       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    16.221       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.862       1.0000         .10000E-03   10000.    
    14 'Prefactor '    41.520       1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.635       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.757       1.0000         .10000E-03   10000.    
    17 'norm      '    1.8253       1.0000         .10000E-03   10000.    
    18 'norm      '    3.8826       1.0000         .10000E-03   10000.    
    19 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10966E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.6426       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .83994       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .95567       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=   2718.618     FROM MIGRAD    STATUS=CONVERGED   1159 CALLS     4289 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7646        4.0490        .79159E-04   -.18670E-04
   2  Prefactor     24.744        18.392        .80528E-04   -.49624E-04
   3  Prefactor     .10040E-03    131.35        .15403    ** at limit **
   4  Prefactor     .10001E-03    87.841        .18142E-02** at limit **
   5  norm          1.0709        .47352        .21469E-04   -.24816E-02
   6  norm          23.230        17.113        .83115E-04    .47122E-04
   7  norm          13.828        16.599        .10772E-03    .33509E-04
   8  Prefactor     8.1560        18.186        .70191E-03    .28033E-03
   9  Prefactor     .10000E-03    46.483        .18142E-02** at limit **
  10  norm          .10000E-03    2.1853        .75013E-03** at limit **
  11  norm          16.221        15.456        .99446E-04   -.19435E-04
  12  norm          .10000E-03    6.2633        .12745E-02** at limit **
  13  Prefactor     13.865        18.586        .10758E-03   -.44912E-04
  14  Prefactor     41.520        52.555        .62211E-04   -.27211E-04
  15  Prefactor     22.634        17.679        .84192E-04   -.73660E-04
  16  Prefactor     12.745        34.097        .11215E-03    .21835E-03
  17  norm          1.8257        2.0643        .76109E-04    .29920E-03
  18  norm          3.8832        5.9030        .12332E-03   -.68222E-05
  19  norm          .10000E-03    5.3941        .11809E-02** at limit **
  20  Prefactor     .10000E-03    8.4397        .14781E-02** at limit **
  21  Prefactor     .10004E-03    61.816        .38123E-02** at limit **
  22  norm          .10000E-03    6.0384        .12405E-02** at limit **
  23  Prefactor     .10000E-03    10.359        .16209E-02** at limit **
  24  Prefactor     .10000E-03    24.928        .18142E-02** at limit **
  25  norm          5.6478        9.7948        .16911E-03    .19445E-03
  26  Normalizat    .83989        .42878        .36187E-03    .97846E-04
  27  Prefactor     .95560        .21794        .19148E-03   -.26486E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.76455
  Prefactor  = 24.7444
  Prefactor  = 0.000100403
  Prefactor  = 0.000100007
  norm       = 1.07094
  norm       = 23.2302
  norm       = 13.8276
  Prefactor  = 8.156
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 16.2212
  norm       = 0.0001
  Prefactor  = 13.8654
  Prefactor  = 41.5202
  Prefactor  = 22.6345
  Prefactor  = 12.7452
  norm       = 1.82574
  norm       = 3.88317
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100041
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 5.64778
  Normalizat = 0.839895
  Prefactor  = 0.955601
 **********
 **   18 **HESSE 
 **********

 FCN=   2718.618     FROM HESSE     STATUS=OK           470 CALLS     4759 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7646        4.0491        .31664E-05   -1.5188    
   2  Prefactor     24.744        18.392        .32211E-05   -1.4713    
   3  Prefactor     .10040E-03    134.76        .15149       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    87.842        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.0709        .47367        .42938E-05   -1.5501    
   6  norm          23.230        17.113        .33246E-05   -1.4744    
   7  norm          13.828        16.582        .43088E-05   -1.4964    
   8  Prefactor     8.1560        18.166        .28076E-04   -1.5137    
   9  Prefactor     .10000E-03    46.484        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.1854        .15003E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          16.221        15.455        .39778E-05   -1.4902    
  12  norm          .10000E-03    6.2633        .25491E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.865        18.586        .43032E-05   -1.4963    
  14  Prefactor     41.520        52.555        .12442E-04   -1.4418    
  15  Prefactor     22.634        17.679        .33677E-05   -1.4756    
  16  Prefactor     12.745        34.098        .44859E-05   -1.4994    
  17  norm          1.8257        2.0643        .30444E-05   -1.5438    
  18  norm          3.8832        5.9031        .49326E-05   -1.5314    
  19  norm          .10000E-03    5.3943        .23618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.4401        .29562E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10004E-03    62.624        .76247E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    6.0402        .24809E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.362        .32417E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    24.928        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.6478        9.7932        .67645E-05   -1.5233    
  26  Normalizat    .83989        .42901        .14475E-04   -.98605    
  27  Prefactor     .95560        .21808        .38296E-04   -.94224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.8922e-09
Minuit parameter uncertainties:
  1  4.04923
  2  18.3958
  3  0.0147784
  4  0.00154116
  5  0.473669
  6  17.1171
  7  16.5877
  8  18.1784
  9  0.000450826
  10  7.74083e-06
  11  15.4592
  12  3.23759e-06
  13  18.5938
  14  52.6138
  15  17.6831
  16  34.1506
  17  2.06434
  18  5.90403
  19  5.31799e-05
  20  3.30874e-05
  21  0.00319322
  22  3.62361e-05
  23  0.000182617
  24  2.87319e-05
  25  9.79593
  26  0.43076
  27  0.218277
Done.

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

Extracting fit parameters...

4FGL J1318.7-1234
   Spectrum: PowerLaw
321    Prefactor:  1.387e+01  1.859e+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:  9.556e-01  2.183e-01  0.000e+00  1.000e+01 ( 1.000e+00)
599        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
600        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
597   Normalization:  8.399e-01  4.308e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/460280/likelihoodResults_292204801_292464001_4FGL_J1318.7-1234_daily_bin204.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) = 2716.02531476
delta logL = 2.59267352614

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2715.72249145
delta logL = 2.89549682715

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11195E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.7832       1.0000          .0000       10.000    
     3 'Normalizat'    .47139       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0911       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=   2715.722     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      317 TOTAL
                     EDM=   .88E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11155E-01    .84853E-01    .55239E-03    .54003E-02
   2  Index         5.7847        1.9689        .39130E-01    .15017E-03
   3  Normalizat    .47154        .15018        .10601        .45436E-04
   4  Prefactor     1.0911        .82778E-01    .37935E-01    .54383E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0111553
  Index      = 5.78468
  Normalizat = 0.471539
  Prefactor  = 1.09109
 **********
 **   18 **HESSE 
 **********

 FCN=   2715.722     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      348 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11155E-01    .11308        .24133E-05   -1.5687    
   2  Index         5.7847        2.3221        .16951E-02    .15759    
   3  Normalizat    .47154        .37345        .46976E-03   -1.1375    
   4  Prefactor     1.0911        .20662        .18014E-03   -.89752    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.14655e-11
Minuit parameter uncertainties:
  1  0.0707153
  2  2.41756
  3  0.375454
  4  0.206773
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/460280': 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) = 2715.72249057
delta logL = 2.89549771014

Extracting fit parameters...

4FGL J1318.7-1234
   Spectrum: PowerLaw
321    Prefactor:  1.116e-02  7.072e-02  1.000e-04  1.000e+04 ( 1.000e-13)
322        Index:  5.785e+00  2.418e+00  0.000e+00  1.000e+01 (-1.000e+00)
323        Scale:  1.734e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  1.091e+00  2.068e-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:  4.715e-01  3.755e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.79
Ra Dec: 199.694 -12.581
Photon Index (Free Index): 5.78 +/- 2.42
Photon Flux (Free Index): 3.46e-07 +/- 1.63e-07
Energy Flux (Free Index): 4.36e-05 +/- 2.06e-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/460280/cmap_HighResolution_292204801_292464001_4FGL_J1318.7-1234_daily_bin204.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.65e-02', comment='SUCCESS', energy_flux2='4.36e-05', dlogl='2.90e+00', photon_flux2='3.46e-07', job_status='DONE', time_completed='2021-09-07 11:19:12.008697', photon_index_error2='2.42', photon_index2='5.78', ts='0.80', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='2.18e-07', energy_flux_error2='2.06e-05', EG='0.84', time_epoch_completed='1631038752.01', return_code='0', job_id='460280', GAL2='1.09', EG2='0.47', return_code2='102', photon_flux_error2='1.63e-07', ts2='7.79', photon_index='2.13' WHERE bin_id='204' AND source_name='4FGL J1318.7-1234' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 11:19:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 460280: <4FGL_J1318.7-1234_daily_bin204> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1318.7-1234_daily_bin204 199.694 -12.581 292204801 292464001 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 :                                   597.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             236.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            820 sec.

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

