/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 7 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 = 7416
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1218.0-0028_daily_bin234
RA = 184.514, Dec = -0.4832
tmin = 299980801, tmax = 300240001
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='463804', job_status='RUN', time_executed='2021-09-05 06:36:15.414912', time_epoch_executed='1630848975.41' WHERE source_name='4FGL J1218.0-0028' and cadence='daily' and bin_id='234'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/463804

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/463804/ft1_4FGL_J1218.0-0028_daily_bin234.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/463804/ft2_4FGL_J1218.0-0028_daily_bin234.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/463804/ft1_4FGL_J1218.0-0028_daily_bin234.fits outfile=/scratch/kocevski/463804/ft1_filteredMKT_4FGL_J1218.0-0028_daily_bin234.fits ra=184.514 dec=-0.4832 rad=12.0 tmin=299980801.0 tmax=300240001.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.44
user 3.17
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/463804/ft1_filtered_4FGL_J1218.0-0028_daily_bin234.fits" evtable="EVENTS" scfile=/scratch/kocevski/463804/ft2_4FGL_J1218.0-0028_daily_bin234.fits sctable="SC_DATA" outfile=/scratch/kocevski/463804/ltcube_299980801_300240001_4FGL_J1218.0-0028_daily_bin234.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/463804/ft2_4FGL_J1218.0-0028_daily_bin234.fits
.....................!
real 11.99
user 11.63
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/463804/ft1_filtered_4FGL_J1218.0-0028_daily_bin234.fits evtable="EVENTS" scfile=/scratch/kocevski/463804/ft2_4FGL_J1218.0-0028_daily_bin234.fits sctable="SC_DATA" expcube=/scratch/kocevski/463804/ltcube_299980801_300240001_4FGL_J1218.0-0028_daily_bin234.fits outfile=/scratch/kocevski/463804/expmap_299980801_300240001_4FGL_J1218.0-0028_daily_bin234.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/463804/ltcube_299980801_300240001_4FGL_J1218.0-0028_daily_bin234.fits
.....................!
real 190.29
user 184.65
sys 5.18

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/463804/ft1_filtered_4FGL_J1218.0-0028_daily_bin234.fits scfile=/scratch/kocevski/463804/ft2_4FGL_J1218.0-0028_daily_bin234.fits outfile=/scratch/kocevski/463804/cmap_299980801_300240001_4FGL_J1218.0-0028_daily_bin234.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/463804/ft1_filtered_4FGL_J1218.0-0028_daily_bin234.fits scfile=/scratch/kocevski/463804/ft2_4FGL_J1218.0-0028_daily_bin234.fits outfile=/scratch/kocevski/463804/cmap_HighResolution_299980801_300240001_4FGL_J1218.0-0028_daily_bin234.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/463804/ft1_filtered_4FGL_J1218.0-0028_daily_bin234.fits evtable="EVENTS" scfile=/scratch/kocevski/463804/ft2_4FGL_J1218.0-0028_daily_bin234.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/463804/Model_4FGL_J1218.0-0028_daily_bin234.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/463804/ft1_filtered_4FGL_J1218.0-0028_daily_bin234.fits.....................!
real 53.61
user 52.26
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15645E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.187       1.0000         .10000E-03   10000.    
     3 'norm      '    .30251       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.8277       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.528       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.975       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.5881       1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.279       1.0000         .10000E-03   10000.    
    11 'Prefactor '    42.123       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.2041       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.9285       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.7135       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    7.2368       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .40462E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.3649       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.4378       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    47.492       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .60031       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .82989       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2872       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=   6199.279     FROM MIGRAD    STATUS=CONVERGED    767 CALLS     3955 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    1.5114        .85914E-06** at limit **
   2  Prefactor     12.187        23.682        .17010E-06   -.10709E-04
   3  norm          .29558        4.9558       -.22753E-05    .31646E-03
   4  Prefactor     3.8281        3.8762       -.56240E-07    .96121E-04
   5  Prefactor     .10000E-03    22.828        .17063E-05** at limit **
   6  Prefactor     .10000E-03    64.754        .19216E-05** at limit **
   7  Prefactor     13.529        11.145        .40377E-07   -.71204E-05
   8  Prefactor     16.974        36.824        .33839E-07    .73754E-05
   9  Prefactor     8.5879        7.9246        .49183E-07   -.99609E-05
  10  Prefactor     28.279        17.314        .59298E-07    .20618E-04
  11  Prefactor     42.121        38.691        .16216E-06    .76716E-05
  12  Prefactor     .10000E-03    20.355       -.20589E-06** at limit **
  13  Prefactor     .10000E-03    14.661       -.13427E-05** at limit **
  14  Prefactor     6.2014        58.272       -.45309E-05   -.91258E-05
  15  Prefactor     6.9283        9.2819        .95839E-07    .19997E-04
  16  norm          .10000E-03    1.7208       -.12167E-07** at limit **
  17  norm          4.7133        5.4784        .22327E-05    .51997E-03
  18  Prefactor     .10000E-03    38.872       -.24971E-05** at limit **
  19  norm          7.2417        86.347       -.10040E-04   -.78777E-05
  20  Prefactor     .10000E-03    621.93        .28654E-04** at limit **
  21  norm          2.3649        .73506       -.86178E-07   -.25397E-03
  22  Prefactor     .10000E-03    4.8010        .97991E-08** at limit **
  23  norm          4.4378        1.8718       -.32224E-07   -.10737E-03
  24  Prefactor     .10000E-03    5.4532        .11588E-07** at limit **
  25  Prefactor     .10000E-03    13.680        .15659E-05** at limit **
  26  Prefactor     47.491        48.214        .22096E-06    .11662E-05
  27  norm          .10000E-03    7.1544       -.51195E-07** at limit **
  28  norm          .60032        .26382        .62293E-08    .27036E-04
  29  Normalizat    .82981        .23667       -.19472E-05   -.72331E-04
  30  Prefactor     1.2872        .18339        .87245E-06   -.14268E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100053
  Prefactor  = 12.1872
  norm       = 0.295577
  Prefactor  = 3.82808
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.5286
  Prefactor  = 16.9738
  Prefactor  = 8.58794
  Prefactor  = 28.279
  Prefactor  = 42.1213
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.20136
  Prefactor  = 6.92832
  norm       = 0.0001
  norm       = 4.71327
  Prefactor  = 0.0001
  norm       = 7.24171
  Prefactor  = 0.0001
  norm       = 2.36486
  Prefactor  = 0.0001
  norm       = 4.4378
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.4906
  norm       = 0.0001
  norm       = 0.600315
  Normalizat = 0.829808
  Prefactor  = 1.28723
 **********
 **   18 **HESSE 
 **********

 FCN=   6199.279     FROM HESSE     STATUS=OK           592 CALLS     4547 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    14.308        .17346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.187        23.669        .11475E-03   -1.5010    
   3  norm          .29558        10.853        .29502E-02   -1.5599    
   4  Prefactor     3.8281        3.8427        .14699E-03   -1.5317    
   5  Prefactor     .10000E-03    22.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    64.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.529        11.148        .10890E-03   -1.4972    
   8  Prefactor     16.974        36.805        .97212E-04   -1.4884    
   9  Prefactor     8.5879        7.9246        .13679E-03   -1.5122    
  10  Prefactor     28.279        17.312        .75338E-04   -1.4644    
  11  Prefactor     42.121        38.693        .61766E-04   -1.4409    
  12  Prefactor     .10000E-03    20.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.2014        58.692        .16117E-03   -1.5210    
  15  Prefactor     6.9283        9.2520        .15242E-03   -1.5181    
  16  norm          .10000E-03    1.7755        .20109E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.7133        5.6898        .70395E-03   -1.5274    
  18  Prefactor     .10000E-03    39.047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.2417        88.583        .14910E-03   -1.5170    
  20  Prefactor     .10000E-03    625.80        .21258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.3649        .73810        .33060E-04   -1.5400    
  22  Prefactor     .10000E-03    4.8301        .16846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.4378        1.8703        .66423E-04   -1.5287    
  24  Prefactor     .10000E-03    5.5944        .35903E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    13.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     47.491        48.371        .58185E-04   -1.4329    
  27  norm          .10000E-03    7.1556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .60032        .26411        .24782E-04   -1.5553    
  29  Normalizat    .82981        .27472        .34560E-03   -.98972    
  30  Prefactor     1.2872        .21628        .23057E-03   -.83688    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.68991e-09
