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


Performing analysis on: 4FGL_J1214.5-2318_daily_bin913
RA = 183.625, Dec = -23.3113
tmin = 475977601, tmax = 476236801
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='428081', job_status='RUN', time_executed='2021-09-05 04:58:26.238979', time_epoch_executed='1630843106.24' WHERE source_name='4FGL J1214.5-2318' and cadence='daily' and bin_id='913'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/428081

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/428081/ft1_4FGL_J1214.5-2318_daily_bin913.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/428081/ft2_4FGL_J1214.5-2318_daily_bin913.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/428081/ft1_4FGL_J1214.5-2318_daily_bin913.fits outfile=/scratch/kocevski/428081/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin913.fits ra=183.625 dec=-23.3113 rad=12.0 tmin=475977601.0 tmax=476236801.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.55
user 3.32
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/428081/ft1_filtered_4FGL_J1214.5-2318_daily_bin913.fits" evtable="EVENTS" scfile=/scratch/kocevski/428081/ft2_4FGL_J1214.5-2318_daily_bin913.fits sctable="SC_DATA" outfile=/scratch/kocevski/428081/ltcube_475977601_476236801_4FGL_J1214.5-2318_daily_bin913.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/428081/ft2_4FGL_J1214.5-2318_daily_bin913.fits
.....................!
real 12.14
user 11.76
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/428081/ft1_filtered_4FGL_J1214.5-2318_daily_bin913.fits evtable="EVENTS" scfile=/scratch/kocevski/428081/ft2_4FGL_J1214.5-2318_daily_bin913.fits sctable="SC_DATA" expcube=/scratch/kocevski/428081/ltcube_475977601_476236801_4FGL_J1214.5-2318_daily_bin913.fits outfile=/scratch/kocevski/428081/expmap_475977601_476236801_4FGL_J1214.5-2318_daily_bin913.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/428081/ltcube_475977601_476236801_4FGL_J1214.5-2318_daily_bin913.fits
.....................!
real 192.19
user 187.08
sys 4.63

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/428081/ft1_filtered_4FGL_J1214.5-2318_daily_bin913.fits scfile=/scratch/kocevski/428081/ft2_4FGL_J1214.5-2318_daily_bin913.fits outfile=/scratch/kocevski/428081/cmap_475977601_476236801_4FGL_J1214.5-2318_daily_bin913.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.39
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/428081/ft1_filtered_4FGL_J1214.5-2318_daily_bin913.fits evtable="EVENTS" scfile=/scratch/kocevski/428081/ft2_4FGL_J1214.5-2318_daily_bin913.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/428081/Model_4FGL_J1214.5-2318_daily_bin913.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/428081/ft1_filtered_4FGL_J1214.5-2318_daily_bin913.fits.....................!
real 65.39
user 63.90
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.5955       1.0000         .10000E-03   10000.    
     3 'norm      '    .78209       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7134       1.0000         .10000E-03   10000.    
     8 'norm      '    .17993E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    44.537       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11033E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.991       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.6724       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.3226       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.1702       1.0000         .10000E-03   10000.    
    18 'norm      '    2.3797       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .33115E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    10.470       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0586       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91752       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=   7800.881     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2773 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.5342        .46136E-07** at limit **
   2  Prefactor     1.7101        429.66        .64731E-06   -.19267E-05
   3  norm          .78079        1.0583        .39960E-06    .46988E-03
   4  Prefactor     .10000E-03    2.3656       -.93541E-07** at limit **
   5  Prefactor     .10000E-03    10.741        .11681E-07** at limit **
   6  norm          .10000E-03    7.2016        .33759E-07** at limit **
   7  Prefactor     4.6885        22.560       -.12635E-05   -.13299E-03
   8  norm          .10000E-03    5.5349        .70915E-06** at limit **
   9  Prefactor     .10000E-03    5.5479       -.68109E-07** at limit **
  10  Prefactor     44.480        57.599       -.79923E-07   -.93956E-04
  11  Prefactor     .10000E-03    10.211       -.79809E-07** at limit **
  12  Prefactor     .10000E-03    48.877       -.12316E-05** at limit **
  13  Prefactor     .10000E-03    21.029       -.20583E-06** at limit **
  14  Prefactor     21.006        20.188       -.98619E-07   -.11465E-03
  15  Prefactor     3.6741        4.5278        .18904E-06   -.96541E-04
  16  Prefactor     5.3224        2.0981       -.15205E-07    .87204E-06
  17  Prefactor     1.1720        28.800        .32263E-05   -.10311E-03
  18  norm          2.3797        1.0170        .13916E-07   -.13533E-03
  19  Prefactor     .10000E-03    488.63        .66553E-06** at limit **
  20  norm          .10000E-03    4.7239        .16371E-07** at limit **
  21  norm          10.466        5.5083        .21177E-06   -.25653E-03
  22  Prefactor     .10000E-03    2.1468       -.26874E-07** at limit **
  23  Normalizat    1.0586        .21172       -.75888E-06   -.11818E-03
  24  Prefactor     .91750        .10293        .10081E-06   -.26198E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.71011
  norm       = 0.78079
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.68852
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.4797
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 21.0065
  Prefactor  = 3.67414
  Prefactor  = 5.32243
  Prefactor  = 1.172
  norm       = 2.37971
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.4664
  Prefactor  = 0.0001
  Normalizat = 1.05856
  Prefactor  = 0.917502
 **********
 **   18 **HESSE 
 **********

 FCN=   7800.881     FROM HESSE     STATUS=OK           401 CALLS     3174 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.5445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.7101        417.28        .33578E-03   -1.5446    
   3  norm          .78079        .94485        .10987E-02   -1.5531    
   4  Prefactor     .10000E-03    7.3757        .26288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    7.2060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.6885        17.635        .18535E-03   -1.5275    
   8  norm          .10000E-03    11.089        .32198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.7648        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     44.480        56.991        .60075E-04   -1.4373    
  11  Prefactor     .10000E-03    10.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    49.980        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    21.036        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.006        20.195        .87422E-04   -1.4791    
  15  Prefactor     3.6741        4.5087        .19724E-03   -1.5325    
  16  Prefactor     5.3224        2.0978        .76493E-04   -1.5247    
  17  Prefactor     1.1720        27.254        .42430E-03   -1.5491    
  18  norm          2.3797        1.0139        .55470E-04   -1.5399    
  19  Prefactor     .10000E-03    497.95        .39438E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.7535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          10.466        5.4298        .12382E-03   -1.5061    
  22  Prefactor     .10000E-03    2.1590        .12612E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0586        .25038        .32660E-03   -.91094    
  24  Prefactor     .91750        .12344        .17621E-03   -.95532    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.04736e-10
