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


Performing analysis on: 4FGL_J1214.5-2318_daily_bin1126
RA = 183.625, Dec = -23.3113
tmin = 531187201, tmax = 531446401
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='430171', job_status='RUN', time_executed='2021-09-05 05:01:06.573084', time_epoch_executed='1630843266.57' WHERE source_name='4FGL J1214.5-2318' and cadence='daily' and bin_id='1126'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/430171

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/430171/ft1_4FGL_J1214.5-2318_daily_bin1126.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/430171/ft2_4FGL_J1214.5-2318_daily_bin1126.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/430171/ft1_4FGL_J1214.5-2318_daily_bin1126.fits outfile=/scratch/kocevski/430171/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin1126.fits ra=183.625 dec=-23.3113 rad=12.0 tmin=531187201.0 tmax=531446401.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 4.04
user 3.74
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/430171/ft1_filtered_4FGL_J1214.5-2318_daily_bin1126.fits" evtable="EVENTS" scfile=/scratch/kocevski/430171/ft2_4FGL_J1214.5-2318_daily_bin1126.fits sctable="SC_DATA" outfile=/scratch/kocevski/430171/ltcube_531187201_531446401_4FGL_J1214.5-2318_daily_bin1126.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/430171/ft2_4FGL_J1214.5-2318_daily_bin1126.fits
.....................!
real 11.71
user 11.16
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/430171/ft1_filtered_4FGL_J1214.5-2318_daily_bin1126.fits evtable="EVENTS" scfile=/scratch/kocevski/430171/ft2_4FGL_J1214.5-2318_daily_bin1126.fits sctable="SC_DATA" expcube=/scratch/kocevski/430171/ltcube_531187201_531446401_4FGL_J1214.5-2318_daily_bin1126.fits outfile=/scratch/kocevski/430171/expmap_531187201_531446401_4FGL_J1214.5-2318_daily_bin1126.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/430171/ltcube_531187201_531446401_4FGL_J1214.5-2318_daily_bin1126.fits
.....................!
real 195.64
user 191.05
sys 4.17

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/430171/ft1_filtered_4FGL_J1214.5-2318_daily_bin1126.fits scfile=/scratch/kocevski/430171/ft2_4FGL_J1214.5-2318_daily_bin1126.fits outfile=/scratch/kocevski/430171/cmap_531187201_531446401_4FGL_J1214.5-2318_daily_bin1126.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.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/430171/ft1_filtered_4FGL_J1214.5-2318_daily_bin1126.fits scfile=/scratch/kocevski/430171/ft2_4FGL_J1214.5-2318_daily_bin1126.fits outfile=/scratch/kocevski/430171/cmap_HighResolution_531187201_531446401_4FGL_J1214.5-2318_daily_bin1126.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/430171/ft1_filtered_4FGL_J1214.5-2318_daily_bin1126.fits evtable="EVENTS" scfile=/scratch/kocevski/430171/ft2_4FGL_J1214.5-2318_daily_bin1126.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/430171/Model_4FGL_J1214.5-2318_daily_bin1126.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/430171/ft1_filtered_4FGL_J1214.5-2318_daily_bin1126.fits.....................!
real 74.42
user 72.33
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.2643       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.991       1.0000         .10000E-03   10000.    
     6 'norm      '    27.099       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.9027       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.4658       1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.205       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.2269       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    35.267       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.7130       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.9078       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.2849       1.0000         .10000E-03   10000.    
    18 'norm      '    .48985       1.0000         .10000E-03   10000.    
    19 'Prefactor '    38.854       1.0000         .10000E-03   10000.    
    20 'norm      '    12.514       1.0000         .10000E-03   10000.    
    21 'norm      '    6.8732       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .98754       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .97647       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=   9205.042     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2719 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.0275        .46056E-05** at limit **
   2  Prefactor     .10000E-03    15.494        .19830E-05** at limit **
   3  norm          1.2642        1.0957       -.31131E-06   -.30201E-02
   4  Prefactor     .10000E-03    1.1026       -.28146E-07** at limit **
   5  Prefactor     19.990        19.563       -.91412E-06    .10471E-04
   6  norm          27.099        17.863       -.11979E-06    .99263E-05
   7  Prefactor     .10000E-03    6.3269       -.36672E-06** at limit **
   8  norm          2.9026        3.2147       -.26120E-07   -.54007E-03
   9  Prefactor     6.4700        4.8820        .83435E-05    .48759E-03
  10  Prefactor     33.198        34.518       -.79618E-05    .97658E-05
  11  Prefactor     5.1797        28.689       -.80145E-04   -.11468E-03
  12  Prefactor     .10000E-03    16.322       -.31603E-05** at limit **
  13  Prefactor     .10000E-03    44.529        .10616E-04** at limit **
  14  Prefactor     35.273        22.901        .78933E-05    .19118E-03
  15  Prefactor     3.7129        5.1880       -.12939E-05   -.47223E-03
  16  Prefactor     6.9078        2.2643        .12453E-06    .12128E-03
  17  Prefactor     3.2844        9.6704       -.17397E-05   -.18834E-03
  18  norm          .49001        .69472       -.38606E-06   -.33283E-02
  19  Prefactor     38.864        66.450        .13649E-04    .96094E-04
  20  norm          12.514        9.1433       -.39582E-06    .10206E-04
  21  norm          6.8840        6.0987        .95524E-06    .42258E-03
  22  Prefactor     .10000E-03    6.6502       -.43225E-05** at limit **
  23  Normalizat    .98755        .19396        .52658E-06    .26336E-03
  24  Prefactor     .97648        .96825E-01    .46322E-06    .43252E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.26419
  Prefactor  = 0.0001
  Prefactor  = 19.9897
  norm       = 27.0989
  Prefactor  = 0.0001
  norm       = 2.90264
  Prefactor  = 6.47
  Prefactor  = 33.1978
  Prefactor  = 5.17965
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.273
  Prefactor  = 3.7129
  Prefactor  = 6.90782
  Prefactor  = 3.28445
  norm       = 0.490007
  Prefactor  = 38.8636
  norm       = 12.514
  norm       = 6.88403
  Prefactor  = 0.000100002
  Normalizat = 0.987546
  Prefactor  = 0.976479
 **********
 **   18 **HESSE 
 **********

 FCN=   9205.042     FROM HESSE     STATUS=OK           403 CALLS     3122 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.0440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.2642        1.0978        .19816E-03   -1.5483    
   4  Prefactor     .10000E-03    1.1060        .98363E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.990        19.560        .89581E-04   -1.4813    
   6  norm          27.099        17.869        .76957E-04   -1.4666    
   7  Prefactor     .10000E-03    6.3484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.9026        3.1969        .17161E-03   -1.5367    
   9  Prefactor     6.4700        4.8531        .15784E-03   -1.5199    
  10  Prefactor     33.198        34.461        .69539E-04   -1.4555    
  11  Prefactor     5.1797        28.663        .17582E-03   -1.5253    
  12  Prefactor     .10000E-03    16.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    44.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     35.273        22.900        .67482E-04   -1.4519    
  15  Prefactor     3.7129        5.1811        .20957E-03   -1.5323    
  16  Prefactor     6.9078        2.2632        .77619E-04   -1.5182    
  17  Prefactor     3.2844        9.6647        .22340E-03   -1.5345    
  18  norm          .49001        .59496        .90487E-03   -1.5568    
  19  Prefactor     38.864        66.242        .64302E-04   -1.4460    
  20  norm          12.514        9.1419        .11323E-03   -1.5000    
  21  norm          6.8840        6.0231        .15304E-03   -1.5183    
  22  Prefactor     .10000E-03    6.8231        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .98755        .22598        .34283E-03   -.93449    
  24  Prefactor     .97648        .11386        .17746E-03   -.93518    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13561e-09
