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


Performing analysis on: 4FGL_J1214.5-2318_daily_bin944
RA = 183.625, Dec = -23.3113
tmin = 484012801, tmax = 484272001
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='428132', job_status='RUN', time_executed='2021-09-05 04:59:06.960946', time_epoch_executed='1630843146.96' WHERE source_name='4FGL J1214.5-2318' and cadence='daily' and bin_id='944'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/428132

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/428132/ft1_4FGL_J1214.5-2318_daily_bin944.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/428132/ft2_4FGL_J1214.5-2318_daily_bin944.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/428132/ft1_4FGL_J1214.5-2318_daily_bin944.fits outfile=/scratch/kocevski/428132/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin944.fits ra=183.625 dec=-23.3113 rad=12.0 tmin=484012801.0 tmax=484272001.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.42
user 3.20
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/428132/ft2_4FGL_J1214.5-2318_daily_bin944.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/428132/ft2_4FGL_J1214.5-2318_daily_bin944.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/428132/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin944.fits evtable="EVENTS" outfile="/scratch/kocevski/428132/ft1_filtered_4FGL_J1214.5-2318_daily_bin944.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.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/428132/ft1_filtered_4FGL_J1214.5-2318_daily_bin944.fits" evtable="EVENTS" scfile=/scratch/kocevski/428132/ft2_4FGL_J1214.5-2318_daily_bin944.fits sctable="SC_DATA" outfile=/scratch/kocevski/428132/ltcube_484012801_484272001_4FGL_J1214.5-2318_daily_bin944.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/428132/ft2_4FGL_J1214.5-2318_daily_bin944.fits
.....................!
real 12.49
user 12.08
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/428132/ft1_filtered_4FGL_J1214.5-2318_daily_bin944.fits evtable="EVENTS" scfile=/scratch/kocevski/428132/ft2_4FGL_J1214.5-2318_daily_bin944.fits sctable="SC_DATA" expcube=/scratch/kocevski/428132/ltcube_484012801_484272001_4FGL_J1214.5-2318_daily_bin944.fits outfile=/scratch/kocevski/428132/expmap_484012801_484272001_4FGL_J1214.5-2318_daily_bin944.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/428132/ltcube_484012801_484272001_4FGL_J1214.5-2318_daily_bin944.fits
.....................!
real 190.81
user 186.01
sys 4.32

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 177 point sources and 0 extended sources

