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


Performing analysis on: 4FGL_J1218.0-0028_daily_bin621
RA = 184.514, Dec = -0.4832
tmin = 400291201, tmax = 400550401
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='467463', job_status='RUN', time_executed='2021-09-05 06:48:23.253437', time_epoch_executed='1630849703.25' WHERE source_name='4FGL J1218.0-0028' and cadence='daily' and bin_id='621'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/467463

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/467463/ft1_4FGL_J1218.0-0028_daily_bin621.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/467463/ft2_4FGL_J1218.0-0028_daily_bin621.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/467463/ft1_4FGL_J1218.0-0028_daily_bin621.fits outfile=/scratch/kocevski/467463/ft1_filteredMKT_4FGL_J1218.0-0028_daily_bin621.fits ra=184.514 dec=-0.4832 rad=12.0 tmin=400291201.0 tmax=400550401.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.47
user 3.18
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/467463/ft2_4FGL_J1218.0-0028_daily_bin621.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/467463/ft1_filteredMKT_4FGL_J1218.0-0028_daily_bin621.fits evtable="EVENTS" outfile="/scratch/kocevski/467463/ft1_filtered_4FGL_J1218.0-0028_daily_bin621.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.67
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/467463/ft1_filtered_4FGL_J1218.0-0028_daily_bin621.fits" evtable="EVENTS" scfile=/scratch/kocevski/467463/ft2_4FGL_J1218.0-0028_daily_bin621.fits sctable="SC_DATA" outfile=/scratch/kocevski/467463/ltcube_400291201_400550401_4FGL_J1218.0-0028_daily_bin621.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/467463/ft2_4FGL_J1218.0-0028_daily_bin621.fits
.....................!
real 11.63
user 11.26
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/467463/ft1_filtered_4FGL_J1218.0-0028_daily_bin621.fits evtable="EVENTS" scfile=/scratch/kocevski/467463/ft2_4FGL_J1218.0-0028_daily_bin621.fits sctable="SC_DATA" expcube=/scratch/kocevski/467463/ltcube_400291201_400550401_4FGL_J1218.0-0028_daily_bin621.fits outfile=/scratch/kocevski/467463/expmap_400291201_400550401_4FGL_J1218.0-0028_daily_bin621.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/467463/ltcube_400291201_400550401_4FGL_J1218.0-0028_daily_bin621.fits
.....................!
real 189.83
user 185.01
sys 4.25

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/467463/ft1_filtered_4FGL_J1218.0-0028_daily_bin621.fits scfile=/scratch/kocevski/467463/ft2_4FGL_J1218.0-0028_daily_bin621.fits outfile=/scratch/kocevski/467463/cmap_400291201_400550401_4FGL_J1218.0-0028_daily_bin621.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/467463/ft1_filtered_4FGL_J1218.0-0028_daily_bin621.fits scfile=/scratch/kocevski/467463/ft2_4FGL_J1218.0-0028_daily_bin621.fits outfile=/scratch/kocevski/467463/cmap_HighResolution_400291201_400550401_4FGL_J1218.0-0028_daily_bin621.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.53
user 0.35
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/467463/ft1_filtered_4FGL_J1218.0-0028_daily_bin621.fits evtable="EVENTS" scfile=/scratch/kocevski/467463/ft2_4FGL_J1218.0-0028_daily_bin621.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/467463/Model_4FGL_J1218.0-0028_daily_bin621.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/467463/ft1_filtered_4FGL_J1218.0-0028_daily_bin621.fits.....................!
real 60.57
user 58.62
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0535       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .45197       1.0000         .10000E-03   10000.    
     3 'norm      '    6.2885       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .26980E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .48714E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.377       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.0341       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.372       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .96202       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.5921       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.640       1.0000         .10000E-03   10000.    
    16 'norm      '    2.4494       1.0000         .10000E-03   10000.    
    17 'norm      '    1.5197       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .67734       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    10.740       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    42.087       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    1.1689       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2689       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0188       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=   6631.157     FROM MIGRAD    STATUS=CONVERGED    808 CALLS     3473 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0534        2.2747        .86300E-07    .10835E-03
   2  Prefactor     .56311        27.059       -.73370E-05    .22615E-03
   3  norm          6.2879        5.9215        .46999E-06    .21196E-03
   4  Prefactor     .23497E-01    1.8527       -.53535E-06    .17016E-03
   5  Prefactor     .10144E-03    28.561       -.75210E-05** at limit **
   6  Prefactor     .10000E-03    30.319        .26949E-06** at limit **
   7  Prefactor     12.377        11.983        .19093E-06    .40043E-07
   8  Prefactor     .10000E-03    12.713       -.75034E-06** at limit **
   9  Prefactor     .10000E-03    5.2378       -.73820E-08** at limit **
  10  Prefactor     2.0396        19.053        .12184E-04    .24574E-03
  11  Prefactor     16.370        23.695       -.63769E-06    .19715E-04
  12  Prefactor     .10000E-03    16.720       -.42617E-07** at limit **
  13  Prefactor     .93917        20.531       -.25161E-05    .72327E-04
  14  Prefactor     6.5793        25.275       -.52372E-06    .10394E-04
  15  Prefactor     12.645        11.375       -.12702E-06    .21823E-06
  16  norm          2.4498        2.4771       -.43621E-08   -.26846E-04
  17  norm          1.5160        4.7076        .14660E-05    .61098E-03
  18  Prefactor     .10000E-03    20.495       -.76218E-07** at limit **
  19  norm          .10000E-03    132.10       -.64277E-05** at limit **
  20  Prefactor     .10000E-03    67.374        .50609E-05** at limit **
  21  norm          .67769        .68090        .11196E-06    .20758E-02
  22  Prefactor     .10000E-03    12.401        .46408E-06** at limit **
  23  norm          10.740        2.7838        .13214E-07    .21279E-03
  24  Prefactor     .10000E-03    4.0768       -.49658E-08** at limit **
  25  Prefactor     42.082        36.701        .60659E-07   -.14091E-04
  26  Prefactor     .10000E-03    54.626       -.29361E-05** at limit **
  27  norm          .10000E-03    15.109        .99940E-07** at limit **
  28  norm          1.1689        .33509        .43368E-07    .15181E-02
  29  Normalizat    1.2688        .24044       -.17838E-05    .24135E-03
  30  Prefactor     1.0190        .16948       -.63018E-07    .21357E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.05342
  Prefactor  = 0.563113
  norm       = 6.28786
  Prefactor  = 0.0234973
  Prefactor  = 0.000101443
  Prefactor  = 0.0001
  Prefactor  = 12.3769
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.03962
  Prefactor  = 16.3695
  Prefactor  = 0.0001
  Prefactor  = 0.939175
  Prefactor  = 6.57926
  Prefactor  = 12.6448
  norm       = 2.4498
  norm       = 1.51604
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.67769
  Prefactor  = 0.0001
  norm       = 10.7398
  Prefactor  = 0.0001
  Prefactor  = 42.0821
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.16887
  Normalizat = 1.26878
  Prefactor  = 1.019
 **********
 **   18 **HESSE 
 **********

 FCN=   6631.157     FROM HESSE     STATUS=OK           610 CALLS     4083 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0534        2.2645        .12484E-03   -1.5421    
   2  Prefactor     .56311        240.74        .69541E-02   -1.5558    
   3  norm          6.2879        5.9337        .80036E-03   -1.5206    
   4  Prefactor     .23497E-01    3.2275        .38020E-01   -1.5677    
   5  Prefactor     .10144E-03    23.013        .11486       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    30.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.377        11.995        .11386E-03   -1.5004    
   8  Prefactor     .10000E-03    12.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.2833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.0396        20.112        .14501E-02   -1.5422    
  11  Prefactor     16.370        23.701        .98984E-04   -1.4899    
  12  Prefactor     .10000E-03    16.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .93917        157.72        .65878E-02   -1.5514    
  14  Prefactor     6.5793        25.037        .15630E-03   -1.5195    
  15  Prefactor     12.645        11.410        .11267E-03   -1.4997    
  16  norm          2.4498        2.4726        .11824E-03   -1.5395    
  17  norm          1.5160        4.5226        .25337E-03   -1.5462    
  18  Prefactor     .10000E-03    20.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    133.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    67.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .67769        .62582        .56434E-03   -1.5543    
  22  Prefactor     .10000E-03    12.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          10.740        2.7772        .64155E-04   -1.5052    
  24  Prefactor     .10000E-03    4.0889        .16054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     42.082        36.703        .61792E-04   -1.4410    
  26  Prefactor     .10000E-03    54.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    15.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          1.1689        .33562        .24172E-04   -1.5492    
  29  Normalizat    1.2688        .28221        .30590E-03   -.84503    
  30  Prefactor     1.0190        .19857        .25516E-03   -.92099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.71504e-09
