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


Performing analysis on: 4FGL_J1218.0-0028_daily_bin893
RA = 184.514, Dec = -0.4832
tmin = 470793601, tmax = 471052801
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='641912', job_status='RUN', time_executed='2021-09-05 15:25:35.276615', time_epoch_executed='1630880735.28' WHERE source_name='4FGL J1218.0-0028' and cadence='daily' and bin_id='893'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/641912

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/641912/ft1_4FGL_J1218.0-0028_daily_bin893.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/641912/ft2_4FGL_J1218.0-0028_daily_bin893.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/641912/ft1_4FGL_J1218.0-0028_daily_bin893.fits outfile=/scratch/kocevski/641912/ft1_filteredMKT_4FGL_J1218.0-0028_daily_bin893.fits ra=184.514 dec=-0.4832 rad=12.0 tmin=470793601.0 tmax=471052801.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 2.90
user 2.69
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/641912/ft1_filtered_4FGL_J1218.0-0028_daily_bin893.fits" evtable="EVENTS" scfile=/scratch/kocevski/641912/ft2_4FGL_J1218.0-0028_daily_bin893.fits sctable="SC_DATA" outfile=/scratch/kocevski/641912/ltcube_470793601_471052801_4FGL_J1218.0-0028_daily_bin893.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/641912/ft2_4FGL_J1218.0-0028_daily_bin893.fits
.....................!
real 10.71
user 10.38
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/641912/ft1_filtered_4FGL_J1218.0-0028_daily_bin893.fits evtable="EVENTS" scfile=/scratch/kocevski/641912/ft2_4FGL_J1218.0-0028_daily_bin893.fits sctable="SC_DATA" expcube=/scratch/kocevski/641912/ltcube_470793601_471052801_4FGL_J1218.0-0028_daily_bin893.fits outfile=/scratch/kocevski/641912/expmap_470793601_471052801_4FGL_J1218.0-0028_daily_bin893.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/641912/ltcube_470793601_471052801_4FGL_J1218.0-0028_daily_bin893.fits
.....................!
real 153.97
user 149.62
sys 4.04

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/641912/ft1_filtered_4FGL_J1218.0-0028_daily_bin893.fits scfile=/scratch/kocevski/641912/ft2_4FGL_J1218.0-0028_daily_bin893.fits outfile=/scratch/kocevski/641912/cmap_470793601_471052801_4FGL_J1218.0-0028_daily_bin893.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.48
user 0.32
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/641912/ft1_filtered_4FGL_J1218.0-0028_daily_bin893.fits scfile=/scratch/kocevski/641912/ft2_4FGL_J1218.0-0028_daily_bin893.fits outfile=/scratch/kocevski/641912/cmap_HighResolution_470793601_471052801_4FGL_J1218.0-0028_daily_bin893.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.48
user 0.34
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/641912/ft1_filtered_4FGL_J1218.0-0028_daily_bin893.fits evtable="EVENTS" scfile=/scratch/kocevski/641912/ft2_4FGL_J1218.0-0028_daily_bin893.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/641912/Model_4FGL_J1218.0-0028_daily_bin893.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/641912/ft1_filtered_4FGL_J1218.0-0028_daily_bin893.fits.....................!
real 53.02
user 51.88
sys 0.97

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8380       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0832       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.0197       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    75.962       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.306       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    40.442       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.858       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.2830       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.9976       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .68824       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.9522       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.8718       1.0000         .10000E-03   10000.    
    28 'norm      '    2.4326       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.6714       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .72172       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=   7592.599     FROM MIGRAD    STATUS=CONVERGED    738 CALLS     3948 TOTAL
                     EDM=   .54E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8378        2.6029        .47719E-07   -.20508E-04
   2  Prefactor     .10000E-03    16.272       -.65898E-07** at limit **
   3  norm          .10000E-03    1.6107        .49084E-08** at limit **
   4  Prefactor     4.0832        3.4921        .94661E-07   -.15928E-04
   5  Prefactor     .10000E-03    31.870        .30380E-06** at limit **
   6  Prefactor     .10000E-03    33.336        .78556E-07** at limit **
   7  Prefactor     9.0194        10.294        .11309E-06   -.47689E-05
   8  Prefactor     .10000E-03    14.403       -.31629E-07** at limit **
   9  Prefactor     .10000E-03    3.3466        .55664E-07** at limit **
  10  Prefactor     75.960        22.861        .38312E-07   -.27401E-04
  11  Prefactor     16.295        26.436       -.10414E-06   -.37560E-04
  12  Prefactor     .10000E-03    13.443        .15253E-06** at limit **
  13  Prefactor     40.443        35.538        .18252E-06   -.50850E-05
  14  Prefactor     .10000E-03    9.1410        .37052E-07** at limit **
  15  Prefactor     19.855        16.949        .50194E-07   -.22679E-04
  16  norm          .10000E-03    1.2975       -.10426E-07** at limit **
  17  norm          .10000E-03    1.4182        .58219E-07** at limit **
  18  Prefactor     .10000E-03    8.7405       -.17518E-08** at limit **
  19  norm          .10000E-03    22.091       -.48339E-10** at limit **
  20  Prefactor     .10000E-03    33.846        .21131E-07** at limit **
  21  norm          3.2830        .81210       -.88448E-08   -.28711E-03
  22  Prefactor     .10000E-03    8.2446       -.17910E-06** at limit **
  23  norm          2.9977        1.7082        .25863E-07   -.41219E-04
  24  Prefactor     .69543        12.232        .42548E-05   -.59233E-04
  25  Prefactor     5.9334        28.392       -.83530E-06   -.49679E-04
  26  Prefactor     .10000E-03    24.177        .99337E-08** at limit **
  27  norm          1.8430        60.296       -.25332E-05   -.54011E-04
  28  norm          2.4325        .39365       -.16018E-07   -.47225E-03
  29  Normalizat    1.6716        .23281       -.46350E-06   -.60408E-04
  30  Prefactor     .72157        .16523       -.19616E-06   -.68972E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.83783
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.08319
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.01942
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 75.9597
  Prefactor  = 16.2954
  Prefactor  = 0.0001
  Prefactor  = 40.4425
  Prefactor  = 0.0001
  Prefactor  = 19.8552
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.28296
  Prefactor  = 0.0001
  norm       = 2.99767
  Prefactor  = 0.695433
  Prefactor  = 5.9334
  Prefactor  = 0.0001
  norm       = 1.84297
  norm       = 2.43253
  Normalizat = 1.6716
  Prefactor  = 0.721573
 **********
 **   18 **HESSE 
 **********

 FCN=   7592.599     FROM HESSE     STATUS=OK           584 CALLS     4532 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8378        2.6043        .11207E-03   -1.5316    
   2  Prefactor     .10000E-03    16.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.6121        .10798E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.0832        3.4888        .14488E-03   -1.5304    
   5  Prefactor     .10000E-03    32.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    33.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.0194        10.297        .13345E-03   -1.5107    
   8  Prefactor     .10000E-03    14.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.3563        .15566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     75.960        22.928        .46071E-04   -1.3963    
  11  Prefactor     16.295        26.455        .99185E-04   -1.4900    
  12  Prefactor     .10000E-03    13.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     40.443        35.603        .63031E-04   -1.4435    
  14  Prefactor     .10000E-03    9.1463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.855        16.902        .89881E-04   -1.4816    
  16  norm          .10000E-03    1.3018        .96615E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.4300        .10124E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.7432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    22.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    33.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.2830        .81574        .35581E-04   -1.5346    
  22  Prefactor     .10000E-03    8.3052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.9977        1.7056        .81733E-04   -1.5362    
  24  Prefactor     .69543        12.289        .48067E-03   -1.5541    
  25  Prefactor     5.9334        28.550        .16459E-03   -1.5221    
  26  Prefactor     .10000E-03    24.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.8430        62.192        .30441E-03   -1.5436    
  28  norm          2.4325        .39450        .21139E-04   -1.5396    
  29  Normalizat    1.6716        .27641        .29521E-03   -.73064    
  30  Prefactor     .72157        .19343        .31541E-03   -1.0269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09851e-10
