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


Performing analysis on: 4FGL_J1218.0-0028_daily_bin669
RA = 184.514, Dec = -0.4832
tmin = 412732801, tmax = 412992001
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='467536', job_status='RUN', time_executed='2021-09-05 06:48:37.228283', time_epoch_executed='1630849717.23' WHERE source_name='4FGL J1218.0-0028' and cadence='daily' and bin_id='669'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/467536

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/467536/ft1_4FGL_J1218.0-0028_daily_bin669.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/467536/ft2_4FGL_J1218.0-0028_daily_bin669.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/467536/ft1_4FGL_J1218.0-0028_daily_bin669.fits outfile=/scratch/kocevski/467536/ft1_filteredMKT_4FGL_J1218.0-0028_daily_bin669.fits ra=184.514 dec=-0.4832 rad=12.0 tmin=412732801.0 tmax=412992001.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.45
user 3.20
sys 0.22

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/467536/ft1_filtered_4FGL_J1218.0-0028_daily_bin669.fits" evtable="EVENTS" scfile=/scratch/kocevski/467536/ft2_4FGL_J1218.0-0028_daily_bin669.fits sctable="SC_DATA" outfile=/scratch/kocevski/467536/ltcube_412732801_412992001_4FGL_J1218.0-0028_daily_bin669.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/467536/ft2_4FGL_J1218.0-0028_daily_bin669.fits
.....................!
real 12.21
user 11.84
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/467536/ft1_filtered_4FGL_J1218.0-0028_daily_bin669.fits evtable="EVENTS" scfile=/scratch/kocevski/467536/ft2_4FGL_J1218.0-0028_daily_bin669.fits sctable="SC_DATA" expcube=/scratch/kocevski/467536/ltcube_412732801_412992001_4FGL_J1218.0-0028_daily_bin669.fits outfile=/scratch/kocevski/467536/expmap_412732801_412992001_4FGL_J1218.0-0028_daily_bin669.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/467536/ltcube_412732801_412992001_4FGL_J1218.0-0028_daily_bin669.fits
.....................!
real 192.08
user 185.59
sys 5.35

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/467536/ft1_filtered_4FGL_J1218.0-0028_daily_bin669.fits scfile=/scratch/kocevski/467536/ft2_4FGL_J1218.0-0028_daily_bin669.fits outfile=/scratch/kocevski/467536/cmap_412732801_412992001_4FGL_J1218.0-0028_daily_bin669.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/467536/ft1_filtered_4FGL_J1218.0-0028_daily_bin669.fits scfile=/scratch/kocevski/467536/ft2_4FGL_J1218.0-0028_daily_bin669.fits outfile=/scratch/kocevski/467536/cmap_HighResolution_412732801_412992001_4FGL_J1218.0-0028_daily_bin669.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/467536/ft1_filtered_4FGL_J1218.0-0028_daily_bin669.fits evtable="EVENTS" scfile=/scratch/kocevski/467536/ft2_4FGL_J1218.0-0028_daily_bin669.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/467536/Model_4FGL_J1218.0-0028_daily_bin669.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/467536/ft1_filtered_4FGL_J1218.0-0028_daily_bin669.fits......................!
real 15.77
user 14.43
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/467536/ft1_filtered_4FGL_J1218.0-0028_daily_bin669.fits', '/scratch/kocevski/467536/ft2_4FGL_J1218.0-0028_daily_bin669.fits', expMap='/scratch/kocevski/467536/expmap_412732801_412992001_4FGL_J1218.0-0028_daily_bin669.fits', expCube='/scratch/kocevski/467536/ltcube_412732801_412992001_4FGL_J1218.0-0028_daily_bin669.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/467536/Model_4FGL_J1218.0-0028_daily_bin669.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/467536/ft1_filtered_4FGL_J1218.0-0028_daily_bin669.fits
Spacecraft file(s): /scratch/kocevski/467536/ft2_4FGL_J1218.0-0028_daily_bin669.fits
Exposure map: /scratch/kocevski/467536/expmap_412732801_412992001_4FGL_J1218.0-0028_daily_bin669.fits
Exposure cube: /scratch/kocevski/467536/ltcube_412732801_412992001_4FGL_J1218.0-0028_daily_bin669.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/467536/Model_4FGL_J1218.0-0028_daily_bin669.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) = 299.840875441

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.9818       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.3686       1.0000         .10000E-03   10000.    
     3 'norm      '    2.7385       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.8378       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .63158E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .22751E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.631       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.2270       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .23462E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3550       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.3280       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13008E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .63987E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .27844E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .39747E-01   1.0000         .10000E-03   10000.    
    16 'norm      '    .39938E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.0590       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .31937E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    12.493       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1018       1.0000         .10000E-03   10000.    
    21 'norm      '    2.3853       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .52494E-01   1.0000         .10000E-03   10000.    
    23 'norm      '    9.5572       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .19564       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11970E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.5629       1.0000         .10000E-03   10000.    
    27 'norm      '    .45652       1.0000         .10000E-03   10000.    
    28 'norm      '    3.2981       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    .49826       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   298.4365     FROM MIGRAD    STATUS=CONVERGED    201 CALLS      400 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2983        16.190        .35480E-02    .15681E-01
   2  Prefactor     .29063E-03    7201.4        .48176E-02** at limit **
   3  norm          2.7385        1.0177         .0000         .0000    
   4  Prefactor     1.8378        1.0428         .0000         .0000    
   5  Prefactor     .10001E-03    .21781        .13839E-05** at limit **
   6  Prefactor     .10731E-03    .25275        .63555E-06** at limit **
   7  Prefactor     30.920        1.0048       -.32143E-06    .26516E-02
   8  Prefactor     5.2270        1.0046         .0000         .0000    
   9  Prefactor     .10000E-03    .20571        .76346E-05** at limit **
  10  Prefactor     3.3550        1.0116         .0000         .0000    
  11  Prefactor     9.3280        1.0014         .0000         .0000    
  12  Prefactor     .11195E-03    .20648        .23893E-05** at limit **
  13  Prefactor     .10115E-03    .21800        .11982E-04** at limit **
  14  Prefactor     .10001E-03    .20983        .58864E-04** at limit **
  15  Prefactor     .10015E-03    .21252       -.18466E-04** at limit **
  16  norm          .10000E-03    .28261        .20469E-07** at limit **
  17  norm          .49955        .23526       -.32266E-04    .10148E-03
  18  Prefactor     .10284E-03    .21075        .45182E-07** at limit **
  19  norm          146.13        3.3999       -.31921E-05    .62663E-04
  20  Prefactor     .10316E-03    .31974        .31724E-04** at limit **
  21  norm          1.9383        .92296        .97860E-05   -.44630E-03
  22  Prefactor     .10076E-03    .21540        .10831E-04** at limit **
  23  norm          9.6784        1.0077        .52168E-05   -.33687E-03
  24  Prefactor     .10061E-03    .24789       -.22515E-05** at limit **
  25  Prefactor     .10011E-03    .20624        .62866E-06** at limit **
  26  Prefactor     6.5629        1.0029         .0000         .0000    
  27  norm          .11197E-03    .30758        .25649E-04** at limit **
  28  norm          3.2981        1.0120         .0000         .0000    
  29  Normalizat    .10000E-01    .25773        .88415E-04** at limit **
  30  Prefactor     .50370        .84459        .94118E-05   -.11045E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.29834
  Prefactor  = 0.00029063
  norm       = 2.73851
  Prefactor  = 1.83777
  Prefactor  = 0.000100013
  Prefactor  = 0.000107311
  Prefactor  = 30.9204
  Prefactor  = 5.22701
  Prefactor  = 0.000100001
  Prefactor  = 3.35499
  Prefactor  = 9.32801
  Prefactor  = 0.000111949
  Prefactor  = 0.000101148
  Prefactor  = 0.000100008
  Prefactor  = 0.000100145
  norm       = 0.0001
  norm       = 0.499547
  Prefactor  = 0.000102835
  norm       = 146.126
  Prefactor  = 0.00010316
  norm       = 1.93825
  Prefactor  = 0.000100759
  norm       = 9.67838
  Prefactor  = 0.000100607
  Prefactor  = 0.000100109
  Prefactor  = 6.56293
  norm       = 0.000111974
  norm       = 3.29806
  Normalizat = 0.01
  Prefactor  = 0.503703
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   298.4365     FROM HESSE     STATUS=FAILED        13 CALLS      413 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2983        16.190        .35480E-02   -1.5132    
   2  Prefactor     .29063E-03    7201.4        .48176E-02   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          557.89        555.06         .0000       -1.5377    
   4  Prefactor     1.8378        1.0428         .0000       -1.5437    
   5  Prefactor     .10001E-03    .21781        .13839E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10731E-03    .25275        .63555E-06   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     30.920        1.0048       -.32143E-06   -1.4595    
   8  Prefactor     5.2270        1.0046         .0000       -1.5251    
   9  Prefactor     .10000E-03    .20571        .76346E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.3550        1.0116         .0000       -1.5342    
  11  Prefactor     9.3280        1.0014         .0000       -1.5097    
  12  Prefactor     .11195E-03    .20648        .23893E-05   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10115E-03    .21800        .11982E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    .20983        .58864E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10015E-03    .21252       -.18466E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .28261        .20469E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .49955        .23526       -.32266E-04   -1.5567    
  18  Prefactor     .10284E-03    .21075        .45182E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          146.13        3.3999       -.31921E-05   -1.3284    
  20  Prefactor     .10316E-03    .31974        .31724E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.9383        .92296        .97860E-05   -1.5430    
  22  Prefactor     .10076E-03    .21540        .10831E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          9.6784        1.0077        .52168E-05   -1.5086    
  24  Prefactor     .10061E-03    .24789       -.22515E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10011E-03    .20624        .62866E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     6.5629        1.0029         .0000       -1.5196    
  27  norm          .11197E-03    .30758        .25649E-04   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          3.2981        1.0120         .0000       -1.5345    
  29  Normalizat    .10000E-01    .25773        .88415E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .50370        .84459        .94118E-05   -1.1181    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.90806e-09
