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


Performing analysis on: 4FGL_J1214.5-2318_daily_bin398
RA = 183.625, Dec = -23.3113
tmin = 342489601, tmax = 342748801
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='425752', job_status='RUN', time_executed='2021-09-05 04:50:58.916146', time_epoch_executed='1630842658.92' WHERE source_name='4FGL J1214.5-2318' and cadence='daily' and bin_id='398'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/425752

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/425752/ft1_4FGL_J1214.5-2318_daily_bin398.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/425752/ft2_4FGL_J1214.5-2318_daily_bin398.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/425752/ft1_4FGL_J1214.5-2318_daily_bin398.fits outfile=/scratch/kocevski/425752/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin398.fits ra=183.625 dec=-23.3113 rad=12.0 tmin=342489601.0 tmax=342748801.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.61
user 3.26
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/425752/ft2_4FGL_J1214.5-2318_daily_bin398.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/425752/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin398.fits evtable="EVENTS" outfile="/scratch/kocevski/425752/ft1_filtered_4FGL_J1214.5-2318_daily_bin398.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.54
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/425752/ft1_filtered_4FGL_J1214.5-2318_daily_bin398.fits" evtable="EVENTS" scfile=/scratch/kocevski/425752/ft2_4FGL_J1214.5-2318_daily_bin398.fits sctable="SC_DATA" outfile=/scratch/kocevski/425752/ltcube_342489601_342748801_4FGL_J1214.5-2318_daily_bin398.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/425752/ft2_4FGL_J1214.5-2318_daily_bin398.fits
.....................!
real 11.70
user 11.31
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/425752/ft1_filtered_4FGL_J1214.5-2318_daily_bin398.fits evtable="EVENTS" scfile=/scratch/kocevski/425752/ft2_4FGL_J1214.5-2318_daily_bin398.fits sctable="SC_DATA" expcube=/scratch/kocevski/425752/ltcube_342489601_342748801_4FGL_J1214.5-2318_daily_bin398.fits outfile=/scratch/kocevski/425752/expmap_342489601_342748801_4FGL_J1214.5-2318_daily_bin398.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/425752/ltcube_342489601_342748801_4FGL_J1214.5-2318_daily_bin398.fits
.....................!
real 190.47
user 185.32
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/425752/ft1_filtered_4FGL_J1214.5-2318_daily_bin398.fits scfile=/scratch/kocevski/425752/ft2_4FGL_J1214.5-2318_daily_bin398.fits outfile=/scratch/kocevski/425752/cmap_342489601_342748801_4FGL_J1214.5-2318_daily_bin398.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/425752/ft1_filtered_4FGL_J1214.5-2318_daily_bin398.fits scfile=/scratch/kocevski/425752/ft2_4FGL_J1214.5-2318_daily_bin398.fits outfile=/scratch/kocevski/425752/cmap_HighResolution_342489601_342748801_4FGL_J1214.5-2318_daily_bin398.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/425752/ft1_filtered_4FGL_J1214.5-2318_daily_bin398.fits evtable="EVENTS" scfile=/scratch/kocevski/425752/ft2_4FGL_J1214.5-2318_daily_bin398.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/425752/Model_4FGL_J1214.5-2318_daily_bin398.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/425752/ft1_filtered_4FGL_J1214.5-2318_daily_bin398.fits....................!
real 71.87
user 70.43
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    14.019       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.317       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    15.798       1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.037       1.0000         .10000E-03   10000.    
     8 'norm      '    .19695E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .84156       1.0000         .10000E-03   10000.    
    10 'Prefactor '    54.140       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10505E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.871       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.6517       1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.497       1.0000         .10000E-03   10000.    
    18 'norm      '    2.5217       1.0000         .10000E-03   10000.    
    19 'Prefactor '    64.386       1.0000         .10000E-03   10000.    
    20 'norm      '    14.676       1.0000         .10000E-03   10000.    
    21 'norm      '    .11062E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.1091       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4454       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84369       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=   8563.621     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2761 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.9043       -.19119E-07** at limit **
   2  Prefactor     .10000E-03    32.524        .52057E-07** at limit **
   3  norm          14.019        2.9016       -.12356E-07   -.26880E-03
   4  Prefactor     18.317        8.4053       -.10120E-06   -.11508E-02
   5  Prefactor     .10000E-03    71.823       -.18660E-06** at limit **
   6  norm          15.798        15.469       -.19990E-07   -.34981E-04
   7  Prefactor     32.044        20.273       -.12900E-06   -.28389E-03
   8  norm          .10014E-03    22.959        .95293E-05** at limit **
   9  Prefactor     .83917        5.3715       -.37125E-05   -.74868E-03
  10  Prefactor     54.169        42.323       -.59466E-06   -.13527E-04
  11  Prefactor     .10000E-03    17.619       -.48364E-06** at limit **
  12  Prefactor     .10000E-03    9.3623        .23569E-06** at limit **
  13  Prefactor     .10000E-03    23.021        .70213E-06** at limit **
  14  Prefactor     12.877        21.195       -.60257E-08   -.30035E-04
  15  Prefactor     .10000E-03    1.8824       -.21798E-08** at limit **
  16  Prefactor     4.6518        1.9926       -.80689E-08   -.15998E-03
  17  Prefactor     16.498        12.860       -.11242E-07   -.19134E-04
  18  norm          2.5217        1.0794        .39680E-08    .29323E-03
  19  Prefactor     64.385        74.877        .11338E-05   -.85020E-04
  20  norm          14.678        10.054        .43212E-07    .22155E-04
  21  norm          .10001E-03    5.9443       -.44447E-05** at limit **
  22  Prefactor     4.1103        5.9576        .11505E-05    .52089E-03
  23  Normalizat    1.4456        .23820        .72515E-06   -.50049E-03
  24  Prefactor     .84361        .11161       -.35155E-06   -.10391E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.0187
  Prefactor  = 18.3165
  Prefactor  = 0.000100002
  norm       = 15.7976
  Prefactor  = 32.0445
  norm       = 0.000100143
  Prefactor  = 0.83917
  Prefactor  = 54.1693
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 12.8766
  Prefactor  = 0.0001
  Prefactor  = 4.65184
  Prefactor  = 16.4978
  norm       = 2.52173
  Prefactor  = 64.3854
  norm       = 14.6783
  norm       = 0.000100007
  Prefactor  = 4.11027
  Normalizat = 1.44555
  Prefactor  = 0.843606
 **********
 **   18 **HESSE 
 **********

 FCN=   8563.621     FROM HESSE     STATUS=OK           403 CALLS     3164 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.9158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    32.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          14.019        2.9043        .69522E-04   -1.4959    
   4  Prefactor     18.317        8.3824        .93584E-04   -1.4852    
   5  Prefactor     .10000E-03    72.297        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          15.798        15.472        .10077E-03   -1.4913    
   7  Prefactor     32.044        17.710        .70792E-04   -1.4575    
   8  norm          .10014E-03    36.385        .33914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .83917        10.537        .29080E-02   -1.5525    
  10  Prefactor     54.169        42.359        .27256E-03   -1.4235    
  11  Prefactor     .10000E-03    17.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.3993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    23.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.877        21.194        .11165E-03   -1.4990    
  15  Prefactor     .10000E-03    1.8885        .12397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.6518        1.9933        .83168E-04   -1.5277    
  17  Prefactor     16.498        12.871        .98608E-04   -1.4895    
  18  norm          2.5217        1.0760        .60016E-04   -1.5390    
  19  Prefactor     64.385        74.455        .50013E-04   -1.4101    
  20  norm          14.678        10.054        .10455E-03   -1.4942    
  21  norm          .10001E-03    13.986        .34447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.1103        5.9131        .19887E-03   -1.5302    
  23  Normalizat    1.4456        .28087        .34072E-03   -.79320    
  24  Prefactor     .84361        .13227        .20859E-03   -.98140    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.71988e-09
