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


Performing analysis on: 4FGL_J1214.5-2318_daily_bin1277
RA = 183.625, Dec = -23.3113
tmin = 570326401, tmax = 570585601
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='431881', job_status='RUN', time_executed='2021-09-05 05:06:05.398243', time_epoch_executed='1630843565.4' WHERE source_name='4FGL J1214.5-2318' and cadence='daily' and bin_id='1277'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/431881

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/431881/ft1_4FGL_J1214.5-2318_daily_bin1277.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/431881/ft2_4FGL_J1214.5-2318_daily_bin1277.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/431881/ft1_4FGL_J1214.5-2318_daily_bin1277.fits outfile=/scratch/kocevski/431881/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin1277.fits ra=183.625 dec=-23.3113 rad=12.0 tmin=570326401.0 tmax=570585601.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.48
user 3.25
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/431881/ft1_filtered_4FGL_J1214.5-2318_daily_bin1277.fits" evtable="EVENTS" scfile=/scratch/kocevski/431881/ft2_4FGL_J1214.5-2318_daily_bin1277.fits sctable="SC_DATA" outfile=/scratch/kocevski/431881/ltcube_570326401_570585601_4FGL_J1214.5-2318_daily_bin1277.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/431881/ft2_4FGL_J1214.5-2318_daily_bin1277.fits
.....................!
real 12.10
user 11.67
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/431881/ft1_filtered_4FGL_J1214.5-2318_daily_bin1277.fits evtable="EVENTS" scfile=/scratch/kocevski/431881/ft2_4FGL_J1214.5-2318_daily_bin1277.fits sctable="SC_DATA" expcube=/scratch/kocevski/431881/ltcube_570326401_570585601_4FGL_J1214.5-2318_daily_bin1277.fits outfile=/scratch/kocevski/431881/expmap_570326401_570585601_4FGL_J1214.5-2318_daily_bin1277.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/431881/ltcube_570326401_570585601_4FGL_J1214.5-2318_daily_bin1277.fits
.....................!
real 191.39
user 184.45
sys 5.98

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/431881/ft1_filtered_4FGL_J1214.5-2318_daily_bin1277.fits scfile=/scratch/kocevski/431881/ft2_4FGL_J1214.5-2318_daily_bin1277.fits outfile=/scratch/kocevski/431881/cmap_570326401_570585601_4FGL_J1214.5-2318_daily_bin1277.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/431881/ft1_filtered_4FGL_J1214.5-2318_daily_bin1277.fits scfile=/scratch/kocevski/431881/ft2_4FGL_J1214.5-2318_daily_bin1277.fits outfile=/scratch/kocevski/431881/cmap_HighResolution_570326401_570585601_4FGL_J1214.5-2318_daily_bin1277.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/431881/ft1_filtered_4FGL_J1214.5-2318_daily_bin1277.fits evtable="EVENTS" scfile=/scratch/kocevski/431881/ft2_4FGL_J1214.5-2318_daily_bin1277.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/431881/Model_4FGL_J1214.5-2318_daily_bin1277.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/431881/ft1_filtered_4FGL_J1214.5-2318_daily_bin1277.fits.....................!
real 56.82
user 54.98
sys 1.64

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10350E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    76.557       1.0000         .10000E-03   10000.    
     3 'norm      '    1.1175       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .23253E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .16546E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .18144       1.0000         .10000E-03   10000.    
     8 'norm      '    .65546E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    79.784       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10303E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.4374       1.0000         .10000E-03   10000.    
    17 'Prefactor '    29.228       1.0000         .10000E-03   10000.    
    18 'norm      '    .28632E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    11.119       1.0000         .10000E-03   10000.    
    21 'norm      '    7.6910       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.6328       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5920       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .93939       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=   6445.710     FROM MIGRAD    STATUS=CONVERGED    597 CALLS     3243 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.941       -.30344E-07** at limit **
   2  Prefactor     76.547        64.972       -.13039E-06   -.21341E-04
   3  norm          1.1175        1.0270       -.18976E-07    .61703E-04
   4  Prefactor     .10000E-03    3.0948        .27822E-08** at limit **
   5  Prefactor     .10012E-03    24.045       -.73403E-06** at limit **
   6  norm          .10007E-03    389.66        .11927E-04** at limit **
   7  Prefactor     .31438E-01    19.071       -.93431E-06    .14385E-03
   8  norm          .10000E-03    3.2855        .10198E-06** at limit **
   9  Prefactor     .10000E-03    3.3085        .49526E-08** at limit **
  10  Prefactor     .10000E-03    15.764        .35907E-08** at limit **
  11  Prefactor     79.783        58.392        .11256E-06    .17561E-04
  12  Prefactor     .10000E-03    21.130       -.82503E-08** at limit **
  13  Prefactor     .10000E-03    15.751        .75022E-08** at limit **
  14  Prefactor     .10000E-03    13.211        .16791E-07** at limit **
  15  Prefactor     .10000E-03    4.7975        .10150E-07** at limit **
  16  Prefactor     6.4367        2.4446       -.60895E-08    .47825E-05
  17  Prefactor     29.225        15.483        .14496E-07    .14099E-03
  18  norm          .27635E-01    .54551       -.40312E-07   -.98767E-04
  19  Prefactor     .10000E-03    32.693       -.12790E-06** at limit **
  20  norm          11.115        10.744       -.13543E-06   -.21554E-04
  21  norm          7.6906        7.3624        .19873E-05   -.20274E-03
  22  Prefactor     4.6305        7.1635       -.90966E-06   -.37297E-04
  23  Normalizat    1.5922        .27846       -.15416E-06    .70233E-04
  24  Prefactor     .93953        .13594        .18585E-06    .71951E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 76.5474
  norm       = 1.11745
  Prefactor  = 0.0001
  Prefactor  = 0.000100122
  norm       = 0.000100075
  Prefactor  = 0.0314376
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 79.7826
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.43666
  Prefactor  = 29.2247
  norm       = 0.0276349
  Prefactor  = 0.0001
  norm       = 11.1147
  norm       = 7.69057
  Prefactor  = 4.63048
  Normalizat = 1.59225
  Prefactor  = 0.939526
 **********
 **   18 **HESSE 
 **********

 FCN=   6445.710     FROM HESSE     STATUS=OK           409 CALLS     3652 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     76.547        64.975        .45893E-04   -1.3956    
   3  norm          1.1175        1.1014        .75756E-03   -1.5497    
   4  Prefactor     .10000E-03    3.1062        .13790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10012E-03    224.84        .76069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10007E-03    420.67        .40784E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .31438E-01    20.406        .80227E-01   -1.5673    
   8  norm          .10000E-03    12.322        .24457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.3171        .14243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    15.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     79.783        58.398        .44962E-04   -1.3919    
  12  Prefactor     .10000E-03    21.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.8592        .17152E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.4367        2.4439        .74919E-04   -1.5201    
  17  Prefactor     29.225        15.528        .74108E-04   -1.4626    
  18  norm          .27635E-01    8.3260        .11321E-02   -1.5675    
  19  Prefactor     .10000E-03    32.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          11.115        10.746        .12015E-03   -1.5041    
  21  norm          7.6906        7.4210        .72299E-03   -1.5153    
  22  Prefactor     4.6305        7.1435        .18699E-03   -1.5278    
  23  Normalizat    1.5922        .33192        .34137E-03   -.75218    
  24  Prefactor     .93953        .16289        .21014E-03   -.94773    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80894e-08
