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


Performing analysis on: 4FGL_J1218.0-0028_daily_bin248
RA = 184.514, Dec = -0.4832
tmin = 303609601, tmax = 303868801
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='463819', job_status='RUN', time_executed='2021-09-05 06:36:17.073713', time_epoch_executed='1630848977.07' WHERE source_name='4FGL J1218.0-0028' and cadence='daily' and bin_id='248'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/463819

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/463819/ft1_4FGL_J1218.0-0028_daily_bin248.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/463819/ft2_4FGL_J1218.0-0028_daily_bin248.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/463819/ft1_4FGL_J1218.0-0028_daily_bin248.fits outfile=/scratch/kocevski/463819/ft1_filteredMKT_4FGL_J1218.0-0028_daily_bin248.fits ra=184.514 dec=-0.4832 rad=12.0 tmin=303609601.0 tmax=303868801.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.59
user 3.16
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/463819/ft2_4FGL_J1218.0-0028_daily_bin248.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/463819/ft1_filteredMKT_4FGL_J1218.0-0028_daily_bin248.fits evtable="EVENTS" outfile="/scratch/kocevski/463819/ft1_filtered_4FGL_J1218.0-0028_daily_bin248.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/463819/ft1_filtered_4FGL_J1218.0-0028_daily_bin248.fits" evtable="EVENTS" scfile=/scratch/kocevski/463819/ft2_4FGL_J1218.0-0028_daily_bin248.fits sctable="SC_DATA" outfile=/scratch/kocevski/463819/ltcube_303609601_303868801_4FGL_J1218.0-0028_daily_bin248.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/463819/ft2_4FGL_J1218.0-0028_daily_bin248.fits
.....................!
real 12.41
user 11.85
sys 0.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/463819/ft1_filtered_4FGL_J1218.0-0028_daily_bin248.fits evtable="EVENTS" scfile=/scratch/kocevski/463819/ft2_4FGL_J1218.0-0028_daily_bin248.fits sctable="SC_DATA" expcube=/scratch/kocevski/463819/ltcube_303609601_303868801_4FGL_J1218.0-0028_daily_bin248.fits outfile=/scratch/kocevski/463819/expmap_303609601_303868801_4FGL_J1218.0-0028_daily_bin248.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/463819/ltcube_303609601_303868801_4FGL_J1218.0-0028_daily_bin248.fits
.....................!
real 194.88
user 189.00
sys 5.13

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/463819/ft1_filtered_4FGL_J1218.0-0028_daily_bin248.fits scfile=/scratch/kocevski/463819/ft2_4FGL_J1218.0-0028_daily_bin248.fits outfile=/scratch/kocevski/463819/cmap_303609601_303868801_4FGL_J1218.0-0028_daily_bin248.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/463819/ft1_filtered_4FGL_J1218.0-0028_daily_bin248.fits scfile=/scratch/kocevski/463819/ft2_4FGL_J1218.0-0028_daily_bin248.fits outfile=/scratch/kocevski/463819/cmap_HighResolution_303609601_303868801_4FGL_J1218.0-0028_daily_bin248.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/463819/ft1_filtered_4FGL_J1218.0-0028_daily_bin248.fits evtable="EVENTS" scfile=/scratch/kocevski/463819/ft2_4FGL_J1218.0-0028_daily_bin248.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/463819/Model_4FGL_J1218.0-0028_daily_bin248.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/463819/ft1_filtered_4FGL_J1218.0-0028_daily_bin248.fits.....................!
real 56.10
user 54.28
sys 1.49

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.1439       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6635       1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.793       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .31607E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.901       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15423E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.6506       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.745       1.0000         .10000E-03   10000.    
    11 'Prefactor '    24.884       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .92151       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1800       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.533       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.8280       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    51.180       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.6970       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.7533       1.0000         .10000E-03   10000.    
    23 'norm      '    4.9935       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .81990       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3062       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .79658       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=   6533.603     FROM MIGRAD    STATUS=CONVERGED    760 CALLS     3847 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.1430        3.5493        .19477E-06   -.52638E-04
   2  Prefactor     .10000E-03    9.0792       -.42264E-07** at limit **
   3  norm          .10000E-03    2.9466       -.38124E-07** at limit **
   4  Prefactor     1.6626        4.0162        .85822E-06   -.12577E-03
   5  Prefactor     24.793        19.664        .41986E-07   -.38750E-05
   6  Prefactor     .10003E-03    201.20       -.84521E-05** at limit **
   7  Prefactor     29.888        15.846        .60472E-07    .32030E-04
   8  Prefactor     .10000E-03    75.862       -.34291E-06** at limit **
   9  Prefactor     6.6496        6.6240        .77271E-07   -.10154E-04
  10  Prefactor     16.735        17.012        .26448E-06    .49716E-05
  11  Prefactor     24.876        30.859       -.65531E-06   -.76654E-04
  12  Prefactor     .86430        15.607       -.46560E-06    .24358E-04
  13  Prefactor     .10000E-03    11.350       -.79182E-07** at limit **
  14  Prefactor     3.1738        21.459        .11407E-04   -.21364E-03
  15  Prefactor     10.534        9.1090       -.12541E-07   -.11132E-04
  16  norm          .10000E-03    .83895        .17512E-07** at limit **
  17  norm          7.8263        4.7815        .14928E-06   -.10036E-03
  18  Prefactor     .10000E-03    11.284        .27070E-06** at limit **
  19  norm          51.145        49.327       -.47323E-05   -.40569E-03
  20  Prefactor     .10000E-03    45.043        .15579E-05** at limit **
  21  norm          2.6962        .79025        .75000E-07   -.40174E-03
  22  Prefactor     9.7499        12.309        .17860E-05   -.18749E-03
  23  norm          4.9935        1.8475        .22611E-07   -.19786E-04
  24  Prefactor     .10000E-03    4.9177       -.50710E-07** at limit **
  25  Prefactor     .10000E-03    15.698       -.13220E-05** at limit **
  26  Prefactor     .10000E-03    26.782       -.16276E-05** at limit **
  27  norm          .10000E-03    18.048        .21193E-05** at limit **
  28  norm          .81989        .26202        .51784E-08   -.11046E-03
  29  Normalizat    1.3068        .23151       -.16567E-05    .45474E-04
  30  Prefactor     .79620        .16362        .25874E-06   -.63556E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.143
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.66259
  Prefactor  = 24.7929
  Prefactor  = 0.000100034
  Prefactor  = 29.8885
  Prefactor  = 0.0001
  Prefactor  = 6.64959
  Prefactor  = 16.7351
  Prefactor  = 24.8757
  Prefactor  = 0.864301
  Prefactor  = 0.0001
  Prefactor  = 3.17376
  Prefactor  = 10.5341
  norm       = 0.0001
  norm       = 7.82633
  Prefactor  = 0.0001
  norm       = 51.1448
  Prefactor  = 0.000100001
  norm       = 2.6962
  Prefactor  = 9.74989
  norm       = 4.99354
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.000100002
  norm       = 0.819888
  Normalizat = 1.30679
  Prefactor  = 0.796197
 **********
 **   18 **HESSE 
 **********

 FCN=   6533.603     FROM HESSE     STATUS=OK           590 CALLS     4437 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.1430        3.5538        .13425E-03   -1.5301    
   2  Prefactor     .10000E-03    9.0837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.9636        .13544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.6626        3.9963        .23667E-03   -1.5450    
   5  Prefactor     24.793        19.664        .80450E-04   -1.4712    
   6  Prefactor     .10003E-03    206.27        .21368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     29.888        15.884        .73271E-04   -1.4614    
   8  Prefactor     .10000E-03    76.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.6496        6.6181        .15560E-03   -1.5192    
  10  Prefactor     16.735        17.033        .97875E-04   -1.4890    
  11  Prefactor     24.876        30.872        .80302E-04   -1.4710    
  12  Prefactor     .86430        76.920        .61651E-02   -1.5522    
  13  Prefactor     .10000E-03    11.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.1738        22.523        .11362E-02   -1.5352    
  15  Prefactor     10.534        9.1041        .12345E-03   -1.5059    
  16  norm          .10000E-03    .84336        .72253E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.8263        4.8225        .11866E-03   -1.5148    
  18  Prefactor     .10000E-03    11.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          51.145        51.850        .56059E-04   -1.4276    
  20  Prefactor     .10000E-03    45.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.6962        .79325        .34522E-04   -1.5380    
  22  Prefactor     9.7499        12.350        .64156E-03   -1.5083    
  23  norm          4.9935        1.8474        .64120E-04   -1.5261    
  24  Prefactor     .10000E-03    4.9428        .17496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    15.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    26.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    18.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .81989        .26184        .22565E-04   -1.5527    
  29  Normalizat    1.3068        .27054        .29330E-03   -.83364    
  30  Prefactor     .79620        .19057        .27119E-03   -.99869    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95806e-09
