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


Performing analysis on: 4FGL_J1214.5-2318_daily_bin1468
RA = 183.625, Dec = -23.3113
tmin = 619833601, tmax = 620092801
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='433573', job_status='RUN', time_executed='2021-09-05 05:11:45.134109', time_epoch_executed='1630843905.13' WHERE source_name='4FGL J1214.5-2318' and cadence='daily' and bin_id='1468'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433573

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433573/ft1_4FGL_J1214.5-2318_daily_bin1468.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433573/ft2_4FGL_J1214.5-2318_daily_bin1468.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/433573/ft1_4FGL_J1214.5-2318_daily_bin1468.fits outfile=/scratch/kocevski/433573/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin1468.fits ra=183.625 dec=-23.3113 rad=12.0 tmin=619833601.0 tmax=620092801.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.45
user 3.21
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/433573/ft1_filtered_4FGL_J1214.5-2318_daily_bin1468.fits" evtable="EVENTS" scfile=/scratch/kocevski/433573/ft2_4FGL_J1214.5-2318_daily_bin1468.fits sctable="SC_DATA" outfile=/scratch/kocevski/433573/ltcube_619833601_620092801_4FGL_J1214.5-2318_daily_bin1468.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/433573/ft2_4FGL_J1214.5-2318_daily_bin1468.fits
.....................!
real 12.17
user 11.78
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433573/ft1_filtered_4FGL_J1214.5-2318_daily_bin1468.fits evtable="EVENTS" scfile=/scratch/kocevski/433573/ft2_4FGL_J1214.5-2318_daily_bin1468.fits sctable="SC_DATA" expcube=/scratch/kocevski/433573/ltcube_619833601_620092801_4FGL_J1214.5-2318_daily_bin1468.fits outfile=/scratch/kocevski/433573/expmap_619833601_620092801_4FGL_J1214.5-2318_daily_bin1468.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/433573/ltcube_619833601_620092801_4FGL_J1214.5-2318_daily_bin1468.fits
.....................!
real 189.91
user 184.85
sys 4.66

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/433573/ft1_filtered_4FGL_J1214.5-2318_daily_bin1468.fits scfile=/scratch/kocevski/433573/ft2_4FGL_J1214.5-2318_daily_bin1468.fits outfile=/scratch/kocevski/433573/cmap_619833601_620092801_4FGL_J1214.5-2318_daily_bin1468.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/433573/ft1_filtered_4FGL_J1214.5-2318_daily_bin1468.fits scfile=/scratch/kocevski/433573/ft2_4FGL_J1214.5-2318_daily_bin1468.fits outfile=/scratch/kocevski/433573/cmap_HighResolution_619833601_620092801_4FGL_J1214.5-2318_daily_bin1468.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.54
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/433573/ft1_filtered_4FGL_J1214.5-2318_daily_bin1468.fits evtable="EVENTS" scfile=/scratch/kocevski/433573/ft2_4FGL_J1214.5-2318_daily_bin1468.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/433573/Model_4FGL_J1214.5-2318_daily_bin1468.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/433573/ft1_filtered_4FGL_J1214.5-2318_daily_bin1468.fits.....................!
real 66.91
user 65.46
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.0251       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.948       1.0000         .10000E-03   10000.    
     8 'norm      '    6.2536       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .22069       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.4158       1.0000         .10000E-03   10000.    
    11 'Prefactor '    35.620       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10701E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    33.444       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.2376       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.8472       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .20886E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.9174       1.0000         .10000E-03   10000.    
    19 'Prefactor '    40.352       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.5526       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11381E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1049       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0954       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=   8067.589     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     3219 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2123       -.43942E-07** at limit **
   2  Prefactor     .10000E-03    17.405        .14208E-05** at limit **
   3  norm          .10000E-03    .29541       -.77522E-08** at limit **
   4  Prefactor     8.0283        6.3718        .34018E-07    .20196E-03
   5  Prefactor     .10000E-03    38.955        .32463E-05** at limit **
   6  norm          .10000E-03    4.9148       -.17638E-07** at limit **
   7  Prefactor     23.957        26.595        .15915E-05    .14055E-03
   8  norm          6.2500        8.3770       -.36722E-05   -.31651E-03
   9  Prefactor     .21135        4.7019       -.30773E-05    .11075E-03
  10  Prefactor     8.4380        169.81        .66743E-04    .47368E-04
  11  Prefactor     35.626        38.564        .57234E-05    .35347E-03
  12  Prefactor     .10001E-03    29.404       -.17795E-05** at limit **
  13  Prefactor     33.425        47.458       -.21939E-04    .40304E-04
  14  Prefactor     .10000E-03    10.014        .27656E-06** at limit **
  15  Prefactor     4.2368        4.6160       -.24336E-05   -.20832E-03
  16  Prefactor     7.8470        2.8217        .29399E-06   -.16022E-03
  17  Prefactor     .10004E-03    10.774        .49365E-05** at limit **
  18  norm          5.9175        1.6443        .40459E-06   -.76217E-03
  19  Prefactor     40.176        160.11       -.26956E-03   -.57475E-04
  20  norm          .10000E-03    3.3628        .73507E-07** at limit **
  21  norm          7.5792        12.718        .42270E-04    .17026E-03
  22  Prefactor     .10001E-03    8.3130       -.20326E-05** at limit **
  23  Normalizat    1.1053        .25467        .50192E-05   -.22242E-03
  24  Prefactor     1.0952        .12386       -.15217E-05    .68580E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.0283
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.9569
  norm       = 6.24997
  Prefactor  = 0.211353
  Prefactor  = 8.43797
  Prefactor  = 35.6262
  Prefactor  = 0.000100005
  Prefactor  = 33.4248
  Prefactor  = 0.0001
  Prefactor  = 4.23681
  Prefactor  = 7.84702
  Prefactor  = 0.000100039
  norm       = 5.91752
  Prefactor  = 40.1757
  norm       = 0.0001
  norm       = 7.57917
  Prefactor  = 0.00010001
  Normalizat = 1.10529
  Prefactor  = 1.09524
 **********
 **   18 **HESSE 
 **********

 FCN=   8067.589     FROM HESSE     STATUS=OK           397 CALLS     3616 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.2151        .18004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .29589        .47672E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.0283        6.3545        .14153E-03   -1.5141    
   5  Prefactor     .10000E-03    39.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    4.9154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.957        26.424        .81854E-04   -1.4729    
   8  norm          6.2500        8.3051        .16052E-03   -1.5208    
   9  Prefactor     .21135        23.890        .33860E-02   -1.5616    
  10  Prefactor     8.4380        166.04        .13819E-03   -1.5127    
  11  Prefactor     35.626        37.936        .67147E-04   -1.4514    
  12  Prefactor     .10001E-03    29.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     33.425        47.117        .69291E-04   -1.4551    
  14  Prefactor     .10000E-03    10.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.2368        4.6140        .19243E-03   -1.5296    
  16  Prefactor     7.8470        2.8221        .86386E-04   -1.5148    
  17  Prefactor     .10004E-03    87.219        .56085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.9175        1.6439        .57405E-04   -1.5221    
  19  Prefactor     40.176        159.33        .63101E-04   -1.4439    
  20  norm          .10000E-03    3.3667        .16086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.5792        12.647        .14593E-03   -1.5157    
  22  Prefactor     .10001E-03    8.4112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1053        .29397        .38231E-03   -.89582    
  24  Prefactor     1.0952        .14480        .19310E-03   -.89619    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98142e-09
