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


Performing analysis on: 4FGL_J1214.5-2318_daily_bin436
RA = 183.625, Dec = -23.3113
tmin = 352339201, tmax = 352598401
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='425812', job_status='RUN', time_executed='2021-09-05 04:54:31.909651', time_epoch_executed='1630842871.91' WHERE source_name='4FGL J1214.5-2318' and cadence='daily' and bin_id='436'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/425812

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/425812/ft1_4FGL_J1214.5-2318_daily_bin436.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/425812/ft2_4FGL_J1214.5-2318_daily_bin436.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/425812/ft1_4FGL_J1214.5-2318_daily_bin436.fits outfile=/scratch/kocevski/425812/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin436.fits ra=183.625 dec=-23.3113 rad=12.0 tmin=352339201.0 tmax=352598401.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.42
user 3.21
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/425812/ft1_filtered_4FGL_J1214.5-2318_daily_bin436.fits" evtable="EVENTS" scfile=/scratch/kocevski/425812/ft2_4FGL_J1214.5-2318_daily_bin436.fits sctable="SC_DATA" outfile=/scratch/kocevski/425812/ltcube_352339201_352598401_4FGL_J1214.5-2318_daily_bin436.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/425812/ft2_4FGL_J1214.5-2318_daily_bin436.fits
.....................!
real 11.73
user 11.39
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/425812/ft1_filtered_4FGL_J1214.5-2318_daily_bin436.fits evtable="EVENTS" scfile=/scratch/kocevski/425812/ft2_4FGL_J1214.5-2318_daily_bin436.fits sctable="SC_DATA" expcube=/scratch/kocevski/425812/ltcube_352339201_352598401_4FGL_J1214.5-2318_daily_bin436.fits outfile=/scratch/kocevski/425812/expmap_352339201_352598401_4FGL_J1214.5-2318_daily_bin436.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/425812/ltcube_352339201_352598401_4FGL_J1214.5-2318_daily_bin436.fits
.....................!
real 189.89
user 185.61
sys 3.89

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/425812/ft1_filtered_4FGL_J1214.5-2318_daily_bin436.fits scfile=/scratch/kocevski/425812/ft2_4FGL_J1214.5-2318_daily_bin436.fits outfile=/scratch/kocevski/425812/cmap_352339201_352598401_4FGL_J1214.5-2318_daily_bin436.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/425812/ft1_filtered_4FGL_J1214.5-2318_daily_bin436.fits scfile=/scratch/kocevski/425812/ft2_4FGL_J1214.5-2318_daily_bin436.fits outfile=/scratch/kocevski/425812/cmap_HighResolution_352339201_352598401_4FGL_J1214.5-2318_daily_bin436.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.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/425812/ft1_filtered_4FGL_J1214.5-2318_daily_bin436.fits evtable="EVENTS" scfile=/scratch/kocevski/425812/ft2_4FGL_J1214.5-2318_daily_bin436.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/425812/Model_4FGL_J1214.5-2318_daily_bin436.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/425812/ft1_filtered_4FGL_J1214.5-2318_daily_bin436.fits....................!
real 70.72
user 69.31
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    135.52       1.0000         .10000E-03   10000.    
     3 'norm      '    .10100E-03   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      '    .28879E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .31156E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.7191       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10454E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    59.361       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2723       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.0993       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.3342       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.290       1.0000         .10000E-03   10000.    
    18 'norm      '    2.5696       1.0000         .10000E-03   10000.    
    19 'Prefactor '    100.98       1.0000         .10000E-03   10000.    
    20 'norm      '    5.4348       1.0000         .10000E-03   10000.    
    21 'norm      '    7.1485       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .85211       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0304       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=   9080.293     FROM MIGRAD    STATUS=CONVERGED    545 CALLS     2364 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.286        .66722E-06** at limit **
   2  Prefactor     135.51        66.624       -.50205E-05    .25753E-05
   3  norm          .10000E-03    .34759        .25951E-07** at limit **
   4  Prefactor     .10000E-03    1.4527       -.10027E-07** at limit **
   5  Prefactor     .10000E-03    11.081        .18258E-05** at limit **
   6  norm          .10000E-03    7.5393       -.28872E-06** at limit **
   7  Prefactor     .10000E-03    19.245       -.53545E-05** at limit **
   8  norm          5.7119        4.0366       -.34583E-06    .22947E-03
   9  Prefactor     .10000E-03    1.5599       -.13167E-07** at limit **
  10  Prefactor     .10000E-03    20.659        .29688E-06** at limit **
  11  Prefactor     .10000E-03    10.918       -.71487E-06** at limit **
  12  Prefactor     .10000E-03    10.424       -.12743E-05** at limit **
  13  Prefactor     59.362        34.934       -.34935E-05    .51315E-04
  14  Prefactor     2.2732        15.874       -.52251E-05   -.15921E-03
  15  Prefactor     6.0991        4.4380        .58228E-06   -.13583E-03
  16  Prefactor     4.3342        1.9031       -.11054E-06    .67273E-04
  17  Prefactor     15.289        10.443        .33370E-06    .34593E-05
  18  norm          2.5696        .93368        .15906E-07   -.14824E-03
  19  Prefactor     100.97        59.249       -.37763E-05    .70015E-05
  20  norm          5.4349        5.4171       -.26265E-05   -.28136E-04
  21  norm          7.1486        4.4391       -.17768E-05   -.15854E-03
  22  Prefactor     .10000E-03    1.3468        .13136E-06** at limit **
  23  Normalizat    .85228        .19522        .18801E-05    .90957E-04
  24  Prefactor     1.0304        .10012        .39892E-06    .22978E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 135.51
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 0.000100001
  norm       = 5.71188
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 59.3623
  Prefactor  = 2.27319
  Prefactor  = 6.09914
  Prefactor  = 4.33422
  Prefactor  = 15.2895
  norm       = 2.56965
  Prefactor  = 100.972
  norm       = 5.43491
  norm       = 7.14861
  Prefactor  = 0.0001
  Normalizat = 0.852281
  Prefactor  = 1.03037
 **********
 **   18 **HESSE 
 **********

 FCN=   9080.293     FROM HESSE     STATUS=OK           403 CALLS     2767 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     135.51        66.637        .17298E-03   -1.3374    
   3  norm          .10000E-03    .34906        .54839E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.4637        .11213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    10.652        .99847E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.416        .42748E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.7119        3.9854        .15144E-03   -1.5230    
   9  Prefactor     .10000E-03    1.5799        .11617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     59.362        34.828        .52074E-04   -1.4165    
  14  Prefactor     2.2732        16.349        .27243E-03   -1.5406    
  15  Prefactor     6.0991        4.4305        .16256E-03   -1.5214    
  16  Prefactor     4.3342        1.9043        .82997E-04   -1.5292    
  17  Prefactor     15.289        10.441        .10243E-03   -1.4926    
  18  norm          2.5696        .93110        .53216E-04   -1.5387    
  19  Prefactor     100.97        59.133        .40008E-04   -1.3695    
  20  norm          5.4349        5.4157        .17237E-03   -1.5242    
  21  norm          7.1486        4.4524        .14686E-03   -1.5173    
  22  Prefactor     .10000E-03    1.3629        .10799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .85228        .22670        .36236E-03   -.98158    
  24  Prefactor     1.0304        .11729        .17285E-03   -.91724    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00708e-10
