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


Performing analysis on: 4FGL_J1214.5-2318_daily_bin890
RA = 183.625, Dec = -23.3113
tmin = 470016001, tmax = 470275201
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='428006', job_status='RUN', time_executed='2021-09-05 04:59:27.623958', time_epoch_executed='1630843167.62' WHERE source_name='4FGL J1214.5-2318' and cadence='daily' and bin_id='890'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/428006

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/428006/ft1_4FGL_J1214.5-2318_daily_bin890.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/428006/ft2_4FGL_J1214.5-2318_daily_bin890.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/428006/ft1_4FGL_J1214.5-2318_daily_bin890.fits outfile=/scratch/kocevski/428006/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin890.fits ra=183.625 dec=-23.3113 rad=12.0 tmin=470016001.0 tmax=470275201.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.52
user 3.29
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/428006/ft1_filtered_4FGL_J1214.5-2318_daily_bin890.fits" evtable="EVENTS" scfile=/scratch/kocevski/428006/ft2_4FGL_J1214.5-2318_daily_bin890.fits sctable="SC_DATA" outfile=/scratch/kocevski/428006/ltcube_470016001_470275201_4FGL_J1214.5-2318_daily_bin890.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/428006/ft2_4FGL_J1214.5-2318_daily_bin890.fits
.....................!
real 11.98
user 11.58
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/428006/ft1_filtered_4FGL_J1214.5-2318_daily_bin890.fits evtable="EVENTS" scfile=/scratch/kocevski/428006/ft2_4FGL_J1214.5-2318_daily_bin890.fits sctable="SC_DATA" expcube=/scratch/kocevski/428006/ltcube_470016001_470275201_4FGL_J1214.5-2318_daily_bin890.fits outfile=/scratch/kocevski/428006/expmap_470016001_470275201_4FGL_J1214.5-2318_daily_bin890.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/428006/ltcube_470016001_470275201_4FGL_J1214.5-2318_daily_bin890.fits
.....................!
real 190.95
user 186.24
sys 4.33

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/428006/ft1_filtered_4FGL_J1214.5-2318_daily_bin890.fits scfile=/scratch/kocevski/428006/ft2_4FGL_J1214.5-2318_daily_bin890.fits outfile=/scratch/kocevski/428006/cmap_470016001_470275201_4FGL_J1214.5-2318_daily_bin890.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/428006/ft1_filtered_4FGL_J1214.5-2318_daily_bin890.fits scfile=/scratch/kocevski/428006/ft2_4FGL_J1214.5-2318_daily_bin890.fits outfile=/scratch/kocevski/428006/cmap_HighResolution_470016001_470275201_4FGL_J1214.5-2318_daily_bin890.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/428006/ft1_filtered_4FGL_J1214.5-2318_daily_bin890.fits evtable="EVENTS" scfile=/scratch/kocevski/428006/ft2_4FGL_J1214.5-2318_daily_bin890.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/428006/Model_4FGL_J1214.5-2318_daily_bin890.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/428006/ft1_filtered_4FGL_J1214.5-2318_daily_bin890.fits.....................!
real 58.53
user 57.14
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.1379       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.1555       1.0000         .10000E-03   10000.    
     6 'norm      '    23.143       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.6132       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    40.771       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.9867       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.0473       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.6198       1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.893       1.0000         .10000E-03   10000.    
    20 'norm      '    5.7766       1.0000         .10000E-03   10000.    
    21 'norm      '    4.5110       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.6706       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .81754       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=   6937.738     FROM MIGRAD    STATUS=CONVERGED    512 CALLS     2627 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.7142       -.56065E-05** at limit **
   2  Prefactor     .10000E-03    27.121       -.12913E-04** at limit **
   3  norm          3.1378        1.8376       -.37310E-07   -.11022E-04
   4  Prefactor     .10000E-03    3.7404       -.16394E-06** at limit **
   5  Prefactor     4.1550        32.120       -.32373E-06   -.29570E-04
   6  norm          23.144        27.296        .20143E-05   -.26853E-05
   7  Prefactor     .10000E-03    18.015        .22456E-05** at limit **
   8  norm          8.6094        4.7459        .13609E-05   -.12372E-03
   9  Prefactor     .10000E-03    2.0102       -.56129E-08** at limit **
  10  Prefactor     40.749        53.358       -.29116E-04   -.27406E-04
  11  Prefactor     .10000E-03    19.426        .80566E-05** at limit **
  12  Prefactor     .10000E-03    9.3752        .13738E-06** at limit **
  13  Prefactor     .10000E-03    21.032        .12004E-04** at limit **
  14  Prefactor     .10000E-03    16.242       -.10596E-04** at limit **
  15  Prefactor     3.9867        4.9980       -.45079E-06   -.28712E-03
  16  Prefactor     5.0474        2.4791        .11319E-06    .89305E-03
  17  Prefactor     .10000E-03    6.4282        .11070E-05** at limit **
  18  norm          1.6198        1.0068       -.87689E-07   -.34705E-03
  19  Prefactor     25.902        93.658        .18116E-04   -.29741E-04
  20  norm          5.7765        8.4714       -.32757E-06   -.11601E-03
  21  norm          4.5118        7.5550       -.26672E-05   -.63215E-03
  22  Prefactor     .10000E-03    4.5863        .51388E-05** at limit **
  23  Normalizat    1.6707        .24929        .59398E-06   -.56770E-04
  24  Prefactor     .81750        .12188        .54999E-06   -.11238E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.13783
  Prefactor  = 0.0001
  Prefactor  = 4.15502
  norm       = 23.1444
  Prefactor  = 0.0001
  norm       = 8.60943
  Prefactor  = 0.0001
  Prefactor  = 40.7492
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.9867
  Prefactor  = 5.0474
  Prefactor  = 0.0001
  norm       = 1.61982
  Prefactor  = 25.9025
  norm       = 5.77655
  norm       = 4.51179
  Prefactor  = 0.0001
  Normalizat = 1.67068
  Prefactor  = 0.817498
 **********
 **   18 **HESSE 
 **********

 FCN=   6937.738     FROM HESSE     STATUS=OK           395 CALLS     3022 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7123        .17655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    27.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.1378        1.8377        .83737E-04   -1.5354    
   4  Prefactor     .10000E-03    3.7824        .15722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.1550        32.108        .19772E-03   -1.5300    
   6  norm          23.144        27.354        .83264E-04   -1.4745    
   7  Prefactor     .10000E-03    18.154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.6094        4.7369        .12802E-03   -1.5121    
   9  Prefactor     .10000E-03    2.0189        .11530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     40.749        53.339        .62778E-04   -1.4430    
  11  Prefactor     .10000E-03    19.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.3845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    21.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.9867        4.9970        .19788E-03   -1.5309    
  16  Prefactor     5.0474        2.4837        .43645E-03   -1.5259    
  17  Prefactor     .10000E-03    6.4404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.6198        1.0020        .63347E-04   -1.5453    
  19  Prefactor     25.902        93.112        .78725E-04   -1.4690    
  20  norm          5.7765        8.4659        .16711E-03   -1.5227    
  21  norm          4.5118        7.5229        .18956E-03   -1.5283    
  22  Prefactor     .10000E-03    4.6078        .17370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.6707        .29792        .31402E-03   -.73089    
  24  Prefactor     .81750        .14581        .20698E-03   -.99087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.68056e-10
