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


Performing analysis on: 4FGL_J1214.5-2318_daily_bin755
RA = 183.625, Dec = -23.3113
tmin = 435024001, tmax = 435283201
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='427797', job_status='RUN', time_executed='2021-09-05 04:57:51.331016', time_epoch_executed='1630843071.33' WHERE source_name='4FGL J1214.5-2318' and cadence='daily' and bin_id='755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/427797

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/427797/ft1_4FGL_J1214.5-2318_daily_bin755.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/427797/ft2_4FGL_J1214.5-2318_daily_bin755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/427797/ft1_4FGL_J1214.5-2318_daily_bin755.fits outfile=/scratch/kocevski/427797/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin755.fits ra=183.625 dec=-23.3113 rad=12.0 tmin=435024001.0 tmax=435283201.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.05
user 4.78
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/427797/ft1_filtered_4FGL_J1214.5-2318_daily_bin755.fits" evtable="EVENTS" scfile=/scratch/kocevski/427797/ft2_4FGL_J1214.5-2318_daily_bin755.fits sctable="SC_DATA" outfile=/scratch/kocevski/427797/ltcube_435024001_435283201_4FGL_J1214.5-2318_daily_bin755.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/427797/ft2_4FGL_J1214.5-2318_daily_bin755.fits
.....................!
real 12.18
user 11.79
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/427797/ft1_filtered_4FGL_J1214.5-2318_daily_bin755.fits evtable="EVENTS" scfile=/scratch/kocevski/427797/ft2_4FGL_J1214.5-2318_daily_bin755.fits sctable="SC_DATA" expcube=/scratch/kocevski/427797/ltcube_435024001_435283201_4FGL_J1214.5-2318_daily_bin755.fits outfile=/scratch/kocevski/427797/expmap_435024001_435283201_4FGL_J1214.5-2318_daily_bin755.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/427797/ltcube_435024001_435283201_4FGL_J1214.5-2318_daily_bin755.fits
.....................!
real 191.00
user 185.42
sys 5.19

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/427797/ft1_filtered_4FGL_J1214.5-2318_daily_bin755.fits scfile=/scratch/kocevski/427797/ft2_4FGL_J1214.5-2318_daily_bin755.fits outfile=/scratch/kocevski/427797/cmap_435024001_435283201_4FGL_J1214.5-2318_daily_bin755.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.60
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/427797/ft1_filtered_4FGL_J1214.5-2318_daily_bin755.fits scfile=/scratch/kocevski/427797/ft2_4FGL_J1214.5-2318_daily_bin755.fits outfile=/scratch/kocevski/427797/cmap_HighResolution_435024001_435283201_4FGL_J1214.5-2318_daily_bin755.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.58
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/427797/ft1_filtered_4FGL_J1214.5-2318_daily_bin755.fits evtable="EVENTS" scfile=/scratch/kocevski/427797/ft2_4FGL_J1214.5-2318_daily_bin755.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/427797/Model_4FGL_J1214.5-2318_daily_bin755.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/427797/ft1_filtered_4FGL_J1214.5-2318_daily_bin755.fits.....................!
real 58.06
user 56.03
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.041       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.6722       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3272       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    8.3732       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.4195       1.0000         .10000E-03   10000.    
     8 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    19.626       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    38.919       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.9937       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.3150       1.0000         .10000E-03   10000.    
    18 'norm      '    1.2510       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.9220       1.0000         .10000E-03   10000.    
    21 'norm      '    5.5917       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.0757       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0382       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98620       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6871.037     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     2766 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.041        13.865         .0000       -.84899E-05
   2  Prefactor     .10000E-03    22.931         .0000    ** at limit **
   3  norm          3.6723        1.9107         .0000        .85042E-04
   4  Prefactor     3.3277        4.6862         .0000        .56859E-03
   5  Prefactor     .10000E-03    10.959         .0000    ** at limit **
   6  norm          8.3729        12.176         .0000        .20916E-04
   7  Prefactor     5.4177        12.947         .0000        .22656E-02
   8  norm          .10000E-03    2.4367         .0000    ** at limit **
   9  Prefactor     .10000E-03    2.1110         .0000    ** at limit **
  10  Prefactor     19.625        32.450         .0000        .80192E-04
  11  Prefactor     .10000E-03    77.537         .0000    ** at limit **
  12  Prefactor     .10000E-03    19.724         .0000    ** at limit **
  13  Prefactor     38.918        39.320         .0000       -.57084E-04
  14  Prefactor     .10000E-03    8.0612         .0000    ** at limit **
  15  Prefactor     .10000E-03    5.4478         .0000    ** at limit **
  16  Prefactor     8.9943        2.9080         .0000       -.61801E-04
  17  Prefactor     4.3145        9.6284         .0000        .34300E-02
  18  norm          1.2509        .90725         .0000        .48441E-03
  19  Prefactor     .10000E-03    40.021         .0000    ** at limit **
  20  norm          3.9218        9.5226         .0000        .15952E-03
  21  norm          5.5910        5.9813         .0000        .26883E-03
  22  Prefactor     3.0754        4.0744         .0000        .14236E-03
  23  Normalizat    1.0381        .22263         .0000        .12190E-04
  24  Prefactor     .98629        .11306         .0000       -.14154E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.0408
  Prefactor  = 0.0001
  norm       = 3.67229
  Prefactor  = 3.32766
  Prefactor  = 0.0001
  norm       = 8.37288
  Prefactor  = 5.4177
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.6255
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.9183
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.9943
  Prefactor  = 4.31453
  norm       = 1.25091
  Prefactor  = 0.0001
  norm       = 3.92177
  norm       = 5.59103
  Prefactor  = 3.0754
  Normalizat = 1.03806
  Prefactor  = 0.986287
 **********
 **   18 **HESSE 
 **********

 FCN=   6871.037     FROM HESSE     STATUS=OK           399 CALLS     3165 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.041        13.869        .10000E-03   -1.4907    
   2  Prefactor     .10000E-03    22.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.6723        1.9139        .79771E-04   -1.5325    
   4  Prefactor     3.3277        4.6749        .20358E-03   -1.5343    
   5  Prefactor     .10000E-03    10.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          8.3729        12.175        .13854E-03   -1.5129    
   7  Prefactor     5.4177        12.888        .86306E-03   -1.5242    
   8  norm          .10000E-03    2.4605        .12574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.1321        .11756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     19.625        32.420        .90409E-04   -1.4822    
  11  Prefactor     .10000E-03    79.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     38.918        39.269        .64248E-04   -1.4459    
  14  Prefactor     .10000E-03    8.0739        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.5151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.9943        2.9035        .78093E-04   -1.5108    
  17  Prefactor     4.3145        9.6177        .96964E-03   -1.5293    
  18  norm          1.2509        .89802        .64358E-04   -1.5484    
  19  Prefactor     .10000E-03    40.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.9218        9.5066        .20371E-03   -1.5312    
  21  norm          5.5910        5.9536        .16989E-03   -1.5235    
  22  Prefactor     3.0754        4.0529        .17856E-03   -1.5357    
  23  Normalizat    1.0381        .26238        .33626E-03   -.91766    
  24  Prefactor     .98629        .13415        .17806E-03   -.93188    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01277e-10
