/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 135 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_bin886
RA = 183.625, Dec = -23.3113
tmin = 468979201, tmax = 469238401
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='428000', job_status='RUN', time_executed='2021-09-05 04:58:32.072260', time_epoch_executed='1630843112.07' WHERE source_name='4FGL J1214.5-2318' and cadence='daily' and bin_id='886'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/428000

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/428000/ft1_4FGL_J1214.5-2318_daily_bin886.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/428000/ft2_4FGL_J1214.5-2318_daily_bin886.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/428000/ft1_4FGL_J1214.5-2318_daily_bin886.fits outfile=/scratch/kocevski/428000/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin886.fits ra=183.625 dec=-23.3113 rad=12.0 tmin=468979201.0 tmax=469238401.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.43
user 3.18
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/428000/ft2_4FGL_J1214.5-2318_daily_bin886.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/428000/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin886.fits evtable="EVENTS" outfile="/scratch/kocevski/428000/ft1_filtered_4FGL_J1214.5-2318_daily_bin886.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.51
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/428000/ft1_filtered_4FGL_J1214.5-2318_daily_bin886.fits" evtable="EVENTS" scfile=/scratch/kocevski/428000/ft2_4FGL_J1214.5-2318_daily_bin886.fits sctable="SC_DATA" outfile=/scratch/kocevski/428000/ltcube_468979201_469238401_4FGL_J1214.5-2318_daily_bin886.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/428000/ft2_4FGL_J1214.5-2318_daily_bin886.fits
.....................!
real 12.72
user 12.34
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/428000/ft1_filtered_4FGL_J1214.5-2318_daily_bin886.fits evtable="EVENTS" scfile=/scratch/kocevski/428000/ft2_4FGL_J1214.5-2318_daily_bin886.fits sctable="SC_DATA" expcube=/scratch/kocevski/428000/ltcube_468979201_469238401_4FGL_J1214.5-2318_daily_bin886.fits outfile=/scratch/kocevski/428000/expmap_468979201_469238401_4FGL_J1214.5-2318_daily_bin886.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/428000/ltcube_468979201_469238401_4FGL_J1214.5-2318_daily_bin886.fits
.....................!
real 190.82
user 185.26
sys 5.12

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/428000/ft1_filtered_4FGL_J1214.5-2318_daily_bin886.fits scfile=/scratch/kocevski/428000/ft2_4FGL_J1214.5-2318_daily_bin886.fits outfile=/scratch/kocevski/428000/cmap_468979201_469238401_4FGL_J1214.5-2318_daily_bin886.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.68
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/428000/ft1_filtered_4FGL_J1214.5-2318_daily_bin886.fits scfile=/scratch/kocevski/428000/ft2_4FGL_J1214.5-2318_daily_bin886.fits outfile=/scratch/kocevski/428000/cmap_HighResolution_468979201_469238401_4FGL_J1214.5-2318_daily_bin886.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.62
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/428000/ft1_filtered_4FGL_J1214.5-2318_daily_bin886.fits evtable="EVENTS" scfile=/scratch/kocevski/428000/ft2_4FGL_J1214.5-2318_daily_bin886.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/428000/Model_4FGL_J1214.5-2318_daily_bin886.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/428000/ft1_filtered_4FGL_J1214.5-2318_daily_bin886.fits.....................!
real 70.64
user 67.48
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .30510E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    17.480       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.0737       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10892E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.697       1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.262       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.3820       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .76382       1.0000         .10000E-03   10000.    
    19 'Prefactor '    50.527       1.0000         .10000E-03   10000.    
    20 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .19261E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5832       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87298       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=   8330.792     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     2750 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.2586       -.21159E-06** at limit **
   2  Prefactor     .10000E-03    23.143       -.26546E-06** at limit **
   3  norm          .10109E-03    .73600        .69890E-06** at limit **
   4  Prefactor     .10000E-03    4.6535       -.25388E-06** at limit **
   5  Prefactor     .10000E-03    10.688       -.57914E-07** at limit **
   6  norm          17.479        16.196        .68816E-07    .75578E-05
   7  Prefactor     .10000E-03    6.8789        .22796E-06** at limit **
   8  norm          8.0721        4.6053        .74740E-07    .15683E-03
   9  Prefactor     .10000E-03    2.8822       -.79712E-06** at limit **
  10  Prefactor     .10000E-03    76.799       -.75120E-07** at limit **
  11  Prefactor     .10000E-03    41.908        .25951E-07** at limit **
  12  Prefactor     .10000E-03    7.1361       -.58773E-07** at limit **
  13  Prefactor     15.689        27.047        .65768E-07    .69238E-06
  14  Prefactor     22.260        19.717        .12891E-06    .16135E-04
  15  Prefactor     .10000E-03    2.4099       -.62289E-07** at limit **
  16  Prefactor     7.3814        2.4248        .75421E-08   -.72756E-05
  17  Prefactor     .10000E-03    5.4899        .18694E-06** at limit **
  18  norm          .76343        .86680        .43109E-06    .16372E-02
  19  Prefactor     50.594        68.007       -.12921E-05   -.26135E-04
  20  norm          .10000E-03    7.8399        .52450E-06** at limit **
  21  norm          .10000E-03    5.9583        .40398E-05** at limit **
  22  Prefactor     .10000E-03    3.0637        .99718E-06** at limit **
  23  Normalizat    1.5833        .21979       -.91859E-08   -.15548E-03
  24  Prefactor     .87299        .10874       -.27869E-06   -.20376E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000101092
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.4791
  Prefactor  = 0.0001
  norm       = 8.07207
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.6888
  Prefactor  = 22.2598
  Prefactor  = 0.0001
  Prefactor  = 7.38142
  Prefactor  = 0.0001
  norm       = 0.763435
  Prefactor  = 50.5943
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.58333
  Prefactor  = 0.872987
 **********
 **   18 **HESSE 
 **********

 FCN=   8330.792     FROM HESSE     STATUS=OK           401 CALLS     3151 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.3043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10109E-03    .68190        .25108E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.8212        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          17.479        16.202        .95796E-04   -1.4872    
   7  Prefactor     .10000E-03    6.8957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.0721        4.6078        .14110E-03   -1.5140    
   9  Prefactor     .10000E-03    5.8782        .28842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    77.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    42.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.1386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.689        27.030        .10109E-03   -1.4916    
  14  Prefactor     22.260        19.717        .84894E-04   -1.4764    
  15  Prefactor     .10000E-03    2.4204        .13833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.3814        2.4247        .79226E-04   -1.5165    
  17  Prefactor     .10000E-03    5.5170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .76343        .80717        .89973E-03   -1.5533    
  19  Prefactor     50.594        68.259        .56418E-04   -1.4284    
  20  norm          .10000E-03    7.9301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.8424        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.0705        .15503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5833        .26220        .31064E-03   -.75463    
  24  Prefactor     .87299        .13016        .19905E-03   -.97092    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52638e-09
