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


Performing analysis on: 4FGL_J1214.5-2318_daily_bin1121
RA = 183.625, Dec = -23.3113
tmin = 529891201, tmax = 530150401
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='430160', job_status='RUN', time_executed='2021-09-05 05:02:58.345800', time_epoch_executed='1630843378.35' WHERE source_name='4FGL J1214.5-2318' and cadence='daily' and bin_id='1121'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/430160

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/430160/ft1_4FGL_J1214.5-2318_daily_bin1121.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/430160/ft2_4FGL_J1214.5-2318_daily_bin1121.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/430160/ft1_4FGL_J1214.5-2318_daily_bin1121.fits outfile=/scratch/kocevski/430160/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin1121.fits ra=183.625 dec=-23.3113 rad=12.0 tmin=529891201.0 tmax=530150401.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.62
user 3.31
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/430160/ft2_4FGL_J1214.5-2318_daily_bin1121.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/430160/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin1121.fits evtable="EVENTS" outfile="/scratch/kocevski/430160/ft1_filtered_4FGL_J1214.5-2318_daily_bin1121.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.30
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/430160/ft1_filtered_4FGL_J1214.5-2318_daily_bin1121.fits" evtable="EVENTS" scfile=/scratch/kocevski/430160/ft2_4FGL_J1214.5-2318_daily_bin1121.fits sctable="SC_DATA" outfile=/scratch/kocevski/430160/ltcube_529891201_530150401_4FGL_J1214.5-2318_daily_bin1121.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/430160/ft2_4FGL_J1214.5-2318_daily_bin1121.fits
.....................!
real 12.14
user 11.78
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/430160/ft1_filtered_4FGL_J1214.5-2318_daily_bin1121.fits evtable="EVENTS" scfile=/scratch/kocevski/430160/ft2_4FGL_J1214.5-2318_daily_bin1121.fits sctable="SC_DATA" expcube=/scratch/kocevski/430160/ltcube_529891201_530150401_4FGL_J1214.5-2318_daily_bin1121.fits outfile=/scratch/kocevski/430160/expmap_529891201_530150401_4FGL_J1214.5-2318_daily_bin1121.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/430160/ltcube_529891201_530150401_4FGL_J1214.5-2318_daily_bin1121.fits
.....................!
real 190.18
user 184.97
sys 4.85

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/430160/ft1_filtered_4FGL_J1214.5-2318_daily_bin1121.fits scfile=/scratch/kocevski/430160/ft2_4FGL_J1214.5-2318_daily_bin1121.fits outfile=/scratch/kocevski/430160/cmap_529891201_530150401_4FGL_J1214.5-2318_daily_bin1121.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/430160/ft1_filtered_4FGL_J1214.5-2318_daily_bin1121.fits scfile=/scratch/kocevski/430160/ft2_4FGL_J1214.5-2318_daily_bin1121.fits outfile=/scratch/kocevski/430160/cmap_HighResolution_529891201_530150401_4FGL_J1214.5-2318_daily_bin1121.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/430160/ft1_filtered_4FGL_J1214.5-2318_daily_bin1121.fits evtable="EVENTS" scfile=/scratch/kocevski/430160/ft2_4FGL_J1214.5-2318_daily_bin1121.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/430160/Model_4FGL_J1214.5-2318_daily_bin1121.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/430160/ft1_filtered_4FGL_J1214.5-2318_daily_bin1121.fits.....................!
real 55.95
user 54.52
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.0907       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    19.704       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13968E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.841       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7980       1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.531       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10300E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4598       1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.389       1.0000         .10000E-03   10000.    
    18 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    44.848       1.0000         .10000E-03   10000.    
    20 'norm      '    .10136E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    8.0164       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3207       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .94931       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=   6228.804     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2685 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.879       -.12433E-04** at limit **
   2  Prefactor     .10000E-03    73.861        .11776E-04** at limit **
   3  norm          2.0904        1.9061       -.46801E-07   -.38461E-03
   4  Prefactor     .10000E-03    4.0814        .44145E-07** at limit **
   5  Prefactor     .10000E-03    9.2421        .52277E-06** at limit **
   6  norm          19.704        19.818       -.75454E-07    .86884E-05
   7  Prefactor     .10000E-03    75.469       -.19095E-04** at limit **
   8  norm          10.835        6.0420        .11642E-05    .88488E-03
   9  Prefactor     1.7988        5.5723       -.27817E-05   -.75053E-03
  10  Prefactor     33.527        38.876       -.30742E-05    .63369E-04
  11  Prefactor     .10000E-03    25.021       -.70163E-05** at limit **
  12  Prefactor     .10000E-03    10.911       -.32247E-05** at limit **
  13  Prefactor     .10000E-03    27.176        .12732E-04** at limit **
  14  Prefactor     .10000E-03    9.2442        .24954E-06** at limit **
  15  Prefactor     .10000E-03    2.8636        .12892E-07** at limit **
  16  Prefactor     3.4598        2.0776       -.25606E-07    .40157E-04
  17  Prefactor     19.390        18.372       -.14350E-06   -.33001E-04
  18  norm          .10000E-03    .41271        .20204E-07** at limit **
  19  Prefactor     44.840        64.848       -.96614E-05   -.10452E-04
  20  norm          .10000E-03    15.128        .11694E-04** at limit **
  21  norm          8.0114        6.6156        .11441E-05   -.76664E-04
  22  Prefactor     .10000E-03    6.8773       -.20310E-06** at limit **
  23  Normalizat    1.3209        .26109        .47957E-06    .12412E-03
  24  Prefactor     .94925        .12548        .18994E-06    .17589E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.09043
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.7038
  Prefactor  = 0.0001
  norm       = 10.8351
  Prefactor  = 1.79884
  Prefactor  = 33.5269
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.45979
  Prefactor  = 19.3904
  norm       = 0.0001
  Prefactor  = 44.8405
  norm       = 0.0001
  norm       = 8.01139
  Prefactor  = 0.0001
  Normalizat = 1.32086
  Prefactor  = 0.949254
 **********
 **   18 **HESSE 
 **********

 FCN=   6228.804     FROM HESSE     STATUS=OK           393 CALLS     3078 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    73.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.0904        1.8988        .10031E-03   -1.5419    
   4  Prefactor     .10000E-03    4.1484        .15564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.2432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          19.704        19.820        .90230E-04   -1.4820    
   7  Prefactor     .10000E-03    77.471        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.835        6.0491        .12168E-03   -1.5050    
   9  Prefactor     1.7988        5.6915        .31181E-03   -1.5440    
  10  Prefactor     33.527        38.804        .34601E-03   -1.4549    
  11  Prefactor     .10000E-03    24.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    27.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.2528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.8750        .13038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.4598        2.0788        .85794E-04   -1.5336    
  17  Prefactor     19.390        18.385        .90959E-04   -1.4827    
  18  norm          .10000E-03    .61195        .98223E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     44.840        64.743        .59867E-04   -1.4368    
  20  norm          .10000E-03    15.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.0114        6.5773        .14161E-03   -1.5142    
  22  Prefactor     .10000E-03    7.0110        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3209        .31192        .34148E-03   -.82946    
  24  Prefactor     .94925        .15023        .19147E-03   -.94441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4516e-09