Minuit parameter uncertainties:
  1  3.42622e-06
  2  5.96816e-06
  3  3.37497e-07
  4  6.355
  5  3.10449e-05
  6  1.45526e-06
  7  26.4372
  8  8.30668
  9  4.49482
  10  75.101
  11  37.962
  12  0.000796391
  13  47.1697
  14  1.68807e-05
  15  4.61443
  16  2.82217
  17  0.00371064
  18  1.64391
  19  160.772
  20  1.30338e-05
  21  12.6513
  22  0.000567021
  23  0.294403
  24  0.144847
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
570    Prefactor:  1.095e+00  1.448e-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.105e+00  2.944e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.86
Ra Dec: 183.625 -23.311
Photon Flux Upper Limit: 1.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/433573/likelihoodResults_619833601_620092801_4FGL_J1214.5-2318_daily_bin1468.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) = 8067.57422747
delta logL = 0.0144531737396

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8067.56431945
delta logL = 0.0243611899286

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    25.907       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3753       1.0000          .0000       10.000    
     3 'Normalizat'    1.0928       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0981       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=   8067.564     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      290 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.914        75.322        .78704E-04    .79447E-05
   2  Index         2.3738        1.6459        .10532E-01    .60379E-04
   3  Normalizat    1.0927        .29934        .38417E-03   -.23230E-04
   4  Prefactor     1.0982        .14623        .19285E-03    .21247E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.9143
  Index      = 2.37384
  Normalizat = 1.09268
  Prefactor  = 1.09818
 **********
 **   18 **HESSE 
 **********

 FCN=   8067.564     FROM HESSE     STATUS=OK            25 CALLS      315 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.914        52.036        .31482E-05   -1.4689    
   2  Index         2.3738        1.1477        .42127E-03   -.55299    
   3  Normalizat    1.0927        .29086        .15367E-04   -.89987    
   4  Prefactor     1.0982        .14452        .38571E-04   -.89525    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19099e-10
Minuit parameter uncertainties:
  1  52.1272
  2  1.16208
  3  0.291291
  4  0.14457
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433573': 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) = 8067.56431736
delta logL = 0.0243632835636

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  2.591e+01  5.213e+01  1.000e-04  1.000e+04 ( 1.000e-14)
301        Index:  2.374e+00  1.162e+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.098e+00  1.446e-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.093e+00  2.913e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.86
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/433573/cmap_HighResolution_619833601_620092801_4FGL_J1214.5-2318_daily_bin1468.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.44e-03', job_status='DONE', photon_flux_upper_limit='1.25e-07', time_completed='2021-09-05 05:26:13.592539', job_id='433573', GAL2='1.10', fit_tolerance='1e-08', EG2='1.09', EG='1.11', time_epoch_completed='1630844773.59', return_code2='0', ts='0.86', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='2.44e-02', ts2='0.91', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='1468' AND source_name='4FGL J1214.5-2318' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:26:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 433573: <4FGL_J1214.5-2318_daily_bin1468> in cluster <slac> Done

Job <4FGL_J1214.5-2318_daily_bin1468> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 05:10:45 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:10:47 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:10:47 2021
Terminated at Sun Sep  5 05:26:14 2021
Results reported at Sun Sep  5 05:26:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1214.5-2318_daily_bin1468 183.625 -23.3113 619833601 620092801 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 :                                   851.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            929 sec.

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

