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


Performing analysis on: 4FGL_J1214.5-2318_daily_bin1048
RA = 183.625, Dec = -23.3113
tmin = 510969601, tmax = 511228801
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='429995', job_status='RUN', time_executed='2021-09-05 05:00:52.728260', time_epoch_executed='1630843252.73' WHERE source_name='4FGL J1214.5-2318' and cadence='daily' and bin_id='1048'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/429995

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/429995/ft1_4FGL_J1214.5-2318_daily_bin1048.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/429995/ft2_4FGL_J1214.5-2318_daily_bin1048.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/429995/ft1_4FGL_J1214.5-2318_daily_bin1048.fits outfile=/scratch/kocevski/429995/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin1048.fits ra=183.625 dec=-23.3113 rad=12.0 tmin=510969601.0 tmax=511228801.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.46
user 3.25
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/429995/ft1_filtered_4FGL_J1214.5-2318_daily_bin1048.fits" evtable="EVENTS" scfile=/scratch/kocevski/429995/ft2_4FGL_J1214.5-2318_daily_bin1048.fits sctable="SC_DATA" outfile=/scratch/kocevski/429995/ltcube_510969601_511228801_4FGL_J1214.5-2318_daily_bin1048.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/429995/ft2_4FGL_J1214.5-2318_daily_bin1048.fits
.....................!
real 11.95
user 11.55
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/429995/ft1_filtered_4FGL_J1214.5-2318_daily_bin1048.fits evtable="EVENTS" scfile=/scratch/kocevski/429995/ft2_4FGL_J1214.5-2318_daily_bin1048.fits sctable="SC_DATA" expcube=/scratch/kocevski/429995/ltcube_510969601_511228801_4FGL_J1214.5-2318_daily_bin1048.fits outfile=/scratch/kocevski/429995/expmap_510969601_511228801_4FGL_J1214.5-2318_daily_bin1048.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/429995/ltcube_510969601_511228801_4FGL_J1214.5-2318_daily_bin1048.fits
.....................!
real 190.86
user 186.19
sys 3.94

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/429995/ft1_filtered_4FGL_J1214.5-2318_daily_bin1048.fits scfile=/scratch/kocevski/429995/ft2_4FGL_J1214.5-2318_daily_bin1048.fits outfile=/scratch/kocevski/429995/cmap_510969601_511228801_4FGL_J1214.5-2318_daily_bin1048.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/429995/ft1_filtered_4FGL_J1214.5-2318_daily_bin1048.fits scfile=/scratch/kocevski/429995/ft2_4FGL_J1214.5-2318_daily_bin1048.fits outfile=/scratch/kocevski/429995/cmap_HighResolution_510969601_511228801_4FGL_J1214.5-2318_daily_bin1048.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/429995/ft1_filtered_4FGL_J1214.5-2318_daily_bin1048.fits evtable="EVENTS" scfile=/scratch/kocevski/429995/ft2_4FGL_J1214.5-2318_daily_bin1048.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/429995/Model_4FGL_J1214.5-2318_daily_bin1048.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/429995/ft1_filtered_4FGL_J1214.5-2318_daily_bin1048.fits.....................!
real 57.31
user 55.97
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/429995/ft1_filtered_4FGL_J1214.5-2318_daily_bin1048.fits', '/scratch/kocevski/429995/ft2_4FGL_J1214.5-2318_daily_bin1048.fits', expMap='/scratch/kocevski/429995/expmap_510969601_511228801_4FGL_J1214.5-2318_daily_bin1048.fits', expCube='/scratch/kocevski/429995/ltcube_510969601_511228801_4FGL_J1214.5-2318_daily_bin1048.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/429995/Model_4FGL_J1214.5-2318_daily_bin1048.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/429995/ft1_filtered_4FGL_J1214.5-2318_daily_bin1048.fits
Spacecraft file(s): /scratch/kocevski/429995/ft2_4FGL_J1214.5-2318_daily_bin1048.fits
Exposure map: /scratch/kocevski/429995/expmap_510969601_511228801_4FGL_J1214.5-2318_daily_bin1048.fits
Exposure cube: /scratch/kocevski/429995/ltcube_510969601_511228801_4FGL_J1214.5-2318_daily_bin1048.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/429995/Model_4FGL_J1214.5-2318_daily_bin1048.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) = 6328.82279653

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.1561       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.1844       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .94279E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    10.703       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.3632       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    53.053       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    46.296       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.818       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.5500       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.675       1.0000         .10000E-03   10000.    
    18 'norm      '    2.0020       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3689       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0526       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=   6328.792     FROM MIGRAD    STATUS=CONVERGED    595 CALLS     2825 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.948        .18659E-07** at limit **
   2  Prefactor     .10000E-03    26.517       -.80197E-08** at limit **
   3  norm          2.1566        2.4362        .82758E-07   -.21457E-03
   4  Prefactor     .10000E-03    6.1277        .28826E-06** at limit **
   5  Prefactor     6.1785        29.932        .63688E-06    .27498E-04
   6  norm          .10000E-03    9.3328        .58519E-08** at limit **
   7  Prefactor     .29842        29.684       -.28943E-05   -.21711E-03
   8  norm          10.678        7.1124        .11929E-05   -.20815E-03
   9  Prefactor     6.3591        10.205        .72854E-06   -.20462E-03
  10  Prefactor     .10000E-03    32.857       -.25237E-06** at limit **
  11  Prefactor     53.056        66.450       -.83404E-06    .91854E-05
  12  Prefactor     .10000E-03    16.857       -.76299E-06** at limit **
  13  Prefactor     46.261        66.186        .40673E-06   -.44523E-04
  14  Prefactor     21.795        41.663       -.10704E-06    .18861E-04
  15  Prefactor     .10000E-03    3.2302        .26616E-08** at limit **
  16  Prefactor     3.5500        2.2499       -.10233E-07   -.11226E-04
  17  Prefactor     11.679        20.752       -.21890E-06   -.17299E-04
  18  norm          2.0020        1.2583       -.13434E-07   -.58717E-04
  19  Prefactor     .10000E-03    38.675       -.36153E-07** at limit **
  20  norm          .10000E-03    11.229       -.18459E-07** at limit **
  21  norm          .10000E-03    2.7814       -.99358E-08** at limit **
  22  Prefactor     .10000E-03    3.1712       -.30452E-08** at limit **
  23  Normalizat    1.3682        .30905        .16721E-05   -.72241E-04
  24  Prefactor     1.0529        .14280       -.46269E-06    .55131E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.15658
  Prefactor  = 0.0001
  Prefactor  = 6.17848
  norm       = 0.0001
  Prefactor  = 0.298419
  norm       = 10.6784
  Prefactor  = 6.35909
  Prefactor  = 0.0001
  Prefactor  = 53.056
  Prefactor  = 0.0001
  Prefactor  = 46.2614
  Prefactor  = 21.7952
  Prefactor  = 0.0001
  Prefactor  = 3.55003
  Prefactor  = 11.6786
  norm       = 2.00203
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.36824
  Prefactor  = 1.05289
 **********
 **   18 **HESSE 
 **********

 FCN=   6328.792     FROM HESSE     STATUS=OK           405 CALLS     3230 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    26.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.1566        2.4281        .12541E-03   -1.5414    
   4  Prefactor     .10000E-03    6.1922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.1785        29.767        .16143E-03   -1.5211    
   6  norm          .10000E-03    9.3378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .29842        62.759        .92653E-01   -1.5599    
   8  norm          10.678        9.2759        .12246E-03   -1.5054    
   9  Prefactor     6.3591        10.205        .15912E-03   -1.5204    
  10  Prefactor     .10000E-03    32.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     53.056        65.936        .55066E-04   -1.4250    
  12  Prefactor     .10000E-03    16.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     46.261        66.390        .58928E-04   -1.4347    
  14  Prefactor     21.795        41.644        .85751E-04   -1.4774    
  15  Prefactor     .10000E-03    3.2566        .13954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.5500        2.2486        .92288E-04   -1.5331    
  17  Prefactor     11.679        20.807        .11724E-03   -1.5024    
  18  norm          2.0020        1.2564        .67806E-04   -1.5425    
  19  Prefactor     .10000E-03    38.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    11.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.7896        .12956E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.1834        .13833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3682        .37236        .37051E-03   -.81552    
  24  Prefactor     1.0529        .17002        .20075E-03   -.90987    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37512e-10
