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


Performing analysis on: 4FGL_J1214.5-2318_daily_bin1096
RA = 183.625, Dec = -23.3113
tmin = 523411201, tmax = 523670401
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='430120', job_status='RUN', time_executed='2021-09-05 05:01:54.110056', time_epoch_executed='1630843314.11' WHERE source_name='4FGL J1214.5-2318' and cadence='daily' and bin_id='1096'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/430120

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/430120/ft1_4FGL_J1214.5-2318_daily_bin1096.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/430120/ft2_4FGL_J1214.5-2318_daily_bin1096.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/430120/ft1_4FGL_J1214.5-2318_daily_bin1096.fits outfile=/scratch/kocevski/430120/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin1096.fits ra=183.625 dec=-23.3113 rad=12.0 tmin=523411201.0 tmax=523670401.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.53
user 3.32
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/430120/ft1_filtered_4FGL_J1214.5-2318_daily_bin1096.fits" evtable="EVENTS" scfile=/scratch/kocevski/430120/ft2_4FGL_J1214.5-2318_daily_bin1096.fits sctable="SC_DATA" outfile=/scratch/kocevski/430120/ltcube_523411201_523670401_4FGL_J1214.5-2318_daily_bin1096.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/430120/ft2_4FGL_J1214.5-2318_daily_bin1096.fits
.....................!
real 12.00
user 11.63
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/430120/ft1_filtered_4FGL_J1214.5-2318_daily_bin1096.fits evtable="EVENTS" scfile=/scratch/kocevski/430120/ft2_4FGL_J1214.5-2318_daily_bin1096.fits sctable="SC_DATA" expcube=/scratch/kocevski/430120/ltcube_523411201_523670401_4FGL_J1214.5-2318_daily_bin1096.fits outfile=/scratch/kocevski/430120/expmap_523411201_523670401_4FGL_J1214.5-2318_daily_bin1096.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/430120/ltcube_523411201_523670401_4FGL_J1214.5-2318_daily_bin1096.fits
.....................!
real 191.10
user 185.51
sys 5.18

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/430120/ft1_filtered_4FGL_J1214.5-2318_daily_bin1096.fits scfile=/scratch/kocevski/430120/ft2_4FGL_J1214.5-2318_daily_bin1096.fits outfile=/scratch/kocevski/430120/cmap_523411201_523670401_4FGL_J1214.5-2318_daily_bin1096.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=183.625 yref=-23.3113 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/430120/ft1_filtered_4FGL_J1214.5-2318_daily_bin1096.fits evtable="EVENTS" scfile=/scratch/kocevski/430120/ft2_4FGL_J1214.5-2318_daily_bin1096.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/430120/Model_4FGL_J1214.5-2318_daily_bin1096.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/430120/ft1_filtered_4FGL_J1214.5-2318_daily_bin1096.fits.....................!
real 77.91
user 76.37
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.3949       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.870       1.0000         .10000E-03   10000.    
     8 'norm      '    .46817E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11492E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10469E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5640       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.4378       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.9588       1.0000         .10000E-03   10000.    
    18 'norm      '    1.4909       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.1881       1.0000         .10000E-03   10000.    
    21 'norm      '    .10257E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.5824       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3893       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84725       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=   9269.848     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     2433 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.0399       -.81294E-09** at limit **
   2  Prefactor     .10000E-03    18.170       -.86815E-07** at limit **
   3  norm          .10000E-03    .44828       -.12646E-07** at limit **
   4  Prefactor     9.3937        5.2847       -.19800E-06    .16546E-04
   5  Prefactor     .10000E-03    10.987       -.66060E-07** at limit **
   6  norm          .10000E-03    23.534        .12219E-05** at limit **
   7  Prefactor     11.976        13.091        .17974E-05    .22844E-03
   8  norm          .11830E-03    2.3883       -.10571E-05** at limit **
   9  Prefactor     .10000E-03    3.4378       -.13409E-06** at limit **
  10  Prefactor     .10000E-03    28.105       -.32076E-05** at limit **
  11  Prefactor     .10000E-03    6.4170       -.42927E-07** at limit **
  12  Prefactor     .10000E-03    42.028       -.18999E-05** at limit **
  13  Prefactor     .10000E-03    102.10       -.31508E-05** at limit **
  14  Prefactor     .10000E-03    6.2785        .20295E-07** at limit **
  15  Prefactor     1.5629        1.3721        .18975E-06   -.19592E-02
  16  Prefactor     6.4379        2.3975       -.36543E-07   -.37485E-05
  17  Prefactor     8.9589        9.9265       -.18855E-06   -.54449E-05
  18  norm          1.4909        .95860       -.25605E-07   -.10069E-03
  19  Prefactor     .10000E-03    32.358        .35986E-05** at limit **
  20  norm          7.1877        9.0958        .51429E-07    .25353E-05
  21  norm          .10000E-03    4.7051       -.37367E-07** at limit **
  22  Prefactor     3.5805        5.1423       -.11195E-06   -.92384E-04
  23  Normalizat    1.3892        .19903        .10320E-05    .12294E-03
  24  Prefactor     .84737        .97180E-01   -.24566E-06    .32411E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.39371
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.9759
  norm       = 0.000118299
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.56292
  Prefactor  = 6.43791
  Prefactor  = 8.95887
  norm       = 1.49089
  Prefactor  = 0.0001
  norm       = 7.18765
  norm       = 0.0001
  Prefactor  = 3.5805
  Normalizat = 1.38917
  Prefactor  = 0.847368
 **********
 **   18 **HESSE 
 **********

 FCN=   9269.848     FROM HESSE     STATUS=OK           401 CALLS     2834 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.0545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    18.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .98180        .12564E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.3937        5.3039        .13075E-03   -1.5095    
   5  Prefactor     .10000E-03    11.001        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    23.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.976        18.853        .11628E-03   -1.5016    
   8  norm          .11830E-03    9.8819        .38985E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.5736        .34847E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    28.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.4237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    43.046        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    103.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.3094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.5629        6.2935        .17007E-02   -1.5458    
  16  Prefactor     6.4379        2.5099        .88068E-04   -1.5200    
  17  Prefactor     8.9589        9.9345        .13391E-03   -1.5109    
  18  norm          1.4909        .94742        .71747E-04   -1.5464    
  19  Prefactor     .10000E-03    32.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.1877        9.0921        .14961E-03   -1.5172    
  21  norm          .10000E-03    4.7509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.5805        5.1064        .21351E-03   -1.5330    
  23  Normalizat    1.3892        .23781        .30133E-03   -.80942    
  24  Prefactor     .84737        .11605        .18914E-03   -.98005    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.68663e-09
