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


Performing analysis on: 4FGL_J1214.5-2318_daily_bin1345
RA = 183.625, Dec = -23.3113
tmin = 587952001, tmax = 588211201
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='432030', job_status='RUN', time_executed='2021-09-05 05:09:26.490624', time_epoch_executed='1630843766.49' WHERE source_name='4FGL J1214.5-2318' and cadence='daily' and bin_id='1345'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/432030

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/432030/ft1_4FGL_J1214.5-2318_daily_bin1345.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/432030/ft2_4FGL_J1214.5-2318_daily_bin1345.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/432030/ft1_4FGL_J1214.5-2318_daily_bin1345.fits outfile=/scratch/kocevski/432030/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin1345.fits ra=183.625 dec=-23.3113 rad=12.0 tmin=587952001.0 tmax=588211201.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.47
user 3.25
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/432030/ft1_filtered_4FGL_J1214.5-2318_daily_bin1345.fits" evtable="EVENTS" scfile=/scratch/kocevski/432030/ft2_4FGL_J1214.5-2318_daily_bin1345.fits sctable="SC_DATA" outfile=/scratch/kocevski/432030/ltcube_587952001_588211201_4FGL_J1214.5-2318_daily_bin1345.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/432030/ft2_4FGL_J1214.5-2318_daily_bin1345.fits
.....................!
real 11.70
user 11.32
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/432030/ft1_filtered_4FGL_J1214.5-2318_daily_bin1345.fits evtable="EVENTS" scfile=/scratch/kocevski/432030/ft2_4FGL_J1214.5-2318_daily_bin1345.fits sctable="SC_DATA" expcube=/scratch/kocevski/432030/ltcube_587952001_588211201_4FGL_J1214.5-2318_daily_bin1345.fits outfile=/scratch/kocevski/432030/expmap_587952001_588211201_4FGL_J1214.5-2318_daily_bin1345.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/432030/ltcube_587952001_588211201_4FGL_J1214.5-2318_daily_bin1345.fits
.....................!
real 189.78
user 185.50
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/432030/ft1_filtered_4FGL_J1214.5-2318_daily_bin1345.fits scfile=/scratch/kocevski/432030/ft2_4FGL_J1214.5-2318_daily_bin1345.fits outfile=/scratch/kocevski/432030/cmap_587952001_588211201_4FGL_J1214.5-2318_daily_bin1345.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/432030/ft1_filtered_4FGL_J1214.5-2318_daily_bin1345.fits scfile=/scratch/kocevski/432030/ft2_4FGL_J1214.5-2318_daily_bin1345.fits outfile=/scratch/kocevski/432030/cmap_HighResolution_587952001_588211201_4FGL_J1214.5-2318_daily_bin1345.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.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/432030/ft1_filtered_4FGL_J1214.5-2318_daily_bin1345.fits evtable="EVENTS" scfile=/scratch/kocevski/432030/ft2_4FGL_J1214.5-2318_daily_bin1345.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/432030/Model_4FGL_J1214.5-2318_daily_bin1345.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/432030/ft1_filtered_4FGL_J1214.5-2318_daily_bin1345.fits.....................!
real 62.28
user 60.45
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    67.089       1.0000         .10000E-03   10000.    
     3 'norm      '    1.0494       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.518       1.0000         .10000E-03   10000.    
     6 'norm      '    13.862       1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.144       1.0000         .10000E-03   10000.    
     8 'norm      '    4.7173       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.4722       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.9526       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.401       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.295       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.4435       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.5625       1.0000         .10000E-03   10000.    
    19 'Prefactor '    73.541       1.0000         .10000E-03   10000.    
    20 'norm      '    2.9769       1.0000         .10000E-03   10000.    
    21 'norm      '    1.8945       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .19244       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4142       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .82902       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=   7228.296     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2837 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.1648        .11029E-07** at limit **
   2  Prefactor     67.092        84.330       -.11300E-05   -.86708E-05
   3  norm          1.0518        2.4448        .32821E-06   -.20058E-04
   4  Prefactor     .10000E-03    3.9568        .30332E-07** at limit **
   5  Prefactor     12.517        16.931       -.14768E-07   -.52123E-05
   6  norm          13.865        15.187       -.22034E-07    .13688E-04
   7  Prefactor     23.151        17.590        .82872E-07    .94700E-04
   8  norm          4.7150        5.6241        .33431E-06    .67177E-04
   9  Prefactor     7.4731        4.8815       -.13723E-07    .21556E-04
  10  Prefactor     4.0696        151.82       -.97790E-05    .27737E-04
  11  Prefactor     .10000E-03    26.381       -.21176E-06** at limit **
  12  Prefactor     27.377        35.444        .34699E-05    .73730E-04
  13  Prefactor     .10000E-03    156.62       -.51538E-05** at limit **
  14  Prefactor     15.307        24.770       -.11297E-06   -.43837E-06
  15  Prefactor     .10000E-03    8.2916        .32256E-07** at limit **
  16  Prefactor     1.4439        1.3587       -.17929E-07    .65861E-05
  17  Prefactor     .10000E-03    18.826       -.75124E-06** at limit **
  18  norm          4.5618        1.4472       -.24889E-07    .76111E-04
  19  Prefactor     73.420        133.36        .12693E-04   -.22120E-04
  20  norm          2.9775        11.756        .14662E-06   -.13728E-04
  21  norm          1.8609        20.254       -.10678E-04   -.24692E-03
  22  Prefactor     .27012        10.324        .40908E-05   -.60205E-03
  23  Normalizat    1.4138        .24217        .45058E-06    .79259E-04
  24  Prefactor     .82910        .11650       -.33713E-07    .14539E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 67.092
  norm       = 1.05178
  Prefactor  = 0.0001
  Prefactor  = 12.5168
  norm       = 13.8653
  Prefactor  = 23.1509
  norm       = 4.71505
  Prefactor  = 7.47312
  Prefactor  = 4.0696
  Prefactor  = 0.0001
  Prefactor  = 27.3774
  Prefactor  = 0.000100001
  Prefactor  = 15.3066
  Prefactor  = 0.0001
  Prefactor  = 1.44385
  Prefactor  = 0.0001
  norm       = 4.56178
  Prefactor  = 73.4196
  norm       = 2.97747
  norm       = 1.86088
  Prefactor  = 0.270124
  Normalizat = 1.4138
  Prefactor  = 0.829102
 **********
 **   18 **HESSE 
 **********

 FCN=   7228.296     FROM HESSE     STATUS=OK           415 CALLS     3252 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.1672        .16945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     67.092        81.140        .49001E-04   -1.4068    
   3  norm          1.0518        2.3417        .16540E-03   -1.5503    
   4  Prefactor     .10000E-03    4.0599        .33002E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     12.517        16.927        .11322E-03   -1.5000    
   6  norm          13.865        15.188        .10758E-03   -1.4963    
   7  Prefactor     23.151        17.536        .83263E-04   -1.4745    
   8  norm          4.7150        5.5881        .17947E-03   -1.5274    
   9  Prefactor     7.4731        4.8771        .14539E-03   -1.5161    
  10  Prefactor     4.0696        147.98        .20289E-03   -1.5304    
  11  Prefactor     .10000E-03    26.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     27.377        35.337        .76533E-04   -1.4661    
  13  Prefactor     .10000E-03    158.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.307        24.773        .10241E-03   -1.4925    
  15  Prefactor     .10000E-03    8.6041        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.4439        1.3747        .93496E-04   -1.5468    
  17  Prefactor     .10000E-03    18.990        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.5618        1.4483        .54761E-04   -1.5281    
  19  Prefactor     73.420        128.80        .23409E-03   -1.3992    
  20  norm          2.9775        11.753        .23531E-03   -1.5363    
  21  norm          1.8609        19.423        .30226E-03   -1.5435    
  22  Prefactor     .27012        4.0689        .10835       -1.5604    
  23  Normalizat    1.4138        .28740        .32392E-03   -.80230    
  24  Prefactor     .82910        .13846        .20015E-03   -.98664    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.15505e-10