Minuit parameter uncertainties:
  1  13.8718
  2  1.95967e-05
  3  1.91393
  4  4.67542
  5  6.36947e-07
  6  12.1783
  7  12.8941
  8  1.36816e-06
  9  6.52078e-07
  10  32.4489
  11  0.000237631
  12  8.13257e-06
  13  39.2952
  14  6.84773e-06
  15  1.00569e-05
  16  2.90356
  17  9.62116
  18  0.898034
  19  2.57547e-05
  20  9.51027
  21  5.95423
  22  4.05322
  23  0.262709
  24  0.134198
Done.

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

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  3.892e+01  3.930e+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:  9.863e-01  1.342e-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.038e+00  2.627e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.67
Ra Dec: 183.625 -23.311
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 3.34e-08 +/- 3.37e-08
Energy Flux (Fixed Index): 1.74e-05 +/- 1.76e-05

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

Saving results to:
/scratch/kocevski/427797/likelihoodResults_435024001_435283201_4FGL_J1214.5-2318_daily_bin755.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) = 6871.03211104
delta logL = 0.00470700954884

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6871.02726972
delta logL = 0.00954833218293

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.394       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0355       1.0000          .0000       10.000    
     3 'Normalizat'    1.0398       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98600       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=   6871.027     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      283 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.437        62.113        .60172E-04    .11038E-03
   2  Index         2.0355        .66787        .64374E-02    .10266E-03
   3  Normalizat    1.0409        .25567        .33586E-03   -.65668E-04
   4  Prefactor     .98545        .13325        .17812E-03    .15796E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.4368
  Index      = 2.03551
  Normalizat = 1.04092
  Prefactor  = 0.985452
 **********
 **   18 **HESSE 
 **********

 FCN=   6871.027     FROM HESSE     STATUS=OK            25 CALLS      308 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.437        58.557        .12034E-04   -1.4374    
   2  Index         2.0355        .62974        .25749E-03   -.63465    
   3  Normalizat    1.0409        .25570        .13434E-04   -.91672    
   4  Prefactor     .98545        .13331        .35624E-04   -.93216    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64813e-10
Minuit parameter uncertainties:
  1  58.6328
  2  0.632332
  3  0.256002
  4  0.133353
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/427797': 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) = 6871.02725965
delta logL = 0.00955840534607

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  4.444e+01  5.863e+01  1.000e-04  1.000e+04 ( 1.000e-14)
301        Index:  2.036e+00  6.323e-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:  9.855e-01  1.334e-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.041e+00  2.560e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.68
Ra Dec: 183.625 -23.311
Photon Index (Free Index): 2.04 +/- 0.63
Photon Flux (Free Index): 3.11e-08 +/- 3.60e-08
Energy Flux (Free Index): 1.97e-05 +/- 2.67e-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/427797/cmap_HighResolution_435024001_435283201_4FGL_J1214.5-2318_daily_bin755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.68e-03', comment='SUCCESS', photon_flux='3.34e-08', energy_flux2='1.97e-05', photon_flux_error='3.37e-08', dlogl='9.56e-03', energy_flux='1.74e-05', photon_flux2='3.11e-08', job_status='DONE', time_completed='2021-09-05 05:10:35.937269', photon_index_error2='0.63', photon_index2='2.04', ts='1.67', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='2.67e-05', EG='1.04', time_epoch_completed='1630843835.94', return_code='0', job_id='427797', GAL2='0.99', EG2='1.04', return_code2='0', energy_flux_error='1.76e-05', photon_flux_error2='3.60e-08', ts2='1.68', photon_index='2.12' WHERE bin_id='755' AND source_name='4FGL J1214.5-2318' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:10:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 427797: <4FGL_J1214.5-2318_daily_bin755> in cluster <slac> Done

Job <4FGL_J1214.5-2318_daily_bin755> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 04:55:50 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 04:55:52 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:55:52 2021
Terminated at Sun Sep  5 05:10:36 2021
Results reported at Sun Sep  5 05:10:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1214.5-2318_daily_bin755 183.625 -23.3113 435024001 435283201 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 :                                   750.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             327.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   884 sec.
    Turnaround time :                            886 sec.

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