Minuit parameter uncertainties:
  1  1.59513e-06
  2  8.31485e-06
  3  3.0106e-06
  4  5.30417
  5  2.61442e-06
  6  4.56991e-05
  7  18.8628
  8  0.0268987
  9  2.96371e-06
  10  0.000188138
  11  2.73301e-06
  12  3.65464e-05
  13  0.000235148
  14  2.35552e-06
  15  6.27349
  16  2.50992
  17  9.93636
  18  0.947426
  19  0.000245126
  20  9.09383
  21  1.63026e-06
  22  5.10698
  23  0.237999
  24  0.116084
Done.

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

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  2.351e-04  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.474e-01  1.161e-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.389e+00  2.380e-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: 7.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/430120/likelihoodResults_523411201_523670401_4FGL_J1214.5-2318_daily_bin1096.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) = 9269.84779327
delta logL = -4.59864204458e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9269.84774759
delta logL = -3.13124473905e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12409E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0853       1.0000          .0000       10.000    
     3 'Normalizat'    1.3892       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84737       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=   9265.565     FROM MIGRAD    STATUS=CONVERGED    246 CALLS      432 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .15020E-02    .26829E-03** at limit **
   2  Index         7.0903        1.2757        .60196E-01    .38662E-03
   3  Normalizat    1.1767        .63915E-01    .72839E-01    .12727E-04
   4  Prefactor     .91599        .31531E-01    .44331E-01   -.16369E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.09035
  Normalizat = 1.17671
  Prefactor  = 0.915985
 **********
 **   18 **HESSE 
 **********

 FCN=   9265.565     FROM HESSE     STATUS=OK            35 CALLS      467 TOTAL
                     EDM=   .79E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .42895E-03    .68573E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.0903        .13841        .25158E-02    .43132    
   3  Normalizat    1.1767        .23674        .32236E-03   -.87325    
   4  Prefactor     .91599        .11807        .18247E-03   -.95585    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.89385e-12
Minuit parameter uncertainties:
  1  2.03945e-10
  2  0.138432
  3  0.236959
  4  0.118104
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/430120': 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) = 9265.56460525
delta logL = 4.28314203445

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  2.039e-10  1.000e-04  1.000e+04 ( 1.000e-14)
301        Index:  7.090e+00  1.384e-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:  9.160e-01  1.181e-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.177e+00  2.370e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.26
Ra Dec: 183.625 -23.311
Photon Index (Free Index): 7.09 +/- 0.14
Photon Flux (Free Index): 1.53e-07 +/- 6.40e-08
Energy Flux (Free Index): 1.82e-05 +/- 7.58e-06

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/430120/cmap_HighResolution_523411201_523670401_4FGL_J1214.5-2318_daily_bin1096.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.85e-03', comment='SUCCESS', energy_flux2='1.82e-05', dlogl='4.28e+00', photon_flux2='1.53e-07', job_status='DONE', time_completed='2021-09-05 05:16:49.883305', photon_index_error2='0.14', photon_index2='7.09', ts='-0.00', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='7.72e-08', energy_flux_error2='7.58e-06', EG='1.39', time_epoch_completed='1630844209.88', return_code='0', job_id='430120', GAL2='0.92', EG2='1.18', return_code2='0', photon_flux_error2='6.40e-08', ts2='9.26', photon_index='2.12' WHERE bin_id='1096' AND source_name='4FGL J1214.5-2318' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:16:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0182>
Subject: Job 430120: <4FGL_J1214.5-2318_daily_bin1096> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1214.5-2318_daily_bin1096 183.625 -23.3113 523411201 523670401 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 :                                   882.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             321.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            968 sec.

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