Minuit parameter uncertainties:
  1  2.60433
  2  4.15231e-05
  3  2.9498e-07
  4  3.48894
  5  5.28374e-05
  6  2.07308e-05
  7  10.299
  8  4.91443e-06
  9  7.94599e-07
  10  22.9306
  11  26.4738
  12  3.49364e-05
  13  35.6213
  14  2.10858e-07
  15  16.9056
  16  2.38425e-07
  17  1.15191e-06
  18  7.13302e-06
  19  2.12714e-05
  20  5.86559e-06
  21  0.815741
  22  7.18182e-06
  23  1.7056
  24  5.84773
  25  26.0504
  26  1.48931e-05
  27  21.4356
  28  0.394496
  29  0.276664
  30  0.193608
Done.

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

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  1.986e+01  1.691e+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:  7.216e-01  1.936e-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.672e+00  2.767e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.36
Ra Dec: 184.514 -0.483
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 7.42e-08 +/- 6.31e-08
Energy Flux (Fixed Index): 2.72e-05 +/- 2.31e-05

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

Saving results to:
/scratch/kocevski/641912/likelihoodResults_470793601_471052801_4FGL_J1218.0-0028_daily_bin893.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) = 7589.75335486
delta logL = 2.84554716127

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7589.69186449
delta logL = 2.9070375313

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2869       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1463       1.0000          .0000       10.000    
     3 'Normalizat'    1.4718       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82187       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=   7589.692     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      285 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3007        5.8822        .84830E-02   -.88279E-03
   2  Index         4.1417        1.6446        .64729E-01    .19857E-04
   3  Normalizat    1.4716        .76631E-01    .69793E-01    .11633E-03
   4  Prefactor     .82193        .56451E-01    .67146E-01    .14302E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.30073
  Index      = 4.1417
  Normalizat = 1.47163
  Prefactor  = 0.821931
 **********
 **   18 **HESSE 
 **********

 FCN=   7589.692     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      318 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3007        9.8956        .37910E-04   -1.5480    
   2  Index         4.1417        2.2971        .26577E-02   -.17251    
   3  Normalizat    1.4716        .25196        .30876E-03   -.78579    
   4  Prefactor     .82193        .18518        .29705E-03   -.98925    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.07177e-10
