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


Performing analysis on: 4FGL_J1218.5-0119_daily_bin506
RA = 184.639, Dec = -1.327
tmin = 370483201, tmax = 370742401
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='479648', job_status='RUN', time_executed='2021-09-05 07:23:11.597062', time_epoch_executed='1630851791.6' WHERE source_name='4FGL J1218.5-0119' and cadence='daily' and bin_id='506'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/479648

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/479648/ft1_4FGL_J1218.5-0119_daily_bin506.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/479648/ft2_4FGL_J1218.5-0119_daily_bin506.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/479648/ft1_4FGL_J1218.5-0119_daily_bin506.fits outfile=/scratch/kocevski/479648/ft1_filteredMKT_4FGL_J1218.5-0119_daily_bin506.fits ra=184.639 dec=-1.327 rad=12.0 tmin=370483201.0 tmax=370742401.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 21.82
user 19.07
sys 0.56

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/479648/ft2_4FGL_J1218.5-0119_daily_bin506.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/479648/ft1_filteredMKT_4FGL_J1218.5-0119_daily_bin506.fits evtable="EVENTS" outfile="/scratch/kocevski/479648/ft1_filtered_4FGL_J1218.5-0119_daily_bin506.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/479648/ft1_filtered_4FGL_J1218.5-0119_daily_bin506.fits" evtable="EVENTS" scfile=/scratch/kocevski/479648/ft2_4FGL_J1218.5-0119_daily_bin506.fits sctable="SC_DATA" outfile=/scratch/kocevski/479648/ltcube_370483201_370742401_4FGL_J1218.5-0119_daily_bin506.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/479648/ft2_4FGL_J1218.5-0119_daily_bin506.fits
.....................!
real 10.30
user 9.94
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/479648/ft1_filtered_4FGL_J1218.5-0119_daily_bin506.fits evtable="EVENTS" scfile=/scratch/kocevski/479648/ft2_4FGL_J1218.5-0119_daily_bin506.fits sctable="SC_DATA" expcube=/scratch/kocevski/479648/ltcube_370483201_370742401_4FGL_J1218.5-0119_daily_bin506.fits outfile=/scratch/kocevski/479648/expmap_370483201_370742401_4FGL_J1218.5-0119_daily_bin506.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/479648/ltcube_370483201_370742401_4FGL_J1218.5-0119_daily_bin506.fits
.....................!
real 189.67
user 185.20
sys 4.05

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 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/479648/ft1_filtered_4FGL_J1218.5-0119_daily_bin506.fits scfile=/scratch/kocevski/479648/ft2_4FGL_J1218.5-0119_daily_bin506.fits outfile=/scratch/kocevski/479648/cmap_370483201_370742401_4FGL_J1218.5-0119_daily_bin506.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/479648/ft1_filtered_4FGL_J1218.5-0119_daily_bin506.fits scfile=/scratch/kocevski/479648/ft2_4FGL_J1218.5-0119_daily_bin506.fits outfile=/scratch/kocevski/479648/cmap_HighResolution_370483201_370742401_4FGL_J1218.5-0119_daily_bin506.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.57
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/479648/ft1_filtered_4FGL_J1218.5-0119_daily_bin506.fits evtable="EVENTS" scfile=/scratch/kocevski/479648/ft2_4FGL_J1218.5-0119_daily_bin506.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/479648/Model_4FGL_J1218.5-0119_daily_bin506.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/479648/ft1_filtered_4FGL_J1218.5-0119_daily_bin506.fits...........................!
real 16.00
user 14.66
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/479648/ft1_filtered_4FGL_J1218.5-0119_daily_bin506.fits', '/scratch/kocevski/479648/ft2_4FGL_J1218.5-0119_daily_bin506.fits', expMap='/scratch/kocevski/479648/expmap_370483201_370742401_4FGL_J1218.5-0119_daily_bin506.fits', expCube='/scratch/kocevski/479648/ltcube_370483201_370742401_4FGL_J1218.5-0119_daily_bin506.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/479648/Model_4FGL_J1218.5-0119_daily_bin506.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/479648/ft1_filtered_4FGL_J1218.5-0119_daily_bin506.fits
Spacecraft file(s): /scratch/kocevski/479648/ft2_4FGL_J1218.5-0119_daily_bin506.fits
Exposure map: /scratch/kocevski/479648/expmap_370483201_370742401_4FGL_J1218.5-0119_daily_bin506.fits
Exposure cube: /scratch/kocevski/479648/ltcube_370483201_370742401_4FGL_J1218.5-0119_daily_bin506.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/479648/Model_4FGL_J1218.5-0119_daily_bin506.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 326.411224

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 319.06655178

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7483       1.0000         .10000E-03   10000.    
     2 'Prefactor '    272.89       1.0000         .10000E-03   10000.    
     3 'norm      '    .62386E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11617E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .94146E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .51043E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    475.55       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .50955E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9039       1.0000         .10000E-03   10000.    
    11 'Prefactor '    532.44       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .47529E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .35610       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .59533E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    247.47       1.0000         .10000E-03   10000.    
    16 'norm      '    .12860E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    49.810       1.0000         .10000E-03   10000.    
    18 'Prefactor '    159.76       1.0000         .10000E-03   10000.    
    19 'norm      '    146.60       1.0000         .10000E-03   10000.    
    20 'Prefactor '    373.97       1.0000         .10000E-03   10000.    
    21 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .44143E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.3857       1.0000         .10000E-03   10000.    
    24 'norm      '    24.897       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .28400E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    232.80       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .83677E-01   1.0000         .10000E-03   10000.    
    28 'norm      '    .12643E-01   1.0000         .10000E-03   10000.    
    29 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .74257E-01   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    .85054E-07   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=   319.0352     FROM MIGRAD    STATUS=CONVERGED    349 CALLS     1282 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.6545        13.275        .12972E-06   -.32474E-04
   2  Prefactor     279.09        295.56        .18587E-05    .17434E-01
   3  norm          .10000E-03    49.513        .19428E-07** at limit **
   4  Prefactor     .10000E-03    34.521        .83024E-08** at limit **
   5  Prefactor     .10000E-03    580.29        .29957E-07** at limit **
   6  Prefactor     .10000E-03    85.076       -.39093E-06** at limit **
   7  Prefactor     474.52        103.39        .20891E-06    .33918E-02
   8  Prefactor     .10000E-03    529.60       -.47688E-06** at limit **
   9  Prefactor     .10000E-03    50.797        .42005E-08** at limit **
  10  Prefactor     .10000E-03    182.36        .26729E-05** at limit **
  11  Prefactor     451.92        374.88        .23882E-05   -.38931E-01
  12  Prefactor     .10000E-03    589.80       -.90886E-05** at limit **
  13  Prefactor     .10003E-03    809.33       -.29543E-04** at limit **
  14  Prefactor     .10000E-03    80.388        .29920E-06** at limit **
  15  Prefactor     251.77        146.31        .13495E-05   -.17229E-02
  16  norm          .10000E-03    72.562        .51903E-05** at limit **
  17  norm          48.173        31.787        .10722E-05    .20382E-03
  18  Prefactor     154.98        149.37        .15796E-05   -.79680E-02
  19  norm          141.90        102.39       -.46074E-06    .27852E-02
  20  Prefactor     561.65        889.36       -.46021E-05   -.16564E-01
  21  norm          .10000E-03    2.2951       -.99291E-08** at limit **
  22  Prefactor     .10000E-03    57.423       -.65749E-07** at limit **
  23  Prefactor     4.3857        1.0066         .0000         .0000    
  24  norm          24.519        14.665        .16281E-06    .29678E-04
  25  Prefactor     .10000E-03    65.442       -.14321E-06** at limit **
  26  Prefactor     226.08        325.64       -.82811E-07    .11039E-01
  27  Prefactor     .10000E-03    1020.0        .13499E-05** at limit **
  28  norm          .10000E-03    246.18        .78044E-06** at limit **
  29  norm          .10000E-03    5.9188        .10094E-07** at limit **
  30  Prefactor     .10001E-03    2161.5        .22792E-05** at limit **
  31  Normalizat    .10000E-01    .48130       -.75044E-05** at limit **
  32  Prefactor     .30143E-12    .23897        .37234E-05** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.65448
  Prefactor  = 279.091
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 474.518
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 451.921
  Prefactor  = 0.000100004
  Prefactor  = 0.00010003
  Prefactor  = 0.0001
  Prefactor  = 251.775
  norm       = 0.000100001
  norm       = 48.1731
  Prefactor  = 154.978
  norm       = 141.895
  Prefactor  = 561.653
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.38571
  norm       = 24.5191
  Prefactor  = 0.0001
  Prefactor  = 226.075
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010001
  Normalizat = 0.01
  Prefactor  = 3.01426e-13
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   319.0352     FROM HESSE     STATUS=FAILED        99 CALLS     1381 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.6545        11.954        .33880E-02   -1.5120    
   2  Prefactor     279.09        278.27        .61378E-03   -1.2351    
   3  norm          .10000E-03    49.459        .94404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    34.518        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    580.36        .10401E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    85.402        .92752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     474.52        363.06        .46987E-03   -1.1316    
   8  Prefactor     .10000E-03    536.82        .92747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    51.654        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    184.27        .75345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     451.92        701.52        .44540E-03   -1.1424    
  12  Prefactor     .10000E-03    584.89        .92580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10003E-03    803.82        .10668E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    80.050        .10534E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     251.77        140.96        .64370E-03   -1.2521    
  16  norm          .10000E-03    71.132        .90872E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          48.173        28.482        .14205E-02   -1.4319    
  18  Prefactor     154.98        145.55        .79757E-03   -1.3212    
  19  norm          141.90        275.38        .83202E-03   -1.3320    
  20  Prefactor     561.65        901.62        .52706E-03   -1.0923    
  21  norm          .10000E-03    2.2989        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    57.451        .96846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     537.89        533.45         .0000       -1.5289    
  24  norm          24.519        .99260        .16281E-06   -1.4717    
  25  Prefactor     .10000E-03    .28656       -.14321E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     226.08        .98579       -.82811E-07   -1.2689    
  27  Prefactor     .10000E-03    .22246        .13499E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    .20639        .78044E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    .20571        .10094E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10001E-03    .22032        .22792E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .10000E-01    .25733       -.75044E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .30143E-12    .25504        .37234E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 3.68226e-10
