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


Performing analysis on: 4FGL_J1218.0-0028_daily_bin1084
RA = 184.514, Dec = -0.4832
tmin = 520300801, tmax = 520560001
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='472896', job_status='RUN', time_executed='2021-09-05 07:04:01.310387', time_epoch_executed='1630850641.31' WHERE source_name='4FGL J1218.0-0028' and cadence='daily' and bin_id='1084'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/472896

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/472896/ft1_4FGL_J1218.0-0028_daily_bin1084.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/472896/ft2_4FGL_J1218.0-0028_daily_bin1084.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/472896/ft1_4FGL_J1218.0-0028_daily_bin1084.fits outfile=/scratch/kocevski/472896/ft1_filteredMKT_4FGL_J1218.0-0028_daily_bin1084.fits ra=184.514 dec=-0.4832 rad=12.0 tmin=520300801.0 tmax=520560001.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 9.20
user 5.84
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/472896/ft1_filtered_4FGL_J1218.0-0028_daily_bin1084.fits" evtable="EVENTS" scfile=/scratch/kocevski/472896/ft2_4FGL_J1218.0-0028_daily_bin1084.fits sctable="SC_DATA" outfile=/scratch/kocevski/472896/ltcube_520300801_520560001_4FGL_J1218.0-0028_daily_bin1084.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/472896/ft2_4FGL_J1218.0-0028_daily_bin1084.fits
.....................!
real 13.22
user 11.63
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/472896/ft1_filtered_4FGL_J1218.0-0028_daily_bin1084.fits evtable="EVENTS" scfile=/scratch/kocevski/472896/ft2_4FGL_J1218.0-0028_daily_bin1084.fits sctable="SC_DATA" expcube=/scratch/kocevski/472896/ltcube_520300801_520560001_4FGL_J1218.0-0028_daily_bin1084.fits outfile=/scratch/kocevski/472896/expmap_520300801_520560001_4FGL_J1218.0-0028_daily_bin1084.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/472896/ltcube_520300801_520560001_4FGL_J1218.0-0028_daily_bin1084.fits
.....................!
real 197.99
user 185.56
sys 4.48

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/472896/ft1_filtered_4FGL_J1218.0-0028_daily_bin1084.fits scfile=/scratch/kocevski/472896/ft2_4FGL_J1218.0-0028_daily_bin1084.fits outfile=/scratch/kocevski/472896/cmap_520300801_520560001_4FGL_J1218.0-0028_daily_bin1084.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 1.09
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/472896/ft1_filtered_4FGL_J1218.0-0028_daily_bin1084.fits scfile=/scratch/kocevski/472896/ft2_4FGL_J1218.0-0028_daily_bin1084.fits outfile=/scratch/kocevski/472896/cmap_HighResolution_520300801_520560001_4FGL_J1218.0-0028_daily_bin1084.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.80
user 0.38
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/472896/ft1_filtered_4FGL_J1218.0-0028_daily_bin1084.fits evtable="EVENTS" scfile=/scratch/kocevski/472896/ft2_4FGL_J1218.0-0028_daily_bin1084.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/472896/Model_4FGL_J1218.0-0028_daily_bin1084.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/472896/ft1_filtered_4FGL_J1218.0-0028_daily_bin1084.fits.....................!
real 43.21
user 40.30
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5019       1.0000         .10000E-03   10000.    
     2 'Prefactor '    26.654       1.0000         .10000E-03   10000.    
     3 'norm      '    .11775E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.7336       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.433       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10274E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.359       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    66.969       1.0000         .10000E-03   10000.    
    13 'Prefactor '    60.944       1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.688       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .89183       1.0000         .10000E-03   10000.    
    17 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.4875       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.2362       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    6.4136       1.0000         .10000E-03   10000.    
    28 'norm      '    3.4119       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2070       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .87428       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=   4087.714     FROM MIGRAD    STATUS=CONVERGED    786 CALLS     3973 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5011        2.9980       -.56836E-07   -.37930E-05
   2  Prefactor     26.644        29.883        .11674E-04   -.23164E-05
   3  norm          .10000E-03    7.1522       -.18498E-06** at limit **
   4  Prefactor     4.7322        5.5559       -.32374E-07   -.24803E-03
   5  Prefactor     .10000E-03    23.540       -.13616E-04** at limit **
   6  Prefactor     9.7654        273.98       -.11079E-03   -.79652E-06
   7  Prefactor     .10000E-03    11.281       -.72593E-05** at limit **
   8  Prefactor     .10000E-03    21.409        .68094E-05** at limit **
   9  Prefactor     .10002E-03    18.342       -.11463E-04** at limit **
  10  Prefactor     12.348        17.542        .41088E-06   -.54549E-04
  11  Prefactor     .10000E-03    21.078        .67798E-05** at limit **
  12  Prefactor     66.971        56.621        .66924E-04    .74058E-04
  13  Prefactor     60.943        35.525       -.28508E-04   -.11485E-03
  14  Prefactor     25.686        25.733       -.42785E-06   -.90156E-05
  15  Prefactor     .10000E-03    13.366        .77150E-05** at limit **
  16  norm          .88803        2.8081        .17786E-05    .65614E-03
  17  norm          .10000E-03    1.7819       -.12332E-06** at limit **
  18  Prefactor     .10000E-03    10.509        .13943E-06** at limit **
  19  norm          .10000E-03    21.373        .67545E-05** at limit **
  20  Prefactor     .10000E-03    86.540       -.23001E-05** at limit **
  21  norm          4.4871        1.1396       -.53233E-07   -.16032E-02
  22  Prefactor     .10000E-03    11.567        .12215E-04** at limit **
  23  norm          1.2357        2.5650       -.48579E-07   -.71048E-03
  24  Prefactor     .10000E-03    12.538       -.10566E-04** at limit **
  25  Prefactor     .10000E-03    37.845        .50197E-05** at limit **
  26  Prefactor     .10000E-03    43.265       -.25678E-05** at limit **
  27  norm          6.4107        67.101       -.45833E-04    .22823E-04
  28  norm          3.4115        .63325        .11451E-06    .20563E-03
  29  Normalizat    1.2078        .30293       -.55576E-05    .20720E-03
  30  Prefactor     .87390        .21664        .39042E-05   -.67249E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.50113
  Prefactor  = 26.6444
  norm       = 0.0001
  Prefactor  = 4.73223
  Prefactor  = 0.0001
  Prefactor  = 9.76536
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  Prefactor  = 12.3477
  Prefactor  = 0.0001
  Prefactor  = 66.9708
  Prefactor  = 60.9435
  Prefactor  = 25.6859
  Prefactor  = 0.0001
  norm       = 0.888027
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.48712
  Prefactor  = 0.0001
  norm       = 1.23567
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.41066
  norm       = 3.41153
  Normalizat = 1.20785
  Prefactor  = 0.873896
 **********
 **   18 **HESSE 
 **********

 FCN=   4087.714     FROM HESSE     STATUS=OK           586 CALLS     4559 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5011        2.9990        .87607E-04   -1.5284    
   2  Prefactor     26.644        29.887        .77595E-04   -1.4675    
   3  norm          .10000E-03    19.682        .32049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.7322        5.3930        .15037E-03   -1.5273    
   5  Prefactor     .10000E-03    23.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.7654        276.49        .12405E-03   -1.5083    
   7  Prefactor     .10000E-03    11.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    18.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.348        17.566        .11395E-03   -1.5005    
  11  Prefactor     .10000E-03    21.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     66.971        56.763        .24523E-03   -1.4069    
  13  Prefactor     60.943        35.466        .25699E-03   -1.4145    
  14  Prefactor     25.686        25.743        .79038E-04   -1.4694    
  15  Prefactor     .10000E-03    13.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .88803        2.5615        .17989E-02   -1.5520    
  17  norm          .10000E-03    1.7947        .83273E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    21.375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    86.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.4871        1.1417        .31166E-04   -1.5284    
  22  Prefactor     .10000E-03    11.638        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.2357        2.5294        .13508E-03   -1.5486    
  24  Prefactor     .10000E-03    12.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    37.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    43.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          6.4107        67.133        .15848E-03   -1.5202    
  28  norm          3.4115        .63507        .21010E-04   -1.5339    
  29  Normalizat    1.2078        .35820        .30692E-03   -.86361    
  30  Prefactor     .87390        .25358        .27053E-03   -.97059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20328e-09
