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


Performing analysis on: 4FGL_J1214.5-2318_daily_bin1168
RA = 183.625, Dec = -23.3113
tmin = 542073601, tmax = 542332801
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='430331', job_status='RUN', time_executed='2021-09-05 05:03:19.558090', time_epoch_executed='1630843399.56' WHERE source_name='4FGL J1214.5-2318' and cadence='daily' and bin_id='1168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/430331

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/430331/ft1_4FGL_J1214.5-2318_daily_bin1168.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/430331/ft2_4FGL_J1214.5-2318_daily_bin1168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/430331/ft1_4FGL_J1214.5-2318_daily_bin1168.fits outfile=/scratch/kocevski/430331/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin1168.fits ra=183.625 dec=-23.3113 rad=12.0 tmin=542073601.0 tmax=542332801.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.33
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/430331/ft2_4FGL_J1214.5-2318_daily_bin1168.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/430331/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin1168.fits evtable="EVENTS" outfile="/scratch/kocevski/430331/ft1_filtered_4FGL_J1214.5-2318_daily_bin1168.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/430331/ft1_filtered_4FGL_J1214.5-2318_daily_bin1168.fits" evtable="EVENTS" scfile=/scratch/kocevski/430331/ft2_4FGL_J1214.5-2318_daily_bin1168.fits sctable="SC_DATA" outfile=/scratch/kocevski/430331/ltcube_542073601_542332801_4FGL_J1214.5-2318_daily_bin1168.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/430331/ft2_4FGL_J1214.5-2318_daily_bin1168.fits
.....................!
real 12.24
user 11.87
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/430331/ft1_filtered_4FGL_J1214.5-2318_daily_bin1168.fits evtable="EVENTS" scfile=/scratch/kocevski/430331/ft2_4FGL_J1214.5-2318_daily_bin1168.fits sctable="SC_DATA" expcube=/scratch/kocevski/430331/ltcube_542073601_542332801_4FGL_J1214.5-2318_daily_bin1168.fits outfile=/scratch/kocevski/430331/expmap_542073601_542332801_4FGL_J1214.5-2318_daily_bin1168.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/430331/ltcube_542073601_542332801_4FGL_J1214.5-2318_daily_bin1168.fits
.....................!
real 190.82
user 185.06
sys 5.32

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/430331/ft1_filtered_4FGL_J1214.5-2318_daily_bin1168.fits scfile=/scratch/kocevski/430331/ft2_4FGL_J1214.5-2318_daily_bin1168.fits outfile=/scratch/kocevski/430331/cmap_542073601_542332801_4FGL_J1214.5-2318_daily_bin1168.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/430331/ft1_filtered_4FGL_J1214.5-2318_daily_bin1168.fits scfile=/scratch/kocevski/430331/ft2_4FGL_J1214.5-2318_daily_bin1168.fits outfile=/scratch/kocevski/430331/cmap_HighResolution_542073601_542332801_4FGL_J1214.5-2318_daily_bin1168.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/430331/ft1_filtered_4FGL_J1214.5-2318_daily_bin1168.fits evtable="EVENTS" scfile=/scratch/kocevski/430331/ft2_4FGL_J1214.5-2318_daily_bin1168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/430331/Model_4FGL_J1214.5-2318_daily_bin1168.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/430331/ft1_filtered_4FGL_J1214.5-2318_daily_bin1168.fits.....................!
real 67.90
user 66.58
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .74380       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14747E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .74495       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10624E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.805       1.0000         .10000E-03   10000.    
     8 'norm      '    .12016E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2973       1.0000         .10000E-03   10000.    
    10 'Prefactor '    26.768       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.604       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    39.050       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11127E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.0941       1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.661       1.0000         .10000E-03   10000.    
    18 'norm      '    11.483       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.9812       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .66942       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1893       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=   8400.144     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     2723 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .74603        5.8410       -.23025E-06    .36690E-04
   2  Prefactor     .10000E-03    72.876       -.52836E-06** at limit **
   3  norm          .10000E-03    .54973        .70050E-08** at limit **
   4  Prefactor     .74439        2.2406        .50778E-06   -.27398E-03
   5  Prefactor     .10000E-03    9.3496       -.12184E-06** at limit **
   6  norm          .10000E-03    12.888        .22785E-07** at limit **
   7  Prefactor     17.836        14.182        .34280E-05    .91974E-03
   8  norm          .10005E-03    2.6637       -.22933E-05** at limit **
   9  Prefactor     4.2963        5.0811        .16602E-07    .10024E-03
  10  Prefactor     26.820        44.868        .14138E-05    .21055E-03
  11  Prefactor     11.580        31.315       -.12827E-06   -.32499E-04
  12  Prefactor     .10000E-03    6.2771       -.92418E-07** at limit **
  13  Prefactor     39.012        32.088       -.25844E-06   -.64643E-04
  14  Prefactor     .10000E-03    10.780       -.63130E-07** at limit **
  15  Prefactor     .10329E-03    3.8808        .14830E-05** at limit **
  16  Prefactor     6.0929        2.5492       -.40078E-08   -.13904E-02
  17  Prefactor     20.660        13.930       -.82284E-08   -.22008E-04
  18  norm          11.483        1.7802       -.20712E-08   -.24283E-04
  19  Prefactor     .10000E-03    16.338       -.50342E-07** at limit **
  20  norm          .10000E-03    5.0339        .25374E-07** at limit **
  21  norm          .10000E-03    1.1765        .78176E-08** at limit **
  22  Prefactor     1.9810        2.4922        .24311E-07   -.20744E-04
  23  Normalizat    .66953        .24901        .13113E-05    .45107E-04
  24  Prefactor     1.1893        .12324       -.42389E-06    .18787E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.746031
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.744395
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.8359
  norm       = 0.000100051
  Prefactor  = 4.2963
  Prefactor  = 26.8197
  Prefactor  = 11.5799
  Prefactor  = 0.0001
  Prefactor  = 39.0123
  Prefactor  = 0.0001
  Prefactor  = 0.000103288
  Prefactor  = 6.09287
  Prefactor  = 20.6597
  norm       = 11.483
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.98104
  Normalizat = 0.669532
  Prefactor  = 1.1893
 **********
 **   18 **HESSE 
 **********

 FCN=   8400.144     FROM HESSE     STATUS=OK           395 CALLS     3118 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .74603        33.927        .42771E-02   -1.5535    
   2  Prefactor     .10000E-03    73.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .56282        .66321E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .74439        2.2115        .22635E-03   -1.5535    
   5  Prefactor     .10000E-03    9.3550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    12.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.836        14.601        .94917E-04   -1.4863    
   8  norm          .10005E-03    19.652        .24480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.2963        5.0301        .19434E-03   -1.5293    
  10  Prefactor     26.820        44.717        .77430E-04   -1.4672    
  11  Prefactor     11.580        31.110        .11760E-03   -1.5027    
  12  Prefactor     .10000E-03    6.2791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     39.012        32.033        .32071E-03   -1.4458    
  14  Prefactor     .10000E-03    10.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10329E-03    64.081        .31665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.0929        2.4640        .88593E-04   -1.5214    
  17  Prefactor     20.660        13.921        .88118E-04   -1.4799    
  18  norm          11.483        1.7779        .46015E-04   -1.5030    
  19  Prefactor     .10000E-03    16.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    5.0706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.1791        .97069E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.9810        2.4826        .15811E-03   -1.5426    
  23  Normalizat    .66953        .26989        .44609E-03   -1.0511    
  24  Prefactor     1.1893        .13697        .17726E-03   -.86661    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.08326e-08