Minuit parameter uncertainties:
  1  16.1985
  2  2.00383
  3  1.01772
  4  1.04286
  5  0.000106942
  6  0.0027188
  7  1.00483
  8  1.00465
  9  3.24956e-05
  10  1.01156
  11  1.00144
  12  0.0031414
  13  0.00100035
  14  8.28006e-05
  15  0.000351564
  16  3.18377e-06
  17  0.235265
  18  0.00154606
  19  3.39987
  20  0.00201041
  21  0.922965
  22  0.000808799
  23  1.0077
  24  0.000775694
  25  0.000300395
  26  1.00293
  27  0.00383827
  28  1.01198
  29  1.58238e-05
  30  0.867131
Done.

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

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  1.001e-04  3.516e-04  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:  5.037e-01  8.671e-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.000e-02  1.582e-05  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/467536/likelihoodResults_412732801_412992001_4FGL_J1218.0-0028_daily_bin669.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 298.436629043
delta logL = -0.000101263918907

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 298.436529775
delta logL = -1.99577800686e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18717E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6733       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50370       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   298.4365     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      267 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10444E-03    55.270        .95467E-02** at limit **
   2  Index         2.5733        7.8391        .50000        .82972E-05
   3  Normalizat    .10000E-01    .84245E-03    .27395E-02** at limit **
   4  Prefactor     .50370        .12606E-01    .17270E-03    .58833E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010444
  Index      = 2.57328
  Normalizat = 0.01
  Prefactor  = 0.503703
 **********
 **   18 **HESSE 
 **********

 FCN=   298.4365     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      296 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10444E-03    478.61        .99739E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5733        6.0659        .50000       -.50676    
   3  Normalizat    .10000E-01    .75870E-02    .54791E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .50370        .37834E-01    .69082E-05   -1.1181    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.56746e-09
