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


Performing analysis on: 4FGL_J1218.0-0028_daily_bin658
RA = 184.514, Dec = -0.4832
tmin = 409881601, tmax = 410140801
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='467519', job_status='RUN', time_executed='2021-09-05 06:45:53.955694', time_epoch_executed='1630849553.96' WHERE source_name='4FGL J1218.0-0028' and cadence='daily' and bin_id='658'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/467519

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/467519/ft1_4FGL_J1218.0-0028_daily_bin658.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/467519/ft2_4FGL_J1218.0-0028_daily_bin658.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/467519/ft1_4FGL_J1218.0-0028_daily_bin658.fits outfile=/scratch/kocevski/467519/ft1_filteredMKT_4FGL_J1218.0-0028_daily_bin658.fits ra=184.514 dec=-0.4832 rad=12.0 tmin=409881601.0 tmax=410140801.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 6.33
user 5.91
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/467519/ft2_4FGL_J1218.0-0028_daily_bin658.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/467519/ft2_4FGL_J1218.0-0028_daily_bin658.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/467519/ft1_filteredMKT_4FGL_J1218.0-0028_daily_bin658.fits evtable="EVENTS" outfile="/scratch/kocevski/467519/ft1_filtered_4FGL_J1218.0-0028_daily_bin658.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.53
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/467519/ft1_filtered_4FGL_J1218.0-0028_daily_bin658.fits" evtable="EVENTS" scfile=/scratch/kocevski/467519/ft2_4FGL_J1218.0-0028_daily_bin658.fits sctable="SC_DATA" outfile=/scratch/kocevski/467519/ltcube_409881601_410140801_4FGL_J1218.0-0028_daily_bin658.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/467519/ft2_4FGL_J1218.0-0028_daily_bin658.fits
.....................!
real 12.63
user 12.03
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/467519/ft1_filtered_4FGL_J1218.0-0028_daily_bin658.fits evtable="EVENTS" scfile=/scratch/kocevski/467519/ft2_4FGL_J1218.0-0028_daily_bin658.fits sctable="SC_DATA" expcube=/scratch/kocevski/467519/ltcube_409881601_410140801_4FGL_J1218.0-0028_daily_bin658.fits outfile=/scratch/kocevski/467519/expmap_409881601_410140801_4FGL_J1218.0-0028_daily_bin658.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/467519/ltcube_409881601_410140801_4FGL_J1218.0-0028_daily_bin658.fits
.....................!
real 193.65
user 185.58
sys 4.65

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

