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


Performing analysis on: 4FGL_J1218.5-0119_daily_bin627
RA = 184.639, Dec = -1.327
tmin = 401846401, tmax = 402105601
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='479804', job_status='RUN', time_executed='2021-09-05 07:22:04.106106', time_epoch_executed='1630851724.11' WHERE source_name='4FGL J1218.5-0119' and cadence='daily' and bin_id='627'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/479804

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/479804/ft1_4FGL_J1218.5-0119_daily_bin627.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/479804/ft2_4FGL_J1218.5-0119_daily_bin627.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/479804/ft1_4FGL_J1218.5-0119_daily_bin627.fits outfile=/scratch/kocevski/479804/ft1_filteredMKT_4FGL_J1218.5-0119_daily_bin627.fits ra=184.639 dec=-1.327 rad=12.0 tmin=401846401.0 tmax=402105601.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.25
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/479804/ft2_4FGL_J1218.5-0119_daily_bin627.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/479804/ft2_4FGL_J1218.5-0119_daily_bin627.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/479804/ft1_filteredMKT_4FGL_J1218.5-0119_daily_bin627.fits evtable="EVENTS" outfile="/scratch/kocevski/479804/ft1_filtered_4FGL_J1218.5-0119_daily_bin627.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.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/479804/ft1_filtered_4FGL_J1218.5-0119_daily_bin627.fits" evtable="EVENTS" scfile=/scratch/kocevski/479804/ft2_4FGL_J1218.5-0119_daily_bin627.fits sctable="SC_DATA" outfile=/scratch/kocevski/479804/ltcube_401846401_402105601_4FGL_J1218.5-0119_daily_bin627.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/479804/ft2_4FGL_J1218.5-0119_daily_bin627.fits
.....................!
real 11.81
user 11.47
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/479804/ft1_filtered_4FGL_J1218.5-0119_daily_bin627.fits evtable="EVENTS" scfile=/scratch/kocevski/479804/ft2_4FGL_J1218.5-0119_daily_bin627.fits sctable="SC_DATA" expcube=/scratch/kocevski/479804/ltcube_401846401_402105601_4FGL_J1218.5-0119_daily_bin627.fits outfile=/scratch/kocevski/479804/expmap_401846401_402105601_4FGL_J1218.5-0119_daily_bin627.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/479804/ltcube_401846401_402105601_4FGL_J1218.5-0119_daily_bin627.fits
.....................!
real 189.97
user 184.79
sys 4.88

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 193 point sources and 0 extended sources

Setting source of interest to:
4FGL J1218.5-0119 @ 184.639 -1.327

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/479804/ft1_filtered_4FGL_J1218.5-0119_daily_bin627.fits scfile=/scratch/kocevski/479804/ft2_4FGL_J1218.5-0119_daily_bin627.fits outfile=/scratch/kocevski/479804/cmap_401846401_402105601_4FGL_J1218.5-0119_daily_bin627.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=184.639 yref=-1.327 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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/479804/ft1_filtered_4FGL_J1218.5-0119_daily_bin627.fits scfile=/scratch/kocevski/479804/ft2_4FGL_J1218.5-0119_daily_bin627.fits outfile=/scratch/kocevski/479804/cmap_HighResolution_401846401_402105601_4FGL_J1218.5-0119_daily_bin627.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=184.639 yref=-1.327 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.53
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/479804/ft1_filtered_4FGL_J1218.5-0119_daily_bin627.fits evtable="EVENTS" scfile=/scratch/kocevski/479804/ft2_4FGL_J1218.5-0119_daily_bin627.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/479804/Model_4FGL_J1218.5-0119_daily_bin627.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/479804/ft1_filtered_4FGL_J1218.5-0119_daily_bin627.fits.....................!
real 60.80
user 59.40
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/479804/ft1_filtered_4FGL_J1218.5-0119_daily_bin627.fits', '/scratch/kocevski/479804/ft2_4FGL_J1218.5-0119_daily_bin627.fits', expMap='/scratch/kocevski/479804/expmap_401846401_402105601_4FGL_J1218.5-0119_daily_bin627.fits', expCube='/scratch/kocevski/479804/ltcube_401846401_402105601_4FGL_J1218.5-0119_daily_bin627.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/479804/Model_4FGL_J1218.5-0119_daily_bin627.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1218.5-0119'

