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


Performing analysis on: 4FGL_J1214.5-2318_daily_bin360
RA = 183.625, Dec = -23.3113
tmin = 332640001, tmax = 332899201
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='425691', job_status='RUN', time_executed='2021-09-05 04:53:21.210651', time_epoch_executed='1630842801.21' WHERE source_name='4FGL J1214.5-2318' and cadence='daily' and bin_id='360'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/425691

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/425691/ft1_4FGL_J1214.5-2318_daily_bin360.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/425691/ft2_4FGL_J1214.5-2318_daily_bin360.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/425691/ft1_4FGL_J1214.5-2318_daily_bin360.fits outfile=/scratch/kocevski/425691/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin360.fits ra=183.625 dec=-23.3113 rad=12.0 tmin=332640001.0 tmax=332899201.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.36
user 3.11
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/425691/ft2_4FGL_J1214.5-2318_daily_bin360.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/425691/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin360.fits evtable="EVENTS" outfile="/scratch/kocevski/425691/ft1_filtered_4FGL_J1214.5-2318_daily_bin360.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 2.16
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/425691/ft1_filtered_4FGL_J1214.5-2318_daily_bin360.fits" evtable="EVENTS" scfile=/scratch/kocevski/425691/ft2_4FGL_J1214.5-2318_daily_bin360.fits sctable="SC_DATA" outfile=/scratch/kocevski/425691/ltcube_332640001_332899201_4FGL_J1214.5-2318_daily_bin360.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/425691/ft2_4FGL_J1214.5-2318_daily_bin360.fits
.....................!
real 11.89
user 11.50
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/425691/ft1_filtered_4FGL_J1214.5-2318_daily_bin360.fits evtable="EVENTS" scfile=/scratch/kocevski/425691/ft2_4FGL_J1214.5-2318_daily_bin360.fits sctable="SC_DATA" expcube=/scratch/kocevski/425691/ltcube_332640001_332899201_4FGL_J1214.5-2318_daily_bin360.fits outfile=/scratch/kocevski/425691/expmap_332640001_332899201_4FGL_J1214.5-2318_daily_bin360.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/425691/ltcube_332640001_332899201_4FGL_J1214.5-2318_daily_bin360.fits
.....................!
real 191.60
user 185.46
sys 5.21

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/425691/ft1_filtered_4FGL_J1214.5-2318_daily_bin360.fits scfile=/scratch/kocevski/425691/ft2_4FGL_J1214.5-2318_daily_bin360.fits outfile=/scratch/kocevski/425691/cmap_332640001_332899201_4FGL_J1214.5-2318_daily_bin360.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/425691/ft1_filtered_4FGL_J1214.5-2318_daily_bin360.fits scfile=/scratch/kocevski/425691/ft2_4FGL_J1214.5-2318_daily_bin360.fits outfile=/scratch/kocevski/425691/cmap_HighResolution_332640001_332899201_4FGL_J1214.5-2318_daily_bin360.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/425691/ft1_filtered_4FGL_J1214.5-2318_daily_bin360.fits evtable="EVENTS" scfile=/scratch/kocevski/425691/ft2_4FGL_J1214.5-2318_daily_bin360.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/425691/Model_4FGL_J1214.5-2318_daily_bin360.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/425691/ft1_filtered_4FGL_J1214.5-2318_daily_bin360.fits.....................!
real 55.16
user 53.66
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5749       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10832E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.7498       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    28.676       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.6464       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.080       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    69.998       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.6073       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.6290       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.326       1.0000         .10000E-03   10000.    
    18 'norm      '    .57784       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .17982E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    4.5650       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.4581       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5955       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .89708       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=   6236.451     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2718 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6090        28.296       -.30370E-04   -.23969E-04
   2  Prefactor     .10000E-03    44.871       -.13339E-04** at limit **
   3  norm          3.7495        2.1884       -.26709E-07    .11594E-03
   4  Prefactor     .10000E-03    4.1733        .13370E-07** at limit **
   5  Prefactor     .10000E-03    11.960       -.23052E-06** at limit **
   6  norm          28.684        30.958       -.48041E-06    .28859E-05
   7  Prefactor     3.6437        23.199       -.28152E-05   -.81385E-04
   8  norm          .10000E-03    3.7918        .41771E-06** at limit **
   9  Prefactor     11.080        8.3734       -.30044E-06   -.83566E-04
  10  Prefactor     .10000E-03    49.013        .10431E-04** at limit **
  11  Prefactor     .10000E-03    34.819        .42214E-05** at limit **
  12  Prefactor     .10000E-03    20.204       -.12599E-05** at limit **
  13  Prefactor     70.000        55.841        .20354E-05    .83805E-05
  14  Prefactor     .10000E-03    15.523        .13562E-06** at limit **
  15  Prefactor     2.6084        7.6003        .71012E-06   -.40114E-03
  16  Prefactor     4.6289        2.6273       -.15468E-06    .28128E-04
  17  Prefactor     17.328        17.755       -.10591E-05    .39467E-04
  18  norm          .57816        1.0847       -.63585E-06   -.14495E-02
  19  Prefactor     .10000E-03    313.88       -.55112E-04** at limit **
  20  norm          4.5647        6.9910       -.36780E-06   -.91133E-04
  21  norm          .10000E-03    5.0508       -.45936E-06** at limit **
  22  Prefactor     7.4555        6.2918       -.74918E-06   -.12344E-02
  23  Normalizat    1.5955        .29004        .26213E-05    .10386E-03
  24  Prefactor     .89708        .13502        .65418E-06    .27206E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.60902
  Prefactor  = 0.0001
  norm       = 3.74954
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 28.6837
  Prefactor  = 3.64373
  norm       = 0.0001
  Prefactor  = 11.0802
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 69.9998
  Prefactor  = 0.0001
  Prefactor  = 2.60841
  Prefactor  = 4.62889
  Prefactor  = 17.3282
  norm       = 0.578159
  Prefactor  = 0.000100003
  norm       = 4.56466
  norm       = 0.0001
  Prefactor  = 7.45551
  Normalizat = 1.5955
  Prefactor  = 0.897076
 **********
 **   18 **HESSE 
 **********

 FCN=   6236.451     FROM HESSE     STATUS=OK           397 CALLS     3115 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6090        28.560        .18820E-03   -1.5279    
   2  Prefactor     .10000E-03    44.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.7495        2.1907        .86340E-04   -1.5321    
   4  Prefactor     .10000E-03    4.2204        .15749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          28.684        30.975        .74815E-04   -1.4636    
   7  Prefactor     3.6437        23.011        .21155E-03   -1.5326    
   8  norm          .10000E-03    3.8081        .14921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.080        8.3793        .12036E-03   -1.5042    
  10  Prefactor     .10000E-03    48.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    34.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    20.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     70.000        55.789        .47979E-04   -1.4033    
  14  Prefactor     .10000E-03    15.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.6084        7.5397        .25263E-03   -1.5385    
  16  Prefactor     4.6289        2.6131        .88826E-04   -1.5278    
  17  Prefactor     17.328        17.770        .96222E-04   -1.4875    
  18  norm          .57816        1.0574        .10733E-03   -1.5556    
  19  Prefactor     .10000E-03    314.08        .20322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.5647        6.9862        .18841E-03   -1.5281    
  21  norm          .10000E-03    5.0837        .17297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.4555        6.3368        .73428E-03   -1.5162    
  23  Normalizat    1.5955        .34939        .33882E-03   -.75129    
  24  Prefactor     .89708        .16271        .20743E-03   -.96243    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.98319e-09