Setting source of interest to:
4FGL J1218.0-0028 @ 184.514 -0.4832

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/467519/ft1_filtered_4FGL_J1218.0-0028_daily_bin658.fits scfile=/scratch/kocevski/467519/ft2_4FGL_J1218.0-0028_daily_bin658.fits outfile=/scratch/kocevski/467519/cmap_409881601_410140801_4FGL_J1218.0-0028_daily_bin658.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.514 yref=-0.4832 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/467519/ft1_filtered_4FGL_J1218.0-0028_daily_bin658.fits scfile=/scratch/kocevski/467519/ft2_4FGL_J1218.0-0028_daily_bin658.fits outfile=/scratch/kocevski/467519/cmap_HighResolution_409881601_410140801_4FGL_J1218.0-0028_daily_bin658.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.514 yref=-0.4832 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.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/467519/ft1_filtered_4FGL_J1218.0-0028_daily_bin658.fits evtable="EVENTS" scfile=/scratch/kocevski/467519/ft2_4FGL_J1218.0-0028_daily_bin658.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/467519/Model_4FGL_J1218.0-0028_daily_bin658.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/467519/ft1_filtered_4FGL_J1218.0-0028_daily_bin658.fits.....................!
real 56.31
user 53.44
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/467519/ft1_filtered_4FGL_J1218.0-0028_daily_bin658.fits', '/scratch/kocevski/467519/ft2_4FGL_J1218.0-0028_daily_bin658.fits', expMap='/scratch/kocevski/467519/expmap_409881601_410140801_4FGL_J1218.0-0028_daily_bin658.fits', expCube='/scratch/kocevski/467519/ltcube_409881601_410140801_4FGL_J1218.0-0028_daily_bin658.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/467519/Model_4FGL_J1218.0-0028_daily_bin658.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1218.0-0028'

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  2.373e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.321e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  1.446e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/467519/ft1_filtered_4FGL_J1218.0-0028_daily_bin658.fits
Spacecraft file(s): /scratch/kocevski/467519/ft2_4FGL_J1218.0-0028_daily_bin658.fits
Exposure map: /scratch/kocevski/467519/expmap_409881601_410140801_4FGL_J1218.0-0028_daily_bin658.fits
Exposure cube: /scratch/kocevski/467519/ltcube_409881601_410140801_4FGL_J1218.0-0028_daily_bin658.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/467519/Model_4FGL_J1218.0-0028_daily_bin658.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) = 5870.42476084

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7877       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.2855       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .51393       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .65494E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.6227       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.169       1.0000         .10000E-03   10000.    
    16 'norm      '    4.0183       1.0000         .10000E-03   10000.    
    17 'norm      '    .75930       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10879E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.1419       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.3580       1.0000         .10000E-03   10000.    
    23 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    54.739       1.0000         .10000E-03   10000.    
    27 'norm      '    123.55       1.0000         .10000E-03   10000.    
    28 'norm      '    7.1403       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0127       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2209       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5870.417     FROM MIGRAD    STATUS=CONVERGED    783 CALLS     3956 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7864        3.9746        .12052E-06   -.76971E-04
   2  Prefactor     .10000E-03    41.265        .43501E-06** at limit **
   3  norm          .10000E-03    4.9990        .16087E-06** at limit **
   4  Prefactor     .10000E-03    5.0745        .32949E-06** at limit **
   5  Prefactor     .10000E-03    16.035        .11496E-06** at limit **
   6  Prefactor     .10000E-03    70.999        .81067E-07** at limit **
   7  Prefactor     5.2796        12.943        .63433E-06   -.12333E-04
   8  Prefactor     .10000E-03    21.571        .80917E-07** at limit **
   9  Prefactor     .10000E-03    7.8746        .19602E-06** at limit **
  10  Prefactor     .25037        18.768        .21769E-05   -.15275E-03
  11  Prefactor     .10000E-03    48.130       -.87700E-07** at limit **
  12  Prefactor     .10000E-03    29.528        .51215E-07** at limit **
  13  Prefactor     .10000E-03    125.23        .18700E-05** at limit **
  14  Prefactor     3.6230        37.989       -.57077E-06   -.29579E-04
  15  Prefactor     10.160        11.471       -.20144E-06   -.84911E-04
  16  norm          4.0160        3.3233        .28805E-06   -.23925E-03
  17  norm          .75247        3.8609        .24909E-05   -.50016E-04
  18  Prefactor     .10000E-03    12.499        .34156E-07** at limit **
  19  norm          .10000E-03    36.366       -.47870E-08** at limit **
  20  Prefactor     .10000E-03    221.66       -.18761E-06** at limit **
  21  norm          3.1414        1.0080       -.12064E-06   -.10951E-02
  22  Prefactor     4.3590        15.303        .92815E-05   -.11026E-03
  23  norm          .10000E-03    1.3770        .17034E-06** at limit **
  24  Prefactor     .10000E-03    11.837       -.92772E-06** at limit **
  25  Prefactor     .10000E-03    30.554        .42329E-07** at limit **
  26  Prefactor     54.551        117.07       -.10230E-04   -.99998E-04
  27  norm          123.56        52.167       -.28591E-06    .10178E-05
  28  norm          7.1392        .83285        .22002E-06   -.17588E-02
  29  Normalizat    1.0136        .27672       -.39025E-05   -.18872E-03
  30  Prefactor     1.2206        .20636        .86280E-07   -.31192E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.78642
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.27958
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.250367
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.62296
  Prefactor  = 10.1604
  norm       = 4.01598
  norm       = 0.752467
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.14136
  Prefactor  = 4.359
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.5513
  norm       = 123.558
  norm       = 7.13916
  Normalizat = 1.0136
  Prefactor  = 1.22056
 **********
 **   18 **HESSE 
 **********

 FCN=   5870.417     FROM HESSE     STATUS=OK           584 CALLS     4540 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7864        3.9770        .11291E-03   -1.5187    
   2  Prefactor     .10000E-03    41.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.0202        .16729E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.2591        .33693E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    71.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.2796        12.945        .17483E-03   -1.5248    
   8  Prefactor     .10000E-03    21.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.9240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .25037        26.884        .89992E-01   -1.5608    
  11  Prefactor     .10000E-03    48.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    29.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    130.04        .42033E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.6230        37.537        .21227E-03   -1.5327    
  15  Prefactor     10.160        11.476        .12565E-03   -1.5070    
  16  norm          4.0160        3.3200        .60154E-03   -1.5307    
  17  norm          .75247        3.8181        .27695E-03   -1.5534    
  18  Prefactor     .10000E-03    12.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    36.389        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    221.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.1414        1.0056        .39641E-04   -1.5353    
  22  Prefactor     4.3590        15.458        .96472E-03   -1.5290    
  23  norm          .10000E-03    1.4324        .17525E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    11.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    30.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     54.551        119.99        .27108E-03   -1.4229    
  27  norm          123.56        52.152        .36211E-04   -1.3480    
  28  norm          7.1392        .84314        .19880E-04   -1.5174    
  29  Normalizat    1.0136        .32786        .38700E-03   -.92576    
  30  Prefactor     1.2206        .24494        .27742E-03   -.85701    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72595e-10