Minuit parameter uncertainties:
  1  2.99912
  2  29.9043
  3  1.14219e-05
  4  5.39356
  5  7.2064e-05
  6  104.46
  7  8.13895e-05
  8  1.34496e-05
  9  0.001169
  10  17.5731
  11  1.57995e-05
  12  56.8085
  13  35.4783
  14  25.7536
  15  0.000121848
  16  2.5618
  17  3.53219e-05
  18  5.64172e-06
  19  3.20403e-05
  20  3.18604e-05
  21  1.14171
  22  3.73681e-05
  23  2.52963
  24  0.000297394
  25  9.5632e-05
  26  3.82837e-05
  27  41.5503
  28  0.63507
  29  0.358935
  30  0.253925
Done.

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

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  1.218e-04  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.321e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
327        Scale:  1.446e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
608    Prefactor:  8.739e-01  2.539e-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.208e+00  3.589e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/472896/likelihoodResults_520300801_520560001_4FGL_J1218.0-0028_daily_bin1084.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4087.714041
delta logL = -0.000354281400178

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4087.71368717
delta logL = -4.52528183814e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10633E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3169       1.0000          .0000       10.000    
     3 'Normalizat'    1.2076       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87406       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=   4087.714     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.556        .90712E-02** at limit **
   2  Index         2.3129        5.0395        .50000        .25091E-05
   3  Normalizat    1.2078        .66328E-02    .69370E-01    .90779E-05
   4  Prefactor     .87390        .50875E-02    .44674E-01    .10401E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.31286
  Normalizat = 1.20784
  Prefactor  = 0.873902
 **********
 **   18 **HESSE 
 **********

 FCN=   4087.714     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      240 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    90.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3129        5.3944        .50000       -.56738    
   3  Normalizat    1.2078        .18624E-01    .30693E-03   -.86361    
   4  Prefactor     .87390        .14296E-01    .27053E-03   -.97059    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.10795e-08