4FGL J1218.5-0119
   Spectrum: LogParabola
335         norm:  1.397e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
336        alpha:  2.022e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
337         beta:  9.844e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
338           Eb:  1.224e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/479804/ft1_filtered_4FGL_J1218.5-0119_daily_bin627.fits
Spacecraft file(s): /scratch/kocevski/479804/ft2_4FGL_J1218.5-0119_daily_bin627.fits
Exposure map: /scratch/kocevski/479804/expmap_401846401_402105601_4FGL_J1218.5-0119_daily_bin627.fits
Exposure cube: /scratch/kocevski/479804/ltcube_401846401_402105601_4FGL_J1218.5-0119_daily_bin627.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/479804/Model_4FGL_J1218.5-0119_daily_bin627.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) = 6957.60736869

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5290       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.3314       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.778       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.7134       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.5008       1.0000         .10000E-03   10000.    
    16 'norm      '    16.142       1.0000         .10000E-03   10000.    
    17 'norm      '    .32780E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .24787E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.6740       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.1018       1.0000         .10000E-03   10000.    
    24 'norm      '    8.7245       1.0000         .10000E-03   10000.    
    25 'Prefactor '    15.594       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    1.5548       1.0000         .10000E-03   10000.    
    30 'Prefactor '    45.334       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.4660       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.2110       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6957.593     FROM MIGRAD    STATUS=CONVERGED    117 CALLS     3576 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5290        1.5593       -.53270E-09   -.79562E-05
   2  Prefactor     .10013E-03    7.1049        .14347E-04** at limit **
   3  norm          .10000E-03    2.6648       -.12564E-06** at limit **
   4  Prefactor     .10000E-03    1.8753       -.33766E-06** at limit **
   5  Prefactor     9.3307        1.0031        .58666E-07   -.20498E-04
   6  Prefactor     .10001E-03    3.2920       -.12529E-05** at limit **
   7  Prefactor     .10361E-03    39.549       -.25771E-04** at limit **
   8  Prefactor     .10007E-03    8.1014       -.64393E-05** at limit **
   9  Prefactor     10.777        1.0017       -.64352E-08    .22658E-04
  10  Prefactor     .10000E-03    6.1212       -.39480E-07** at limit **
  11  Prefactor     .10002E-03    3.2621       -.60501E-05** at limit **
  12  Prefactor     4.7120        1.0401       -.10760E-06   -.64780E-05
  13  Prefactor     .10014E-03    10.436       -.11245E-04** at limit **
  14  Prefactor     .10012E-03    9.8676        .17960E-04** at limit **
  15  Prefactor     7.4958        1.5607        .55719E-06   -.62363E-03
  16  norm          16.143        4.9100       -.11186E-05   -.71743E-03
  17  norm          .10000E-03    7.4345       -.84589E-06** at limit **
  18  Prefactor     .10000E-03    9.6371       -.31675E-05** at limit **
  19  norm          .10022E-03    8.7564        .16159E-04** at limit **
  20  Prefactor     .10115E-03    318.23       -.43854E-04** at limit **
  21  norm          1.6738        .73420        .18720E-06    .11862E-03
  22  Prefactor     .10000E-03    8.4178        .30758E-05** at limit **
  23  Prefactor     2.1013        1.1058       -.12597E-05    .35294E-04
  24  norm          8.7243        2.7537        .11403E-06    .31533E-04
  25  Prefactor     15.593        1.0090       -.13968E-06   -.23570E-04
  26  Prefactor     .10001E-03    5.3978       -.10310E-04** at limit **
  27  Prefactor     .10440E-03    40.722        .25543E-04** at limit **
  28  norm          .10003E-03    4.2339       -.94808E-05** at limit **
  29  norm          1.5548        .36153       -.16735E-06   -.32777E-03
  30  Prefactor     45.315        3.9949       -.12022E-05    .19673E-02
  31  Normalizat    1.4660        .29512       -.99784E-06   -.95692E-05
  32  Prefactor     1.2110        .22175        .21059E-06   -.10747E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.52901
  Prefactor  = 0.000100125
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.33065
  Prefactor  = 0.000100007
  Prefactor  = 0.000103609
  Prefactor  = 0.000100073
  Prefactor  = 10.7768
  Prefactor  = 0.0001
  Prefactor  = 0.000100024
  Prefactor  = 4.71201
  Prefactor  = 0.000100144
  Prefactor  = 0.000100115
  Prefactor  = 7.49576
  norm       = 16.1425
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.000100217
  Prefactor  = 0.000101149
  norm       = 1.67376
  Prefactor  = 0.0001
  Prefactor  = 2.10135
  norm       = 8.72429
  Prefactor  = 15.5935
  Prefactor  = 0.000100015
  Prefactor  = 0.0001044
  norm       = 0.000100027
  norm       = 1.5548
  Prefactor  = 45.3145
  Normalizat = 1.46598
  Prefactor  = 1.21098
 **********
 **   18 **HESSE 
 **********

 FCN=   6957.593     FROM HESSE     STATUS=OK           723 CALLS     4299 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5290        1.5429        .86304E-02   -1.5461    
   2  Prefactor     .10013E-03    18.077        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.6586        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.8619        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.3307        18.210        .32799E-02   -1.5097    
   6  Prefactor     .10001E-03    13.036        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10361E-03    59.976        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10007E-03    19.554        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.777        9.2029        .30510E-02   -1.5051    
  10  Prefactor     .10000E-03    6.1125        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    13.357        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.7120        75.480        .46337E-02   -1.5274    
  13  Prefactor     .10014E-03    19.712        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10012E-03    12.237        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.4958        23.412        .36609E-02   -1.5160    
  16  norm          16.143        6.5911        .24922E-02   -1.4904    
  17  norm          .10000E-03    1.6211        .54376E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.6527        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10022E-03    17.674        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10115E-03    327.78        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.6738        .75331        .81436E-02   -1.5449    
  22  Prefactor     .10000E-03    8.3403        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.1013        20.726        .71161E-02   -1.5418    
  24  norm          8.7243        2.7625        .33926E-02   -1.5117    
  25  Prefactor     15.593        11.284        .25356E-02   -1.4918    
  26  Prefactor     .10001E-03    14.065        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10440E-03    65.332        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10003E-03    13.739        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          1.5548        .36304        .52668E-02   -1.5459    
  30  Prefactor     45.315        51.598        .14887E-02   -1.4361    
  31  Normalizat    1.4660        .25553        .75746E-01   -.78739    
  32  Prefactor     1.2110        .18848        .63035E-01   -.85994    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05023e-07
