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


Performing analysis on: 4FGL_J1214.5-2318_daily_bin835
RA = 183.625, Dec = -23.3113
tmin = 455760001, tmax = 456019201
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='427933', job_status='RUN', time_executed='2021-09-05 04:56:17.830712', time_epoch_executed='1630842977.83' WHERE source_name='4FGL J1214.5-2318' and cadence='daily' and bin_id='835'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/427933

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/427933/ft1_4FGL_J1214.5-2318_daily_bin835.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/427933/ft2_4FGL_J1214.5-2318_daily_bin835.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/427933/ft1_4FGL_J1214.5-2318_daily_bin835.fits outfile=/scratch/kocevski/427933/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin835.fits ra=183.625 dec=-23.3113 rad=12.0 tmin=455760001.0 tmax=456019201.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.37
user 3.12
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/427933/ft1_filtered_4FGL_J1214.5-2318_daily_bin835.fits evtable="EVENTS" scfile=/scratch/kocevski/427933/ft2_4FGL_J1214.5-2318_daily_bin835.fits sctable="SC_DATA" expcube=/scratch/kocevski/427933/ltcube_455760001_456019201_4FGL_J1214.5-2318_daily_bin835.fits outfile=/scratch/kocevski/427933/expmap_455760001_456019201_4FGL_J1214.5-2318_daily_bin835.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/427933/ltcube_455760001_456019201_4FGL_J1214.5-2318_daily_bin835.fits
.....................!
real 190.82
user 185.62
sys 4.70

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/427933/ft1_filtered_4FGL_J1214.5-2318_daily_bin835.fits scfile=/scratch/kocevski/427933/ft2_4FGL_J1214.5-2318_daily_bin835.fits outfile=/scratch/kocevski/427933/cmap_455760001_456019201_4FGL_J1214.5-2318_daily_bin835.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/427933/ft1_filtered_4FGL_J1214.5-2318_daily_bin835.fits scfile=/scratch/kocevski/427933/ft2_4FGL_J1214.5-2318_daily_bin835.fits outfile=/scratch/kocevski/427933/cmap_HighResolution_455760001_456019201_4FGL_J1214.5-2318_daily_bin835.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/427933/ft1_filtered_4FGL_J1214.5-2318_daily_bin835.fits evtable="EVENTS" scfile=/scratch/kocevski/427933/ft2_4FGL_J1214.5-2318_daily_bin835.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/427933/Model_4FGL_J1214.5-2318_daily_bin835.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/427933/ft1_filtered_4FGL_J1214.5-2318_daily_bin835.fits.....................!
real 59.58
user 58.14
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.1277       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .57178E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11936E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    22.933       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .23071E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    10.436       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.3659       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    53.711       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.7275       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.7574       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.5020       1.0000         .10000E-03   10000.    
    19 'Prefactor '    186.96       1.0000         .10000E-03   10000.    
    20 'norm      '    11.116       1.0000         .10000E-03   10000.    
    21 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.6669       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88643       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=   6829.932     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2831 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.6554        .60682E-07** at limit **
   2  Prefactor     .10000E-03    42.286        .85756E-06** at limit **
   3  norm          1.1277        1.6490       -.21918E-06   -.66578E-03
   4  Prefactor     .10000E-03    50.389        .15069E-04** at limit **
   5  Prefactor     .10000E-03    28.976       -.83775E-07** at limit **
   6  norm          22.908        22.549       -.72058E-06   -.28736E-03
   7  Prefactor     .10027E-03    44.342       -.87942E-05** at limit **
   8  norm          10.437        6.5250       -.45648E-06    .12886E-04
   9  Prefactor     3.3654        7.6266       -.93599E-06   -.23485E-06
  10  Prefactor     .10000E-03    18.146        .35075E-06** at limit **
  11  Prefactor     53.711        50.549        .44544E-06    .52099E-04
  12  Prefactor     .10000E-03    7.2730        .36186E-07** at limit **
  13  Prefactor     .10000E-03    16.391       -.20499E-06** at limit **
  14  Prefactor     1.7185        154.85       -.33396E-05   -.59542E-05
  15  Prefactor     .10000E-03    4.9770        .11846E-06** at limit **
  16  Prefactor     8.7572        3.1673       -.17153E-07   -.28476E-04
  17  Prefactor     .10000E-03    12.786        .52875E-07** at limit **
  18  norm          2.5018        1.1281       -.18879E-07    .29549E-03
  19  Prefactor     187.01        109.22        .35561E-06    .15535E-04
  20  norm          11.114        13.425       -.16617E-05    .80703E-04
  21  norm          .10000E-03    3.8543       -.98881E-06** at limit **
  22  Prefactor     .10000E-03    2.5765       -.40291E-06** at limit **
  23  Normalizat    1.6671        .27562        .57014E-06    .13280E-03
  24  Prefactor     .88639        .13214        .43087E-07    .95254E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.12768
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.9082
  Prefactor  = 0.000100273
  norm       = 10.4372
  Prefactor  = 3.36542
  Prefactor  = 0.0001
  Prefactor  = 53.7111
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.71847
  Prefactor  = 0.0001
  Prefactor  = 8.75724
  Prefactor  = 0.0001
  norm       = 2.50177
  Prefactor  = 187.014
  norm       = 11.1141
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.66709
  Prefactor  = 0.886392
 **********
 **   18 **HESSE 
 **********

 FCN=   6829.932     FROM HESSE     STATUS=OK           407 CALLS     3238 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.6627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    42.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.1277        1.4457        .12502E-02   -1.5496    
   4  Prefactor     .10000E-03    50.516        .34753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    29.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          22.908        22.665        .41822E-03   -1.4750    
   7  Prefactor     .10027E-03    46.624        .87743E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.437        9.2800        .12403E-03   -1.5062    
   9  Prefactor     3.3654        7.5357        .22057E-03   -1.5341    
  10  Prefactor     .10000E-03    18.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     53.711        49.735        .54729E-04   -1.4241    
  12  Prefactor     .10000E-03    7.2755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.7185        152.89        .31946E-03   -1.5446    
  15  Prefactor     .10000E-03    5.0106        .17993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.7572        3.1662        .85742E-04   -1.5116    
  17  Prefactor     .10000E-03    12.842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.5018        1.1269        .56923E-04   -1.5392    
  19  Prefactor     187.01        109.23        .14766E-03   -1.2964    
  20  norm          11.114        13.392        .60080E-03   -1.5041    
  21  norm          .10000E-03    3.8546        .15792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.5803        .12944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.6671        .32750        .33991E-03   -.73186    
  24  Prefactor     .88639        .15697        .21480E-03   -.96618    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.48932e-10
