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


Performing analysis on: 4FGL_J1214.5-2318_daily_bin323
RA = 183.625, Dec = -23.3113
tmin = 323049601, tmax = 323308801
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='425633', job_status='RUN', time_executed='2021-09-05 04:52:49.456081', time_epoch_executed='1630842769.46' WHERE source_name='4FGL J1214.5-2318' and cadence='daily' and bin_id='323'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/425633

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/425633/ft1_4FGL_J1214.5-2318_daily_bin323.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/425633/ft2_4FGL_J1214.5-2318_daily_bin323.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/425633/ft1_4FGL_J1214.5-2318_daily_bin323.fits outfile=/scratch/kocevski/425633/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin323.fits ra=183.625 dec=-23.3113 rad=12.0 tmin=323049601.0 tmax=323308801.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.44
user 3.08
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/425633/ft1_filtered_4FGL_J1214.5-2318_daily_bin323.fits" evtable="EVENTS" scfile=/scratch/kocevski/425633/ft2_4FGL_J1214.5-2318_daily_bin323.fits sctable="SC_DATA" outfile=/scratch/kocevski/425633/ltcube_323049601_323308801_4FGL_J1214.5-2318_daily_bin323.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/425633/ft2_4FGL_J1214.5-2318_daily_bin323.fits
.....................!
real 11.76
user 11.35
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/425633/ft1_filtered_4FGL_J1214.5-2318_daily_bin323.fits evtable="EVENTS" scfile=/scratch/kocevski/425633/ft2_4FGL_J1214.5-2318_daily_bin323.fits sctable="SC_DATA" expcube=/scratch/kocevski/425633/ltcube_323049601_323308801_4FGL_J1214.5-2318_daily_bin323.fits outfile=/scratch/kocevski/425633/expmap_323049601_323308801_4FGL_J1214.5-2318_daily_bin323.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/425633/ltcube_323049601_323308801_4FGL_J1214.5-2318_daily_bin323.fits
.....................!
real 193.09
user 188.13
sys 4.56

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/425633/ft1_filtered_4FGL_J1214.5-2318_daily_bin323.fits scfile=/scratch/kocevski/425633/ft2_4FGL_J1214.5-2318_daily_bin323.fits outfile=/scratch/kocevski/425633/cmap_323049601_323308801_4FGL_J1214.5-2318_daily_bin323.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.53
user 0.36
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/425633/ft1_filtered_4FGL_J1214.5-2318_daily_bin323.fits evtable="EVENTS" scfile=/scratch/kocevski/425633/ft2_4FGL_J1214.5-2318_daily_bin323.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/425633/Model_4FGL_J1214.5-2318_daily_bin323.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/425633/ft1_filtered_4FGL_J1214.5-2318_daily_bin323.fits.....................!
real 56.69
user 55.16
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.4443       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.7371       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .90062       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.1965       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.9804       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    89.097       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.6022       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.4694       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .96299       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    16.251       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.0183       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5010       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .96291       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=   6390.236     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2320 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.266        .30930E-06** at limit **
   2  Prefactor     .10000E-03    53.923        .14822E-05** at limit **
   3  norm          4.4443        2.4013        .91189E-07   -.11805E-03
   4  Prefactor     6.7334        9.3985        .40333E-05   -.48162E-03
   5  Prefactor     .10000E-03    44.947        .12749E-05** at limit **
   6  norm          .10000E-03    8.6913       -.93288E-07** at limit **
   7  Prefactor     .10000E-03    56.948       -.10472E-05** at limit **
   8  norm          .89982        5.3041        .25231E-05   -.20386E-03
   9  Prefactor     7.1956        6.7933       -.49622E-06   -.15458E-03
  10  Prefactor     .10000E-03    20.841        .91756E-06** at limit **
  11  Prefactor     7.0115        52.328        .81965E-05    .12132E-03
  12  Prefactor     .10000E-03    10.733        .32172E-06** at limit **
  13  Prefactor     89.143        62.711        .49318E-05    .31554E-03
  14  Prefactor     .10000E-03    30.083       -.16596E-05** at limit **
  15  Prefactor     7.6022        7.3107        .16687E-05   -.32803E-03
  16  Prefactor     9.4696        3.4626       -.95558E-07    .57481E-06
  17  Prefactor     .10000E-03    11.634       -.36719E-06** at limit **
  18  norm          .96309        .93568        .91377E-07   -.72537E-04
  19  Prefactor     .10000E-03    63.712       -.23048E-05** at limit **
  20  norm          .10000E-03    7.1963       -.14945E-07** at limit **
  21  norm          16.252        9.0925       -.22621E-06   -.36634E-03
  22  Prefactor     1.0196        8.3003        .32205E-05   -.95881E-04
  23  Normalizat    1.5010        .28223       -.29853E-05   -.65225E-04
  24  Prefactor     .96286        .13293       -.66039E-06   -.21065E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.44432
  Prefactor  = 6.73341
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.899815
  Prefactor  = 7.19561
  Prefactor  = 0.0001
  Prefactor  = 7.01153
  Prefactor  = 0.0001
  Prefactor  = 89.1431
  Prefactor  = 0.000100001
  Prefactor  = 7.60221
  Prefactor  = 9.46958
  Prefactor  = 0.0001
  norm       = 0.963086
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 16.2524
  Prefactor  = 1.0196
  Normalizat = 1.50103
  Prefactor  = 0.962855
 **********
 **   18 **HESSE 
 **********

 FCN=   6390.236     FROM HESSE     STATUS=OK           397 CALLS     2717 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    54.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.4443        2.4039        .87891E-04   -1.5286    
   4  Prefactor     6.7334        9.5126        .77294E-03   -1.5189    
   5  Prefactor     .10000E-03    45.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    8.6934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    58.194        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .89982        5.3043        .35060E-03   -1.5518    
   9  Prefactor     7.1956        6.7912        .14952E-03   -1.5171    
  10  Prefactor     .10000E-03    20.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.0115        54.082        .15184E-03   -1.5178    
  12  Prefactor     .10000E-03    10.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     89.143        64.708        .21284E-03   -1.3817    
  14  Prefactor     .10000E-03    30.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     7.6022        7.3429        .72723E-03   -1.5156    
  16  Prefactor     9.4696        3.4651        .42479E-03   -1.5092    
  17  Prefactor     .10000E-03    11.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .96309        .90167        .73458E-03   -1.5512    
  19  Prefactor     .10000E-03    63.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    7.2216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          16.252        8.7306        .49677E-03   -1.4901    
  22  Prefactor     1.0196        7.7889        .39814E-03   -1.5506    
  23  Normalizat    1.5010        .33126        .35481E-03   -.77749    
  24  Prefactor     .96286        .15720        .20733E-03   -.93978    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71042e-09