Minuit parameter uncertainties:
  1  3.97473e-07
  2  8.60973e-07
  3  1.83775
  4  3.69699e-07
  5  23.1174
  6  27.3689
  7  0.000141841
  8  4.7371
  9  5.56353e-06
  10  53.4019
  11  7.99598e-06
  12  9.8557e-05
  13  0.000124596
  14  2.80724e-06
  15  4.99748
  16  2.48374
  17  8.35062e-06
  18  1.00205
  19  93.6404
  20  8.4676
  21  7.5245
  22  8.29846e-06
  23  0.298241
  24  0.145879
Done.

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

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.246e-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:  8.175e-01  1.459e-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.671e+00  2.982e-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: 7.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/428006/likelihoodResults_470016001_470275201_4FGL_J1214.5-2318_daily_bin890.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) = 6937.7385667
delta logL = -0.000225733230764

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6937.73508496
delta logL = 0.00325600694396

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .43413E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    4.7855       1.0000          .0000       10.000    
     3 'Normalizat'    1.6636       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81947       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=   6937.735     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      269 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .43415E-02    .23435E-01    .75980E-02    .60444E-02
   2  Index         4.7855        .10455        .50000       -.79984E-05
   3  Normalizat    1.6637        .60151E-02    .71102E-01    .96861E-07
   4  Prefactor     .81945        .29207E-02    .43970E-01    .12306E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00434154
  Index      = 4.78552
  Normalizat = 1.6637
  Prefactor  = 0.819453
 **********
 **   18 **HESSE 
 **********

 FCN=   6937.735     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      304 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .43415E-02    28.787        .26589E-03   -1.5695    
   2  Index         4.7855        6.2300        .18177E-02   -.42909E-01
   3  Normalizat    1.6637        .16552        .31455E-03   -.73277    
   4  Prefactor     .81945        .72289E-01    .20676E-03   -.99015    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.24914e-07
Minuit parameter uncertainties:
  1  0.699195
  2  49.1928
  3  0.165577
  4  0.0722971
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/428006': 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) = 6937.73508494
delta logL = 0.00325602665635

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  4.342e-03  6.992e-01  1.000e-04  1.000e+04 ( 1.000e-14)
301        Index:  4.786e+00  4.919e+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.195e-01  7.230e-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.664e+00  1.656e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/428006/cmap_HighResolution_470016001_470275201_4FGL_J1214.5-2318_daily_bin890.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.70e-03', job_status='DONE', photon_flux_upper_limit='7.52e-08', time_completed='2021-09-05 05:11:28.050951', job_id='428006', GAL2='0.82', fit_tolerance='1e-08', EG2='1.66', EG='1.67', time_epoch_completed='1630843888.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='3.26e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='890' AND source_name='4FGL J1214.5-2318' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:11:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 428006: <4FGL_J1214.5-2318_daily_bin890> in cluster <slac> Done

Job <4FGL_J1214.5-2318_daily_bin890> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 04:56:06 2021
Job was executed on host(s) <bullet0242>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 04:56:07 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:56:07 2021
Terminated at Sun Sep  5 05:11:28 2021
Results reported at Sun Sep  5 05:11:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1214.5-2318_daily_bin890 183.625 -23.3113 470016001 470275201 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 :                                   716.28 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             300.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            922 sec.

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