Minuit parameter uncertainties:
  1  4.82413e-07
  2  0.000444917
  3  1.44571
  4  0.00019763
  5  0.000107266
  6  22.6734
  7  0.00713918
  8  9.28128
  9  7.53786
  10  0.00014091
  11  49.7736
  12  5.4494e-06
  13  9.14283e-05
  14  32.5035
  15  2.93001e-06
  16  3.16629
  17  3.08645e-05
  18  1.12688
  19  109.35
  20  13.3953
  21  1.06078e-05
  22  3.23012e-06
  23  0.327923
  24  0.157049
Done.

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

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  9.143e-05  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.864e-01  1.570e-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.667e+00  3.279e-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.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/427933/likelihoodResults_455760001_456019201_4FGL_J1214.5-2318_daily_bin835.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) = 6829.93194351
delta logL = -0.000290172015411

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6829.93165626
delta logL = -2.93065022561e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14257E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3805       1.0000          .0000       10.000    
     3 'Normalizat'    1.6671       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88639       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=   6829.932     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      269 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10259E-03    1.8295        .18142E-01** at limit **
   2  Index         2.3066        5.7512        .50000        .21817E-04
   3  Normalizat    1.6671        .26043E-02    .33991E-03   -.14569E-03
   4  Prefactor     .88639        .12597E-02    .21480E-03   -.26304E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102585
  Index      = 2.30656
  Normalizat = 1.66708
  Prefactor  = 0.886393
 **********
 **   18 **HESSE 
 **********

 FCN=   6829.932     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      298 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10259E-03    40.375        .29278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3066        6.9362        .50000       -.56888    
   3  Normalizat    1.6671        .12259E-01    .67981E-04   -.73186    
   4  Prefactor     .88639        .59299E-02    .42961E-04   -.96618    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.17893e-09
Minuit parameter uncertainties:
  1  0.0204471
  2  155.409
  3  0.0122593
  4  0.00592991
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/427933': 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) = 6829.93165417
delta logL = -8.39303538669e-07

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.026e-04  2.045e-02  1.000e-04  1.000e+04 ( 1.000e-14)
301        Index:  2.307e+00  1.554e+02  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.864e-01  5.930e-03  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.667e+00  1.226e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 183.625 -23.311

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/427933/cmap_HighResolution_455760001_456019201_4FGL_J1214.5-2318_daily_bin835.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.22e-03', job_status='DONE', photon_flux_upper_limit='6.88e-08', time_completed='2021-09-05 05:08:42.702990', job_id='427933', GAL2='0.89', fit_tolerance='1e-08', EG2='1.67', EG='1.67', time_epoch_completed='1630843722.7', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='-8.39e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='835' AND source_name='4FGL J1214.5-2318' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:08:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 427933: <4FGL_J1214.5-2318_daily_bin835> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1214.5-2318_daily_bin835 183.625 -23.3113 455760001 456019201 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 :                                   729.32 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   760 sec.
    Turnaround time :                            763 sec.

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

