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


Performing analysis on: 4FGL_J1218.0-0028_daily_bin814
RA = 184.514, Dec = -0.4832
tmin = 450316801, tmax = 450576001
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='469431', job_status='RUN', time_executed='2021-09-05 06:53:46.129475', time_epoch_executed='1630850026.13' WHERE source_name='4FGL J1218.0-0028' and cadence='daily' and bin_id='814'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/469431

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/469431/ft1_4FGL_J1218.0-0028_daily_bin814.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/469431/ft2_4FGL_J1218.0-0028_daily_bin814.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/469431/ft1_4FGL_J1218.0-0028_daily_bin814.fits outfile=/scratch/kocevski/469431/ft1_filteredMKT_4FGL_J1218.0-0028_daily_bin814.fits ra=184.514 dec=-0.4832 rad=12.0 tmin=450316801.0 tmax=450576001.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.13
user 2.76
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/469431/ft2_4FGL_J1218.0-0028_daily_bin814.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/469431/ft1_filteredMKT_4FGL_J1218.0-0028_daily_bin814.fits evtable="EVENTS" outfile="/scratch/kocevski/469431/ft1_filtered_4FGL_J1218.0-0028_daily_bin814.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.43
user 0.26
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/469431/ft1_filtered_4FGL_J1218.0-0028_daily_bin814.fits" evtable="EVENTS" scfile=/scratch/kocevski/469431/ft2_4FGL_J1218.0-0028_daily_bin814.fits sctable="SC_DATA" outfile=/scratch/kocevski/469431/ltcube_450316801_450576001_4FGL_J1218.0-0028_daily_bin814.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/469431/ft2_4FGL_J1218.0-0028_daily_bin814.fits
.....................!
real 8.82
user 8.51
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/469431/ft1_filtered_4FGL_J1218.0-0028_daily_bin814.fits evtable="EVENTS" scfile=/scratch/kocevski/469431/ft2_4FGL_J1218.0-0028_daily_bin814.fits sctable="SC_DATA" expcube=/scratch/kocevski/469431/ltcube_450316801_450576001_4FGL_J1218.0-0028_daily_bin814.fits outfile=/scratch/kocevski/469431/expmap_450316801_450576001_4FGL_J1218.0-0028_daily_bin814.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/469431/ltcube_450316801_450576001_4FGL_J1218.0-0028_daily_bin814.fits
.....................!
real 141.03
user 137.25
sys 3.54

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/469431/ft1_filtered_4FGL_J1218.0-0028_daily_bin814.fits scfile=/scratch/kocevski/469431/ft2_4FGL_J1218.0-0028_daily_bin814.fits outfile=/scratch/kocevski/469431/cmap_450316801_450576001_4FGL_J1218.0-0028_daily_bin814.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.44
user 0.28
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/469431/ft1_filtered_4FGL_J1218.0-0028_daily_bin814.fits scfile=/scratch/kocevski/469431/ft2_4FGL_J1218.0-0028_daily_bin814.fits outfile=/scratch/kocevski/469431/cmap_HighResolution_450316801_450576001_4FGL_J1218.0-0028_daily_bin814.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.44
user 0.29
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/469431/ft1_filtered_4FGL_J1218.0-0028_daily_bin814.fits evtable="EVENTS" scfile=/scratch/kocevski/469431/ft2_4FGL_J1218.0-0028_daily_bin814.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/469431/Model_4FGL_J1218.0-0028_daily_bin814.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/469431/ft1_filtered_4FGL_J1218.0-0028_daily_bin814.fits.....................!
real 42.91
user 41.63
sys 0.93

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/469431/ft1_filtered_4FGL_J1218.0-0028_daily_bin814.fits', '/scratch/kocevski/469431/ft2_4FGL_J1218.0-0028_daily_bin814.fits', expMap='/scratch/kocevski/469431/expmap_450316801_450576001_4FGL_J1218.0-0028_daily_bin814.fits', expCube='/scratch/kocevski/469431/ltcube_450316801_450576001_4FGL_J1218.0-0028_daily_bin814.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/469431/Model_4FGL_J1218.0-0028_daily_bin814.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/469431/ft1_filtered_4FGL_J1218.0-0028_daily_bin814.fits
Spacecraft file(s): /scratch/kocevski/469431/ft2_4FGL_J1218.0-0028_daily_bin814.fits
Exposure map: /scratch/kocevski/469431/expmap_450316801_450576001_4FGL_J1218.0-0028_daily_bin814.fits
Exposure cube: /scratch/kocevski/469431/ltcube_450316801_450576001_4FGL_J1218.0-0028_daily_bin814.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/469431/Model_4FGL_J1218.0-0028_daily_bin814.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6642.95780311

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .43427       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.586       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.3171       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.160       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.3452       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.188       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.0603       1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.480       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.1905       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.6500       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    11.908       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10691E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .73166       1.0000         .10000E-03   10000.    
    23 'norm      '    .33016       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.6577       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    44.800       1.0000         .10000E-03   10000.    
    27 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    1.0176       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .92004       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0770       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=   6642.850     FROM MIGRAD    STATUS=CONVERGED    765 CALLS     3417 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .43413        2.3599        .16742E-05   -.23905E-03
   2  Prefactor     10.573        19.967        .82167E-07   -.21839E-04
   3  norm          .10000E-03    1.3440        .50152E-08** at limit **
   4  Prefactor     5.3165        3.3578        .12904E-06   -.46028E-04
   5  Prefactor     .10000E-03    9.2821       -.28916E-06** at limit **
   6  Prefactor     14.145        77.174       -.25892E-05   -.24989E-04
   7  Prefactor     .10000E-03    2.7734        .12708E-08** at limit **
   8  Prefactor     .10000E-03    13.537        .41525E-06** at limit **
   9  Prefactor     4.3445        5.4968        .11117E-05   -.20250E-03
  10  Prefactor     16.187        12.731        .23656E-06   -.12942E-04
  11  Prefactor     .10000E-03    9.1724        .28831E-06** at limit **
  12  Prefactor     .10000E-03    14.552        .44901E-06** at limit **
  13  Prefactor     7.0601        10.209        .66403E-06   -.65955E-04
  14  Prefactor     29.479        24.678        .15459E-06   -.18237E-04
  15  Prefactor     7.1912        8.0258       -.21072E-06   -.32703E-04
  16  norm          .10000E-03    .82620        .25846E-07** at limit **
  17  norm          6.6490        5.4249       -.85673E-06   -.13954E-03
  18  Prefactor     .10000E-03    19.382       -.10355E-05** at limit **
  19  norm          11.946        79.325        .71524E-05    .45928E-04
  20  Prefactor     .10000E-03    77.748       -.33600E-07** at limit **
  21  norm          .10000E-03    .24437        .55719E-07** at limit **
  22  Prefactor     .69426        8.5642        .34467E-06    .16977E-04
  23  norm          .32993        1.2498        .89269E-06   -.12249E-03
  24  Prefactor     6.6582        8.1546       -.26148E-07   -.57533E-04
  25  Prefactor     .10000E-03    12.323       -.46778E-06** at limit **
  26  Prefactor     44.791        35.629       -.56211E-06   -.56964E-04
  27  norm          .10000E-03    24.126        .80489E-06** at limit **
  28  norm          1.0176        .28362        .21653E-07   -.29992E-03
  29  Normalizat    .92013        .20566       -.22898E-06   -.18784E-03
  30  Prefactor     1.0770        .15510       -.13780E-05   -.10274E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.434129
  Prefactor  = 10.5727
  norm       = 0.0001
  Prefactor  = 5.31652
  Prefactor  = 0.0001
  Prefactor  = 14.1446
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.3445
  Prefactor  = 16.1873
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.06008
  Prefactor  = 29.4792
  Prefactor  = 7.19118
  norm       = 0.0001
  norm       = 6.649
  Prefactor  = 0.0001
  norm       = 11.9459
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.694264
  norm       = 0.329926
  Prefactor  = 6.65819
  Prefactor  = 0.0001
  Prefactor  = 44.7908
  norm       = 0.0001
  norm       = 1.01758
  Normalizat = 0.920134
  Prefactor  = 1.07702
 **********
 **   18 **HESSE 
 **********

 FCN=   6642.850     FROM HESSE     STATUS=OK           592 CALLS     4009 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .43413        2.4497        .23988E-03   -1.5576    
   2  Prefactor     10.573        19.956        .12315E-03   -1.5058    
   3  norm          .10000E-03    1.3456        .92256E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.3165        3.3556        .11377E-03   -1.5247    
   5  Prefactor     .10000E-03    9.2991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.145        77.915        .10644E-03   -1.4956    
   7  Prefactor     .10000E-03    2.7747        .13256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.3445        5.5093        .96618E-03   -1.5291    
  10  Prefactor     16.187        12.746        .99545E-04   -1.4903    
  11  Prefactor     .10000E-03    9.1792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.0601        10.209        .75487E-03   -1.5176    
  14  Prefactor     29.479        24.673        .73790E-04   -1.4622    
  15  Prefactor     7.1912        7.9825        .14959E-03   -1.5172    
  16  norm          .10000E-03    .83145        .72227E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.6490        5.5044        .11910E-03   -1.5192    
  18  Prefactor     .10000E-03    19.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          11.946        83.377        .11609E-03   -1.5017    
  20  Prefactor     .10000E-03    77.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.2711        .71730E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .69426        30.048        .43336E-02   -1.5541    
  23  norm          .32993        1.2540        .16759E-03   -1.5593    
  24  Prefactor     6.6582        8.0759        .15552E-03   -1.5192    
  25  Prefactor     .10000E-03    12.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     44.791        35.778        .59899E-04   -1.4368    
  27  norm          .10000E-03    24.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          1.0176        .28384        .21678E-04   -1.5506    
  29  Normalizat    .92013        .23599        .30459E-03   -.95756    
  30  Prefactor     1.0770        .17827        .22244E-03   -.90204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.11394e-10
