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


Performing analysis on: 4FGL_J1214.5-2318_daily_bin680
RA = 183.625, Dec = -23.3113
tmin = 415584001, tmax = 415843201
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='427685', job_status='RUN', time_executed='2021-09-05 04:59:24.783874', time_epoch_executed='1630843164.78' WHERE source_name='4FGL J1214.5-2318' and cadence='daily' and bin_id='680'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/427685

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/427685/ft1_4FGL_J1214.5-2318_daily_bin680.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/427685/ft2_4FGL_J1214.5-2318_daily_bin680.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/427685/ft1_4FGL_J1214.5-2318_daily_bin680.fits outfile=/scratch/kocevski/427685/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin680.fits ra=183.625 dec=-23.3113 rad=12.0 tmin=415584001.0 tmax=415843201.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 6.35
user 6.08
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/427685/ft1_filtered_4FGL_J1214.5-2318_daily_bin680.fits" evtable="EVENTS" scfile=/scratch/kocevski/427685/ft2_4FGL_J1214.5-2318_daily_bin680.fits sctable="SC_DATA" outfile=/scratch/kocevski/427685/ltcube_415584001_415843201_4FGL_J1214.5-2318_daily_bin680.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/427685/ft2_4FGL_J1214.5-2318_daily_bin680.fits
.....................!
real 13.21
user 12.57
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/427685/ft1_filtered_4FGL_J1214.5-2318_daily_bin680.fits evtable="EVENTS" scfile=/scratch/kocevski/427685/ft2_4FGL_J1214.5-2318_daily_bin680.fits sctable="SC_DATA" expcube=/scratch/kocevski/427685/ltcube_415584001_415843201_4FGL_J1214.5-2318_daily_bin680.fits outfile=/scratch/kocevski/427685/expmap_415584001_415843201_4FGL_J1214.5-2318_daily_bin680.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/427685/ltcube_415584001_415843201_4FGL_J1214.5-2318_daily_bin680.fits
.....................!
real 191.85
user 186.03
sys 5.31

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/427685/ft1_filtered_4FGL_J1214.5-2318_daily_bin680.fits scfile=/scratch/kocevski/427685/ft2_4FGL_J1214.5-2318_daily_bin680.fits outfile=/scratch/kocevski/427685/cmap_415584001_415843201_4FGL_J1214.5-2318_daily_bin680.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/427685/ft1_filtered_4FGL_J1214.5-2318_daily_bin680.fits scfile=/scratch/kocevski/427685/ft2_4FGL_J1214.5-2318_daily_bin680.fits outfile=/scratch/kocevski/427685/cmap_HighResolution_415584001_415843201_4FGL_J1214.5-2318_daily_bin680.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.953       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .38701E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.5065       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.6893       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10659E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    69.883       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.9197       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.9250       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.2065       1.0000         .10000E-03   10000.    
    18 'norm      '    2.7242       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.2946       1.0000         .10000E-03   10000.    
    20 'norm      '    4.2413       1.0000         .10000E-03   10000.    
    21 'norm      '    4.6372       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.5820       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2327       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .81740       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=   6296.675     FROM MIGRAD    STATUS=CONVERGED    963 CALLS     3113 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.952        18.997        .97274E-04   -.13814E-04
   2  Prefactor     .10000E-03    38.444        .18142E-02** at limit **
   3  norm          .10000E-03    .74289        .66570E-03** at limit **
   4  Prefactor     .10000E-03    4.3326        .16081E-02** at limit **
   5  Prefactor     .10000E-03    13.818        .18142E-02** at limit **
   6  norm          .10000E-03    45.874        .14404    ** at limit **
   7  Prefactor     .10000E-03    20.062        .18142E-02** at limit **
   8  norm          2.5084        4.5616        .21994E-03    .66420E-04
   9  Prefactor     9.6892        9.0578        .12874E-03   -.14191E-03
  10  Prefactor     .10000E-03    19.546        .18142E-02** at limit **
  11  Prefactor     .10000E-03    67.679        .18142E-02** at limit **
  12  Prefactor     .10000E-03    11.471        .18142E-02** at limit **
  13  Prefactor     69.871        59.686        .48019E-04    .46925E-04
  14  Prefactor     .10000E-03    10.890        .18142E-02** at limit **
  15  Prefactor     3.9196        4.4422        .17016E-03    .54386E-04
  16  Prefactor     5.9252        2.3433        .72998E-04   -.47189E-04
  17  Prefactor     3.2080        9.0207        .11313E-02    .98995E-04
  18  norm          2.7244        1.0720        .49297E-04   -.34362E-03
  19  Prefactor     4.3899        227.35        .19440E-03   -.41813E-04
  20  norm          4.2416        5.2649        .19565E-03   -.17327E-03
  21  norm          4.6345        5.2988        .15727E-03   -.86324E-03
  22  Prefactor     1.5826        3.4398        .19692E-03   -.49540E-03
  23  Normalizat    1.2329        .29463        .33509E-03   -.15742E-03
  24  Prefactor     .81722        .13977        .19043E-03   -.51874E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.9522
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100005
  Prefactor  = 0.0001
  norm       = 2.50838
  Prefactor  = 9.68924
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 69.8709
  Prefactor  = 0.0001
  Prefactor  = 3.91955
  Prefactor  = 5.9252
  Prefactor  = 3.208
  norm       = 2.72439
  Prefactor  = 4.38989
  norm       = 4.24156
  norm       = 4.63454
  Prefactor  = 1.58262
  Normalizat = 1.23295
  Prefactor  = 0.817224
 **********
 **   18 **HESSE 
 **********

 FCN=   6296.675     FROM HESSE     STATUS=OK           385 CALLS     3498 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.952        18.997        .19455E-04   -1.4884    
   2  Prefactor     .10000E-03    38.445        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .74291        .13314E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.3333        .32162E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.818        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    45.479        .14488       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    20.065        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.5084        4.5606        .87978E-05   -1.5391    
   9  Prefactor     9.6892        9.0567        .51495E-05   -1.5085    
  10  Prefactor     .10000E-03    19.547        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    67.687        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.471        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     69.871        59.683        .96037E-05   -1.4034    
  14  Prefactor     .10000E-03    10.891        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.9196        4.4421        .68063E-05   -1.5312    
  16  Prefactor     5.9252        2.3432        .29199E-05   -1.5221    
  17  Prefactor     3.2080        9.0172        .45252E-04   -1.5350    
  18  norm          2.7244        1.0720        .19719E-05   -1.5378    
  19  Prefactor     4.3899        226.69        .77761E-05   -1.5289    
  20  norm          4.2416        5.2649        .78262E-05   -1.5296    
  21  norm          4.6345        5.2944        .62910E-05   -1.5277    
  22  Prefactor     1.5826        3.4387        .78768E-05   -1.5456    
  23  Normalizat    1.2329        .29486        .13404E-04   -.85591    
  24  Prefactor     .81722        .13990        .38087E-04   -.99097    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.43823e-10