Minuit parameter uncertainties:
  1  4.13225e-05
  2  0.00039036
  3  2.40397
  4  9.51478
  5  0.000211321
  6  6.31864e-06
  7  0.00071817
  8  4.36974
  9  6.79193
  10  9.01819e-05
  11  38.9946
  12  4.0643e-05
  13  64.7588
  14  0.000374655
  15  7.34376
  16  3.46519
  17  2.17599e-05
  18  0.901678
  19  0.000584705
  20  1.40892e-05
  21  8.73128
  22  5.6369
  23  0.331743
  24  0.157277
Done.

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

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  8.914e+01  6.476e+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:  9.629e-01  1.573e-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.501e+00  3.317e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.81
Ra Dec: 183.625 -23.311
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 7.65e-08 +/- 5.56e-08
Energy Flux (Fixed Index): 3.99e-05 +/- 2.90e-05

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) = 6389.85307859
delta logL = 0.383111803703

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6389.83551718
delta logL = 0.400673216211

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.749       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7014       1.0000          .0000       10.000    
     3 'Normalizat'    1.4208       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98136       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=   6389.836     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      275 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.749        379.16        .15328E-02    .29415E-04
   2  Index         2.7015        2.1456        .97016E-01    .64254E-04
   3  Normalizat    1.4198        .12851        .81909E-01   -.39022E-04
   4  Prefactor     .98188        .50721E-01    .46034E-01    .29105E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.7494
  Index      = 2.70146
  Normalizat = 1.41976
  Prefactor  = 0.981883
 **********
 **   18 **HESSE 
 **********

 FCN=   6389.836     FROM HESSE     STATUS=OK            33 CALLS      308 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.749        78.016        .61313E-04   -1.4399    
   2  Index         2.7015        .87628        .34393E-02   -.47767    
   3  Normalizat    1.4198        .34281        .36259E-03   -.80059    
   4  Prefactor     .98188        .15889        .20537E-03   -.93336    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.65158e-10
Minuit parameter uncertainties:
  1  78.2031
  2  0.882071
  3  0.343368
  4  0.158966
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/425633': 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) = 6389.83551138
delta logL = 0.400679012125

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  4.275e+01  7.820e+01  1.000e-04  1.000e+04 ( 1.000e-14)
301        Index:  2.701e+00  8.821e-01  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:  9.819e-01  1.590e-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.420e+00  3.434e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.63
Ra Dec: 183.625 -23.311
Photon Index (Free Index): 2.70 +/- 0.88
Photon Flux (Free Index): 1.57e-07 +/- 1.26e-07
Energy Flux (Free Index): 3.78e-05 +/- 2.10e-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/425633/cmap_HighResolution_323049601_323308801_4FGL_J1214.5-2318_daily_bin323.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.65e-08', energy_flux2='3.78e-05', photon_flux_error='5.56e-08', dlogl='4.01e-01', energy_flux='3.99e-05', photon_flux2='1.57e-07', job_status='DONE', time_completed='2021-09-05 05:02:47.368305', photon_index_error2='0.88', photon_index2='2.70', ts='5.81', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='2.10e-05', EG='1.50', time_epoch_completed='1630843367.37', return_code='0', job_id='425633', GAL2='0.98', EG2='1.42', return_code2='0', energy_flux_error='2.90e-05', photon_flux_error2='1.26e-07', ts2='6.63', photon_index='2.12' WHERE bin_id='323' AND source_name='4FGL J1214.5-2318' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:02:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 425633: <4FGL_J1214.5-2318_daily_bin323> in cluster <slac> Done

Job <4FGL_J1214.5-2318_daily_bin323> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 04:50:39 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 04:50:40 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:50:40 2021
Terminated at Sun Sep  5 05:02:47 2021
Results reported at Sun Sep  5 05:02:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1214.5-2318_daily_bin323 183.625 -23.3113 323049601 323308801 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 :                                   592.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   727 sec.
    Turnaround time :                            728 sec.

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