Minuit parameter uncertainties:
  1  2.06238
  2  19.9682
  3  1.4154e-08
  4  3.35568
  5  1.90783e-05
  6  66.5285
  7  1.76702e-06
  8  3.30424e-05
  9  5.50998
  10  12.748
  11  1.87689e-05
  12  5.27609e-05
  13  10.2111
  14  24.6816
  15  7.98371
  16  1.77308e-06
  17  5.50485
  18  7.62593e-05
  19  63.2451
  20  2.42069e-05
  21  0.000190546
  22  9.13901
  23  1.2541
  24  8.07727
  25  3.13409e-05
  26  35.7954
  27  9.90186e-05
  28  0.283842
  29  0.236258
  30  0.17837
Done.

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

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  7.191e+00  7.984e+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.077e+00  1.784e-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:  9.201e-01  2.363e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.81
Ra Dec: 184.514 -0.483
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 2.69e-08 +/- 2.98e-08
Energy Flux (Fixed Index): 9.84e-06 +/- 1.09e-05

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

Saving results to:
/scratch/kocevski/469431/likelihoodResults_450316801_450576001_4FGL_J1218.0-0028_daily_bin814.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) = 6642.63003735
delta logL = 0.220109931619

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6642.61383255
delta logL = 0.236314735433

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7890       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7312       1.0000          .0000       10.000    
     3 'Normalizat'    .93574       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0713       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=   6642.614     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      241 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7893        10.040        .13520E-03   -.11689E-02
   2  Index         1.7312        .80028        .12251E-01   -.23246E-03
   3  Normalizat    .93571        .22135        .30229E-03    .28721E-03
   4  Prefactor     1.0713        .17433        .22293E-03    .70185E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.78934
  Index      = 1.73116
  Normalizat = 0.935707
  Prefactor  = 1.07133
 **********
 **   18 **HESSE 
 **********

 FCN=   6642.614     FROM HESSE     STATUS=OK            23 CALLS      264 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7893        10.113        .27041E-04   -1.5115    
   2  Index         1.7312        .80612        .49003E-03   -.71255    
   3  Normalizat    .93571        .22150        .12092E-04   -.95217    
   4  Prefactor     1.0713        .17447        .44587E-04   -.90388    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.61871e-09
