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


Performing analysis on: 4FGL_J1214.5-2318_daily_bin728
RA = 183.625, Dec = -23.3113
tmin = 428025601, tmax = 428284801
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='429830', job_status='RUN', time_executed='2021-09-05 05:04:05.490251', time_epoch_executed='1630843445.49' WHERE source_name='4FGL J1214.5-2318' and cadence='daily' and bin_id='728'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/429830

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/429830/ft1_4FGL_J1214.5-2318_daily_bin728.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/429830/ft2_4FGL_J1214.5-2318_daily_bin728.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/429830/ft1_4FGL_J1214.5-2318_daily_bin728.fits outfile=/scratch/kocevski/429830/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin728.fits ra=183.625 dec=-23.3113 rad=12.0 tmin=428025601.0 tmax=428284801.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 5.59
user 5.32
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/429830/ft1_filtered_4FGL_J1214.5-2318_daily_bin728.fits" evtable="EVENTS" scfile=/scratch/kocevski/429830/ft2_4FGL_J1214.5-2318_daily_bin728.fits sctable="SC_DATA" outfile=/scratch/kocevski/429830/ltcube_428025601_428284801_4FGL_J1214.5-2318_daily_bin728.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/429830/ft2_4FGL_J1214.5-2318_daily_bin728.fits
.....................!
real 12.43
user 11.97
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/429830/ft1_filtered_4FGL_J1214.5-2318_daily_bin728.fits evtable="EVENTS" scfile=/scratch/kocevski/429830/ft2_4FGL_J1214.5-2318_daily_bin728.fits sctable="SC_DATA" expcube=/scratch/kocevski/429830/ltcube_428025601_428284801_4FGL_J1214.5-2318_daily_bin728.fits outfile=/scratch/kocevski/429830/expmap_428025601_428284801_4FGL_J1214.5-2318_daily_bin728.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/429830/ltcube_428025601_428284801_4FGL_J1214.5-2318_daily_bin728.fits
.....................!
real 190.01
user 184.98
sys 4.55

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/429830/ft1_filtered_4FGL_J1214.5-2318_daily_bin728.fits scfile=/scratch/kocevski/429830/ft2_4FGL_J1214.5-2318_daily_bin728.fits outfile=/scratch/kocevski/429830/cmap_428025601_428284801_4FGL_J1214.5-2318_daily_bin728.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.59
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/429830/ft1_filtered_4FGL_J1214.5-2318_daily_bin728.fits scfile=/scratch/kocevski/429830/ft2_4FGL_J1214.5-2318_daily_bin728.fits outfile=/scratch/kocevski/429830/cmap_HighResolution_428025601_428284801_4FGL_J1214.5-2318_daily_bin728.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/429830/ft1_filtered_4FGL_J1214.5-2318_daily_bin728.fits evtable="EVENTS" scfile=/scratch/kocevski/429830/ft2_4FGL_J1214.5-2318_daily_bin728.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/429830/Model_4FGL_J1214.5-2318_daily_bin728.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/429830/ft1_filtered_4FGL_J1214.5-2318_daily_bin728.fits.....................!
real 56.28
user 54.87
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.587       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12618E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .53517E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .16006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    35.072       1.0000         .10000E-03   10000.    
     6 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .40611E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10497E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.696       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.553       1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.053       1.0000         .10000E-03   10000.    
    18 'norm      '    8.5540       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    20.176       1.0000         .10000E-03   10000.    
    21 'norm      '    12.777       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.6346       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .64208       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=   6275.116     FROM MIGRAD    STATUS=CONVERGED    556 CALLS     2727 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.586        14.131       -.13633E-06   -.13637E-03
   2  Prefactor     .10000E-03    86.104        .48396E-06** at limit **
   3  norm          .10000E-03    1.1208        .21414E-06** at limit **
   4  Prefactor     .10002E-03    11.639        .77877E-05** at limit **
   5  Prefactor     35.088        32.743       -.12077E-05   -.45446E-03
   6  norm          .10000E-03    14.842       -.34174E-07** at limit **
   7  Prefactor     .10004E-03    17.192       -.80753E-05** at limit **
   8  norm          .10000E-03    3.1565       -.32586E-06** at limit **
   9  Prefactor     .10000E-03    1.8516       -.25039E-06** at limit **
  10  Prefactor     .10000E-03    23.857       -.18973E-05** at limit **
  11  Prefactor     .10000E-03    9.8705       -.21944E-06** at limit **
  12  Prefactor     .10003E-03    12.000       -.48649E-05** at limit **
  13  Prefactor     20.646        49.162       -.27260E-05   -.20818E-03
  14  Prefactor     .10000E-03    12.435        .33734E-06** at limit **
  15  Prefactor     .10000E-03    2.9424        .88610E-07** at limit **
  16  Prefactor     11.553        3.3317       -.21470E-07   -.16247E-03
  17  Prefactor     27.059        18.618        .20266E-07   -.10224E-04
  18  norm          8.5539        1.9026        .36798E-08    .12790E-05
  19  Prefactor     .10000E-03    39.894        .47345E-06** at limit **
  20  norm          20.174        13.856        .38680E-07    .32926E-04
  21  norm          12.776        7.1337        .96061E-07    .16015E-03
  22  Prefactor     .10000E-03    1.9237        .62428E-07** at limit **
  23  Normalizat    1.6347        .26592       -.95678E-06   -.23665E-03
  24  Prefactor     .64207        .12363        .58950E-06   -.23897E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.5861
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 35.0876
  norm       = 0.0001
  Prefactor  = 0.000100036
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.00010003
  Prefactor  = 20.6462
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5526
  Prefactor  = 27.0589
  norm       = 8.55392
  Prefactor  = 0.0001
  norm       = 20.1736
  norm       = 12.7756
  Prefactor  = 0.0001
  Normalizat = 1.6347
  Prefactor  = 0.642067
 **********
 **   18 **HESSE 
 **********

 FCN=   6275.116     FROM HESSE     STATUS=OK           391 CALLS     3118 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.586        14.142        .98341E-04   -1.4893    
   2  Prefactor     .10000E-03    86.471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    6.5903        .16104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10002E-03    17.588        .29966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     35.088        32.640        .67669E-04   -1.4523    
   6  norm          .10000E-03    14.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10004E-03    36.582        .41846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.1965        .13711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.8631        .10534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    24.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    9.8808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10003E-03    13.507        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     20.646        49.707        .88043E-04   -1.4799    
  14  Prefactor     .10000E-03    12.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.9528        .13267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.553        3.3306        .75474E-04   -1.5028    
  17  Prefactor     27.059        18.616        .77022E-04   -1.4667    
  18  norm          8.5539        1.9010        .48423E-04   -1.5123    
  19  Prefactor     .10000E-03    39.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          20.174        13.850        .89169E-04   -1.4809    
  21  norm          12.776        7.1279        .11206E-03   -1.4993    
  22  Prefactor     .10000E-03    1.9271        .10725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.6347        .31068        .31380E-03   -.74061    
  24  Prefactor     .64207        .14594        .22152E-03   -1.0584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.42618e-09