Minuit parameter uncertainties:
  1  11.9574
  2  279.607
  3  3.2118e-06
  4  4.09974e-07
  5  4.12365e-05
  6  4.4073e-05
  7  364.851
  8  0.000230228
  9  4.60608e-06
  10  0.000426712
  11  715.584
  12  0.00314177
  13  0.00996611
  14  3.0829e-05
  15  141.156
  16  0.000468368
  17  28.4905
  18  145.891
  19  277.928
  20  926.415
  21  1.84792e-07
  22  6.12944e-06
  23  1.00665
  24  0.992605
  25  1.33612e-06
  26  0.985793
  27  1.48595e-05
  28  5.0769e-06
  29  5.3237e-08
  30  9.59052e-05
  31  1.4282e-06
  32  5.57028e-07
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 319.03522646

Extracting fit parameters...

4FGL J1218.5-0119
   Spectrum: LogParabola
335         norm:  1.000e-04  4.684e-04  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:  3.014e-13  5.570e-07  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.000e-02  1.428e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 184.639 -1.327
Photon Flux Upper Limit: 1.07e-06 ph cm-2 s-1
Energy Flux Upper Limit: 6.61e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/479648/likelihoodResults_370483201_370742401_4FGL_J1218.5-0119_daily_bin506.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) = 319.035294398
delta logL = -6.79377600932e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 319.035226823
delta logL = -3.62516800578e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10958E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0031       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .48799E-08   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=   319.0352     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      207 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10004E-03    152.58        .90712E-02** at limit **
   2  alpha         2.0857        3.5375        .42229       -.64617E-05
   3  Normalizat    .10000E-01    .36100        .17507    ** at limit **
   4  Prefactor     .14932E-12    .20931        .12228    ** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100041
  alpha      = 2.08565
  Normalizat = 0.01
  Prefactor  = 1.49325e-13
 **********
 **   18 **HESSE 
 **********

 FCN=   319.0352     FROM HESSE     STATUS=OK            29 CALLS      236 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10004E-03    90.785        .16784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0857        3.4432        .16891       -.16651    
   3  Normalizat    .10000E-01    .40623        .72129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .14932E-12    .21772        .52875E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.76945e-10
