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


Performing analysis on: 4FGL_J1218.5-0119_daily_bin594
RA = 184.639, Dec = -1.327
tmin = 393292801, tmax = 393552001
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='479771', job_status='RUN', time_executed='2021-09-05 07:22:47.739367', time_epoch_executed='1630851767.74' WHERE source_name='4FGL J1218.5-0119' and cadence='daily' and bin_id='594'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/479771

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/479771/ft1_4FGL_J1218.5-0119_daily_bin594.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/479771/ft2_4FGL_J1218.5-0119_daily_bin594.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/479771/ft1_4FGL_J1218.5-0119_daily_bin594.fits outfile=/scratch/kocevski/479771/ft1_filteredMKT_4FGL_J1218.5-0119_daily_bin594.fits ra=184.639 dec=-1.327 rad=12.0 tmin=393292801.0 tmax=393552001.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.66
user 3.41
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/479771/ft2_4FGL_J1218.5-0119_daily_bin594.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/479771/ft1_filteredMKT_4FGL_J1218.5-0119_daily_bin594.fits evtable="EVENTS" outfile="/scratch/kocevski/479771/ft1_filtered_4FGL_J1218.5-0119_daily_bin594.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.58
user 0.26
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/479771/ft1_filtered_4FGL_J1218.5-0119_daily_bin594.fits" evtable="EVENTS" scfile=/scratch/kocevski/479771/ft2_4FGL_J1218.5-0119_daily_bin594.fits sctable="SC_DATA" outfile=/scratch/kocevski/479771/ltcube_393292801_393552001_4FGL_J1218.5-0119_daily_bin594.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/479771/ft2_4FGL_J1218.5-0119_daily_bin594.fits
.....................!
real 9.11
user 8.80
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/479771/ft1_filtered_4FGL_J1218.5-0119_daily_bin594.fits evtable="EVENTS" scfile=/scratch/kocevski/479771/ft2_4FGL_J1218.5-0119_daily_bin594.fits sctable="SC_DATA" expcube=/scratch/kocevski/479771/ltcube_393292801_393552001_4FGL_J1218.5-0119_daily_bin594.fits outfile=/scratch/kocevski/479771/expmap_393292801_393552001_4FGL_J1218.5-0119_daily_bin594.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/479771/ltcube_393292801_393552001_4FGL_J1218.5-0119_daily_bin594.fits
.....................!
real 146.27
user 141.50
sys 4.43

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/479771/ft1_filtered_4FGL_J1218.5-0119_daily_bin594.fits scfile=/scratch/kocevski/479771/ft2_4FGL_J1218.5-0119_daily_bin594.fits outfile=/scratch/kocevski/479771/cmap_393292801_393552001_4FGL_J1218.5-0119_daily_bin594.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.45
user 0.29
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/479771/ft1_filtered_4FGL_J1218.5-0119_daily_bin594.fits scfile=/scratch/kocevski/479771/ft2_4FGL_J1218.5-0119_daily_bin594.fits outfile=/scratch/kocevski/479771/cmap_HighResolution_393292801_393552001_4FGL_J1218.5-0119_daily_bin594.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.46
user 0.30
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/479771/ft1_filtered_4FGL_J1218.5-0119_daily_bin594.fits evtable="EVENTS" scfile=/scratch/kocevski/479771/ft2_4FGL_J1218.5-0119_daily_bin594.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/479771/Model_4FGL_J1218.5-0119_daily_bin594.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/479771/ft1_filtered_4FGL_J1218.5-0119_daily_bin594.fits.....................!
real 47.29
user 46.09
sys 1.04

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/479771/ft1_filtered_4FGL_J1218.5-0119_daily_bin594.fits', '/scratch/kocevski/479771/ft2_4FGL_J1218.5-0119_daily_bin594.fits', expMap='/scratch/kocevski/479771/expmap_393292801_393552001_4FGL_J1218.5-0119_daily_bin594.fits', expCube='/scratch/kocevski/479771/ltcube_393292801_393552001_4FGL_J1218.5-0119_daily_bin594.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/479771/Model_4FGL_J1218.5-0119_daily_bin594.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/479771/ft1_filtered_4FGL_J1218.5-0119_daily_bin594.fits
Spacecraft file(s): /scratch/kocevski/479771/ft2_4FGL_J1218.5-0119_daily_bin594.fits
Exposure map: /scratch/kocevski/479771/expmap_393292801_393552001_4FGL_J1218.5-0119_daily_bin594.fits
Exposure cube: /scratch/kocevski/479771/ltcube_393292801_393552001_4FGL_J1218.5-0119_daily_bin594.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/479771/Model_4FGL_J1218.5-0119_daily_bin594.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) = 7244.93661405

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6618       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10460E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11028E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.2698       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    28.076       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.8641       1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.7315       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.0135       1.0000         .10000E-03   10000.    
    21 'norm      '    .76833       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.2991       1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.300       1.0000         .10000E-03   10000.    
    24 'norm      '    1.7159       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10537E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    1.2294       1.0000         .10000E-03   10000.    
    29 'norm      '    .95959       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.3066       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .95857       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7244.920     FROM MIGRAD    STATUS=CONVERGED    855 CALLS     4352 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6617        2.3554        .30654E-07   -.16882E-04
   2  Prefactor     .10000E-03    8.2722        .35933E-08** at limit **
   3  norm          .10000E-03    2.5109       -.12875E-07** at limit **
   4  Prefactor     .10000E-03    1.7248       -.17922E-06** at limit **
   5  Prefactor     .10000E-03    6.2624        .35818E-07** at limit **
   6  Prefactor     .10000E-03    6.7622        .16606E-06** at limit **
   7  Prefactor     .10000E-03    132.07       -.33304E-06** at limit **
   8  Prefactor     .10000E-03    24.658        .56376E-06** at limit **
   9  Prefactor     .10000E-03    4.5657        .29372E-07** at limit **
  10  Prefactor     6.2732        12.510        .44604E-05   -.22099E-03
  11  Prefactor     .10000E-03    15.223        .52870E-07** at limit **
  12  Prefactor     .10000E-03    39.622       -.97786E-06** at limit **
  13  Prefactor     28.076        25.706       -.22451E-06   -.20158E-04
  14  Prefactor     .10000E-03    20.913       -.78792E-06** at limit **
  15  Prefactor     7.8640        8.1143        .64637E-08   -.15061E-04
  16  norm          .10000E-03    .84054        .13740E-07** at limit **
  17  norm          1.7331        3.4443        .57429E-06   -.40556E-04
  18  Prefactor     .10000E-03    12.301       -.13230E-06** at limit **
  19  norm          .10000E-03    31.906        .33030E-06** at limit **
  20  Prefactor     7.9650        166.40       -.14185E-04   -.64204E-04
  21  norm          .76830        .52157       -.10984E-08   -.31096E-03
  22  Prefactor     3.2995        4.8917        .30028E-06    .34775E-04
  23  Prefactor     15.301        12.450        .55587E-06   -.68390E-04
  24  norm          1.7159        1.1814        .23265E-07   -.37304E-04
  25  Prefactor     .10000E-03    6.3940       -.93895E-07** at limit **
  26  Prefactor     .10000E-03    44.829       -.67814E-06** at limit **
  27  Prefactor     .10000E-03    50.251        .38085E-06** at limit **
  28  norm          1.1787        103.28        .59351E-05    .34096E-05
  29  norm          .95968        .26329        .98965E-08   -.44202E-03
  30  Prefactor     .10000E-03    52.728        .10476E-05** at limit **
  31  Normalizat    1.3065        .20562       -.90628E-06    .25260E-05
  32  Prefactor     .95859        .14939       -.20359E-06   -.54343E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.66169
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.27319
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.076
  Prefactor  = 0.0001
  Prefactor  = 7.86404
  norm       = 0.0001
  norm       = 1.73308
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.96502
  norm       = 0.768304
  Prefactor  = 3.29952
  Prefactor  = 15.3008
  norm       = 1.71593
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.17867
  norm       = 0.959679
  Prefactor  = 0.0001
  Normalizat = 1.30651
  Prefactor  = 0.958594
 **********
 **   18 **HESSE 
 **********

 FCN=   7244.920     FROM HESSE     STATUS=OK           653 CALLS     5005 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6617        2.3546        .10180E-03   -1.5325    
   2  Prefactor     .10000E-03    8.2850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.5267        .13160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.4611        .21589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.2769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.7683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    132.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    24.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.6258        .17757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.2732        12.820        .80156E-03   -1.5207    
  11  Prefactor     .10000E-03    15.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    39.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     28.076        25.728        .75609E-04   -1.4648    
  14  Prefactor     .10000E-03    20.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.8640        8.0975        .14299E-03   -1.5147    
  16  norm          .10000E-03    .84673        .76127E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.7331        3.3845        .19159E-03   -1.5445    
  18  Prefactor     .10000E-03    12.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    32.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.9650        186.78        .14164E-03   -1.5143    
  21  norm          .76830        .49814        .43943E-04   -1.5533    
  22  Prefactor     3.2995        4.8806        .22260E-03   -1.5345    
  23  Prefactor     15.301        12.461        .51197E-03   -1.4925    
  24  norm          1.7159        1.1795        .73752E-04   -1.5446    
  25  Prefactor     .10000E-03    6.6660        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    45.232        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    50.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          1.1787        105.86        .40571E-03   -1.5491    
  29  norm          .95968        .26273        .21820E-04   -1.5512    
  30  Prefactor     .10000E-03    52.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.3065        .24140        .27852E-03   -.83372    
  32  Prefactor     .95859        .17529        .24302E-03   -.94123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.98791e-10
