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


Performing analysis on: 4FGL_J1318.7-1234_daily_bin616
RA = 199.694, Dec = -12.581
tmin = 398995201, tmax = 399254401
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='463005', job_status='RUN', time_executed='2021-09-07 11:17:37.788079', time_epoch_executed='1631038657.79' WHERE source_name='4FGL J1318.7-1234' and cadence='daily' and bin_id='616'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/463005

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/463005/ft1_4FGL_J1318.7-1234_daily_bin616.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/463005/ft2_4FGL_J1318.7-1234_daily_bin616.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/463005/ft1_4FGL_J1318.7-1234_daily_bin616.fits outfile=/scratch/kocevski/463005/ft1_filteredMKT_4FGL_J1318.7-1234_daily_bin616.fits ra=199.694 dec=-12.581 rad=12.0 tmin=398995201.0 tmax=399254401.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 5.53
user 5.23
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/463005/ft1_filtered_4FGL_J1318.7-1234_daily_bin616.fits" evtable="EVENTS" scfile=/scratch/kocevski/463005/ft2_4FGL_J1318.7-1234_daily_bin616.fits sctable="SC_DATA" outfile=/scratch/kocevski/463005/ltcube_398995201_399254401_4FGL_J1318.7-1234_daily_bin616.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/463005/ft2_4FGL_J1318.7-1234_daily_bin616.fits
.....................!
real 17.15
user 16.76
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/463005/ft1_filtered_4FGL_J1318.7-1234_daily_bin616.fits evtable="EVENTS" scfile=/scratch/kocevski/463005/ft2_4FGL_J1318.7-1234_daily_bin616.fits sctable="SC_DATA" expcube=/scratch/kocevski/463005/ltcube_398995201_399254401_4FGL_J1318.7-1234_daily_bin616.fits outfile=/scratch/kocevski/463005/expmap_398995201_399254401_4FGL_J1318.7-1234_daily_bin616.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/463005/ltcube_398995201_399254401_4FGL_J1318.7-1234_daily_bin616.fits
.....................!
real 193.14
user 187.18
sys 4.28

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/463005/ft1_filtered_4FGL_J1318.7-1234_daily_bin616.fits scfile=/scratch/kocevski/463005/ft2_4FGL_J1318.7-1234_daily_bin616.fits outfile=/scratch/kocevski/463005/cmap_398995201_399254401_4FGL_J1318.7-1234_daily_bin616.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=199.694 yref=-12.581 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.39
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/463005/ft1_filtered_4FGL_J1318.7-1234_daily_bin616.fits evtable="EVENTS" scfile=/scratch/kocevski/463005/ft2_4FGL_J1318.7-1234_daily_bin616.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/463005/Model_4FGL_J1318.7-1234_daily_bin616.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/463005/ft1_filtered_4FGL_J1318.7-1234_daily_bin616.fits.....................!
real 52.98
user 51.50
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6076       1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.508       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10530E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.3399       1.0000         .10000E-03   10000.    
     6 'norm      '    .66226       1.0000         .10000E-03   10000.    
     7 'norm      '    .10569E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .78742       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .47975       1.0000         .10000E-03   10000.    
    11 'norm      '    13.767       1.0000         .10000E-03   10000.    
    12 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.788       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.009       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11891E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.2228       1.0000         .10000E-03   10000.    
    18 'norm      '    3.6051       1.0000         .10000E-03   10000.    
    19 'norm      '    1.4721       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .94868E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10561E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.9323       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10386E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .78259       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .99016       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=   6612.348     FROM MIGRAD    STATUS=CONVERGED    698 CALLS     3376 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6073        1.9549        .24223E-09   -.28431E-05
   2  Prefactor     24.507        9.9869       -.80507E-07   -.15113E-04
   3  Prefactor     .10000E-03    14.338       -.41042E-06** at limit **
   4  Prefactor     .10000E-03    30.771       -.14874E-05** at limit **
   5  norm          1.3398        .27885       -.50923E-08   -.69934E-04
   6  norm          .65692        8.2918       -.33053E-06    .41385E-03
   7  norm          .10000E-03    2.8670        .19637E-06** at limit **
   8  Prefactor     .78535        2.6163       -.98084E-07    .23450E-03
   9  Prefactor     .10001E-03    37.726        .33211E-05** at limit **
  10  norm          .47839        1.8270       -.22178E-06    .29325E-03
  11  norm          13.766        12.341       -.12145E-06   -.71158E-04
  12  norm          .10000E-03    3.9306        .12993E-07** at limit **
  13  Prefactor     .10000E-03    2.9680       -.41864E-08** at limit **
  14  Prefactor     21.796        27.390        .86912E-08    .24511E-04
  15  Prefactor     10.012        7.4297        .32010E-07    .96259E-04
  16  Prefactor     .10002E-03    42.997        .41312E-05** at limit **
  17  norm          2.2227        1.4441       -.27879E-07    .85596E-04
  18  norm          3.6019        3.8139        .11210E-05    .49215E-03
  19  norm          1.4702        7.6217       -.75042E-06    .19632E-03
  20  Prefactor     .10043E-03    13.824       -.24780E-05** at limit **
  21  Prefactor     .10000E-03    7.9086       -.35532E-07** at limit **
  22  norm          .10000E-03    1.6072       -.12862E-07** at limit **
  23  Prefactor     2.9313        4.8827        .88363E-07    .30584E-03
  24  Prefactor     .10000E-03    15.313        .48698E-06** at limit **
  25  norm          .10000E-03    4.1598        .51472E-07** at limit **
  26  Normalizat    .78249        .21889        .98322E-06    .21077E-03
  27  Prefactor     .99041        .11802       -.37525E-07    .31142E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.60729
  Prefactor  = 24.5065
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 1.33981
  norm       = 0.656924
  norm       = 0.0001
  Prefactor  = 0.785351
  Prefactor  = 0.00010001
  norm       = 0.47839
  norm       = 13.7661
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.7963
  Prefactor  = 10.0117
  Prefactor  = 0.000100024
  norm       = 2.22274
  norm       = 3.60191
  norm       = 1.4702
  Prefactor  = 0.000100433
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.9313
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.782494
  Prefactor  = 0.990411
 **********
 **   18 **HESSE 
 **********

 FCN=   6612.348     FROM HESSE     STATUS=OK           504 CALLS     3880 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6073        1.9563        .72186E-04   -1.5279    
   2  Prefactor     24.507        10.011        .80916E-04   -1.4717    
   3  Prefactor     .10000E-03    14.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    31.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.3398        .27983        .18655E-04   -1.5476    
   6  norm          .65692        9.7610        .47648E-03   -1.5546    
   7  norm          .10000E-03    6.4426        .25751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .78535        2.6037        .22514E-02   -1.5531    
   9  Prefactor     .10001E-03    40.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .47839        1.8185        .20757E-03   -1.5570    
  11  norm          13.766        12.361        .10795E-03   -1.4966    
  12  norm          .10000E-03    3.9359        .15745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.9752        .13679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.796        27.473        .85810E-04   -1.4774    
  15  Prefactor     10.012        7.4481        .12666E-03   -1.5075    
  16  Prefactor     .10002E-03    53.063        .50455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.2227        1.4398        .75106E-04   -1.5410    
  18  norm          3.6019        3.8103        .13895E-03   -1.5328    
  19  norm          1.4702        7.3255        .35412E-03   -1.5465    
  20  Prefactor     .10043E-03    14.968        .69375E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.9797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.6141        .10065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.9313        4.8683        .21540E-03   -1.5366    
  24  Prefactor     .10000E-03    15.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    4.1850        .16161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .78249        .25652        .34739E-03   -1.0072    
  27  Prefactor     .99041        .13791        .17972E-03   -.93050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00771e-09