Minuit parameter uncertainties:
  1  3.55401
  2  5.63183e-06
  3  3.21807e-06
  4  3.99691
  5  19.6696
  6  0.0052856
  7  15.8867
  8  3.47473e-05
  9  6.6188
  10  17.0382
  11  30.8921
  12  16.3281
  13  1.47466e-05
  14  16.9184
  15  9.10525
  16  4.90603e-07
  17  4.82272
  18  4.14338e-05
  19  51.8959
  20  0.000484897
  21  0.793256
  22  12.3534
  23  1.84743
  24  6.79708e-06
  25  0.000244021
  26  0.000389632
  27  0.000391979
  28  0.261839
  29  0.270832
  30  0.190728
Done.

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

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  1.053e+01  9.105e+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:  7.962e-01  1.907e-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.307e+00  2.708e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.95
Ra Dec: 184.514 -0.483
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 3.94e-08 +/- 3.40e-08
Energy Flux (Fixed Index): 1.44e-05 +/- 1.25e-05

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

Saving results to:
/scratch/kocevski/463819/likelihoodResults_303609601_303868801_4FGL_J1218.0-0028_daily_bin248.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) = 6532.76213446
delta logL = 0.840699129876

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6532.66996087
delta logL = 0.932872718352

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.875       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5413       1.0000          .0000       10.000    
     3 'Normalizat'    1.3322       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78347       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=   6532.670     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      245 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.879        13.796        .10052E-03   -.14519E-03
   2  Index         1.5416        .50458        .90979E-02   -.29964E-04
   3  Normalizat    1.3321        .25099        .29101E-03   -.69036E-03
   4  Prefactor     .78350        .18719        .27309E-03   -.61978E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.8789
  Index      = 1.54155
  Normalizat = 1.33212
  Prefactor  = 0.783496
 **********
 **   18 **HESSE 
 **********

 FCN=   6532.670     FROM HESSE     STATUS=OK            25 CALLS      270 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.879        13.912        .20105E-04   -1.4911    
   2  Index         1.5416        .50888        .36392E-03   -.76383    
   3  Normalizat    1.3321        .25117        .58202E-04   -.82613    
   4  Prefactor     .78350        .18734        .54618E-04   -1.0034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.71267e-10