Setting source of interest to:
4FGL J1214.5-2318 @ 183.625 -23.3113

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/428132/ft1_filtered_4FGL_J1214.5-2318_daily_bin944.fits scfile=/scratch/kocevski/428132/ft2_4FGL_J1214.5-2318_daily_bin944.fits outfile=/scratch/kocevski/428132/cmap_484012801_484272001_4FGL_J1214.5-2318_daily_bin944.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=183.625 yref=-23.3113 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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/428132/ft1_filtered_4FGL_J1214.5-2318_daily_bin944.fits scfile=/scratch/kocevski/428132/ft2_4FGL_J1214.5-2318_daily_bin944.fits outfile=/scratch/kocevski/428132/cmap_HighResolution_484012801_484272001_4FGL_J1214.5-2318_daily_bin944.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=183.625 yref=-23.3113 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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/428132/ft1_filtered_4FGL_J1214.5-2318_daily_bin944.fits evtable="EVENTS" scfile=/scratch/kocevski/428132/ft2_4FGL_J1214.5-2318_daily_bin944.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/428132/Model_4FGL_J1214.5-2318_daily_bin944.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/428132/ft1_filtered_4FGL_J1214.5-2318_daily_bin944.fits.....................!
real 49.95
user 48.22
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/428132/ft1_filtered_4FGL_J1214.5-2318_daily_bin944.fits', '/scratch/kocevski/428132/ft2_4FGL_J1214.5-2318_daily_bin944.fits', expMap='/scratch/kocevski/428132/expmap_484012801_484272001_4FGL_J1214.5-2318_daily_bin944.fits', expCube='/scratch/kocevski/428132/ltcube_484012801_484272001_4FGL_J1214.5-2318_daily_bin944.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/428132/Model_4FGL_J1214.5-2318_daily_bin944.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1214.5-2318'

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  3.118e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
301        Index:  2.124e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  2.541e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/428132/ft1_filtered_4FGL_J1214.5-2318_daily_bin944.fits
Spacecraft file(s): /scratch/kocevski/428132/ft2_4FGL_J1214.5-2318_daily_bin944.fits
Exposure map: /scratch/kocevski/428132/expmap_484012801_484272001_4FGL_J1214.5-2318_daily_bin944.fits
Exposure cube: /scratch/kocevski/428132/ltcube_484012801_484272001_4FGL_J1214.5-2318_daily_bin944.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/428132/Model_4FGL_J1214.5-2318_daily_bin944.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) = 5537.08022661

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.311       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    13.122       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10759E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .24734E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    72.590       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11028E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10529E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.4783       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.5751       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.1111       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.343       1.0000         .10000E-03   10000.    
    18 'norm      '    4.7343       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    14.522       1.0000         .10000E-03   10000.    
    21 'norm      '    14.352       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.7902       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0307       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .81812       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5537.067     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2724 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.327        28.767       -.16893E-05    .50970E-05
   2  Prefactor     .10000E-03    28.354        .19369E-04** at limit **
   3  norm          .10000E-03    1.1717       -.18473E-06** at limit **
   4  Prefactor     .10000E-03    4.6385        .93252E-07** at limit **
   5  Prefactor     .10000E-03    13.062        .32005E-06** at limit **
   6  norm          .10000E-03    6.8419       -.14621E-06** at limit **
   7  Prefactor     .10000E-03    16.679       -.19871E-05** at limit **
   8  norm          13.103        6.4466       -.24363E-06    .42803E-03
   9  Prefactor     .10000E-03    4.4824        .81387E-06** at limit **
  10  Prefactor     .10000E-03    232.04       -.22351E-04** at limit **
  11  Prefactor     72.560        43.521       -.12305E-04    .40434E-04
  12  Prefactor     .10000E-03    33.016       -.27517E-04** at limit **
  13  Prefactor     .10000E-03    44.661       -.73975E-05** at limit **
  14  Prefactor     8.4823        24.540        .32453E-05    .27746E-05
  15  Prefactor     2.5757        4.8539       -.17036E-05   -.34925E-03
  16  Prefactor     7.1113        2.9304        .98911E-07    .37773E-04
  17  Prefactor     13.348        17.900       -.15618E-05   -.74200E-05
  18  norm          4.7348        1.7119       -.82160E-07   -.11629E-03
  19  Prefactor     .10000E-03    48.064        .22284E-04** at limit **
  20  norm          14.524        11.665       -.20134E-06   -.99310E-05
  21  norm          14.355        11.279        .71427E-06   -.13828E-03
  22  Prefactor     9.7903        11.372        .71832E-06   -.14841E-03
  23  Normalizat    1.0302        .27133        .36264E-05    .60964E-04
  24  Prefactor     .81826        .12731       -.15904E-06    .32684E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.3267
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 13.1026
  Prefactor  = 0.000100001
  Prefactor  = 0.000100004
  Prefactor  = 72.5602
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.48234
  Prefactor  = 2.57566
  Prefactor  = 7.11132
  Prefactor  = 13.3476
  norm       = 4.73481
  Prefactor  = 0.0001
  norm       = 14.5242
  norm       = 14.3546
  Prefactor  = 9.79031
  Normalizat = 1.0302
  Prefactor  = 0.818261
 **********
 **   18 **HESSE 
 **********

 FCN=   5537.067     FROM HESSE     STATUS=OK           397 CALLS     3121 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.327        28.830        .65613E-04   -1.4485    
   2  Prefactor     .10000E-03    28.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.2909        .15598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.6946        .15644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.8425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          13.103        6.4326        .11057E-03   -1.4984    
   9  Prefactor     .10000E-03    4.5272        .15373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    234.26        .20028E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     72.560        43.527        .47121E-04   -1.4002    
  12  Prefactor     .10000E-03    32.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    44.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.4823        24.530        .13767E-03   -1.5125    
  15  Prefactor     2.5757        4.8517        .21391E-03   -1.5387    
  16  Prefactor     7.1113        2.9335        .77602E-04   -1.5175    
  17  Prefactor     13.348        17.908        .10966E-03   -1.4977    
  18  norm          4.7348        1.7102        .55243E-04   -1.5273    
  19  Prefactor     .10000E-03    48.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          14.524        11.664        .10510E-03   -1.4946    
  21  norm          14.355        11.305        .10572E-03   -1.4950    
  22  Prefactor     9.7903        11.393        .12807E-03   -1.5082    
  23  Normalizat    1.0302        .31924        .35545E-03   -.92026    
  24  Prefactor     .81826        .15116        .19034E-03   -.99059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.22729e-10