Minuit parameter uncertainties:
  1  1.5429
  2  0.00300742
  3  6.39918e-07
  4  1.11807e-06
  5  18.2208
  6  0.000619231
  7  0.0294543
  8  0.00238648
  9  9.20408
  10  2.63652e-06
  11  0.0011231
  12  37.7742
  13  0.00337281
  14  0.00237814
  15  23.4405
  16  6.59137
  17  2.93836e-06
  18  0.00030052
  19  0.00391468
  20  0.0390212
  21  0.753312
  22  8.50253e-05
  23  13.2046
  24  2.76259
  25  11.2857
  26  0.000917415
  27  0.0339473
  28  0.00121917
  29  0.363037
  30  51.6488
  31  0.255752
  32  0.188582
Done.

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

Extracting fit parameters...

4FGL J1218.5-0119
   Spectrum: LogParabola
335         norm:  1.614e+01  6.591e+00  1.000e-04  1.000e+04 ( 1.000e-12)
336        alpha:  2.022e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
337         beta:  9.844e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
338           Eb:  1.224e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  1.211e+00  1.886e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.466e+00  2.558e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 25.91
Ra Dec: 184.639 -1.327
Photon Index (Fixed Index): 2.02 +/- 0.00
Photon Flux (Fixed Index): 1.85e-07 +/- 7.55e-08
Energy Flux (Fixed Index): 1.14e-04 +/- 4.66e-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) = 6957.55757003
delta logL = 0.0354114361426

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6957.54521299
delta logL = 0.0477684763619

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.953       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9269       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4803       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2046       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6957.545     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      214 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.950        81.098        .24319E-02    .58805E-04
   2  alpha         1.9272        3.4542        .20676        .47514E-04
   3  Normalizat    1.4809        .36258        .75460E-01    .65914E-05
   4  Prefactor     1.2043        .18995        .63189E-01    .24342E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 16.9495
  alpha      = 1.92718
  Normalizat = 1.4809
  Prefactor  = 1.20429
 **********
 **   18 **HESSE 
 **********

 FCN=   6957.545     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.950        5.8567        .97275E-04   -1.4884    
   2  alpha         1.9272        .30699        .83063E-02   -.23118    
   3  Normalizat    1.4809        .28940        .33392E-03   -.78317    
   4  Prefactor     1.2043        .22106        .27948E-03   -.86199    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18972e-12