Minuit parameter uncertainties:
  1  2.631e-06
  2  4.65043e-05
  3  2.90433
  4  8.38292
  5  0.000769074
  6  15.4758
  7  17.7129
  8  0.0045705
  9  5.94805
  10  42.3824
  11  7.86555e-05
  12  0.000151661
  13  5.63041e-05
  14  21.2061
  15  1.00426e-06
  16  1.99331
  17  12.8735
  18  1.07597
  19  74.563
  20  10.0552
  21  0.000627392
  22  5.91395
  23  0.281173
  24  0.132318
Done.

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

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  5.630e-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:  8.436e-01  1.323e-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.446e+00  2.812e-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: 6.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/425752/likelihoodResults_342489601_342748801_4FGL_J1214.5-2318_daily_bin398.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) = 8563.62166817
delta logL = -0.000205651884244

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8563.62146279
delta logL = -2.7050737117e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2605       1.0000          .0000       10.000    
     3 'Normalizat'    1.4455       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84361       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=   8563.621     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      234 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.7273        .90712E-02** at limit **
   2  Index         2.2350        6.3171        .50000        .97010E-05
   3  Normalizat    1.4456        .40118E-02    .76987E-01    .15175E-04
   4  Prefactor     .84361        .19479E-02    .44282E-01    .51280E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.23499
  Normalizat = 1.44555
  Prefactor  = 0.843609
 **********
 **   18 **HESSE 
 **********

 FCN=   8563.621     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      267 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    64.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2350        8.7304        .50000       -.58596    
   3  Normalizat    1.4456        .10309E-01    .34072E-03   -.79320    
   4  Prefactor     .84361        .50103E-02    .20859E-03   -.98140    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.88979e-08
Minuit parameter uncertainties:
  1  0.000943292
  2  94.2549
  3  0.0103093
  4  0.00501034
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/425752': 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) = 8563.62146272
delta logL = -2.04521711566e-07

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  9.433e-04  1.000e-04  1.000e+04 ( 1.000e-14)
301        Index:  2.235e+00  9.425e+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:  8.436e-01  5.010e-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.446e+00  1.031e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/425752/cmap_HighResolution_342489601_342748801_4FGL_J1214.5-2318_daily_bin398.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.01e-03', job_status='DONE', photon_flux_upper_limit='6.62e-08', time_completed='2021-09-05 05:04:59.604551', job_id='425752', GAL2='0.84', fit_tolerance='1e-08', EG2='1.45', EG='1.45', time_epoch_completed='1630843499.6', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='-2.05e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='398' AND source_name='4FGL J1214.5-2318' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:04:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 425752: <4FGL_J1214.5-2318_daily_bin398> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1214.5-2318_daily_bin398 183.625 -23.3113 342489601 342748801 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 :                                   835.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             339.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            852 sec.

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