Minuit parameter uncertainties:
  1  1.13015e-05
  2  8.59937e-06
  3  2.42822
  4  5.5189e-05
  5  27.1449
  6  2.44476e-06
  7  8.66305
  8  9.27711
  9  10.2082
  10  4.9878e-05
  11  66.0268
  12  0.000122563
  13  66.4961
  14  41.6992
  15  2.41613e-06
  16  2.24861
  17  20.8195
  18  1.25642
  19  7.89245e-06
  20  3.21784e-06
  21  1.31195e-06
  22  1.78809e-06
  23  0.373098
  24  0.17011
Done.

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

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  4.626e+01  6.650e+01  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:  1.053e+00  1.701e-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.368e+00  3.731e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.68
Ra Dec: 183.625 -23.311
Photon Flux Upper Limit: 1.73e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.31e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/429995/likelihoodResults_510969601_511228801_4FGL_J1214.5-2318_daily_bin1048.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) = 6328.4571229
delta logL = 0.335140260198

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6328.44824369
delta logL = 0.34401947229

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2538       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5862       1.0000          .0000       10.000    
     3 'Normalizat'    1.2473       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0920       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=   6328.448     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      359 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1440        61.102        .56131E-02    .65266E-03
   2  Index         3.6001        2.4494        .77620E-01    .21651E-03
   3  Normalizat    1.2431        .92050E-01    .87044E-01    .14463E-04
   4  Prefactor     1.0941        .42681E-01    .37900E-01    .34484E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.14399
  Index      = 3.60006
  Normalizat = 1.2431
  Prefactor  = 1.09408
 **********
 **   18 **HESSE 
 **********

 FCN=   6328.448     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      390 TOTAL
                     EDM=   .66E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1440        111.79        .11926E-03   -1.5353    
   2  Index         3.6001        3.7320        .40720E-02   -.28378    
   3  Normalizat    1.2431        .30410        .38545E-03   -.85281    
   4  Prefactor     1.0941        .14694        .19733E-03   -.89656    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.62752e-07