Minuit parameter uncertainties:
  1  5.85695
  2  0.307812
  3  0.28972
  4  0.221232
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/479804': 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): 0
logL (Free Index) = 6957.5452092
delta logL = 0.0477722669848

Extracting fit parameters...

4FGL J1218.5-0119
   Spectrum: LogParabola
335         norm:  1.695e+01  5.857e+00  1.000e-04  1.000e+04 ( 1.000e-12)
336        alpha:  1.927e+00  3.078e-01  0.000e+00  5.000e+00 ( 1.000e+00)
337         beta:  9.844e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
338           Eb:  1.224e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  1.204e+00  2.212e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.481e+00  2.897e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 26.06
Ra Dec: 184.639 -1.327
Photon Index (Free Index): 1.93 +/- 0.31
Photon Flux (Free Index): 1.71e-07 +/- 7.03e-08
Energy Flux (Free Index): 1.25e-04 +/- 5.74e-05

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/479804/cmap_HighResolution_401846401_402105601_4FGL_J1218.5-0119_daily_bin627.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.85e-07', energy_flux2='1.25e-04', photon_flux_error='7.55e-08', dlogl='4.78e-02', energy_flux='1.14e-04', photon_flux2='1.71e-07', job_status='DONE', time_completed='2021-09-05 07:35:46.248557', photon_index_error2='0.31', photon_index2='1.93', ts='25.91', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', energy_flux_error2='5.74e-05', EG='1.47', time_epoch_completed='1630852546.25', return_code='0', job_id='479804', GAL2='1.20', EG2='1.48', return_code2='0', energy_flux_error='4.66e-05', photon_flux_error2='7.03e-08', ts2='26.06', photon_index='2.02' WHERE bin_id='627' AND source_name='4FGL J1218.5-0119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 07:35:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 479804: <4FGL_J1218.5-0119_daily_bin627> in cluster <slac> Done

Job <4FGL_J1218.5-0119_daily_bin627> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sun Sep  5 07:21:00 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 07:21:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 07:21:01 2021
Terminated at Sun Sep  5 07:35:47 2021
Results reported at Sun Sep  5 07:35:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1218.5-0119_daily_bin627 184.639 -1.327 401846401 402105601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1218.5-0119 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   818.40 sec.
    Max Memory :                                 1112 MB
    Average Memory :                             332.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            887 sec.

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