Minuit parameter uncertainties:
  1  22.9622
  2  6.38634e-05
  3  2.19076
  4  8.97102e-06
  5  9.60755e-07
  6  30.9924
  7  18.3236
  8  9.52135e-06
  9  8.38021
  10  5.46559e-05
  11  4.6803e-05
  12  6.81573e-05
  13  55.831
  14  2.25553e-05
  15  7.54242
  16  2.61317
  17  17.7751
  18  1.05747
  19  0.00206157
  20  6.98744
  21  2.62855e-05
  22  6.33741
  23  0.349926
  24  0.162803
Done.

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

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  7.000e+01  5.583e+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:  8.971e-01  1.628e-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.596e+00  3.499e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.86
Ra Dec: 183.625 -23.311
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 6.01e-08 +/- 4.79e-08
Energy Flux (Fixed Index): 3.13e-05 +/- 2.50e-05

TS (Fixed Index): 3.86
Ra Dec: 183.625 -23.311
Photon Flux Upper Limit: 1.73e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.31e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/425691/likelihoodResults_332640001_332899201_4FGL_J1214.5-2318_daily_bin360.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): 0
logL (Free Index) = 6234.24319613
delta logL = 2.20783634348

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6234.21022231
delta logL = 2.24081016423

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    52.597       1.0000         .10000E-03   10000.    
     2 'Index     '    .83917       1.0000          .0000       10.000    
     3 'Normalizat'    1.6239       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89857       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=   6234.210     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      245 TOTAL
                     EDM=   .73E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     52.613        65.000        .67270E-05   -.50067E-04
   2  Index         .83896        .56499        .25878E-04    .12928E-04
   3  Normalizat    1.6236        .27807        .16678E-06   -.44467E-04
   4  Prefactor     .89870        .13353       -.18981E-06   -.54502E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 52.6128
  Index      = 0.838959
  Normalizat = 1.62363
  Prefactor  = 0.898703
 **********
 **   18 **HESSE 
 **********

 FCN=   6234.210     FROM HESSE     STATUS=OK            29 CALLS      274 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     52.613        64.920        .55302E-04   -1.4256    
   2  Index         .83896        .56251        .99514E-03   -.98308    
   3  Normalizat    1.6236        .33516        .33614E-03   -.74361    
   4  Prefactor     .89870        .16110        .20728E-03   -.96186    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24874e-11
