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


Performing analysis on: 4FGL_J1214.5-2318_daily_bin375
RA = 183.625, Dec = -23.3113
tmin = 336528001, tmax = 336787201
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='425715', job_status='RUN', time_executed='2021-09-05 04:53:39.797052', time_epoch_executed='1630842819.8' WHERE source_name='4FGL J1214.5-2318' and cadence='daily' and bin_id='375'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/425715

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/425715/ft1_4FGL_J1214.5-2318_daily_bin375.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/425715/ft2_4FGL_J1214.5-2318_daily_bin375.fits


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

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

Done.
real 6.85
user 5.53
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/425715/ft1_filtered_4FGL_J1214.5-2318_daily_bin375.fits" evtable="EVENTS" scfile=/scratch/kocevski/425715/ft2_4FGL_J1214.5-2318_daily_bin375.fits sctable="SC_DATA" outfile=/scratch/kocevski/425715/ltcube_336528001_336787201_4FGL_J1214.5-2318_daily_bin375.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/425715/ft2_4FGL_J1214.5-2318_daily_bin375.fits
.....................!
real 11.83
user 11.43
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/425715/ft1_filtered_4FGL_J1214.5-2318_daily_bin375.fits evtable="EVENTS" scfile=/scratch/kocevski/425715/ft2_4FGL_J1214.5-2318_daily_bin375.fits sctable="SC_DATA" expcube=/scratch/kocevski/425715/ltcube_336528001_336787201_4FGL_J1214.5-2318_daily_bin375.fits outfile=/scratch/kocevski/425715/expmap_336528001_336787201_4FGL_J1214.5-2318_daily_bin375.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/425715/ltcube_336528001_336787201_4FGL_J1214.5-2318_daily_bin375.fits
.....................!
real 190.51
user 184.96
sys 4.96

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/425715/ft1_filtered_4FGL_J1214.5-2318_daily_bin375.fits scfile=/scratch/kocevski/425715/ft2_4FGL_J1214.5-2318_daily_bin375.fits outfile=/scratch/kocevski/425715/cmap_336528001_336787201_4FGL_J1214.5-2318_daily_bin375.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.57
user 0.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/425715/ft1_filtered_4FGL_J1214.5-2318_daily_bin375.fits evtable="EVENTS" scfile=/scratch/kocevski/425715/ft2_4FGL_J1214.5-2318_daily_bin375.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/425715/Model_4FGL_J1214.5-2318_daily_bin375.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/425715/ft1_filtered_4FGL_J1214.5-2318_daily_bin375.fits.....................!
real 51.26
user 49.44
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    43.238       1.0000         .10000E-03   10000.    
     3 'norm      '    .41479E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    13.834       1.0000         .10000E-03   10000.    
     7 'Prefactor '    39.995       1.0000         .10000E-03   10000.    
     8 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13829       1.0000         .10000E-03   10000.    
    10 'Prefactor '    100.49       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.2334       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.6494       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10915E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.1099       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10999E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.6211       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.9986       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .86847       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=   5612.344     FROM MIGRAD    STATUS=CONVERGED    545 CALLS     2775 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.7110        .23943E-05** at limit **
   2  Prefactor     43.230        91.772       -.10385E-04   -.48275E-04
   3  norm          .10001E-03    2.0011        .55759E-06** at limit **
   4  Prefactor     .10000E-03    3.2894        .47458E-08** at limit **
   5  Prefactor     .10000E-03    26.821        .21898E-04** at limit **
   6  norm          13.851        32.853        .12703E-04   -.86023E-05
   7  Prefactor     39.997        24.890       -.22893E-05    .11114E-04
   8  norm          .10000E-03    3.4016       -.57989E-07** at limit **
   9  Prefactor     .15473        4.7392       -.93038E-06   -.58448E-04
  10  Prefactor     100.52        68.966        .24536E-04    .29292E-04
  11  Prefactor     .10000E-03    29.061       -.25105E-04** at limit **
  12  Prefactor     5.2445        20.212       -.79882E-05    .17330E-04
  13  Prefactor     .10000E-03    39.374       -.26624E-04** at limit **
  14  Prefactor     .10000E-03    45.900        .41266E-04** at limit **
  15  Prefactor     .10000E-03    8.6942       -.28288E-05** at limit **
  16  Prefactor     4.6505        2.8201       -.25791E-06    .17511E-03
  17  Prefactor     .10000E-03    41.668        .80895E-06** at limit **
  18  norm          5.1116        1.8874        .14611E-07   -.27940E-03
  19  Prefactor     .10000E-03    122.91       -.24295E-04** at limit **
  20  norm          2.6270        10.373       -.26272E-05   -.17359E-03
  21  norm          .10000E-03    3.4901       -.16055E-06** at limit **
  22  Prefactor     .10000E-03    2.7816       -.34725E-06** at limit **
  23  Normalizat    1.9980        .32360        .16499E-06   -.11498E-03
  24  Prefactor     .86838        .15134       -.15916E-05   -.34447E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 43.2302
  norm       = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.8509
  Prefactor  = 39.997
  norm       = 0.0001
  Prefactor  = 0.154732
  Prefactor  = 100.525
  Prefactor  = 0.0001
  Prefactor  = 5.24449
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.65045
  Prefactor  = 0.0001
  norm       = 5.11164
  Prefactor  = 0.0001
  norm       = 2.62698
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.99804
  Prefactor  = 0.868376
 **********
 **   18 **HESSE 
 **********

 FCN=   5612.344     FROM HESSE     STATUS=OK           393 CALLS     3168 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.7135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     43.230        88.164        .60967E-04   -1.4392    
   3  norm          .10001E-03    8.5937        .19565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.2971        .13268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    26.854        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          13.851        32.919        .10769E-03   -1.4963    
   7  Prefactor     39.997        24.870        .63382E-04   -1.4442    
   8  norm          .10000E-03    3.4081        .13474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .15473        30.162        .31337E-02   -1.5629    
  10  Prefactor     100.52        69.030        .20052E-03   -1.3699    
  11  Prefactor     .10000E-03    29.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.2445        20.180        .17571E-03   -1.5250    
  13  Prefactor     .10000E-03    39.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    46.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.8991        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.6505        2.8166        .95084E-04   -1.5277    
  17  Prefactor     .10000E-03    42.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.1116        1.8870        .58716E-04   -1.5256    
  19  Prefactor     .10000E-03    123.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.6270        10.369        .25191E-03   -1.5384    
  21  norm          .10000E-03    3.5115        .13665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.7920        .12200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.9980        .38273        .34515E-03   -.64600    
  24  Prefactor     .86838        .17993        .22650E-03   -.97255    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.59407e-08
