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


Performing analysis on: 4FGL_J1214.5-2318_daily_bin379
RA = 183.625, Dec = -23.3113
tmin = 337564801, tmax = 337824001
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='425720', job_status='RUN', time_executed='2021-09-05 04:53:04.485878', time_epoch_executed='1630842784.49' WHERE source_name='4FGL J1214.5-2318' and cadence='daily' and bin_id='379'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/425720

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/425720/ft1_4FGL_J1214.5-2318_daily_bin379.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/425720/ft2_4FGL_J1214.5-2318_daily_bin379.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/425720/ft1_4FGL_J1214.5-2318_daily_bin379.fits outfile=/scratch/kocevski/425720/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin379.fits ra=183.625 dec=-23.3113 rad=12.0 tmin=337564801.0 tmax=337824001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 6.18
user 5.95
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/425720/ft1_filtered_4FGL_J1214.5-2318_daily_bin379.fits" evtable="EVENTS" scfile=/scratch/kocevski/425720/ft2_4FGL_J1214.5-2318_daily_bin379.fits sctable="SC_DATA" outfile=/scratch/kocevski/425720/ltcube_337564801_337824001_4FGL_J1214.5-2318_daily_bin379.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/425720/ft2_4FGL_J1214.5-2318_daily_bin379.fits
.....................!
real 11.94
user 11.29
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/425720/ft1_filtered_4FGL_J1214.5-2318_daily_bin379.fits evtable="EVENTS" scfile=/scratch/kocevski/425720/ft2_4FGL_J1214.5-2318_daily_bin379.fits sctable="SC_DATA" expcube=/scratch/kocevski/425720/ltcube_337564801_337824001_4FGL_J1214.5-2318_daily_bin379.fits outfile=/scratch/kocevski/425720/expmap_337564801_337824001_4FGL_J1214.5-2318_daily_bin379.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/425720/ltcube_337564801_337824001_4FGL_J1214.5-2318_daily_bin379.fits
.....................!
real 190.11
user 185.52
sys 3.66

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/425720/ft1_filtered_4FGL_J1214.5-2318_daily_bin379.fits scfile=/scratch/kocevski/425720/ft2_4FGL_J1214.5-2318_daily_bin379.fits outfile=/scratch/kocevski/425720/cmap_337564801_337824001_4FGL_J1214.5-2318_daily_bin379.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.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/425720/ft1_filtered_4FGL_J1214.5-2318_daily_bin379.fits evtable="EVENTS" scfile=/scratch/kocevski/425720/ft2_4FGL_J1214.5-2318_daily_bin379.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/425720/Model_4FGL_J1214.5-2318_daily_bin379.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/425720/ft1_filtered_4FGL_J1214.5-2318_daily_bin379.fits.....................!
real 56.96
user 55.56
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .21044E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.1903       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2303       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    45.945       1.0000         .10000E-03   10000.    
     8 'norm      '    1.4095       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    84.411       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .24699E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .18310E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.9085       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.2252       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    31.033       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5779       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .78963       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=   6120.965     FROM MIGRAD    STATUS=CONVERGED    993 CALLS     3569 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.4826        .18142E-02** at limit **
   2  Prefactor     .10000E-03    612.46        .36285E-03** at limit **
   3  norm          4.1901        2.2989        .84789E-04    .13998E-03
   4  Prefactor     5.2297        8.1349        .17576E-03    .32535E-04
   5  Prefactor     .10000E-03    16.238        .18142E-02** at limit **
   6  norm          .10000E-03    15.541        .18142E-02** at limit **
   7  Prefactor     45.950        27.805        .59152E-04    .66308E-04
   8  norm          1.4084        9.2607        .18111E-02   -.11960E-02
   9  Prefactor     .10000E-03    5.7070        .18080E-02** at limit **
  10  Prefactor     84.406        67.608        .43723E-04    .19813E-04
  11  Prefactor     .10000E-03    30.690        .12280    ** at limit **
  12  Prefactor     .10000E-03    13.743        .18142E-02** at limit **
  13  Prefactor     .10000E-03    53.688        .18142E-02** at limit **
  14  Prefactor     .10021E-03    37.255        .11672    ** at limit **
  15  Prefactor     .10000E-03    2.4693        .11982E-02** at limit **
  16  Prefactor     3.9086        2.1480        .82673E-04    .15539E-04
  17  Prefactor     .10000E-03    34.146        .36285E-03** at limit **
  18  norm          5.2251        1.6772        .54521E-04    .15222E-03
  19  Prefactor     .10000E-03    19.051        .18142E-02** at limit **
  20  norm          31.032        15.132        .71925E-04    .56903E-05
  21  norm          .10000E-03    1.2328        .84808E-03** at limit **
  22  Prefactor     .10000E-03    1.6353        .97541E-03** at limit **
  23  Normalizat    1.5780        .33599        .32838E-03    .15989E-03
  24  Prefactor     .78965        .15416        .20996E-03    .17332E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 4.19005
  Prefactor  = 5.22968
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 45.9498
  norm       = 1.40841
  Prefactor  = 0.0001
  Prefactor  = 84.4061
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100215
  Prefactor  = 0.0001
  Prefactor  = 3.90857
  Prefactor  = 0.0001
  norm       = 5.22515
  Prefactor  = 0.0001
  norm       = 31.0323
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.57802
  Prefactor  = 0.789652
 **********
 **   18 **HESSE 
 **********

 FCN=   6120.965     FROM HESSE     STATUS=OK           393 CALLS     3962 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.4827        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    612.49        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.1901        2.2989        .33915E-05   -1.5299    
   4  Prefactor     5.2297        8.1343        .70305E-05   -1.5251    
   5  Prefactor     .10000E-03    16.239        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    15.542        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     45.950        27.425        .23661E-05   -1.4351    
   8  norm          1.4084        8.9708        .72446E-04   -1.5471    
   9  Prefactor     .10000E-03    5.7103        .36161E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     84.406        67.595        .87446E-05   -1.3868    
  11  Prefactor     .10000E-03    29.911        .12526       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.744        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    53.691        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10021E-03    36.822        .11759       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.4694        .23963E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.9086        2.1480        .33069E-05   -1.5313    
  17  Prefactor     .10000E-03    34.148        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.2251        1.6772        .21809E-05   -1.5251    
  19  Prefactor     .10000E-03    19.051        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          31.032        15.131        .28770E-05   -1.4593    
  21  norm          .10000E-03    1.2328        .16962E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.6354        .19508E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5780        .33634        .65675E-04   -.75609    
  24  Prefactor     .78965        .15430        .83985E-05   -1.0011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.89864e-09
