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


Performing analysis on: 4FGL_J1214.5-2318_daily_bin130
RA = 183.625, Dec = -23.3113
tmin = 273024001, tmax = 273283201
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='422949', job_status='RUN', time_executed='2021-09-05 04:42:57.067294', time_epoch_executed='1630842177.07' WHERE source_name='4FGL J1214.5-2318' and cadence='daily' and bin_id='130'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/422949

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/422949/ft1_4FGL_J1214.5-2318_daily_bin130.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/422949/ft2_4FGL_J1214.5-2318_daily_bin130.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/422949/ft1_4FGL_J1214.5-2318_daily_bin130.fits outfile=/scratch/kocevski/422949/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin130.fits ra=183.625 dec=-23.3113 rad=12.0 tmin=273024001.0 tmax=273283201.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 2.88
user 2.65
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/422949/ft1_filtered_4FGL_J1214.5-2318_daily_bin130.fits" evtable="EVENTS" scfile=/scratch/kocevski/422949/ft2_4FGL_J1214.5-2318_daily_bin130.fits sctable="SC_DATA" outfile=/scratch/kocevski/422949/ltcube_273024001_273283201_4FGL_J1214.5-2318_daily_bin130.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/422949/ft2_4FGL_J1214.5-2318_daily_bin130.fits
.....................!
real 12.54
user 12.12
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/422949/ft1_filtered_4FGL_J1214.5-2318_daily_bin130.fits evtable="EVENTS" scfile=/scratch/kocevski/422949/ft2_4FGL_J1214.5-2318_daily_bin130.fits sctable="SC_DATA" expcube=/scratch/kocevski/422949/ltcube_273024001_273283201_4FGL_J1214.5-2318_daily_bin130.fits outfile=/scratch/kocevski/422949/expmap_273024001_273283201_4FGL_J1214.5-2318_daily_bin130.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/422949/ltcube_273024001_273283201_4FGL_J1214.5-2318_daily_bin130.fits
.....................!
real 190.86
user 184.91
sys 5.39

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/422949/ft1_filtered_4FGL_J1214.5-2318_daily_bin130.fits scfile=/scratch/kocevski/422949/ft2_4FGL_J1214.5-2318_daily_bin130.fits outfile=/scratch/kocevski/422949/cmap_273024001_273283201_4FGL_J1214.5-2318_daily_bin130.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/422949/ft1_filtered_4FGL_J1214.5-2318_daily_bin130.fits scfile=/scratch/kocevski/422949/ft2_4FGL_J1214.5-2318_daily_bin130.fits outfile=/scratch/kocevski/422949/cmap_HighResolution_273024001_273283201_4FGL_J1214.5-2318_daily_bin130.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/422949/ft1_filtered_4FGL_J1214.5-2318_daily_bin130.fits evtable="EVENTS" scfile=/scratch/kocevski/422949/ft2_4FGL_J1214.5-2318_daily_bin130.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/422949/Model_4FGL_J1214.5-2318_daily_bin130.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/422949/ft1_filtered_4FGL_J1214.5-2318_daily_bin130.fits.....................!
real 67.37
user 65.95
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.133       1.0000         .10000E-03   10000.    
     3 'norm      '    .41342       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    33.405       1.0000         .10000E-03   10000.    
     8 'norm      '    .17651E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.1556       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10437E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    60.490       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6356       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.8334       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.9716       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    14.320       1.0000         .10000E-03   10000.    
    21 'norm      '    15.639       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3478       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .86088       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=   7966.678     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     2751 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.187       -.62451E-06** at limit **
   2  Prefactor     16.167        59.113        .88913E-05    .18589E-03
   3  norm          .41151        1.8796        .15709E-05   -.65544E-03
   4  Prefactor     .10000E-03    2.5742        .15086E-06** at limit **
   5  Prefactor     .10000E-03    7.5552       -.12870E-06** at limit **
   6  norm          .10000E-03    11.080        .78485E-06** at limit **
   7  Prefactor     33.396        19.230        .41968E-06   -.77692E-04
   8  norm          .10000E-03    8.3791        .28365E-06** at limit **
   9  Prefactor     5.1481        6.6561       -.16814E-06    .10824E-03
  10  Prefactor     .10003E-03    73.454        .90097E-05** at limit **
  11  Prefactor     .10003E-03    91.879       -.11130E-04** at limit **
  12  Prefactor     .10001E-03    48.333       -.49905E-05** at limit **
  13  Prefactor     60.492        43.834        .54370E-06    .89593E-04
  14  Prefactor     2.6250        33.656        .16675E-04   -.26528E-03
  15  Prefactor     8.8330        5.6748        .24589E-06    .49832E-04
  16  Prefactor     4.9715        2.2121        .29247E-07   -.41457E-04
  17  Prefactor     .10000E-03    3.8620        .40329E-07** at limit **
  18  norm          .10000E-03    .38952        .58387E-08** at limit **
  19  Prefactor     .10001E-03    55.480        .64495E-05** at limit **
  20  norm          14.324        10.082        .56116E-06    .14227E-03
  21  norm          15.638        6.6226        .18901E-06   -.17171E-03
  22  Prefactor     .10000E-03    4.3342       -.12135E-06** at limit **
  23  Normalizat    1.3479        .23086       -.21627E-05   -.83382E-04
  24  Prefactor     .86083        .10763       -.50700E-06   -.24114E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 16.1665
  norm       = 0.411515
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 33.3956
  norm       = 0.0001
  Prefactor  = 5.14806
  Prefactor  = 0.000100025
  Prefactor  = 0.000100032
  Prefactor  = 0.000100008
  Prefactor  = 60.4923
  Prefactor  = 2.62501
  Prefactor  = 8.83302
  Prefactor  = 4.97154
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100013
  norm       = 14.3245
  norm       = 15.6382
  Prefactor  = 0.0001
  Normalizat = 1.34788
  Prefactor  = 0.86083
 **********
 **   18 **HESSE 
 **********

 FCN=   7966.678     FROM HESSE     STATUS=OK           395 CALLS     3146 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.167        60.626        .99715E-04   -1.4904    
   3  norm          .41151        1.9242        .22305E-03   -1.5580    
   4  Prefactor     .10000E-03    2.5898        .13982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.5566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    11.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     33.396        19.049        .69332E-04   -1.4552    
   8  norm          .10000E-03    8.4796        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.1481        6.6270        .17706E-03   -1.5254    
  10  Prefactor     .10003E-03    75.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10003E-03    94.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    49.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     60.492        43.776        .51588E-04   -1.4151    
  14  Prefactor     2.6250        36.972        .12558E-02   -1.5384    
  15  Prefactor     8.8330        5.6788        .13486E-03   -1.5113    
  16  Prefactor     4.9715        2.2125        .83838E-04   -1.5262    
  17  Prefactor     .10000E-03    3.8870        .17130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .61299        .10768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    56.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          14.324        10.087        .10584E-03   -1.4951    
  21  norm          15.638        6.5840        .10128E-03   -1.4917    
  22  Prefactor     .10000E-03    4.3697        .18042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3479        .27569        .32457E-03   -.82148    
  24  Prefactor     .86083        .12908        .19333E-03   -.97524    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.61277e-09