Minuit parameter uncertainties:
  1  3.97716
  2  0.000115641
  3  5.95261e-06
  4  1.10546e-05
  5  5.71839e-06
  6  1.16275e-05
  7  12.9523
  8  1.51601e-05
  9  1.43642e-05
  10  5.19017
  11  0.000136607
  12  3.01265e-05
  13  0.000466903
  14  23.342
  15  11.4784
  16  3.32016
  17  3.3901
  18  4.44018e-06
  19  3.6347e-05
  20  0.000451818
  21  1.0056
  22  15.472
  23  4.35295e-06
  24  2.21122e-05
  25  9.28897e-06
  26  120.529
  27  52.171
  28  0.843141
  29  0.32851
  30  0.245171
Done.

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

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  1.016e+01  1.148e+01  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.321e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  1.446e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
608    Prefactor:  1.221e+00  2.452e-01  0.000e+00  1.000e+01 ( 1.000e+00)
609        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
610        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
607   Normalization:  1.014e+00  3.285e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.21
Ra Dec: 184.514 -0.483
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 3.80e-08 +/- 4.29e-08
Energy Flux (Fixed Index): 1.39e-05 +/- 1.57e-05

TS (Fixed Index): 2.21
Ra Dec: 184.514 -0.483
Photon Flux Upper Limit: 1.63e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.25e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/467519/likelihoodResults_409881601_410140801_4FGL_J1218.0-0028_daily_bin658.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) = 5869.95233718
delta logL = 0.464429766062

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5869.92290785
delta logL = 0.493859101445

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.493       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5496       1.0000          .0000       10.000    
     3 'Normalizat'    1.0343       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2127       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6110E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5869.923     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      217 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.493        26.625        .27261E-02    .13314E-02
   2  Index         1.5494        .99248        .29267       -.22894E-04
   3  Normalizat    1.0344        .26431        .86630E-01    .15864E-04
   4  Prefactor     1.2126        .20362        .62902E-01    .39380E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.4933
  Index      = 1.54935
  Normalizat = 1.03438
  Prefactor  = 1.21264
 **********
 **   18 **HESSE 
 **********

 FCN=   5869.923     FROM HESSE     STATUS=OK            31 CALLS      248 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.493        15.033        .10904E-03   -1.4973    
   2  Index         1.5494        .69719        .11184E-01   -.76167    
   3  Normalizat    1.0344        .30635        .38362E-03   -.91887    
   4  Prefactor     1.2126        .23977        .27819E-03   -.85943    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.81683e-09
Minuit parameter uncertainties:
  1  15.0376
  2  0.701574
  3  0.306877
  4  0.239988
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/467519': 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) = 5869.92290777
delta logL = 0.493859179005

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  1.349e+01  1.504e+01  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  1.549e+00  7.016e-01  0.000e+00  1.000e+01 (-1.000e+00)
327        Scale:  1.446e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
608    Prefactor:  1.213e+00  2.400e-01  0.000e+00  1.000e+01 ( 1.000e+00)
609        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
610        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
607   Normalization:  1.034e+00  3.069e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.20
Ra Dec: 184.514 -0.483
Photon Index (Free Index): 1.55 +/- 0.70
Photon Flux (Free Index): 1.51e-08 +/- 2.22e-08
Energy Flux (Free Index): 4.04e-05 +/- 6.95e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/467519/cmap_HighResolution_409881601_410140801_4FGL_J1218.0-0028_daily_bin658.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.25e-02', comment='SUCCESS', photon_flux='3.80e-08', energy_flux2='4.04e-05', photon_flux_error='4.29e-08', dlogl='4.94e-01', energy_flux='1.39e-05', photon_flux2='1.51e-08', job_status='DONE', time_completed='2021-09-05 07:00:46.372733', photon_index_error2='0.70', photon_index2='1.55', ts='2.21', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='1.63e-07', energy_flux_error2='6.95e-05', EG='1.01', time_epoch_completed='1630850446.37', return_code='0', job_id='467519', GAL2='1.21', EG2='1.03', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='2.22e-08', ts2='3.20', photon_index='2.32' WHERE bin_id='658' AND source_name='4FGL J1218.0-0028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 07:00:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 467519: <4FGL_J1218.0-0028_daily_bin658> in cluster <slac> Done

Job <4FGL_J1218.0-0028_daily_bin658> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 06:45:32 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 06:45:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 06:45:34 2021
Terminated at Sun Sep  5 07:00:46 2021
Results reported at Sun Sep  5 07:00:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1218.0-0028_daily_bin658 184.514 -0.4832 409881601 410140801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1218.0-0028 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   878.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            914 sec.

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