Minuit parameter uncertainties:
  1  7.2442e-06
  2  65.0355
  3  1.10139
  4  1.07739e-06
  5  0.0104953
  6  0.0112852
  7  1.59989
  8  0.000195387
  9  7.72088e-08
  10  3.15666e-06
  11  58.4398
  12  1.23324e-06
  13  2.29334e-06
  14  3.95361e-06
  15  7.07228e-07
  16  2.44392
  17  15.5302
  18  0.957744
  19  3.915e-05
  20  10.7476
  21  7.42193
  22  7.14486
  23  0.332384
  24  0.16297
Done.

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

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  2.293e-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:  9.395e-01  1.630e-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.592e+00  3.324e-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: 6.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/431881/likelihoodResults_570326401_570585601_4FGL_J1214.5-2318_daily_bin1277.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) = 6445.71067659
delta logL = -0.000302002705212

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6445.71037638
delta logL = -1.79485232366e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11612E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3460       1.0000          .0000       10.000    
     3 'Normalizat'    1.5922       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93953       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=   6445.710     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      266 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10187E-03    63.559        .18142E-02** at limit **
   2  Index         2.2813        6.1239        .50000        .23751E-04
   3  Normalizat    1.5922        .15852E-01    .34137E-03   -.17987E-03
   4  Prefactor     .93953        .78125E-02    .21014E-03   -.32742E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101873
  Index      = 2.28128
  Normalizat = 1.59225
  Prefactor  = 0.939525
 **********
 **   18 **HESSE 
 **********

 FCN=   6445.710     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      295 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10187E-03    288.10        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2813        6.0534        .50000       -.57489    
   3  Normalizat    1.5922        .34527E-01    .68275E-04   -.75218    
   4  Prefactor     .93953        .17016E-01    .42029E-04   -.94773    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.11523e-08
Minuit parameter uncertainties:
  1  0.046691
  2  348.047
  3  0.0345271
  4  0.0170159
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/431881': 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): 102
logL (Free Index) = 6445.71037537
delta logL = -7.91656930232e-07

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.019e-04  4.669e-02  1.000e-04  1.000e+04 ( 1.000e-14)
301        Index:  2.281e+00  3.480e+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:  9.395e-01  1.702e-02  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.592e+00  3.453e-02  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/431881/cmap_HighResolution_570326401_570585601_4FGL_J1214.5-2318_daily_bin1277.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.92e-03', job_status='DONE', photon_flux_upper_limit='6.50e-08', time_completed='2021-09-05 05:18:34.656289', job_id='431881', GAL2='0.94', fit_tolerance='1e-08', EG2='1.59', EG='1.59', time_epoch_completed='1630844314.66', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='-7.92e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='1277' AND source_name='4FGL J1214.5-2318' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:18:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 431881: <4FGL_J1214.5-2318_daily_bin1277> in cluster <slac> Done

Job <4FGL_J1214.5-2318_daily_bin1277> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 05:05:30 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:05:32 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:05:32 2021
Terminated at Sun Sep  5 05:18:37 2021
Results reported at Sun Sep  5 05:18:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1214.5-2318_daily_bin1277 183.625 -23.3113 570326401 570585601 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 :                                   731.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             323.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            787 sec.

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