Minuit parameter uncertainties:
  1  1.12819e-06
  2  53.8081
  3  0.944863
  4  0.000141913
  5  3.33118e-06
  6  4.6263e-06
  7  17.6548
  8  4.15823e-05
  9  2.2196e-05
  10  57.0612
  11  2.11131e-05
  12  0.00032216
  13  3.9437e-05
  14  20.2011
  15  4.50908
  16  2.09779
  17  11.3088
  18  1.01389
  19  0.000237249
  20  2.46825e-06
  21  5.43007
  22  3.20334e-06
  23  0.250656
  24  0.123477
Done.

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

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  3.944e-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:  9.175e-01  1.235e-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.059e+00  2.507e-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.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/428081/likelihoodResults_475977601_476236801_4FGL_J1214.5-2318_daily_bin913.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) = 7800.88091963
delta logL = -0.000226491243666

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7800.88069345
delta logL = -3.07672962663e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3109       1.0000          .0000       10.000    
     3 'Normalizat'    1.0586       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91750       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=   7800.881     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      237 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    6.5017        .90712E-02** at limit **
   2  Index         2.2914        6.6420        .50000        .85640E-05
   3  Normalizat    1.0586        .30403E-02    .73803E-01   -.26493E-03
   4  Prefactor     .91750        .15464E-02    .45228E-01    .41060E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100014
  Index      = 2.29138
  Normalizat = 1.05856
  Prefactor  = 0.917505
 **********
 **   18 **HESSE 
 **********

 FCN=   7800.881     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      270 TOTAL
                     EDM=   .90E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    68.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2914        8.7902        .50000       -.57249    
   3  Normalizat    1.0586        .98609E-02    .32660E-03   -.91094    
   4  Prefactor     .91750        .50221E-02    .17620E-03   -.95532    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.02068e-08
Minuit parameter uncertainties:
  1  0.00195664
  2  122.072
  3  0.0098609
  4  0.00502211
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/428081': 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) = 7800.88069341
delta logL = -2.64644768322e-07

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.957e-03  1.000e-04  1.000e+04 ( 1.000e-14)
301        Index:  2.291e+00  1.221e+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:  9.175e-01  5.022e-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.059e+00  9.861e-03  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/428081/cmap_HighResolution_475977601_476236801_4FGL_J1214.5-2318_daily_bin913.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.09e-03', job_status='DONE', photon_flux_upper_limit='6.72e-08', time_completed='2021-09-05 05:11:39.191885', job_id='428081', GAL2='0.92', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630843899.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='-2.65e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='913' AND source_name='4FGL J1214.5-2318' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:11:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 428081: <4FGL_J1214.5-2318_daily_bin913> in cluster <slac> Done

Job <4FGL_J1214.5-2318_daily_bin913> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 04:56:17 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 04:56:19 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:19 2021
Terminated at Sun Sep  5 05:11:39 2021
Results reported at Sun Sep  5 05:11:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1214.5-2318_daily_bin913 183.625 -23.3113 475977601 476236801 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 :                                   790.40 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             357.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            922 sec.

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

