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


Performing analysis on: 4FGL_J1214.5-2318_daily_bin970
RA = 183.625, Dec = -23.3113
tmin = 490752001, tmax = 491011201
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='429870', job_status='RUN', time_executed='2021-09-05 05:01:18.574225', time_epoch_executed='1630843278.57' WHERE source_name='4FGL J1214.5-2318' and cadence='daily' and bin_id='970'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/429870

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/429870/ft1_4FGL_J1214.5-2318_daily_bin970.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/429870/ft2_4FGL_J1214.5-2318_daily_bin970.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/429870/ft1_4FGL_J1214.5-2318_daily_bin970.fits outfile=/scratch/kocevski/429870/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin970.fits ra=183.625 dec=-23.3113 rad=12.0 tmin=490752001.0 tmax=491011201.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 5.85
user 5.55
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/429870/ft1_filtered_4FGL_J1214.5-2318_daily_bin970.fits" evtable="EVENTS" scfile=/scratch/kocevski/429870/ft2_4FGL_J1214.5-2318_daily_bin970.fits sctable="SC_DATA" outfile=/scratch/kocevski/429870/ltcube_490752001_491011201_4FGL_J1214.5-2318_daily_bin970.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/429870/ft2_4FGL_J1214.5-2318_daily_bin970.fits
.....................!
real 12.43
user 11.95
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/429870/ft1_filtered_4FGL_J1214.5-2318_daily_bin970.fits evtable="EVENTS" scfile=/scratch/kocevski/429870/ft2_4FGL_J1214.5-2318_daily_bin970.fits sctable="SC_DATA" expcube=/scratch/kocevski/429870/ltcube_490752001_491011201_4FGL_J1214.5-2318_daily_bin970.fits outfile=/scratch/kocevski/429870/expmap_490752001_491011201_4FGL_J1214.5-2318_daily_bin970.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/429870/ltcube_490752001_491011201_4FGL_J1214.5-2318_daily_bin970.fits
.....................!
real 191.70
user 185.45
sys 4.90

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/429870/ft1_filtered_4FGL_J1214.5-2318_daily_bin970.fits scfile=/scratch/kocevski/429870/ft2_4FGL_J1214.5-2318_daily_bin970.fits outfile=/scratch/kocevski/429870/cmap_490752001_491011201_4FGL_J1214.5-2318_daily_bin970.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.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/429870/ft1_filtered_4FGL_J1214.5-2318_daily_bin970.fits scfile=/scratch/kocevski/429870/ft2_4FGL_J1214.5-2318_daily_bin970.fits outfile=/scratch/kocevski/429870/cmap_HighResolution_490752001_491011201_4FGL_J1214.5-2318_daily_bin970.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.53
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/429870/ft1_filtered_4FGL_J1214.5-2318_daily_bin970.fits evtable="EVENTS" scfile=/scratch/kocevski/429870/ft2_4FGL_J1214.5-2318_daily_bin970.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/429870/Model_4FGL_J1214.5-2318_daily_bin970.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/429870/ft1_filtered_4FGL_J1214.5-2318_daily_bin970.fits.....................!
real 72.00
user 70.25
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.853       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.955       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    31.395       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12017E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.586       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.8104       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.851       1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.405       1.0000         .10000E-03   10000.    
    18 'norm      '    .94872       1.0000         .10000E-03   10000.    
    19 'Prefactor '    34.124       1.0000         .10000E-03   10000.    
    20 'norm      '    6.4215       1.0000         .10000E-03   10000.    
    21 'norm      '    33.150       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1769       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .78351       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=   8889.600     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2753 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.6711       -.15086E-07** at limit **
   2  Prefactor     20.855        27.188        .23464E-06    .13560E-04
   3  norm          .10000E-03    .74805       -.25093E-07** at limit **
   4  Prefactor     22.954        6.6547        .56444E-07   -.82673E-04
   5  Prefactor     .10000E-03    7.6669       -.16461E-07** at limit **
   6  norm          31.396        23.516        .11604E-06   -.21986E-05
   7  Prefactor     .10000E-03    14.822       -.11149E-06** at limit **
   8  norm          .10000E-03    1.2498       -.68800E-08** at limit **
   9  Prefactor     .10000E-03    1.8101        .19702E-06** at limit **
  10  Prefactor     .10000E-03    22.515       -.14289E-06** at limit **
  11  Prefactor     .10000E-03    14.885        .16987E-06** at limit **
  12  Prefactor     10.585        10.991        .28837E-07   -.13176E-04
  13  Prefactor     .10000E-03    11.069        .29826E-07** at limit **
  14  Prefactor     .10000E-03    61.825       -.45067E-06** at limit **
  15  Prefactor     3.8105        3.5053       -.84463E-06    .26538E-03
  16  Prefactor     12.851        2.9645        .57252E-07   -.16720E-06
  17  Prefactor     16.406        12.048       -.14242E-06   -.19502E-04
  18  norm          .94887        .62651        .43915E-07   -.66338E-04
  19  Prefactor     34.189        74.558        .93287E-05    .14082E-03
  20  norm          6.4223        8.8218        .36647E-05   -.29973E-03
  21  norm          33.147        7.9715       -.58783E-06   -.23531E-04
  22  Prefactor     .10000E-03    1.2801        .27971E-07** at limit **
  23  Normalizat    1.1769        .19376       -.37991E-06   -.49816E-04
  24  Prefactor     .78351        .94879E-01   -.18388E-06   -.69903E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 20.8548
  norm       = 0.0001
  Prefactor  = 22.9542
  Prefactor  = 0.0001
  norm       = 31.3961
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5853
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.81046
  Prefactor  = 12.851
  Prefactor  = 16.406
  norm       = 0.948865
  Prefactor  = 34.1888
  norm       = 6.42229
  norm       = 33.1475
  Prefactor  = 0.0001
  Normalizat = 1.17688
  Prefactor  = 0.783506
 **********
 **   18 **HESSE 
 **********

 FCN=   8889.600     FROM HESSE     STATUS=OK           403 CALLS     3156 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.6808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     20.855        27.136        .87712E-04   -1.4794    
   3  norm          .10000E-03    1.6332        .15749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     22.954        6.6551        .83604E-04   -1.4749    
   5  Prefactor     .10000E-03    7.6679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          31.396        23.536        .71510E-04   -1.4587    
   7  Prefactor     .10000E-03    15.181        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.2590        .10290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    18.572        .24145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    22.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.585        10.984        .12314E-03   -1.5057    
  13  Prefactor     .10000E-03    11.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    64.131        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.8105        3.5199        .81951E-03   -1.5318    
  16  Prefactor     12.851        2.9641        .75085E-04   -1.4991    
  17  Prefactor     16.406        12.046        .98886E-04   -1.4898    
  18  norm          .94887        .60484        .58497E-03   -1.5513    
  19  Prefactor     34.189        78.912        .68599E-04   -1.4538    
  20  norm          6.4223        8.9846        .79192E-03   -1.5201    
  21  norm          33.147        8.0502        .69597E-04   -1.4556    
  22  Prefactor     .10000E-03    1.2819        .10410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1769        .22465        .31948E-03   -.87320    
  24  Prefactor     .78351        .11127        .19090E-03   -1.0034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.90008e-10