Minuit parameter uncertainties:
  1  10.0674
  2  0.000393203
  3  8.26002e-07
  4  2.21176
  5  2.49793e-05
  6  1.43761e-06
  7  14.6042
  8  0.00199335
  9  5.03063
  10  44.7729
  11  31.1531
  12  9.72618e-07
  13  32.0467
  14  2.92878e-05
  15  0.029062
  16  2.46404
  17  13.923
  18  1.77789
  19  2.63037e-05
  20  3.19654e-06
  21  4.90655e-07
  22  2.48269
  23  0.270422
  24  0.137007
Done.

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

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  3.901e+01  3.205e+01  1.000e-04  1.000e+04 ( 1.000e-14)
301        Index:  2.124e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
302        Scale:  2.541e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
570    Prefactor:  1.189e+00  1.370e-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:  6.695e-01  2.704e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.71
Ra Dec: 183.625 -23.311
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 3.35e-08 +/- 2.75e-08
Energy Flux (Fixed Index): 1.75e-05 +/- 1.43e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8400.08178378
delta logL = 0.0621515726889

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8400.05125899
delta logL = 0.0926763638727

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    49.430       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8355       1.0000          .0000       10.000    
     3 'Normalizat'    .67890       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1878       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=   8400.051     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      281 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     49.466        46.641        .28519E-03    .91686E-04
   2  Index         1.8365        .67778        .10697E-01    .31596E-03
   3  Normalizat    .67891        .26220        .44327E-03   -.28725E-04
   4  Prefactor     1.1877        .13632        .17739E-03    .15381E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 49.466
  Index      = 1.83653
  Normalizat = 0.678908
  Prefactor  = 1.18773
 **********
 **   18 **HESSE 
 **********

 FCN=   8400.051     FROM HESSE     STATUS=OK            25 CALLS      306 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     49.466        45.705        .11408E-04   -1.4300    
   2  Index         1.8365        .66441        .21393E-02   -.68503    
   3  Normalizat    .67891        .26229        .17731E-04   -1.0473    
   4  Prefactor     1.1877        .13641        .70955E-05   -.86710    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.49239e-11
Minuit parameter uncertainties:
  1  45.7376
  2  0.667715
  3  0.262774
  4  0.136447
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/430331': 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) = 8400.05125688
delta logL = 0.0926784809817

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  4.947e+01  4.574e+01  1.000e-04  1.000e+04 ( 1.000e-14)
301        Index:  1.837e+00  6.677e-01  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:  1.188e+00  1.364e-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:  6.789e-01  2.628e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.90
Ra Dec: 183.625 -23.311
Photon Index (Free Index): 1.84 +/- 0.67
Photon Flux (Free Index): 2.24e-08 +/- 3.01e-08
Energy Flux (Free Index): 2.41e-05 +/- 3.02e-05

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/430331/cmap_HighResolution_542073601_542332801_4FGL_J1214.5-2318_daily_bin1168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.35e-08', energy_flux2='2.41e-05', photon_flux_error='2.75e-08', dlogl='9.27e-02', energy_flux='1.75e-05', photon_flux2='2.24e-08', job_status='DONE', time_completed='2021-09-05 05:17:10.639715', photon_index_error2='0.67', photon_index2='1.84', ts='4.71', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', energy_flux_error2='3.02e-05', EG='0.67', time_epoch_completed='1630844230.64', return_code='0', job_id='430331', GAL2='1.19', EG2='0.68', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='3.01e-08', ts2='4.90', photon_index='2.12' WHERE bin_id='1168' AND source_name='4FGL J1214.5-2318' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:17:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0129>
Subject: Job 430331: <4FGL_J1214.5-2318_daily_bin1168> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1214.5-2318_daily_bin1168 183.625 -23.3113 542073601 542332801 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 :                                   733.40 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             247.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            981 sec.

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