Minuit parameter uncertainties:
  1  3.96552e-07
  2  81.2745
  3  2.34195
  4  4.59934e-06
  5  16.9334
  6  15.1925
  7  17.5401
  8  5.58871
  9  4.87737
  10  49.2124
  11  2.78034e-05
  12  35.3643
  13  0.000709048
  14  24.7893
  15  6.73334e-06
  16  1.37475
  17  5.73354e-05
  18  1.44832
  19  129.289
  20  11.7618
  21  12.0285
  22  2.09654
  23  0.287726
  24  0.138514
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
570    Prefactor:  8.291e-01  1.385e-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.414e+00  2.877e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/432030/likelihoodResults_587952001_588211201_4FGL_J1214.5-2318_daily_bin1345.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) = 7228.29557428
delta logL = -2.99047578665e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7228.06708271
delta logL = 0.228461668558

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9896       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3997       1.0000          .0000       10.000    
     3 'Normalizat'    1.3733       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83692       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=   7228.067     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      303 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9815        84.607        .73436E-02    .98699E-03
   2  Index         3.4005        3.0914        .96360E-01    .21943E-03
   3  Normalizat    1.3726        .59620E-01    .74028E-01    .11816E-04
   4  Prefactor     .83714        .28891E-01    .44196E-01    .83449E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.98149
  Index      = 3.4005
  Normalizat = 1.37265
  Prefactor  = 0.837145
 **********
 **   18 **HESSE 
 **********

 FCN=   7228.067     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      336 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9815        220.79        .17399E-03   -1.5426    
   2  Index         3.4005        6.5521        .67101E-02   -.32562    
   3  Normalizat    1.3726        .22613        .32759E-03   -.81423    
   4  Prefactor     .83714        .11033        .19912E-03   -.98373    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.08461e-09
Minuit parameter uncertainties:
  1  41.9918
  2  7.53758
  3  0.22629
  4  0.110361
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/432030': 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) = 7228.06707782
delta logL = 0.228466562113

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.981e+00  4.199e+01  1.000e-04  1.000e+04 ( 1.000e-14)
301        Index:  3.401e+00  7.538e+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:  8.371e-01  1.104e-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.373e+00  2.263e-01  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/432030/cmap_HighResolution_587952001_588211201_4FGL_J1214.5-2318_daily_bin1345.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.19e-03', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2021-09-05 05:22:07.072452', job_id='432030', GAL2='0.84', fit_tolerance='1e-08', EG2='1.37', EG='1.41', time_epoch_completed='1630844527.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='2.28e-01', ts2='0.47', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='1345' AND source_name='4FGL J1214.5-2318' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:22:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 432030: <4FGL_J1214.5-2318_daily_bin1345> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1214.5-2318_daily_bin1345 183.625 -23.3113 587952001 588211201 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 :                                   751.37 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             265.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            990 sec.

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

