/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 199 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 = 7394
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1214.5-2318_daily_bin166
RA = 183.625, Dec = -23.3113
tmin = 282355201, tmax = 282614401
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='424211', job_status='RUN', time_executed='2021-09-05 04:49:06.979792', time_epoch_executed='1630842546.98' WHERE source_name='4FGL J1214.5-2318' and cadence='daily' and bin_id='166'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/424211

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/424211/ft1_4FGL_J1214.5-2318_daily_bin166.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/424211/ft2_4FGL_J1214.5-2318_daily_bin166.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/424211/ft1_4FGL_J1214.5-2318_daily_bin166.fits outfile=/scratch/kocevski/424211/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin166.fits ra=183.625 dec=-23.3113 rad=12.0 tmin=282355201.0 tmax=282614401.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.85
user 3.43
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/424211/ft1_filtered_4FGL_J1214.5-2318_daily_bin166.fits" evtable="EVENTS" scfile=/scratch/kocevski/424211/ft2_4FGL_J1214.5-2318_daily_bin166.fits sctable="SC_DATA" outfile=/scratch/kocevski/424211/ltcube_282355201_282614401_4FGL_J1214.5-2318_daily_bin166.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/424211/ft2_4FGL_J1214.5-2318_daily_bin166.fits
.....................!
real 12.11
user 11.76
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/424211/ft1_filtered_4FGL_J1214.5-2318_daily_bin166.fits evtable="EVENTS" scfile=/scratch/kocevski/424211/ft2_4FGL_J1214.5-2318_daily_bin166.fits sctable="SC_DATA" expcube=/scratch/kocevski/424211/ltcube_282355201_282614401_4FGL_J1214.5-2318_daily_bin166.fits outfile=/scratch/kocevski/424211/expmap_282355201_282614401_4FGL_J1214.5-2318_daily_bin166.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/424211/ltcube_282355201_282614401_4FGL_J1214.5-2318_daily_bin166.fits
.....................!
real 191.49
user 185.94
sys 5.13

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/424211/ft1_filtered_4FGL_J1214.5-2318_daily_bin166.fits scfile=/scratch/kocevski/424211/ft2_4FGL_J1214.5-2318_daily_bin166.fits outfile=/scratch/kocevski/424211/cmap_282355201_282614401_4FGL_J1214.5-2318_daily_bin166.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/424211/ft1_filtered_4FGL_J1214.5-2318_daily_bin166.fits scfile=/scratch/kocevski/424211/ft2_4FGL_J1214.5-2318_daily_bin166.fits outfile=/scratch/kocevski/424211/cmap_HighResolution_282355201_282614401_4FGL_J1214.5-2318_daily_bin166.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.60
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/424211/ft1_filtered_4FGL_J1214.5-2318_daily_bin166.fits evtable="EVENTS" scfile=/scratch/kocevski/424211/ft2_4FGL_J1214.5-2318_daily_bin166.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/424211/Model_4FGL_J1214.5-2318_daily_bin166.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/424211/ft1_filtered_4FGL_J1214.5-2318_daily_bin166.fits.....................!
real 59.09
user 56.56
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .17507E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.6403       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .17914E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    20.126       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10326E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.3801       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    57.138       1.0000         .10000E-03   10000.    
    11 'Prefactor '    91.953       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10862E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15242E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.1454       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.3957       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.6592       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    7.6723       1.0000         .10000E-03   10000.    
    21 'norm      '    9.6721       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .45371       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2287       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .89976       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=   6532.300     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2754 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.946       -.21907E-06** at limit **
   2  Prefactor     .10001E-03    125.62       -.49436E-05** at limit **
   3  norm          1.6397        1.5616        .38604E-07    .45607E-04
   4  Prefactor     .10000E-03    7.0326        .92491E-07** at limit **
   5  Prefactor     .10000E-03    10.006        .20922E-07** at limit **
   6  norm          20.124        24.524        .43142E-06   -.10683E-04
   7  Prefactor     .10000E-03    17.547       -.10404E-05** at limit **
   8  norm          1.3784        4.1962        .89573E-06   -.25409E-03
   9  Prefactor     .10000E-03    3.4729       -.35529E-07** at limit **
  10  Prefactor     57.195        57.756        .88099E-05    .59350E-03
  11  Prefactor     91.941        49.478       -.28786E-05   -.30849E-03
  12  Prefactor     .10000E-03    33.285        .20329E-05** at limit **
  13  Prefactor     .10001E-03    117.50        .81582E-05** at limit **
  14  Prefactor     2.1433        73.511        .27773E-04   -.18978E-03
  15  Prefactor     .10000E-03    4.2532        .36651E-07** at limit **
  16  Prefactor     2.3962        1.9053        .99085E-07   -.68155E-04
  17  Prefactor     .10000E-03    4.9084        .32001E-07** at limit **
  18  norm          3.6592        1.2941       -.18322E-08   -.42792E-03
  19  Prefactor     .10000E-03    21.612        .53172E-06** at limit **
  20  norm          7.6730        10.297        .33862E-06   -.35082E-04
  21  norm          9.6729        5.7718       -.38096E-06   -.25035E-03
  22  Prefactor     .45364        5.7265        .34299E-05   -.30709E-03
  23  Normalizat    1.2285        .25459       -.15224E-06   -.21479E-03
  24  Prefactor     .89982        .12521       -.16185E-05   -.15376E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  norm       = 1.63973
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.1245
  Prefactor  = 0.0001
  norm       = 1.37839
  Prefactor  = 0.0001
  Prefactor  = 57.1947
  Prefactor  = 91.9412
  Prefactor  = 0.000100002
  Prefactor  = 0.000100005
  Prefactor  = 2.14333
  Prefactor  = 0.0001
  Prefactor  = 2.39617
  Prefactor  = 0.0001
  norm       = 3.65925
  Prefactor  = 0.0001
  norm       = 7.67297
  norm       = 9.67293
  Prefactor  = 0.453643
  Normalizat = 1.22846
  Prefactor  = 0.899819
 **********
 **   18 **HESSE 
 **********

 FCN=   6532.300     FROM HESSE     STATUS=OK           395 CALLS     3149 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.524        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    127.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.6397        1.5727        .95383E-04   -1.5452    
   4  Prefactor     .10000E-03    7.3313        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          20.124        24.559        .89280E-04   -1.4810    
   7  Prefactor     .10000E-03    17.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3784        4.1679        .27047E-03   -1.5473    
   9  Prefactor     .10000E-03    3.4909        .14678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     57.195        61.807        .53071E-04   -1.4194    
  11  Prefactor     91.941        49.580        .41907E-04   -1.3787    
  12  Prefactor     .10000E-03    33.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    117.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.1433        77.852        .14068E-02   -1.5415    
  15  Prefactor     .10000E-03    4.3059        .16256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.3962        1.8967        .96517E-04   -1.5398    
  17  Prefactor     .10000E-03    4.9181        .17487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.6592        1.2935        .52389E-04   -1.5325    
  19  Prefactor     .10000E-03    21.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          7.6730        10.294        .14478E-03   -1.5154    
  21  norm          9.6729        5.6901        .12885E-03   -1.5086    
  22  Prefactor     .45364        5.7404        .35897E-03   -1.5573    
  23  Normalizat    1.2285        .30784        .34091E-03   -.85728    
  24  Prefactor     .89982        .15146        .19124E-03   -.96147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.24378e-09
