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


Performing analysis on: 4FGL_J1218.0-0028_daily_bin204
RA = 184.514, Dec = -0.4832
tmin = 292204801, tmax = 292464001
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='463774', job_status='RUN', time_executed='2021-09-05 06:39:27.158210', time_epoch_executed='1630849167.16' WHERE source_name='4FGL J1218.0-0028' and cadence='daily' and bin_id='204'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/463774

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/463774/ft1_4FGL_J1218.0-0028_daily_bin204.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/463774/ft2_4FGL_J1218.0-0028_daily_bin204.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/463774/ft1_4FGL_J1218.0-0028_daily_bin204.fits outfile=/scratch/kocevski/463774/ft1_filteredMKT_4FGL_J1218.0-0028_daily_bin204.fits ra=184.514 dec=-0.4832 rad=12.0 tmin=292204801.0 tmax=292464001.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.52
user 9.21
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/463774/ft1_filtered_4FGL_J1218.0-0028_daily_bin204.fits" evtable="EVENTS" scfile=/scratch/kocevski/463774/ft2_4FGL_J1218.0-0028_daily_bin204.fits sctable="SC_DATA" outfile=/scratch/kocevski/463774/ltcube_292204801_292464001_4FGL_J1218.0-0028_daily_bin204.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/463774/ft2_4FGL_J1218.0-0028_daily_bin204.fits
.....................!
real 11.30
user 10.92
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/463774/ft1_filtered_4FGL_J1218.0-0028_daily_bin204.fits evtable="EVENTS" scfile=/scratch/kocevski/463774/ft2_4FGL_J1218.0-0028_daily_bin204.fits sctable="SC_DATA" expcube=/scratch/kocevski/463774/ltcube_292204801_292464001_4FGL_J1218.0-0028_daily_bin204.fits outfile=/scratch/kocevski/463774/expmap_292204801_292464001_4FGL_J1218.0-0028_daily_bin204.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/463774/ltcube_292204801_292464001_4FGL_J1218.0-0028_daily_bin204.fits
.....................!
real 189.47
user 185.38
sys 3.69

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/463774/ft1_filtered_4FGL_J1218.0-0028_daily_bin204.fits scfile=/scratch/kocevski/463774/ft2_4FGL_J1218.0-0028_daily_bin204.fits outfile=/scratch/kocevski/463774/cmap_292204801_292464001_4FGL_J1218.0-0028_daily_bin204.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.60
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/463774/ft1_filtered_4FGL_J1218.0-0028_daily_bin204.fits scfile=/scratch/kocevski/463774/ft2_4FGL_J1218.0-0028_daily_bin204.fits outfile=/scratch/kocevski/463774/cmap_HighResolution_292204801_292464001_4FGL_J1218.0-0028_daily_bin204.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.55
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/463774/ft1_filtered_4FGL_J1218.0-0028_daily_bin204.fits evtable="EVENTS" scfile=/scratch/kocevski/463774/ft2_4FGL_J1218.0-0028_daily_bin204.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/463774/Model_4FGL_J1218.0-0028_daily_bin204.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/463774/ft1_filtered_4FGL_J1218.0-0028_daily_bin204.fits.....................!
real 30.55
user 29.15
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .24393E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    1.6184       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .72910       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11950E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    31.508       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3597       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .37847E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .34406E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.0627       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .21311E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .25924E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13546E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.404       1.0000         .10000E-03   10000.    
    15 'Prefactor '    38.739       1.0000         .10000E-03   10000.    
    16 'norm      '    .15920       1.0000         .10000E-03   10000.    
    17 'norm      '    .16510E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10191E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    .39938E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .26333E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    3.2790       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13063E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10542E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.2559       1.0000         .10000E-03   10000.    
    25 'Prefactor '    31.146       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.3574       1.0000         .10000E-03   10000.    
    27 'norm      '    .12835E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .92663       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .68458       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2236       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=   2475.856     FROM MIGRAD    STATUS=CONVERGED   1615 CALLS     4261 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.0730        .50328E-03** at limit **
   2  Prefactor     .10000E-03    24.773        .20042E-02** at limit **
   3  norm          1.6524        16.546        .33274E-03    .95155E-04
   4  Prefactor     .75163        12.213        .28886E-03    .13877E-03
   5  Prefactor     .10000E-03    23.502        .20641E-02** at limit **
   6  Prefactor     78.183        169.78        .71383E-04    .72354E-04
   7  Prefactor     .10006E-03    51.373        .71180E-01** at limit **
   8  Prefactor     .10000E-03    73.570        .18421E-02** at limit **
   9  Prefactor     .10000E-03    13.067        .17508E-02** at limit **
  10  Prefactor     6.7777        23.691        .16306E-03    .16558E-04
  11  Prefactor     .10000E-03    36.714        .18142E-02** at limit **
  12  Prefactor     .10000E-03    33.468        .21450E-02** at limit **
  13  Prefactor     .10000E-03    19.263        .18142E-02** at limit **
  14  Prefactor     9.1568        50.852        .12422E-03    .89002E-04
  15  Prefactor     40.621        42.711        .64397E-04    .10236E-03
  16  norm          .10001E-03    31.266        .31176E-01** at limit **
  17  norm          .10000E-03    17.606        .21084E-02** at limit **
  18  Prefactor     .10000E-03    28.447        .20750E-02** at limit **
  19  norm          .10000E-03    34.632        .21264E-02** at limit **
  20  Prefactor     .10000E-03    166.14        .18308E-02** at limit **
  21  norm          3.2825        1.3587        .33276E-04    .23198E-03
  22  Prefactor     .10000E-03    8.5642        .14208E-02** at limit **
  23  norm          .10001E-03    22.719        .13094E-02** at limit **
  24  Prefactor     8.5864        14.398        .69764E-03    .14307E-03
  25  Prefactor     31.744        63.022        .71795E-04   -.58415E-04
  26  Prefactor     .10000E-03    485.88        .18753E-02** at limit **
  27  norm          .10000E-03    34.678        .18142E-02** at limit **
  28  norm          .93310        .43450        .21573E-04    .20100E-02
  29  Normalizat    .67046        .40855        .35361E-03    .15681E-03
  30  Prefactor     1.2235        .30662        .21553E-03    .38112E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.65244
  Prefactor  = 0.751632
  Prefactor  = 0.0001
  Prefactor  = 78.1826
  Prefactor  = 0.000100064
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.77773
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.15684
  Prefactor  = 40.6212
  norm       = 0.000100008
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.28247
  Prefactor  = 0.0001
  norm       = 0.000100011
  Prefactor  = 8.58637
  Prefactor  = 31.7442
  Prefactor  = 0.000100004
  norm       = 0.000100001
  norm       = 0.933102
  Normalizat = 0.670463
  Prefactor  = 1.22354
 **********
 **   18 **HESSE 
 **********

 FCN=   2475.856     FROM HESSE     STATUS=OK           576 CALLS     4837 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.0730        .10066E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    24.773        .40084E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.6524        16.450        .13310E-04   -1.5451    
   4  Prefactor     .75163        12.138        .11554E-04   -1.5535    
   5  Prefactor     .10000E-03    23.503        .41282E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     78.183        169.61        .14277E-04   -1.3937    
   7  Prefactor     .10006E-03    42.174        .79859E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    73.572        .36842E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.070        .35016E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.7777        23.682        .65225E-05   -1.5187    
  11  Prefactor     .10000E-03    36.714        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    33.469        .42901E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.264        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.1568        50.841        .49689E-05   -1.5103    
  15  Prefactor     40.621        40.917        .12879E-04   -1.4432    
  16  norm          .10001E-03    15.990        .44070E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    17.646        .42168E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    28.447        .41500E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    34.632        .42529E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    166.14        .36616E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.2825        1.3567        .13310E-05   -1.5346    
  22  Prefactor     .10000E-03    8.5646        .28416E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10001E-03    22.984        .26188E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.5864        14.395        .27906E-04   -1.5122    
  25  Prefactor     31.744        63.016        .14359E-04   -1.4581    
  26  Prefactor     .10000E-03    486.16        .37506E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    34.679        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .93310        .43446        .43145E-05   -1.5515    
  29  Normalizat    .67046        .40830        .14144E-04   -1.0507    
  30  Prefactor     1.2235        .30658        .43107E-04   -.85610    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38017e-09