Minuit parameter uncertainties:
  1  1.14092e-05
  2  0.00314408
  3  2.29899
  4  8.13602
  5  6.85674e-05
  6  8.77279e-05
  7  27.4322
  8  7.11032
  9  9.94958e-06
  10  67.6563
  11  0.000601531
  12  1.01307e-05
  13  3.9576e-05
  14  0.00562784
  15  2.86749e-06
  16  2.14803
  17  0.000123764
  18  1.67723
  19  2.02999e-05
  20  15.1331
  21  7.93296e-07
  22  1.49698e-06
  23  0.33682
  24  0.154387
Done.

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

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  3.958e-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:  7.897e-01  1.544e-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.578e+00  3.368e-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: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/425720/likelihoodResults_337564801_337824001_4FGL_J1214.5-2318_daily_bin379.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) = 6120.96502435
delta logL = -8.86551897565e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6120.96493629
delta logL = -5.92724973103e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18070E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1847       1.0000          .0000       10.000    
     3 'Normalizat'    1.5780       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78965       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6120.965     FROM MIGRAD    STATUS=FAILED        93 CALLS      272 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7868.6        .18142E-02** at limit **
   2  Index         2.2299        8.6984        .50000       -.71940E-05
   3  Normalizat    1.5780        .89013E-01    .32838E-03   -.81186E-04
   4  Prefactor     .78965        .42288E-01    .20996E-03   -.11993E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6120.965     FROM SIMPLEX   STATUS=UNCHANGED    197 CALLS      469 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7868.6        .14762E-02** at limit **
   2  Index         2.2299        8.6984        .39606E-06   -.71940E-05
   3  Normalizat    1.5780        .89013E-01    .53550E-08   -.81186E-04
   4  Prefactor     .78965        .42288E-01    .22837E-08   -.11993E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6120.965     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      503 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    147.64        .36285E-03** at limit **
   2  Index         2.2300        5.7508        .50000       -.71951E-05
   3  Normalizat    1.5780        .32000        .13135E-04   -.81532E-04
   4  Prefactor     .78965        .15214        .83985E-05   -.12020E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.22996
  Normalizat = 1.57801
  Prefactor  = 0.789652
 **********
 **   18 **HESSE 
 **********

 FCN=   6120.965     FROM HESSE     STATUS=OK            29 CALLS      532 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    64.812        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2300        6.1139        .50000       -.58717    
   3  Normalizat    1.5780        .31968        .26270E-05   -.75609    
   4  Prefactor     .78965        .15200        .16797E-05   -1.0011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01104e-10
Minuit parameter uncertainties:
  1  0.000938512
  2  4.21417
  3  0.320091
  4  0.15208
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/425720': 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) = 6120.96493554
delta logL = 1.60588569997e-07

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  9.385e-04  1.000e-04  1.000e+04 ( 1.000e-14)
301        Index:  2.230e+00  4.214e+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:  7.897e-01  1.521e-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.578e+00  3.201e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/425720/cmap_HighResolution_337564801_337824001_4FGL_J1214.5-2318_daily_bin379.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.59e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-09-05 05:06:03.103315', job_id='425720', GAL2='0.79', fit_tolerance='1e-08', EG2='1.58', EG='1.58', time_epoch_completed='1630843563.1', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='1.61e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='379' AND source_name='4FGL J1214.5-2318' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:06:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 425720: <4FGL_J1214.5-2318_daily_bin379> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1214.5-2318_daily_bin379 183.625 -23.3113 337564801 337824001 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 :                                   774.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            917 sec.

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