Minuit parameter uncertainties:
  1  8.96156e-06
  2  2.72134e-06
  3  1.09781
  4  2.39478e-06
  5  19.5663
  6  17.8727
  7  1.3462e-05
  8  3.19705
  9  4.85339
  10  34.4815
  11  24.3868
  12  6.45694e-05
  13  0.000148926
  14  22.9061
  15  5.18169
  16  2.26319
  17  9.66933
  18  0.594966
  19  66.3682
  20  9.14292
  21  6.02358
  22  0.00023648
  23  0.226197
  24  0.113883
Done.

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

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.489e-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:  9.765e-01  1.139e-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:  9.875e-01  2.262e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/430171/likelihoodResults_531187201_531446401_4FGL_J1214.5-2318_daily_bin1126.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) = 9205.04164718
delta logL = -0.000106388255517

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9204.35507369
delta logL = 0.686467105694

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39406E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    4.7993       1.0000          .0000       10.000    
     3 'Normalizat'    .91869       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99558       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=   9204.355     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      338 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .36645E-01    .46899        .37448E-02    .78403E-02
   2  Index         4.8225        1.7812        .81743E-01    .33037E-03
   3  Normalizat    .91842        .38501E-01    .79954E-01   -.59414E-05
   4  Prefactor     .99580        .19935E-01    .46212E-01   -.46720E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0366454
  Index      = 4.8225
  Normalizat = 0.918423
  Prefactor  = 0.995797
 **********
 **   18 **HESSE 
 **********

 FCN=   9204.355     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      371 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .36645E-01    1.5618        .17274E-03   -1.5670    
   2  Index         4.8225        3.8128        .45967E-02   -.35508E-01
   3  Normalizat    .91842        .15223        .35391E-03   -.95816    
   4  Prefactor     .99580        .77827E-01    .17584E-03   -.92870    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.28916e-06
Minuit parameter uncertainties:
  1  0.477821
  2  4.33725
  3  0.152298
  4  0.0778356
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/430171': 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) = 9204.35501545
delta logL = 0.686525343239

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  3.665e-02  4.778e-01  1.000e-04  1.000e+04 ( 1.000e-14)
301        Index:  4.822e+00  4.337e+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:  9.958e-01  7.784e-02  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:  9.184e-01  1.523e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.45
Ra Dec: 183.625 -23.311
Photon Index (Free Index): 4.82 +/- 4.34
Photon Flux (Free Index): 5.75e-08 +/- 5.04e-08
Energy Flux (Free Index): 7.77e-06 +/- 7.86e-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/430171/cmap_HighResolution_531187201_531446401_4FGL_J1214.5-2318_daily_bin1126.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.30e-03', comment='SUCCESS', energy_flux2='7.77e-06', dlogl='6.87e-01', photon_flux2='5.75e-08', job_status='DONE', time_completed='2021-09-05 05:16:03.579258', photon_index_error2='4.34', photon_index2='4.82', ts='-0.00', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='6.99e-08', energy_flux_error2='7.86e-06', EG='0.99', time_epoch_completed='1630844163.58', return_code='0', job_id='430171', GAL2='1.00', EG2='0.92', return_code2='102', photon_flux_error2='5.04e-08', ts2='1.45', photon_index='2.12' WHERE bin_id='1126' AND source_name='4FGL J1214.5-2318' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:16:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 430171: <4FGL_J1214.5-2318_daily_bin1126> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1214.5-2318_daily_bin1126 183.625 -23.3113 531187201 531446401 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 :                                   879.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             366.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            918 sec.

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