Minuit parameter uncertainties:
  1  2.26461
  2  23.3796
  3  5.93428
  4  0.549633
  5  0.0115296
  6  9.43886e-06
  7  11.9974
  8  9.41355e-06
  9  6.30122e-06
  10  12.8148
  11  23.7147
  12  3.38379e-06
  13  24.4055
  14  25.0773
  15  11.4124
  16  2.47273
  17  4.52363
  18  3.48815e-06
  19  9.10545e-05
  20  0.000176771
  21  0.62583
  22  4.88114e-05
  23  2.77719
  24  3.33208e-07
  25  36.7225
  26  1.67785e-05
  27  2.98771e-06
  28  0.335623
  29  0.282548
  30  0.198712
Done.

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

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  1.264e+01  1.141e+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.019e+00  1.987e-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.269e+00  2.825e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.95
Ra Dec: 184.514 -0.483
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 4.72e-08 +/- 4.26e-08
Energy Flux (Fixed Index): 1.73e-05 +/- 1.56e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6629.45003379
delta logL = 1.7069296141

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6629.09672426
delta logL = 2.06023914356

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2037       1.0000         .10000E-03   10000.    
     2 'Index     '    .76764       1.0000          .0000       10.000    
     3 'Normalizat'    1.3047       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0116       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=   6629.097     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      216 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1921        3.5391        .56590E-02   -.21458E-03
   2  Index         .76606        .41292        .24948       -.53795E-04
   3  Normalizat    1.3053        .21955        .68336E-01    .54739E-04
   4  Prefactor     1.0110        .16716        .43100E-01   -.73893E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.19213
  Index      = 0.766058
  Normalizat = 1.30533
  Prefactor  = 1.01104
 **********
 **   18 **HESSE 
 **********

 FCN=   6629.097     FROM HESSE     STATUS=OK            31 CALLS      247 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1921        6.5051        .14162E-03   -1.5351    
   2  Index         .76606        .74189        .11143E-02   -1.0099    
   3  Normalizat    1.3053        .25561        .30233E-03   -.83407    
   4  Prefactor     1.0110        .19479        .25620E-03   -.92363    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17182e-11