Minuit parameter uncertainties:
  1  1.95637
  2  10.0115
  3  9.74969e-05
  4  0.000517172
  5  0.279825
  6  5.06509
  7  6.78222e-06
  8  2.60408
  9  0.00129731
  10  1.81868
  11  12.363
  12  1.42222e-06
  13  2.61233e-06
  14  27.4886
  15  7.44879
  16  0.00227347
  17  1.43984
  18  3.8106
  19  6.5646
  20  0.0050909
  21  4.75385e-06
  22  8.48764e-07
  23  4.86896
  24  0.000115469
  25  8.77891e-06
  26  0.256918
  27  0.137964
Done.

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

Extracting fit parameters...

4FGL J1318.7-1234
   Spectrum: PowerLaw
321    Prefactor:  1.000e-04  2.612e-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:  9.904e-01  1.380e-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:  7.825e-01  2.569e-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: 5.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/463005/likelihoodResults_398995201_399254401_4FGL_J1318.7-1234_daily_bin616.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) = 6612.3495543
delta logL = -0.0015982453524

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6612.34795601
delta logL = 4.27698978456e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1178       1.0000          .0000       10.000    
     3 'Normalizat'    .78249       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99041       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=   6612.348     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      204 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    53.476        .90712E-02** at limit **
   2  Index         2.1096        8.9194        .50000        .22214E-04
   3  Normalizat    .78249        .22514E-01    .78472E-01    .16603E-04
   4  Prefactor     .99041        .13048E-01    .46147E-01    .21710E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.10963
  Normalizat = 0.782493
  Prefactor  = 0.990411
 **********
 **   18 **HESSE 
 **********

 FCN=   6612.348     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      235 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    384.44        .13717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1096        7.7161        .50000       -.61637    
   3  Normalizat    .78249        .72406E-01    .34739E-03   -1.0072    
   4  Prefactor     .99041        .42041E-01    .17972E-03   -.93050    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.49143e-08
Minuit parameter uncertainties:
  1  0.000115529
  2  46.5793
  3  0.0724145
  4  0.0420428
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/463005': 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) = 6612.34795596
delta logL = 9.08166839508e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
598    Prefactor:  9.904e-01  4.204e-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:  7.825e-01  7.241e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/463005/cmap_HighResolution_398995201_399254401_4FGL_J1318.7-1234_daily_bin616.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.11e-03', job_status='DONE', photon_flux_upper_limit='5.43e-08', time_completed='2021-09-07 11:31:24.026337', job_id='463005', GAL2='0.99', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1631039484.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='9.08e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='616' AND source_name='4FGL J1318.7-1234' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 11:31:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 463005: <4FGL_J1318.7-1234_daily_bin616> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1318.7-1234_daily_bin616 199.694 -12.581 398995201 399254401 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 :                                   824.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   954 sec.
    Turnaround time :                            962 sec.

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