Minuit parameter uncertainties:
  1  19.0039
  2  0.00019395
  3  2.16767e-06
  4  1.72624e-05
  5  3.02129e-05
  6  0.000940072
  7  3.97114e-05
  8  4.56119
  9  9.05797
  10  1.10483e-05
  11  0.000199391
  12  3.68098e-05
  13  59.7343
  14  2.87538e-05
  15  4.44247
  16  2.34326
  17  9.02098
  18  1.07197
  19  63.3466
  20  5.26545
  21  5.29492
  22  3.43916
  23  0.295264
  24  0.139957
Done.

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

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  6.987e+01  5.973e+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:  8.172e-01  1.400e-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.233e+00  2.953e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.16
Ra Dec: 183.625 -23.311
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 6.00e-08 +/- 5.13e-08
Energy Flux (Fixed Index): 3.13e-05 +/- 2.67e-05

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

Saving results to:
/scratch/kocevski/427685/likelihoodResults_415584001_415843201_4FGL_J1214.5-2318_daily_bin680.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) = 6296.27855815
delta logL = 0.396260151724

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6296.09672425
delta logL = 0.578094051988

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15079E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.5281       1.0000          .0000       10.000    
     3 'Normalizat'    1.0488       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89066       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=   6296.097     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      384 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14579E-01    .13966        .90982E-03   -.40910E-02
   2  Index         5.5395        1.7200        .69115E-01    .68848E-04
   3  Normalizat    1.0486        .74707E-01    .81055E-01   -.41896E-04
   4  Prefactor     .89096        .35354E-01    .44886E-01   -.75627E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0145791
  Index      = 5.53947
  Normalizat = 1.04859
  Prefactor  = 0.890958
 **********
 **   18 **HESSE 
 **********

 FCN=   6296.097     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      415 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14579E-01    .27400        .57282E-05   -1.5684    
   2  Index         5.5395        2.6879        .27065E-02    .10810    
   3  Normalizat    1.0486        .25568        .35883E-03   -.91420    
   4  Prefactor     .89096        .11909        .18331E-03   -.96458    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.85705e-10
Minuit parameter uncertainties:
  1  0.125973
  2  2.83983
  3  0.255976
  4  0.119126
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/427685': 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) = 6296.09671308
delta logL = 0.57810522064

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.458e-02  1.260e-01  1.000e-04  1.000e+04 ( 1.000e-14)
301        Index:  5.539e+00  2.840e+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.910e-01  1.191e-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.049e+00  2.560e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.64
Ra Dec: 183.625 -23.311
Photon Index (Free Index): 5.54 +/- 2.84
Photon Flux (Free Index): 1.97e-07 +/- 1.21e-07
Energy Flux (Free Index): 2.51e-05 +/- 1.66e-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/427685/cmap_HighResolution_415584001_415843201_4FGL_J1214.5-2318_daily_bin680.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.31e-02', comment='SUCCESS', photon_flux='6.00e-08', energy_flux2='2.51e-05', photon_flux_error='5.13e-08', dlogl='5.78e-01', energy_flux='3.13e-05', photon_flux2='1.97e-07', job_status='DONE', time_completed='2021-09-05 05:11:31.244373', photon_index_error2='2.84', photon_index2='5.54', ts='2.16', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.72e-07', energy_flux_error2='1.66e-05', EG='1.23', time_epoch_completed='1630843891.24', return_code='0', job_id='427685', GAL2='0.89', EG2='1.05', return_code2='102', energy_flux_error='2.67e-05', photon_flux_error2='1.21e-07', ts2='3.64', photon_index='2.12' WHERE bin_id='680' AND source_name='4FGL J1214.5-2318' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:11:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 427685: <4FGL_J1214.5-2318_daily_bin680> in cluster <slac> Done

Job <4FGL_J1214.5-2318_daily_bin680> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 04:55:41 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 04:55:43 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:55:43 2021
Terminated at Sun Sep  5 05:11:32 2021
Results reported at Sun Sep  5 05:11:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1214.5-2318_daily_bin680 183.625 -23.3113 415584001 415843201 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 :                                   723.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             270.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            951 sec.

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