Minuit parameter uncertainties:
  1  0.00173742
  2  23.687
  3  3.58217
  4  3.8429
  5  1.82357e-05
  6  3.40085e-05
  7  11.1493
  8  36.8539
  9  7.92556
  10  17.3154
  11  38.7157
  12  4.83429e-06
  13  8.87859e-06
  14  38.2049
  15  9.25387
  16  7.03046e-07
  17  5.69042
  18  5.14809e-05
  19  50.7486
  20  0.000655308
  21  0.738105
  22  8.64413e-08
  23  1.87037
  24  1.06706e-06
  25  1.59164e-05
  26  48.4107
  27  5.3912e-07
  28  0.264112
  29  0.275184
  30  0.216432
Done.

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

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  6.928e+00  9.254e+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

GAL_V02
   Spectrum: PowerLaw
608    Prefactor:  1.287e+00  2.164e-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:  8.298e-01  2.752e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.80
Ra Dec: 184.514 -0.483
Photon Flux Upper Limit: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/463804/likelihoodResults_299980801_300240001_4FGL_J1218.0-0028_daily_bin234.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) = 6199.27497476
delta logL = 0.00372596088528

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6199.27237074
delta logL = 0.00632998053425

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8097       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2314       1.0000          .0000       10.000    
     3 'Normalizat'    .83155       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2861       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=   6199.272     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      248 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8109        13.567        .14349E-03   -.40432E-03
   2  Index         2.2310        .83630        .93706E-02   -.14721E-03
   3  Normalizat    .83156        .25761        .34527E-03    .16763E-03
   4  Prefactor     1.2861        .21030        .23065E-03    .30714E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.81092
  Index      = 2.23099
  Normalizat = 0.831558
  Prefactor  = 1.2861
 **********
 **   18 **HESSE 
 **********

 FCN=   6199.272     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8109        12.697        .57394E-05   -1.5149    
   2  Index         2.2310        .78356        .37482E-03   -.58692    
   3  Normalizat    .83156        .25772        .13811E-04   -.98909    
   4  Prefactor     1.2861        .21038        .46130E-04   -.83721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.50353e-10
Minuit parameter uncertainties:
  1  12.7015
  2  0.788261
  3  0.258096
  4  0.210518
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/463804': 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) = 6199.27237061
delta logL = 0.00633011018272

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  7.811e+00  1.270e+01  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.231e+00  7.883e-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.286e+00  2.105e-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:  8.316e-01  2.581e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.80
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/463804/cmap_HighResolution_299980801_300240001_4FGL_J1218.0-0028_daily_bin234.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.70e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-09-05 06:51:14.189829', job_id='463804', GAL2='1.29', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1630849874.19', return_code2='0', ts='0.80', comment='SUCCESS', return_code='0', GAL='1.29', dlogl='6.33e-03', ts2='0.82', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='234' AND source_name='4FGL J1218.0-0028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:51:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 463804: <4FGL_J1218.0-0028_daily_bin234> in cluster <slac> Done

Job <4FGL_J1218.0-0028_daily_bin234> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 06:35:56 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 06:35: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 06:35:58 2021
Terminated at Sun Sep  5 06:51:15 2021
Results reported at Sun Sep  5 06:51:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1218.0-0028_daily_bin234 184.514 -0.4832 299980801 300240001 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 :                                   889.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            919 sec.

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