Minuit parameter uncertainties:
  1  65.0072
  2  0.566443
  3  0.335624
  4  0.161183
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/425691': 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) = 6234.21022153
delta logL = 2.24081094495

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  5.261e+01  6.501e+01  1.000e-04  1.000e+04 ( 1.000e-14)
301        Index:  8.390e-01  5.664e-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:  8.987e-01  1.612e-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.624e+00  3.356e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.33
Ra Dec: 183.625 -23.311
Photon Index (Free Index): 0.84 +/- 0.57
Photon Flux (Free Index): 1.01e-08 +/- 9.16e-09
Energy Flux (Free Index): 2.08e-04 +/- 2.06e-04

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/425691/cmap_HighResolution_332640001_332899201_4FGL_J1214.5-2318_daily_bin360.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.31e-02', comment='SUCCESS', photon_flux='6.01e-08', energy_flux2='2.08e-04', photon_flux_error='4.79e-08', dlogl='2.24e+00', energy_flux='3.13e-05', photon_flux2='1.01e-08', job_status='DONE', time_completed='2021-09-05 05:04:43.620159', photon_index_error2='0.57', photon_index2='0.84', ts='3.86', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.73e-07', energy_flux_error2='2.06e-04', EG='1.60', time_epoch_completed='1630843483.62', return_code='0', job_id='425691', GAL2='0.90', EG2='1.62', return_code2='0', energy_flux_error='2.50e-05', photon_flux_error2='9.16e-09', ts2='8.33', photon_index='2.12' WHERE bin_id='360' AND source_name='4FGL J1214.5-2318' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:04:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 425691: <4FGL_J1214.5-2318_daily_bin360> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1214.5-2318_daily_bin360 183.625 -23.3113 332640001 332899201 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 :                                   676.43 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             261.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            841 sec.

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