Minuit parameter uncertainties:
  1  9.073e-07
  2  7.99205e-06
  3  10.4308
  4  6.04204
  5  3.54199e-05
  6  170.68
  7  0.00329274
  8  0.000302548
  9  6.10501e-05
  10  23.7151
  11  2.17004e-05
  12  7.58513e-05
  13  3.07796e-05
  14  43.2091
  15  40.9451
  16  0.000709876
  17  0.000153006
  18  4.12755e-05
  19  2.51647e-05
  20  0.000406804
  21  1.35674
  22  5.31381e-05
  23  0.00098741
  24  14.4008
  25  63.1482
  26  0.00291928
  27  0.000280793
  28  0.434466
  29  0.410168
  30  0.307032
Done.

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

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  4.062e+01  4.095e+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:  1.224e+00  3.070e-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:  6.705e-01  4.102e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.49
Ra Dec: 184.514 -0.483
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 1.52e-07 +/- 1.53e-07
Energy Flux (Fixed Index): 5.56e-05 +/- 5.61e-05

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

Saving results to:
/scratch/kocevski/463774/likelihoodResults_292204801_292464001_4FGL_J1218.0-0028_daily_bin204.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) = 2475.24011149
delta logL = 0.615682299853

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2475.23792737
delta logL = 0.617866411446

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.846       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0389       1.0000          .0000       10.000    
     3 'Normalizat'    .59220       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2685       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=   2475.238     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      304 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.852        32.222        .10752E-03   -.27596E-04
   2  Index         3.0388        1.0556        .27094E-02   -.70629E-04
   3  Normalizat    .59134        .38482        .37396E-03    .36791E-03
   4  Prefactor     1.2692        .30821        .21205E-03    .82250E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.8524
  Index      = 3.03876
  Normalizat = 0.591343
  Prefactor  = 1.26915
 **********
 **   18 **HESSE 
 **********

 FCN=   2475.238     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.852        23.768        .43009E-05   -1.4963    
   2  Index         3.0388        .78088        .10837E-03   -.40307    
   3  Normalizat    .59134        .38369        .74792E-04   -1.0835    
   4  Prefactor     1.2692        .30609        .42411E-04   -.84229    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49061e-09