Minuit parameter uncertainties:
  1  28.8407
  2  6.83244e-06
  3  1.58782e-05
  4  1.36623e-05
  5  1.30445e-05
  6  6.50705e-07
  7  7.46111e-05
  8  6.43295
  9  0.000133719
  10  0.0018313
  11  43.5457
  12  0.000217736
  13  0.000174925
  14  24.5589
  15  4.85245
  16  2.9336
  17  17.9156
  18  1.71021
  19  9.10797e-05
  20  11.6661
  21  11.3067
  22  11.3959
  23  0.31984
  24  0.151237
Done.

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

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.749e-04  1.000e-04  1.000e+04 ( 1.000e-14)
301        Index:  2.124e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  2.541e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
570    Prefactor:  8.183e-01  1.512e-01  0.000e+00  1.000e+01 ( 1.000e+00)
571        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
572        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
569   Normalization:  1.030e+00  3.198e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 183.625 -23.311
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/428132/likelihoodResults_484012801_484272001_4FGL_J1214.5-2318_daily_bin944.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) = 5537.06681984
delta logL = -0.000106545734525

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5537.0667133
delta logL = -3.37968231179e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10585E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2990       1.0000          .0000       10.000    
     3 'Normalizat'    1.0302       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81826       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5537.067     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      237 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.738        .90712E-02** at limit **
   2  Index         2.3057        6.1211        .50000       -.11853E-05
   3  Normalizat    1.0302        .39433E-02    .80296E-01    .17278E-04
   4  Prefactor     .81826        .19134E-02    .43954E-01    .84502E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.30569
  Normalizat = 1.0302
  Prefactor  = 0.818259
 **********
 **   18 **HESSE 
 **********

 FCN=   5537.067     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      270 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    146.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3057        8.7583        .50000       -.56908    
   3  Normalizat    1.0302        .11693E-01    .35544E-03   -.92025    
   4  Prefactor     .81826        .56830E-02    .19034E-03   -.99059    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.81991e-09
Minuit parameter uncertainties:
  1  1.85572e-05
  2  150.901
  3  0.0116935
  4  0.00568297
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/428132': 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) = 5537.06671323
delta logL = 6.05923560215e-08

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.856e-05  1.000e-04  1.000e+04 ( 1.000e-14)
301        Index:  2.306e+00  1.509e+02  0.000e+00  1.000e+01 (-1.000e+00)
302        Scale:  2.541e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
570    Prefactor:  8.183e-01  5.683e-03  0.000e+00  1.000e+01 ( 1.000e+00)
571        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
572        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
569   Normalization:  1.030e+00  1.169e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 183.625 -23.311

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/428132/cmap_HighResolution_484012801_484272001_4FGL_J1214.5-2318_daily_bin944.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.03e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-05 05:09:45.836850', job_id='428132', GAL2='0.82', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1630843785.84', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='6.06e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='944' AND source_name='4FGL J1214.5-2318' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:09:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 428132: <4FGL_J1214.5-2318_daily_bin944> in cluster <slac> Done

Job <4FGL_J1214.5-2318_daily_bin944> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 04:56:21 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 04:56: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 04:56:23 2021
Terminated at Sun Sep  5 05:09:47 2021
Results reported at Sun Sep  5 05:09:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1214.5-2318_daily_bin944 183.625 -23.3113 484012801 484272001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1214.5-2318 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   636.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            806 sec.

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