Minuit parameter uncertainties:
  1  9.06115e-06
  2  0.00226007
  3  1.57274
  4  3.44783e-05
  5  3.74783e-06
  6  24.5718
  7  0.000186642
  8  4.16876
  9  1.65871e-05
  10  61.8765
  11  49.6022
  12  0.000577195
  13  0.00160303
  14  25.8709
  15  6.43439e-06
  16  1.89673
  17  3.41097e-06
  18  1.29347
  19  0.000115077
  20  10.2965
  21  5.69044
  22  3.22747
  23  0.308292
  24  0.151533
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
570    Prefactor:  8.998e-01  1.515e-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.228e+00  3.083e-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: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/424211/likelihoodResults_282355201_282614401_4FGL_J1214.5-2318_daily_bin166.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) = 6532.30044153
delta logL = -4.03643607569e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6532.30044153
delta logL = -4.03632984671e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96363E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1242       1.0000          .0000       10.000    
     3 'Normalizat'    1.2285       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89982       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=   6532.300     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      206 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    32.312        .90712E-02** at limit **
   2  Index         2.1872        5.1962        .50000       -.42478E-05
   3  Normalizat    1.2285        .30453E-02    .77024E-01    .12987E-04
   4  Prefactor     .89982        .14953E-02    .45003E-01    .71051E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100009
  Index      = 2.18723
  Normalizat = 1.22847
  Prefactor  = 0.899817
 **********
 **   18 **HESSE 
 **********

 FCN=   6532.300     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      239 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    215.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1872        5.4226        .50000       -.59747    
   3  Normalizat    1.2285        .78562E-02    .34091E-03   -.85728    
   4  Prefactor     .89982        .38621E-02    .19124E-03   -.96147    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.29392e-09
Minuit parameter uncertainties:
  1  0.00275698
  2  86.7652
  3  0.00785622
  4  0.00386215
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/424211': 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) = 6532.3004011
delta logL = 6.65277184453e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
570    Prefactor:  8.998e-01  3.862e-03  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.228e+00  7.856e-03  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/424211/cmap_HighResolution_282355201_282614401_4FGL_J1214.5-2318_daily_bin166.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.99e-03', job_status='DONE', photon_flux_upper_limit='1.19e-07', time_completed='2021-09-05 05:00:52.691522', job_id='424211', GAL2='0.90', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1630843252.69', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='6.65e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='166' AND source_name='4FGL J1214.5-2318' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:00:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 424211: <4FGL_J1214.5-2318_daily_bin166> in cluster <slac> Done

Job <4FGL_J1214.5-2318_daily_bin166> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 04:45:38 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 04:45:39 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:45:39 2021
Terminated at Sun Sep  5 05:00:53 2021
Results reported at Sun Sep  5 05:00:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1214.5-2318_daily_bin166 183.625 -23.3113 282355201 282614401 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 :                                   701.33 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             271.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            915 sec.

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

