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


Performing analysis on: 4FGL_J1214.5-2318_daily_bin731
RA = 183.625, Dec = -23.3113
tmin = 428803201, tmax = 429062401
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='427761', job_status='RUN', time_executed='2021-09-05 04:57:20.086275', time_epoch_executed='1630843040.09' WHERE source_name='4FGL J1214.5-2318' and cadence='daily' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/427761

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/427761/ft1_4FGL_J1214.5-2318_daily_bin731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/427761/ft2_4FGL_J1214.5-2318_daily_bin731.fits


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

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

Done.
real 6.71
user 6.29
sys 0.37

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/427761/ft1_filtered_4FGL_J1214.5-2318_daily_bin731.fits" evtable="EVENTS" scfile=/scratch/kocevski/427761/ft2_4FGL_J1214.5-2318_daily_bin731.fits sctable="SC_DATA" outfile=/scratch/kocevski/427761/ltcube_428803201_429062401_4FGL_J1214.5-2318_daily_bin731.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/427761/ft2_4FGL_J1214.5-2318_daily_bin731.fits
.....................!
real 11.91
user 11.50
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/427761/ft1_filtered_4FGL_J1214.5-2318_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/427761/ft2_4FGL_J1214.5-2318_daily_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/427761/ltcube_428803201_429062401_4FGL_J1214.5-2318_daily_bin731.fits outfile=/scratch/kocevski/427761/expmap_428803201_429062401_4FGL_J1214.5-2318_daily_bin731.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/427761/ltcube_428803201_429062401_4FGL_J1214.5-2318_daily_bin731.fits
.....................!
real 192.24
user 187.83
sys 4.05

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/427761/ft1_filtered_4FGL_J1214.5-2318_daily_bin731.fits scfile=/scratch/kocevski/427761/ft2_4FGL_J1214.5-2318_daily_bin731.fits outfile=/scratch/kocevski/427761/cmap_428803201_429062401_4FGL_J1214.5-2318_daily_bin731.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/427761/ft1_filtered_4FGL_J1214.5-2318_daily_bin731.fits scfile=/scratch/kocevski/427761/ft2_4FGL_J1214.5-2318_daily_bin731.fits outfile=/scratch/kocevski/427761/cmap_HighResolution_428803201_429062401_4FGL_J1214.5-2318_daily_bin731.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/427761/ft1_filtered_4FGL_J1214.5-2318_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/427761/ft2_4FGL_J1214.5-2318_daily_bin731.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/427761/Model_4FGL_J1214.5-2318_daily_bin731.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/427761/ft1_filtered_4FGL_J1214.5-2318_daily_bin731.fits.....................!
real 52.48
user 51.03
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    43.090       1.0000         .10000E-03   10000.    
     3 'norm      '    2.2667       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1950       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    26.677       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11129E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .11524E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.4723       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16645E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .28231       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10603E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.4725       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.7355       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4167       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10344E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.1876       1.0000         .10000E-03   10000.    
    19 'Prefactor '    133.08       1.0000         .10000E-03   10000.    
    20 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10120E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .79550       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1622       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=   6003.119     FROM MIGRAD    STATUS=CONVERGED   1019 CALLS     3200 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.558        .18142E-02** at limit **
   2  Prefactor     43.075        100.80        .61072E-04    .70738E-06
   3  norm          2.2673        2.8993        .13566E-03    .59584E-04
   4  Prefactor     6.1910        9.2038        .16129E-03    .42010E-04
   5  Prefactor     .10000E-03    15.180        .18142E-02** at limit **
   6  norm          26.679        23.964        .77563E-04    .10729E-04
   7  Prefactor     .10000E-03    74.245        .36285E-03** at limit **
   8  norm          .10000E-03    14.888        .33056E-02** at limit **
   9  Prefactor     8.4835        11.916        .13772E-03   -.88904E-04
  10  Prefactor     .10000E-03    96.093        .18142E-02** at limit **
  11  Prefactor     .10000E-03    89.878        .14822    ** at limit **
  12  Prefactor     .10000E-03    8.9655        .18142E-02** at limit **
  13  Prefactor     .10000E-03    22.218        .18142E-02** at limit **
  14  Prefactor     7.4879        23.253        .14671E-03    .29833E-04
  15  Prefactor     4.7392        6.2507        .92452E-03    .62689E-04
  16  Prefactor     3.4165        2.2670        .89317E-04   -.26984E-04
  17  Prefactor     .10000E-03    23.512        .18142E-02** at limit **
  18  norm          4.1877        1.4754        .52573E-04   -.44309E-03
  19  Prefactor     133.20        91.178        .17454E-03    .29312E-05
  20  norm          .10000E-03    5.8726        .18142E-02** at limit **
  21  norm          .10000E-03    5.0057        .16727E-02** at limit **
  22  Prefactor     .10000E-03    3.6022        .14234E-02** at limit **
  23  Normalizat    .79520        .33435        .44046E-03    .51157E-04
  24  Prefactor     1.1622        .15965        .18029E-03    .23016E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 43.0751
  norm       = 2.26731
  Prefactor  = 6.19099
  Prefactor  = 0.0001
  norm       = 26.6789
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.48352
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.4879
  Prefactor  = 4.73916
  Prefactor  = 3.41654
  Prefactor  = 0.0001
  norm       = 4.18767
  Prefactor  = 133.201
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.795204
  Prefactor  = 1.16217
 **********
 **   18 **HESSE 
 **********

 FCN=   6003.119     FROM HESSE     STATUS=OK           385 CALLS     3585 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.566        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     43.075        100.78        .12214E-04   -1.4394    
   3  norm          2.2673        2.8990        .54264E-05   -1.5407    
   4  Prefactor     6.1910        9.2032        .64516E-05   -1.5210    
   5  Prefactor     .10000E-03    15.180        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          26.679        23.963        .15513E-04   -1.4674    
   7  Prefactor     .10000E-03    74.248        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    15.002        .66111E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.4835        11.958        .55089E-05   -1.5125    
  10  Prefactor     .10000E-03    96.106        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    97.633        .14187       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.9656        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    22.218        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.4879        23.255        .58685E-05   -1.5161    
  15  Prefactor     4.7392        6.2496        .36981E-04   -1.5273    
  16  Prefactor     3.4165        2.2669        .35727E-05   -1.5338    
  17  Prefactor     .10000E-03    23.526        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.1877        1.4754        .21029E-05   -1.5299    
  19  Prefactor     133.20        91.154        .69814E-05   -1.3395    
  20  norm          .10000E-03    5.8749        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.0080        .33453E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.6034        .28469E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .79520        .33448        .17618E-04   -1.0025    
  24  Prefactor     1.1622        .15976        .72116E-05   -.87504    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00183e-10