Minuit parameter uncertainties:
  1  4.62611e-06
  2  88.4316
  3  0.000449086
  4  1.31046e-06
  5  4.3131e-06
  6  32.9621
  7  24.8764
  8  7.63839e-06
  9  4.32143
  10  69.0851
  11  3.57845e-05
  12  20.2062
  13  5.51932e-05
  14  0.000253772
  15  5.91305e-05
  16  2.81665
  17  0.000115167
  18  1.88705
  19  0.000195307
  20  10.3757
  21  1.07294e-05
  22  5.94468e-06
  23  0.38332
  24  0.180056
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
570    Prefactor:  8.684e-01  1.801e-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.998e+00  3.833e-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.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.75e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/425715/likelihoodResults_336528001_336787201_4FGL_J1214.5-2318_daily_bin375.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) = 5612.34390802
delta logL = -0.000120960001368

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5612.34378788
delta logL = -8.24613380246e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12158E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2536       1.0000          .0000       10.000    
     3 'Normalizat'    1.9980       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86838       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=   5612.344     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      269 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10223E-03    118.36        .18142E-02** at limit **
   2  Index         2.1767        7.9999        .50000        .14454E-04
   3  Normalizat    1.9980        .15579E-01    .34515E-03   -.27759E-03
   4  Prefactor     .86837        .72211E-02    .22650E-03   -.49188E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102227
  Index      = 2.17669
  Normalizat = 1.99804
  Prefactor  = 0.868374
 **********
 **   18 **HESSE 
 **********

 FCN=   5612.344     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      298 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10223E-03    509.56        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1767        8.0422        .50000       -.60002    
   3  Normalizat    1.9980        .32933E-01    .69030E-04   -.64600    
   4  Prefactor     .86837        .15266E-01    .45299E-04   -.97255    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.83277e-09
Minuit parameter uncertainties:
  1  0.0679657
  2  298.631
  3  0.0329336
  4  0.0152656
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/425715': 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) = 5612.34378726
delta logL = -2.01333932637e-07

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.022e-04  6.797e-02  1.000e-04  1.000e+04 ( 1.000e-14)
301        Index:  2.177e+00  2.986e+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:  8.684e-01  1.527e-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.998e+00  3.293e-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/425715/cmap_HighResolution_336528001_336787201_4FGL_J1214.5-2318_daily_bin375.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.75e-03', job_status='DONE', photon_flux_upper_limit='1.15e-07', time_completed='2021-09-05 05:04:42.352936', job_id='425715', GAL2='0.87', fit_tolerance='1e-08', EG2='2.00', EG='2.00', time_epoch_completed='1630843482.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='-2.01e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='375' AND source_name='4FGL J1214.5-2318' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:04:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 425715: <4FGL_J1214.5-2318_daily_bin375> in cluster <slac> Done

Job <4FGL_J1214.5-2318_daily_bin375> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 04:50:45 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 04:50:46 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:50:46 2021
Terminated at Sun Sep  5 05:04:43 2021
Results reported at Sun Sep  5 05:04:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1214.5-2318_daily_bin375 183.625 -23.3113 336528001 336787201 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 :                                   657.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             281.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            838 sec.

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