Minuit parameter uncertainties:
  1  0.00384129
  2  2.47113
  3  5.61216e-08
  4  3.61929e-07
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/479648': 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) = 319.035226299
delta logL = 1.61408706845e-07

Extracting fit parameters...

4FGL J1218.5-0119
   Spectrum: LogParabola
335         norm:  1.000e-04  3.841e-03  1.000e-04  1.000e+04 ( 1.000e-12)
336        alpha:  2.086e+00  2.471e+00  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.493e-13  3.619e-07  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.000e-02  5.612e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 184.639 -1.327

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/479648/cmap_HighResolution_370483201_370742401_4FGL_J1218.5-0119_daily_bin506.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.61e-04', job_status='DONE', photon_flux_upper_limit='1.07e-06', time_completed='2021-09-05 07:30:09.507361', job_id='479648', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630852209.51', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.00', dlogl='1.61e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='506' AND source_name='4FGL J1218.5-0119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 07:30:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 479648: <4FGL_J1218.5-0119_daily_bin506> in cluster <slac> Done

Job <4FGL_J1218.5-0119_daily_bin506> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sun Sep  5 07:20:50 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 07:20:51 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:20:51 2021
Terminated at Sun Sep  5 07:30:10 2021
Results reported at Sun Sep  5 07:30:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1218.5-0119_daily_bin506 184.639 -1.327 370483201 370742401 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 :                                   408.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   558 sec.
    Turnaround time :                            560 sec.

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

