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


Performing analysis on: 4FGL_J1214.5-2318_daily_bin1012
RA = 183.625, Dec = -23.3113
tmin = 501638401, tmax = 501897601
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='429934', job_status='RUN', time_executed='2021-09-05 05:03:21.657167', time_epoch_executed='1630843401.66' WHERE source_name='4FGL J1214.5-2318' and cadence='daily' and bin_id='1012'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/429934

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/429934/ft1_4FGL_J1214.5-2318_daily_bin1012.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/429934/ft2_4FGL_J1214.5-2318_daily_bin1012.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/429934/ft1_4FGL_J1214.5-2318_daily_bin1012.fits outfile=/scratch/kocevski/429934/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin1012.fits ra=183.625 dec=-23.3113 rad=12.0 tmin=501638401.0 tmax=501897601.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.49
user 3.24
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/429934/ft1_filtered_4FGL_J1214.5-2318_daily_bin1012.fits" evtable="EVENTS" scfile=/scratch/kocevski/429934/ft2_4FGL_J1214.5-2318_daily_bin1012.fits sctable="SC_DATA" outfile=/scratch/kocevski/429934/ltcube_501638401_501897601_4FGL_J1214.5-2318_daily_bin1012.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/429934/ft2_4FGL_J1214.5-2318_daily_bin1012.fits
.....................!
real 13.12
user 12.66
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/429934/ft1_filtered_4FGL_J1214.5-2318_daily_bin1012.fits evtable="EVENTS" scfile=/scratch/kocevski/429934/ft2_4FGL_J1214.5-2318_daily_bin1012.fits sctable="SC_DATA" expcube=/scratch/kocevski/429934/ltcube_501638401_501897601_4FGL_J1214.5-2318_daily_bin1012.fits outfile=/scratch/kocevski/429934/expmap_501638401_501897601_4FGL_J1214.5-2318_daily_bin1012.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/429934/ltcube_501638401_501897601_4FGL_J1214.5-2318_daily_bin1012.fits
.....................!
real 190.80
user 186.46
sys 3.84

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/429934/ft1_filtered_4FGL_J1214.5-2318_daily_bin1012.fits scfile=/scratch/kocevski/429934/ft2_4FGL_J1214.5-2318_daily_bin1012.fits outfile=/scratch/kocevski/429934/cmap_501638401_501897601_4FGL_J1214.5-2318_daily_bin1012.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=183.625 yref=-23.3113 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/429934/ft1_filtered_4FGL_J1214.5-2318_daily_bin1012.fits scfile=/scratch/kocevski/429934/ft2_4FGL_J1214.5-2318_daily_bin1012.fits outfile=/scratch/kocevski/429934/cmap_HighResolution_501638401_501897601_4FGL_J1214.5-2318_daily_bin1012.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.5065       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11710E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .90914       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8609       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .91898E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    14.445       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5427       1.0000         .10000E-03   10000.    
    10 'Prefactor '    39.672       1.0000         .10000E-03   10000.    
    11 'Prefactor '    91.579       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.1121       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.9005       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.457       1.0000         .10000E-03   10000.    
    18 'norm      '    .88261E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    159.88       1.0000         .10000E-03   10000.    
    20 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .23404E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4928       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .68224       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=   6630.981     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     3284 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.5109        20.145        .15000E-05   -.47830E-04
   2  Prefactor     .10001E-03    126.09       -.17466E-05** at limit **
   3  norm          .90973        1.5683        .50845E-07    .20706E-03
   4  Prefactor     2.8620        5.6909        .19742E-06   -.52513E-04
   5  Prefactor     .10000E-03    23.799        .37889E-06** at limit **
   6  norm          .10000E-03    7.1779        .98655E-07** at limit **
   7  Prefactor     .10005E-03    15.051        .85710E-05** at limit **
   8  norm          14.445        6.6351        .11392E-06   -.26764E-02
   9  Prefactor     1.5439        15.950        .34311E-06   -.42000E-04
  10  Prefactor     39.706        48.414       -.42759E-05   -.61085E-04
  11  Prefactor     91.585        61.585        .10153E-05   -.15167E-03
  12  Prefactor     .10000E-03    12.582        .16028E-05** at limit **
  13  Prefactor     .10000E-03    37.663        .21593E-05** at limit **
  14  Prefactor     .10000E-03    19.801        .35538E-06** at limit **
  15  Prefactor     5.1133        5.3161        .37765E-06   -.51071E-04
  16  Prefactor     6.9006        2.6354        .23929E-07   -.39192E-04
  17  Prefactor     14.455        14.078       -.21695E-06    .88795E-04
  18  norm          .88651E-01    .62477        .93911E-06    .11388E-02
  19  Prefactor     159.68        90.800       -.40910E-05    .14840E-04
  20  norm          .10000E-03    3.8780        .22359E-06** at limit **
  21  norm          .10000E-03    14.862       -.15532E-04** at limit **
  22  Prefactor     .10000E-03    4.3625        .43847E-06** at limit **
  23  Normalizat    1.4927        .24099       -.28506E-05   -.53304E-03
  24  Prefactor     .68216        .11207       -.81825E-06   -.31862E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.51087
  Prefactor  = 0.000100006
  norm       = 0.909726
  Prefactor  = 2.86203
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100049
  norm       = 14.4454
  Prefactor  = 1.54391
  Prefactor  = 39.7061
  Prefactor  = 91.5849
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 5.11328
  Prefactor  = 6.90064
  Prefactor  = 14.4553
  norm       = 0.0886509
  Prefactor  = 159.679
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.49272
  Prefactor  = 0.682164
 **********
 **   18 **HESSE 
 **********

 FCN=   6630.981     FROM HESSE     STATUS=OK           399 CALLS     3683 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.5109        20.180        .13744E-03   -1.5124    
   2  Prefactor     .10001E-03    126.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .90973        1.3693        .12807E-02   -1.5517    
   4  Prefactor     2.8620        5.6548        .24034E-03   -1.5370    
   5  Prefactor     .10000E-03    23.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    7.1811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10005E-03    58.433        .49569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          14.445        5.8978        .10538E-03   -1.4948    
   9  Prefactor     1.5439        13.409        .34319E-03   -1.5459    
  10  Prefactor     39.706        48.295        .63638E-04   -1.4447    
  11  Prefactor     91.585        56.963        .41992E-04   -1.3791    
  12  Prefactor     .10000E-03    12.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    37.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.1133        5.3175        .17782E-03   -1.5256    
  16  Prefactor     6.9006        2.6366        .77497E-04   -1.5183    
  17  Prefactor     14.455        14.077        .52671E-03   -1.4947    
  18  norm          .88651E-01    1.4148        .12193E-02   -1.5648    
  19  Prefactor     159.68        91.142        .15946E-03   -1.3174    
  20  norm          .10000E-03    3.8933        .15665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    15.250        .33001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.4173        .16572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4927        .28519        .30124E-03   -.77983    
  24  Prefactor     .68216        .13143        .20336E-03   -1.0423    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30347e-09