Minuit parameter uncertainties:
  1  7.17677
  2  2.38971
  3  0.252175
  4  0.185323
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/641912': 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) = 7589.69185248
delta logL = 2.90704954032

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  1.301e+00  7.177e+00  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  4.142e+00  2.390e+00  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:  8.219e-01  1.853e-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.472e+00  2.522e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.77
Ra Dec: 184.514 -0.483
Photon Index (Free Index): 4.14 +/- 2.39
Photon Flux (Free Index): 2.66e-07 +/- 1.12e-07
Energy Flux (Free Index): 3.89e-05 +/- 1.82e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/641912/cmap_HighResolution_470793601_471052801_4FGL_J1218.0-0028_daily_bin893.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.50e-02', comment='SUCCESS', photon_flux='7.42e-08', energy_flux2='3.89e-05', photon_flux_error='6.31e-08', dlogl='2.91e+00', energy_flux='2.72e-05', photon_flux2='2.66e-07', job_status='DONE', time_completed='2021-09-05 15:39:16.659629', photon_index_error2='2.39', photon_index2='4.14', ts='2.36', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='1.96e-07', energy_flux_error2='1.82e-05', EG='1.67', time_epoch_completed='1630881556.66', return_code='0', job_id='641912', GAL2='0.82', EG2='1.47', return_code2='102', energy_flux_error='2.31e-05', photon_flux_error2='1.12e-07', ts2='8.77', photon_index='2.32' WHERE bin_id='893' AND source_name='4FGL J1218.0-0028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 15:39:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 641912: <4FGL_J1218.0-0028_daily_bin893> in cluster <slac> Done

Job <4FGL_J1218.0-0028_daily_bin893> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 15:25:20 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 15:25:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 15:25:22 2021
Terminated at Sun Sep  5 15:39:16 2021
Results reported at Sun Sep  5 15:39:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1218.0-0028_daily_bin893 184.514 -0.4832 470793601 471052801 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 :                                   821.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            836 sec.

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