Minuit parameter uncertainties:
  1  2.43346e-05
  2  0.000103299
  3  0.00172589
  4  5.2606e-06
  5  4.83612e-06
  6  16.2063
  7  7.67787e-06
  8  4.60805
  9  0.000165851
  10  0.000120639
  11  0.000187788
  12  5.33789e-07
  13  27.051
  14  19.7228
  15  1.36569e-06
  16  2.42478
  17  1.70987e-05
  18  0.807178
  19  68.3651
  20  4.174e-05
  21  0.000149962
  22  2.33294e-05
  23  0.262431
  24  0.130208
Done.

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

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.569e+01  2.705e+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.730e-01  1.302e-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.583e+00  2.624e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.52
Ra Dec: 183.625 -23.311
Photon Flux Upper Limit: 8.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/428000/likelihoodResults_468979201_469238401_4FGL_J1214.5-2318_daily_bin886.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): 0
logL (Free Index) = 8330.43899312
delta logL = 0.35290780158

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8330.43317725
delta logL = 0.358723677757

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5149       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5673       1.0000          .0000       10.000    
     3 'Normalizat'    1.5249       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89015       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=   8330.433     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      411 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5149        23.822        .86836E-02    .21637E-02
   2  Index         3.5673        1.8758        .12408        .18196E-03
   3  Normalizat    1.5248        .50620E-01    .71269E-01    .82320E-05
   4  Prefactor     .89018        .24748E-01    .44879E-01    .85521E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.51493
  Index      = 3.56729
  Normalizat = 1.52485
  Prefactor  = 0.890179
 **********
 **   18 **HESSE 
 **********

 FCN=   8330.433     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      444 TOTAL
                     EDM=   .41E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5149        73.132        .10764E-03   -1.5462    
   2  Index         3.5673        6.7515        .44321E-02   -.29062    
   3  Normalizat    1.5248        .24747        .31532E-03   -.77082    
   4  Prefactor     .89018        .11457        .19727E-03   -.96485    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.14973e-07
Minuit parameter uncertainties:
  1  21.0781
  2  5.36373
  3  0.24767
  4  0.114604
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/428000': 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) = 8330.43317721
delta logL = 0.358723710924

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.515e+00  2.108e+01  1.000e-04  1.000e+04 ( 1.000e-14)
301        Index:  3.567e+00  5.364e+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.902e-01  1.146e-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.525e+00  2.477e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.27
Ra Dec: 183.625 -23.311
Photon Index (Free Index): 3.57 +/- 5.36
Photon Flux (Free Index): 6.08e-08 +/- 1.03e-07
Energy Flux (Free Index): 9.95e-06 +/- 9.69e-06

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/428000/cmap_HighResolution_468979201_469238401_4FGL_J1214.5-2318_daily_bin886.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.35e-03', comment='SUCCESS', energy_flux2='9.95e-06', dlogl='3.59e-01', photon_flux2='6.08e-08', job_status='DONE', time_completed='2021-09-05 05:12:35.987650', photon_index_error2='5.36', photon_index2='3.57', ts='0.52', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='8.38e-08', energy_flux_error2='9.69e-06', EG='1.58', time_epoch_completed='1630843955.99', return_code='0', job_id='428000', GAL2='0.89', EG2='1.52', return_code2='102', photon_flux_error2='1.03e-07', ts2='1.27', photon_index='2.12' WHERE bin_id='886' AND source_name='4FGL J1214.5-2318' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:12:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 428000: <4FGL_J1214.5-2318_daily_bin886> in cluster <slac> Done

Job <4FGL_J1214.5-2318_daily_bin886> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 04:56:06 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 04:56:07 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:56:07 2021
Terminated at Sun Sep  5 05:12:36 2021
Results reported at Sun Sep  5 05:12:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1214.5-2318_daily_bin886 183.625 -23.3113 468979201 469238401 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 :                                   839.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             317.10 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.