Minuit parameter uncertainties:
  1  0.0929443
  2  716.96
  3  2.7176e-07
  4  0.0378354
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/467536': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 298.436528203
delta logL = -4.23969424901e-07

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  1.044e-04  9.294e-02  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.573e+00  7.170e+02  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:  5.037e-01  3.784e-02  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.000e-02  2.718e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 184.514 -0.483

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/467536/cmap_HighResolution_412732801_412992001_4FGL_J1218.0-0028_daily_bin669.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.59e-02', job_status='DONE', photon_flux_upper_limit='9.88e-07', time_completed='2021-09-05 06:54:07.502099', job_id='467536', GAL2='0.50', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630850047.5', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.50', dlogl='-4.24e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='669' AND source_name='4FGL J1218.0-0028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:54:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0075>
Subject: Job 467536: <4FGL_J1218.0-0028_daily_bin669> in cluster <slac> Done

Job <4FGL_J1218.0-0028_daily_bin669> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 06:45:33 2021
Job was executed on host(s) <bullet0075>, 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 06:54:08 2021
Results reported at Sun Sep  5 06:54:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1218.0-0028_daily_bin669 184.514 -0.4832 412732801 412992001 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 :                                   328.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             289.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   514 sec.
    Turnaround time :                            515 sec.

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