Minuit parameter uncertainties:
  1  2.20803e-05
  2  2.63966e-05
  3  1.89889
  4  5.11562e-06
  5  3.25334e-06
  6  19.8262
  7  0.000269234
  8  6.04949
  9  5.69326
  10  38.833
  11  0.000109684
  12  1.0018e-05
  13  1.91224e-05
  14  3.25547e-06
  15  1.05187e-06
  16  2.07888
  17  18.3906
  18  3.56288e-07
  19  64.8447
  20  6.98683e-05
  21  6.57786
  22  1.01055e-05
  23  0.312363
  24  0.150298
Done.

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

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.912e-05  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.493e-01  1.503e-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.321e+00  3.124e-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: 8.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.40e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/430160/likelihoodResults_529891201_530150401_4FGL_J1214.5-2318_daily_bin1121.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) = 6228.80375619
delta logL = -0.00017588362698

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6228.80358088
delta logL = -5.74913428864e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3209       1.0000          .0000       10.000    
     3 'Normalizat'    1.3209       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94925       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6228.804     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      273 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10148E-03    99.596        .18142E-02** at limit **
   2  Index         2.2604        8.7979        .50000        .13766E-04
   3  Normalizat    1.3209        .14056E-01    .34148E-03    .25968E-05
   4  Prefactor     .94925        .68570E-02    .19147E-03   -.73625E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101482
  Index      = 2.26045
  Normalizat = 1.32086
  Prefactor  = 0.949254
 **********
 **   18 **HESSE 
 **********

 FCN=   6228.804     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      302 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10148E-03    446.82        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2604        5.5709        .50000       -.57986    
   3  Normalizat    1.3209        .30449E-01    .13659E-04   -.82946    
   4  Prefactor     .94925        .14854E-01    .76589E-05   -.94441    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.11104e-08
Minuit parameter uncertainties:
  1  0.051862
  2  374.926
  3  0.0304497
  4  0.0148538
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/430160': 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) = 6228.8035807
delta logL = -3.93201844417e-07

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.015e-04  5.186e-02  1.000e-04  1.000e+04 ( 1.000e-14)
301        Index:  2.260e+00  3.749e+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:  9.493e-01  1.485e-02  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.321e+00  3.045e-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/430160/cmap_HighResolution_529891201_530150401_4FGL_J1214.5-2318_daily_bin1121.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.40e-03', job_status='DONE', photon_flux_upper_limit='8.45e-08', time_completed='2021-09-05 05:15:36.951047', job_id='430160', GAL2='0.95', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1630844136.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='-3.93e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='1121' AND source_name='4FGL J1214.5-2318' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:15:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 430160: <4FGL_J1214.5-2318_daily_bin1121> in cluster <slac> Done

Job <4FGL_J1214.5-2318_daily_bin1121> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 05:00:45 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:00:47 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:47 2021
Terminated at Sun Sep  5 05:15:37 2021
Results reported at Sun Sep  5 05:15:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1214.5-2318_daily_bin1121 183.625 -23.3113 529891201 530150401 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 :                                   668.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             239.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            892 sec.

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