Minuit parameter uncertainties:
  1  3.3193e-05
  2  246.053
  3  0.0186242
  4  0.0142965
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/472896': 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) = 4087.71368671
delta logL = 5.38739186595e-09

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  1.000e-04  3.319e-05  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  2.313e+00  2.461e+02  0.000e+00  1.000e+01 (-1.000e+00)
327        Scale:  1.446e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
608    Prefactor:  8.739e-01  1.430e-02  0.000e+00  1.000e+01 ( 1.000e+00)
609        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
610        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
607   Normalization:  1.208e+00  1.862e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/472896/cmap_HighResolution_520300801_520560001_4FGL_J1218.0-0028_daily_bin1084.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', job_status='DONE', photon_flux_upper_limit='1.36e-07', time_completed='2021-09-05 07:16:20.779113', job_id='472896', GAL2='0.87', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1630851380.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='5.39e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.32' WHERE bin_id='1084' AND source_name='4FGL J1218.0-0028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 07:16:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 472896: <4FGL_J1218.0-0028_daily_bin1084> in cluster <slac> Done

Job <4FGL_J1218.0-0028_daily_bin1084> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 07:00:51 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 07:00:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 07:00:53 2021
Terminated at Sun Sep  5 07:16:21 2021
Results reported at Sun Sep  5 07:16:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1218.0-0028_daily_bin1084 184.514 -0.4832 520300801 520560001 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 :                                   715.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             280.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            930 sec.

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