Minuit parameter uncertainties:
  1  23.7838
  2  0.784684
  3  0.38543
  4  0.30652
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/463774': 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) = 2475.23792485
delta logL = 0.617868938198

Extracting fit parameters...

4FGL J1218.0-0028
   Spectrum: PowerLaw
325    Prefactor:  1.385e+01  2.378e+01  1.000e-04  1.000e+04 ( 1.000e-13)
326        Index:  3.039e+00  7.847e-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.269e+00  3.065e-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:  5.913e-01  3.854e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.89
Ra Dec: 184.514 -0.483
Photon Index (Free Index): 3.04 +/- 0.78
Photon Flux (Free Index): 2.28e-07 +/- 1.45e-07
Energy Flux (Free Index): 4.47e-05 +/- 3.02e-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/463774/cmap_HighResolution_292204801_292464001_4FGL_J1218.0-0028_daily_bin204.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.88e-02', comment='SUCCESS', photon_flux='1.52e-07', energy_flux2='4.47e-05', photon_flux_error='1.53e-07', dlogl='6.18e-01', energy_flux='5.56e-05', photon_flux2='2.28e-07', job_status='DONE', time_completed='2021-09-05 06:49:14.038227', photon_index_error2='0.78', photon_index2='3.04', ts='2.49', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='3.75e-07', energy_flux_error2='3.02e-05', EG='0.67', time_epoch_completed='1630849754.04', return_code='0', job_id='463774', GAL2='1.27', EG2='0.59', return_code2='0', energy_flux_error='5.61e-05', photon_flux_error2='1.45e-07', ts2='3.89', photon_index='2.32' WHERE bin_id='204' AND source_name='4FGL J1218.0-0028' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 06:49:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 463774: <4FGL_J1218.0-0028_daily_bin204> in cluster <slac> Done

Job <4FGL_J1218.0-0028_daily_bin204> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 06:35:53 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 06:35:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 06:35:55 2021
Terminated at Sun Sep  5 06:49:14 2021
Results reported at Sun Sep  5 06:49:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1218.0-0028_daily_bin204 184.514 -0.4832 292204801 292464001 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 :                                   581.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             264.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            801 sec.

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