Minuit parameter uncertainties:
  1  6.50657
  2  0.751862
  3  0.255861
  4  0.194929
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/467463': 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) = 6629.09671753
delta logL = 2.06024587284

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  3.192e+00  6.507e+00  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  7.661e-01  7.519e-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.011e+00  1.949e-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.305e+00  2.559e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.06
Ra Dec: 184.514 -0.483
Photon Index (Free Index): 0.77 +/- 0.75
Photon Flux (Free Index): 4.26e-09 +/- 4.80e-09
Energy Flux (Free Index): 1.01e-04 +/- 1.29e-04

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/467463/cmap_HighResolution_400291201_400550401_4FGL_J1218.0-0028_daily_bin621.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.72e-08', energy_flux2='1.01e-04', photon_flux_error='4.26e-08', dlogl='2.06e+00', energy_flux='1.73e-05', photon_flux2='4.26e-09', job_status='DONE', time_completed='2021-09-05 07:00:48.777483', photon_index_error2='0.75', photon_index2='0.77', ts='8.95', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.29e-04', EG='1.27', time_epoch_completed='1630850448.78', return_code='0', job_id='467463', GAL2='1.01', EG2='1.31', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='4.80e-09', ts2='13.06', photon_index='2.32' WHERE bin_id='621' AND source_name='4FGL J1218.0-0028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 07:00:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 467463: <4FGL_J1218.0-0028_daily_bin621> in cluster <slac> Done

Job <4FGL_J1218.0-0028_daily_bin621> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 06:45:28 2021
Job was executed on host(s) <bullet0179>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 06:45:29 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:29 2021
Terminated at Sun Sep  5 07:00:49 2021
Results reported at Sun Sep  5 07:00:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1218.0-0028_daily_bin621 184.514 -0.4832 400291201 400550401 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 :                                   741.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             281.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            921 sec.

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