Minuit parameter uncertainties:
  1  37.5703
  2  4.27534
  3  0.304535
  4  0.146991
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/429995': 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) = 6328.44816868
delta logL = 0.344094476942

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  3.144e+00  3.757e+01  1.000e-04  1.000e+04 ( 1.000e-14)
301        Index:  3.600e+00  4.275e+00  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:  1.094e+00  1.470e-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.243e+00  3.045e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.48
Ra Dec: 183.625 -23.311
Photon Index (Free Index): 3.60 +/- 4.28
Photon Flux (Free Index): 1.39e-07 +/- 1.29e-07
Energy Flux (Free Index): 2.25e-05 +/- 2.63e-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/429995/cmap_HighResolution_510969601_511228801_4FGL_J1214.5-2318_daily_bin1048.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.31e-02', comment='SUCCESS', energy_flux2='2.25e-05', dlogl='3.44e-01', photon_flux2='1.39e-07', job_status='DONE', time_completed='2021-09-05 05:12:37.695555', photon_index_error2='4.28', photon_index2='3.60', ts='0.68', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.73e-07', energy_flux_error2='2.63e-05', EG='1.37', time_epoch_completed='1630843957.7', return_code='0', job_id='429995', GAL2='1.09', EG2='1.24', return_code2='102', photon_flux_error2='1.29e-07', ts2='1.48', photon_index='2.12' WHERE bin_id='1048' AND source_name='4FGL J1214.5-2318' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:12:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 429995: <4FGL_J1214.5-2318_daily_bin1048> in cluster <slac> Done

Job <4FGL_J1214.5-2318_daily_bin1048> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 05:00:36 2021
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:00:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 05:00:37 2021
Terminated at Sun Sep  5 05:12:38 2021
Results reported at Sun Sep  5 05:12:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1214.5-2318_daily_bin1048 183.625 -23.3113 510969601 511228801 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 :                                   696.31 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   720 sec.
    Turnaround time :                            722 sec.

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