Minuit parameter uncertainties:
  1  20.1957
  2  0.0018099
  3  1.36933
  4  5.65584
  5  0.000161519
  6  2.16133e-05
  7  0.00337609
  8  5.89805
  9  9.10231
  10  48.3424
  11  56.9969
  12  0.000206529
  13  0.000476404
  14  0.000217168
  15  5.31802
  16  2.63665
  17  14.0802
  18  0.707932
  19  91.2228
  20  2.06086e-05
  21  0.000177753
  22  1.88287e-05
  23  0.285498
  24  0.131488
Done.

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

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  4.764e-04  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:  6.822e-01  1.315e-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.493e+00  2.855e-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: 8.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/429934/likelihoodResults_501638401_501897601_4FGL_J1214.5-2318_daily_bin1012.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) = 6630.98159833
delta logL = -0.000125838151689

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6630.97989348
delta logL = 0.00157900993054

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .99132E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    3.4080       1.0000          .0000       10.000    
     3 'Normalizat'    1.4927       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68216       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=   6630.978     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      283 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .41267        2.1775        .73766E-01    .43089E-03
   2  Index         3.2043        .10475        .50000       -.15415E-05
   3  Normalizat    1.4879        .56716E-02    .68179E-01    .76907E-04
   4  Prefactor     .68289        .27181E-02    .42163E-01    .36167E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.412668
  Index      = 3.20426
  Normalizat = 1.48794
  Prefactor  = 0.682893
 **********
 **   18 **HESSE 
 **********

 FCN=   6630.978     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      318 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .41267        6343.7        .24900E-02   -1.5579    
   2  Index         3.2043        6.2933        .18939E-02   -.36736    
   3  Normalizat    1.4879        .32974        .30161E-03   -.78118    
   4  Prefactor     .68289        .11319        .20325E-03   -1.0420    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.36563e-08
Minuit parameter uncertainties:
  1  70.8405
  2  43.0068
  3  0.330221
  4  0.113225
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/429934': 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) = 6630.97820118
delta logL = 0.0032713120454

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  4.127e-01  7.084e+01  1.000e-04  1.000e+04 ( 1.000e-14)
301        Index:  3.204e+00  4.301e+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:  6.829e-01  1.132e-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.488e+00  3.302e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 183.625 -23.311

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/429934/cmap_HighResolution_501638401_501897601_4FGL_J1214.5-2318_daily_bin1012.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.69e-03', job_status='DONE', photon_flux_upper_limit='8.83e-08', time_completed='2021-09-05 05:16:03.852508', job_id='429934', GAL2='0.68', fit_tolerance='1e-08', EG2='1.49', EG='1.49', time_epoch_completed='1630844163.85', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='3.27e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='1012' AND source_name='4FGL J1214.5-2318' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:16:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 429934: <4FGL_J1214.5-2318_daily_bin1012> in cluster <slac> Done

Job <4FGL_J1214.5-2318_daily_bin1012> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 05:00:32 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:00:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 05:00:33 2021
Terminated at Sun Sep  5 05:16:04 2021
Results reported at Sun Sep  5 05:16:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1214.5-2318_daily_bin1012 183.625 -23.3113 501638401 501897601 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 :                                   756.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             270.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            932 sec.

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