Minuit parameter uncertainties:
  1  10.1146
  2  0.812351
  3  0.221712
  4  0.174563
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/469431': 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) = 6642.61383253
delta logL = 0.236314752484

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  8.789e+00  1.011e+01  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  1.731e+00  8.124e-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.071e+00  1.746e-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:  9.357e-01  2.217e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.28
Ra Dec: 184.514 -0.483
Photon Index (Free Index): 1.73 +/- 0.81
Photon Flux (Free Index): 1.22e-08 +/- 2.13e-08
Energy Flux (Free Index): 1.80e-05 +/- 2.98e-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/469431/cmap_HighResolution_450316801_450576001_4FGL_J1218.0-0028_daily_bin814.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.26e-03', comment='SUCCESS', photon_flux='2.69e-08', energy_flux2='1.80e-05', photon_flux_error='2.98e-08', dlogl='2.36e-01', energy_flux='9.84e-06', photon_flux2='1.22e-08', job_status='DONE', time_completed='2021-09-05 07:04:16.415607', photon_index_error2='0.81', photon_index2='1.73', ts='1.81', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.07e-07', energy_flux_error2='2.98e-05', EG='0.92', time_epoch_completed='1630850656.42', return_code='0', job_id='469431', GAL2='1.07', EG2='0.94', return_code2='0', energy_flux_error='1.09e-05', photon_flux_error2='2.13e-08', ts2='2.28', photon_index='2.32' WHERE bin_id='814' AND source_name='4FGL J1218.0-0028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 07:04:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0175>
Subject: Job 469431: <4FGL_J1218.0-0028_daily_bin814> in cluster <slac> Done

Job <4FGL_J1218.0-0028_daily_bin814> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 06:50:22 2021
Job was executed on host(s) <bullet0175>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 06:50:23 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:50:23 2021
Terminated at Sun Sep  5 07:04:20 2021
Results reported at Sun Sep  5 07:04:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1218.0-0028_daily_bin814 184.514 -0.4832 450316801 450576001 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 :                                   628.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            838 sec.

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