Minuit parameter uncertainties:
  1  8.0232e-05
  2  101.186
  3  2.8992
  4  9.20526
  5  6.48384e-06
  6  23.9721
  7  0.000287866
  8  1.12222e-05
  9  11.9612
  10  0.000236253
  11  0.000589738
  12  7.89739e-06
  13  2.15524e-05
  14  23.2832
  15  6.25045
  16  2.267
  17  0.000197565
  18  1.47538
  19  91.2503
  20  2.41366e-05
  21  9.97336e-06
  22  1.15435e-05
  23  0.335348
  24  0.159829
Done.

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

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  2.155e-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:  1.162e+00  1.598e-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:  7.952e-01  3.353e-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: 8.96e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/427761/likelihoodResults_428803201_429062401_4FGL_J1214.5-2318_daily_bin731.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) = 6003.11910066
delta logL = -0.000214317174141

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6003.11888651
delta logL = -1.60921445058e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2106       1.0000          .0000       10.000    
     3 'Normalizat'    .79519       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1622       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=   6003.119     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      233 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    944.41        .90712E-02** at limit **
   2  Index         2.1937        5.8514        .50000        .66499E-05
   3  Normalizat    .79520        .50105E-01    .99388E-01    .28335E-04
   4  Prefactor     1.1622        .24484E-01    .35593E-01    .10531E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.19368
  Normalizat = 0.795202
  Prefactor  = 1.16217
 **********
 **   18 **HESSE 
 **********

 FCN=   6003.119     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1937        6.0909        .50000       -.59591    
   3  Normalizat    .79520        .31777        .44046E-03   -1.0025    
   4  Prefactor     1.1622        .15608        .18029E-03   -.87504    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.13745e-11
Minuit parameter uncertainties:
  1  8.97161e-05
  2  4.31875
  3  0.318516
  4  0.156139
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/427761': 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) = 6003.11888645
delta logL = -1.07260348159e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
570    Prefactor:  1.162e+00  1.561e-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:  7.952e-01  3.185e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 183.625 -23.311

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/427761/cmap_HighResolution_428803201_429062401_4FGL_J1214.5-2318_daily_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.79e-03', job_status='DONE', photon_flux_upper_limit='8.96e-08', time_completed='2021-09-05 05:09:46.515687', job_id='427761', GAL2='1.16', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1630843786.52', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='-1.07e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='731' AND source_name='4FGL J1214.5-2318' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:09:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 427761: <4FGL_J1214.5-2318_daily_bin731> in cluster <slac> Done

Job <4FGL_J1214.5-2318_daily_bin731> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 04:55:47 2021
Job was executed on host(s) <bullet0304>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 04:55:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 04:55:48 2021
Terminated at Sun Sep  5 05:09:46 2021
Results reported at Sun Sep  5 05:09:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1214.5-2318_daily_bin731 183.625 -23.3113 428803201 429062401 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 :                                   708.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             317.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            839 sec.

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