Minuit parameter uncertainties:
  1  14.1445
  2  0.000343984
  3  2.52149e-05
  4  0.00104251
  5  32.6562
  6  3.63466e-05
  7  0.00228529
  8  2.22952e-05
  9  2.37419e-05
  10  0.000668293
  11  4.93389e-05
  12  0.00127053
  13  49.8073
  14  0.000109704
  15  1.09605e-05
  16  3.33069
  17  18.6203
  18  1.90104
  19  0.000278478
  20  13.852
  21  7.12838
  22  5.99729e-06
  23  0.311051
  24  0.146028
Done.

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

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  2.065e+01  4.981e+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:  6.421e-01  1.460e-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.635e+00  3.111e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.20
Ra Dec: 183.625 -23.311
Photon Flux Upper Limit: 1.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.45e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/429830/likelihoodResults_428025601_428284801_4FGL_J1214.5-2318_daily_bin728.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) = 6274.49653773
delta logL = 0.619923729472

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6274.38735958
delta logL = 0.729101878404

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    49.556       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1643       1.0000          .0000       10.000    
     3 'Normalizat'    1.6446       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63840       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=   6274.387     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      248 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     49.584        69.776        .28483E-03   -.11575E-05
   2  Index         1.1633        .69258        .12383E-01   -.78477E-05
   3  Normalizat    1.6443        .30767        .31284E-03   -.74781E-04
   4  Prefactor     .63841        .14486        .22195E-03    .40465E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 49.5842
  Index      = 1.16332
  Normalizat = 1.64433
  Prefactor  = 0.638414
 **********
 **   18 **HESSE 
 **********

 FCN=   6274.387     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     49.584        72.384        .11393E-04   -1.4298    
   2  Index         1.1633        .71821        .49533E-03   -.87468    
   3  Normalizat    1.6443        .30798        .62568E-04   -.73800    
   4  Prefactor     .63841        .14503        .88780E-05   -1.0599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.22572e-11
Minuit parameter uncertainties:
  1  72.5127
  2  0.724354
  3  0.308334
  4  0.145119
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/429830': 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) = 6274.38735604
delta logL = 0.729105422927

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  4.958e+01  7.251e+01  1.000e-04  1.000e+04 ( 1.000e-14)
301        Index:  1.163e+00  7.244e-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.384e-01  1.451e-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.644e+00  3.083e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.66
Ra Dec: 183.625 -23.311
Photon Index (Free Index): 1.16 +/- 0.72
Photon Flux (Free Index): 8.85e-09 +/- 1.47e-08
Energy Flux (Free Index): 8.24e-05 +/- 1.23e-04

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/429830/cmap_HighResolution_428025601_428284801_4FGL_J1214.5-2318_daily_bin728.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.45e-03', comment='SUCCESS', energy_flux2='8.24e-05', dlogl='7.29e-01', photon_flux2='8.85e-09', job_status='DONE', time_completed='2021-09-05 05:15:44.317334', photon_index_error2='0.72', photon_index2='1.16', ts='0.20', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', photon_flux_upper_limit='1.25e-07', energy_flux_error2='1.23e-04', EG='1.63', time_epoch_completed='1630844144.32', return_code='0', job_id='429830', GAL2='0.64', EG2='1.64', return_code2='0', photon_flux_error2='1.47e-08', ts2='1.66', photon_index='2.12' WHERE bin_id='728' AND source_name='4FGL J1214.5-2318' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:15:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0042>
Subject: Job 429830: <4FGL_J1214.5-2318_daily_bin728> in cluster <slac> Done

Job <4FGL_J1214.5-2318_daily_bin728> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 05:00:23 2021
Job was executed on host(s) <bullet0042>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:00:24 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:24 2021
Terminated at Sun Sep  5 05:15:45 2021
Results reported at Sun Sep  5 05:15:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1214.5-2318_daily_bin728 183.625 -23.3113 428025601 428284801 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 :                                   696.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             241.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            922 sec.

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