Minuit parameter uncertainties:
  1  5.48397e-06
  2  66.6741
  3  1.21752e-06
  4  2.34479e-06
  5  7.58788e-06
  6  0.000414187
  7  0.000207202
  8  3.98557
  9  7.48873e-07
  10  3.43524e-05
  11  3.48678e-07
  12  5.60919e-05
  13  34.8403
  14  12.1971
  15  4.43078
  16  1.90428
  17  10.4424
  18  0.931102
  19  59.1676
  20  5.41622
  21  4.45262
  22  1.3999e-05
  23  0.226953
  24  0.117323
Done.

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

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  5.936e+01  3.484e+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:  1.030e+00  1.173e-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:  8.523e-01  2.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.35
Ra Dec: 183.625 -23.311
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 5.10e-08 +/- 2.99e-08
Energy Flux (Fixed Index): 2.66e-05 +/- 1.56e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9079.90000149
delta logL = 0.392535146935

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9079.89924943
delta logL = 0.393287209919

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    85.926       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7513       1.0000          .0000       10.000    
     3 'Normalizat'    .86923       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0273       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=   9079.899     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      311 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     85.741        58.023        .43339E-04    .17974E-03
   2  Index         1.7494        .42693        .81415E-02    .13513E-03
   3  Normalizat    .86932        .22282        .35914E-03    .25622E-03
   4  Prefactor     1.0274        .11671        .17312E-03    .58767E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 85.7407
  Index      = 1.74937
  Normalizat = 0.869322
  Prefactor  = 1.02737
 **********
 **   18 **HESSE 
 **********

 FCN=   9079.899     FROM HESSE     STATUS=OK            25 CALLS      336 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     85.741        57.228        .86678E-05   -1.3853    
   2  Index         1.7494        .42102        .32566E-03   -.70775    
   3  Normalizat    .86932        .22291        .14365E-04   -.97547    
   4  Prefactor     1.0274        .11679        .34623E-04   -.91823    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85041e-10
Minuit parameter uncertainties:
  1  57.2649
  2  0.421885
  3  0.223148
  4  0.116824
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/425812': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9079.89922747
delta logL = 0.393309167441

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  8.574e+01  5.726e+01  1.000e-04  1.000e+04 ( 1.000e-14)
301        Index:  1.749e+00  4.219e-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:  1.027e+00  1.168e-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:  8.693e-01  2.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.14
Ra Dec: 183.625 -23.311
Photon Index (Free Index): 1.75 +/- 0.42
Photon Flux (Free Index): 3.27e-08 +/- 2.96e-08
Energy Flux (Free Index): 4.56e-05 +/- 4.25e-05

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/425812/cmap_HighResolution_352339201_352598401_4FGL_J1214.5-2318_daily_bin436.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.10e-08', energy_flux2='4.56e-05', photon_flux_error='2.99e-08', dlogl='3.93e-01', energy_flux='2.66e-05', photon_flux2='3.27e-08', job_status='DONE', time_completed='2021-09-05 05:06:44.330289', photon_index_error2='0.42', photon_index2='1.75', ts='10.35', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='4.25e-05', EG='0.85', time_epoch_completed='1630843604.33', return_code='0', job_id='425812', GAL2='1.03', EG2='0.87', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='2.96e-08', ts2='11.14', photon_index='2.12' WHERE bin_id='436' AND source_name='4FGL J1214.5-2318' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:06:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 425812: <4FGL_J1214.5-2318_daily_bin436> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1214.5-2318_daily_bin436 183.625 -23.3113 352339201 352598401 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 :                                   728.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             254.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            953 sec.

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