Minuit parameter uncertainties:
  1  2.35467
  2  4.60262e-07
  3  1.43358e-06
  4  1.40003e-05
  5  2.313e-06
  6  1.44853e-05
  7  0.000115314
  8  7.53911e-05
  9  3.10556e-06
  10  12.8255
  11  4.69257e-07
  12  0.000199932
  13  25.7383
  14  0.000102873
  15  8.09861
  16  2.51635e-07
  17  3.38485
  18  7.164e-06
  19  6.21053e-05
  20  77.4148
  21  0.498142
  22  4.88122
  23  12.4627
  24  1.17955
  25  2.81961e-05
  26  0.000170447
  27  7.36518e-05
  28  22.3807
  29  0.262731
  30  0.000242181
  31  0.241604
  32  0.175394
Done.

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

Extracting fit parameters...

4FGL J1218.5-0119
   Spectrum: LogParabola
335         norm:  1.000e-04  2.516e-07  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:  9.586e-01  1.754e-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.307e+00  2.416e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 184.639 -1.327
Photon Flux Upper Limit: 4.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.88e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/479771/likelihoodResults_393292801_393552001_4FGL_J1218.5-0119_daily_bin594.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) = 7244.92567112
delta logL = -0.00551254014681

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7244.92015864
delta logL = -6.43221937935e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0127       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3065       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95862       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7244.920     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      238 TOTAL
                     EDM=   .89E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    52.507        .76398E-02** at limit **
   2  alpha         1.7840        2.5169        .16874        .51877E-08
   3  Normalizat    1.3065        .41580E-01    .27852E-03    .15376E-03
   4  Prefactor     .95860        .31841E-01    .24302E-03    .18553E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.78404
  Normalizat = 1.30651
  Prefactor  = 0.958595
 **********
 **   18 **HESSE 
 **********

 FCN=   7244.920     FROM HESSE     STATUS=OK            23 CALLS      261 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .88858        .78124E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7840        4.0897        .67497E-02   -.29045    
   3  Normalizat    1.3065        .22347        .11141E-04   -.83372    
   4  Prefactor     .95860        .17110        .97210E-05   -.94123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.02902e-11
Minuit parameter uncertainties:
  1  7.28857e-08
  2  100.482
  3  0.223638
  4  0.171193
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/479771': 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) = 7244.92015585
delta logL = 2.73082696367e-06

Extracting fit parameters...

4FGL J1218.5-0119
   Spectrum: LogParabola
335         norm:  1.000e-04  7.289e-08  1.000e-04  1.000e+04 ( 1.000e-12)
336        alpha:  1.784e+00  1.005e+02  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:  9.586e-01  1.712e-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.307e+00  2.236e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/479771/cmap_HighResolution_393292801_393552001_4FGL_J1218.5-0119_daily_bin594.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.88e-05', job_status='DONE', photon_flux_upper_limit='4.67e-08', time_completed='2021-09-05 07:36:50.146863', job_id='479771', GAL2='0.96', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1630852610.15', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.73e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.02' WHERE bin_id='594' AND source_name='4FGL J1218.5-0119' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 07:36:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 479771: <4FGL_J1218.5-0119_daily_bin594> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1218.5-0119_daily_bin594 184.639 -1.327 393292801 393552001 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 :                                   837.27 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             303.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            953 sec.

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