Minuit parameter uncertainties:
  1  6.78697e-07
  2  27.1524
  3  1.25971e-05
  4  6.65536
  5  7.40412e-07
  6  23.5428
  7  1.0342e-05
  8  1.02963e-06
  9  0.000516603
  10  1.1395e-05
  11  2.06812e-05
  12  10.986
  13  4.28247e-06
  14  3.16482e-05
  15  3.5201
  16  2.96415
  17  12.0473
  18  0.604839
  19  79.1542
  20  8.98647
  21  8.05042
  22  6.17976e-07
  23  0.224838
  24  0.111305
Done.

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

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  4.282e-06  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:  7.835e-01  1.113e-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.248e-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: 4.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/429870/likelihoodResults_490752001_491011201_4FGL_J1214.5-2318_daily_bin970.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) = 8889.60085156
delta logL = -0.000430025695096

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8889.60042142
delta logL = 1.13777787192e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0988       1.0000          .0000       10.000    
     3 'Normalizat'    1.1769       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78351       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=   8889.600     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      238 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    446.26        .18142E-01** at limit **
   2  Index         1.4313        5.7079        .10100       -.23863E-08
   3  Normalizat    1.1769        .26323E-01    .31948E-03    .56248E-03
   4  Prefactor     .78351        .13186E-01    .19090E-03    .65259E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.43129
  Normalizat = 1.17688
  Prefactor  = 0.783505
 **********
 **   18 **HESSE 
 **********

 FCN=   8889.600     FROM HESSE     STATUS=OK            23 CALLS      261 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.189        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4313        5.4179        .20200E-01   -.79483    
   3  Normalizat    1.1769        .21993        .63895E-04   -.87320    
   4  Prefactor     .78351        .11023        .38181E-04   -1.0034    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21046e-10
Minuit parameter uncertainties:
  1  3.5193e-06
  2  529.087
  3  0.220105
  4  0.110259
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/429870': 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) = 8889.60041995
delta logL = 1.5854366211e-06

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
570    Prefactor:  7.835e-01  1.103e-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.201e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/429870/cmap_HighResolution_490752001_491011201_4FGL_J1214.5-2318_daily_bin970.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.62e-03', job_status='DONE', photon_flux_upper_limit='4.78e-08', time_completed='2021-09-05 05:15:55.203660', job_id='429870', GAL2='0.78', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1630844155.2', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='1.59e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='970' AND source_name='4FGL J1214.5-2318' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:15:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 429870: <4FGL_J1214.5-2318_daily_bin970> in cluster <slac> Done

Job <4FGL_J1214.5-2318_daily_bin970> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 05:00:26 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:00:28 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:28 2021
Terminated at Sun Sep  5 05:15:55 2021
Results reported at Sun Sep  5 05:15:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1214.5-2318_daily_bin970 183.625 -23.3113 490752001 491011201 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 :                                   866.36 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             282.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   927 sec.
    Turnaround time :                            929 sec.

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