Minuit parameter uncertainties:
  1  13.9151
  2  0.510575
  3  0.251406
  4  0.187491
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/463819': 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) = 6532.66996075
delta logL = 0.932872839878

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  1.588e+01  1.392e+01  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  1.542e+00  5.106e-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:  7.835e-01  1.875e-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.332e+00  2.514e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.83
Ra Dec: 184.514 -0.483
Photon Index (Free Index): 1.54 +/- 0.51
Photon Flux (Free Index): 1.76e-08 +/- 1.99e-08
Energy Flux (Free Index): 4.84e-05 +/- 6.14e-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/463819/cmap_HighResolution_303609601_303868801_4FGL_J1218.0-0028_daily_bin248.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.70e-03', comment='SUCCESS', photon_flux='3.94e-08', energy_flux2='4.84e-05', photon_flux_error='3.40e-08', dlogl='9.33e-01', energy_flux='1.44e-05', photon_flux2='1.76e-08', job_status='DONE', time_completed='2021-09-05 06:51:38.641497', photon_index_error2='0.51', photon_index2='1.54', ts='3.95', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='6.14e-05', EG='1.31', time_epoch_completed='1630849898.64', return_code='0', job_id='463819', GAL2='0.78', EG2='1.33', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='1.99e-08', ts2='5.83', photon_index='2.32' WHERE bin_id='248' AND source_name='4FGL J1218.0-0028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:51:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 463819: <4FGL_J1218.0-0028_daily_bin248> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1218.0-0028_daily_bin248 184.514 -0.4832 303609601 303868801 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 :                                   912.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            941 sec.

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