Minuit parameter uncertainties:
  1  8.04451e-05
  2  60.8588
  3  1.77957
  4  1.17738e-05
  5  1.11192e-05
  6  9.8448e-05
  7  19.0527
  8  2.84506e-05
  9  6.6279
  10  0.00277795
  11  0.00349521
  12  0.00125511
  13  43.7997
  14  19.7174
  15  5.67918
  16  2.21249
  17  5.84255e-06
  18  7.28311e-06
  19  0.00172849
  20  10.088
  21  6.58435
  22  2.54782e-06
  23  0.275989
  24  0.129123
Done.

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

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  6.049e+01  4.380e+01  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.608e-01  1.291e-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.348e+00  2.760e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.74
Ra Dec: 183.625 -23.311
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 5.19e-08 +/- 3.76e-08
Energy Flux (Fixed Index): 2.71e-05 +/- 1.96e-05

TS (Fixed Index): 3.74
Ra Dec: 183.625 -23.311
Photon Flux Upper Limit: 1.36e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/422949/likelihoodResults_273024001_273283201_4FGL_J1214.5-2318_daily_bin130.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): 0
logL (Free Index) = 7965.98599282
delta logL = 0.691764907934

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7965.96417996
delta logL = 0.713577769269

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.949       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9418       1.0000          .0000       10.000    
     3 'Normalizat'    1.2702       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88292       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=   7965.964     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      293 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.956        67.034        .97286E-04    .64880E-03
   2  Index         2.9418        1.6817        .34404E-02    .28385E-03
   3  Normalizat    1.2704        .29752        .33232E-03   -.67139E-03
   4  Prefactor     .88292        .13750        .19101E-03   -.65130E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.9557
  Index      = 2.94182
  Normalizat = 1.27042
  Prefactor  = 0.882917
 **********
 **   18 **HESSE 
 **********

 FCN=   7965.964     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.956        27.802        .38914E-05   -1.4884    
   2  Index         2.9418        .70786        .13762E-03   -.42425    
   3  Normalizat    1.2704        .27038        .66464E-04   -.84454    
   4  Prefactor     .88292        .12963        .38202E-04   -.96741    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45881e-09
Minuit parameter uncertainties:
  1  27.8232
  2  0.710737
  3  0.270681
  4  0.129679
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/422949': 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): 0
logL (Free Index) = 7965.96417824
delta logL = 0.713579488672

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.696e+01  2.782e+01  1.000e-04  1.000e+04 ( 1.000e-14)
301        Index:  2.942e+00  7.107e-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.829e-01  1.297e-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.270e+00  2.707e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.22
Ra Dec: 183.625 -23.311
Photon Index (Free Index): 2.94 +/- 0.71
Photon Flux (Free Index): 1.19e-07 +/- 8.00e-08
Energy Flux (Free Index): 2.44e-05 +/- 1.35e-05

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/422949/cmap_HighResolution_273024001_273283201_4FGL_J1214.5-2318_daily_bin130.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', comment='SUCCESS', photon_flux='5.19e-08', energy_flux2='2.44e-05', photon_flux_error='3.76e-08', dlogl='7.14e-01', energy_flux='2.71e-05', photon_flux2='1.19e-07', job_status='DONE', time_completed='2021-09-05 04:56:17.480573', photon_index_error2='0.71', photon_index2='2.94', ts='3.74', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.36e-07', energy_flux_error2='1.35e-05', EG='1.35', time_epoch_completed='1630842977.48', return_code='0', job_id='422949', GAL2='0.88', EG2='1.27', return_code2='0', energy_flux_error='1.96e-05', photon_flux_error2='8.00e-08', ts2='5.22', photon_index='2.12' WHERE bin_id='130' AND source_name='4FGL J1214.5-2318' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 04:56:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 422949: <4FGL_J1214.5-2318_daily_bin130> in cluster <slac> Done

Job <4FGL_J1214.5-2318_daily_bin130> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 04:40:27 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 04:40:29 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:40:29 2021
Terminated at Sun Sep  5 04:56:18 2021
Results reported at Sun Sep  5 04:56:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1214.5-2318_daily_bin130 183.625 -23.3113 273024001 273283201 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 :                                   797.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            951 sec.

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

