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


Performing analysis on: 4FGL_J1214.5-2318_daily_bin1015
RA = 183.625, Dec = -23.3113
tmin = 502416001, tmax = 502675201
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='429939', job_status='RUN', time_executed='2021-09-05 05:01:59.073093', time_epoch_executed='1630843319.07' WHERE source_name='4FGL J1214.5-2318' and cadence='daily' and bin_id='1015'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/429939

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/429939/ft1_4FGL_J1214.5-2318_daily_bin1015.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/429939/ft2_4FGL_J1214.5-2318_daily_bin1015.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/429939/ft1_4FGL_J1214.5-2318_daily_bin1015.fits outfile=/scratch/kocevski/429939/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin1015.fits ra=183.625 dec=-23.3113 rad=12.0 tmin=502416001.0 tmax=502675201.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.89
user 2.70
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/429939/ft2_4FGL_J1214.5-2318_daily_bin1015.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/429939/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin1015.fits evtable="EVENTS" outfile="/scratch/kocevski/429939/ft1_filtered_4FGL_J1214.5-2318_daily_bin1015.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.45
user 0.30
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/429939/ft1_filtered_4FGL_J1214.5-2318_daily_bin1015.fits" evtable="EVENTS" scfile=/scratch/kocevski/429939/ft2_4FGL_J1214.5-2318_daily_bin1015.fits sctable="SC_DATA" outfile=/scratch/kocevski/429939/ltcube_502416001_502675201_4FGL_J1214.5-2318_daily_bin1015.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/429939/ft2_4FGL_J1214.5-2318_daily_bin1015.fits
.....................!
real 10.02
user 9.64
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/429939/ft1_filtered_4FGL_J1214.5-2318_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/429939/ft2_4FGL_J1214.5-2318_daily_bin1015.fits sctable="SC_DATA" expcube=/scratch/kocevski/429939/ltcube_502416001_502675201_4FGL_J1214.5-2318_daily_bin1015.fits outfile=/scratch/kocevski/429939/expmap_502416001_502675201_4FGL_J1214.5-2318_daily_bin1015.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/429939/ltcube_502416001_502675201_4FGL_J1214.5-2318_daily_bin1015.fits
.....................!
real 154.91
user 150.70
sys 3.81

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/429939/ft1_filtered_4FGL_J1214.5-2318_daily_bin1015.fits scfile=/scratch/kocevski/429939/ft2_4FGL_J1214.5-2318_daily_bin1015.fits outfile=/scratch/kocevski/429939/cmap_502416001_502675201_4FGL_J1214.5-2318_daily_bin1015.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.45
user 0.30
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/429939/ft1_filtered_4FGL_J1214.5-2318_daily_bin1015.fits scfile=/scratch/kocevski/429939/ft2_4FGL_J1214.5-2318_daily_bin1015.fits outfile=/scratch/kocevski/429939/cmap_HighResolution_502416001_502675201_4FGL_J1214.5-2318_daily_bin1015.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.46
user 0.32
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/429939/ft1_filtered_4FGL_J1214.5-2318_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/429939/ft2_4FGL_J1214.5-2318_daily_bin1015.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/429939/Model_4FGL_J1214.5-2318_daily_bin1015.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/429939/ft1_filtered_4FGL_J1214.5-2318_daily_bin1015.fits.....................!
real 47.62
user 45.82
sys 1.01

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    41.885       1.0000         .10000E-03   10000.    
     3 'norm      '    2.5894       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.642       1.0000         .10000E-03   10000.    
     6 'norm      '    6.4462       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.7524       1.0000         .10000E-03   10000.    
     8 'norm      '    13.221       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7430       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    43.673       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12351E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .71679E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.7130       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.9712       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .33892       1.0000         .10000E-03   10000.    
    19 'Prefactor '    61.892       1.0000         .10000E-03   10000.    
    20 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    17.322       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.9462       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5848       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .81405       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=   6899.108     FROM MIGRAD    STATUS=CONVERGED    954 CALLS     3507 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.3553        .18142E-02** at limit **
   2  Prefactor     41.898        51.937        .61940E-04   -.67691E-04
   3  norm          2.5893        1.9810        .98042E-04   -.12605E-03
   4  Prefactor     .10000E-03    5.0237        .35765E-03** at limit **
   5  Prefactor     16.644        18.762        .98180E-04   -.15053E-04
   6  norm          6.4464        13.268        .15808E-03   -.12226E-05
   7  Prefactor     4.7541        26.867        .18457E-03    .13243E-04
   8  norm          13.220        8.1735        .11016E-03   -.12126E-03
   9  Prefactor     2.7428        3.2015        .78011E-03    .20359E-04
  10  Prefactor     .10000E-03    27.842        .18142E-02** at limit **
  11  Prefactor     .10000E-03    8.6988        .18142E-02** at limit **
  12  Prefactor     43.664        25.828        .60664E-04   -.20727E-03
  13  Prefactor     .10000E-03    62.094        .18142E-02** at limit **
  14  Prefactor     .10000E-03    15.988        .10226    ** at limit **
  15  Prefactor     5.7139        7.0423        .84025E-03    .53444E-04
  16  Prefactor     3.9713        2.3619        .93484E-04   -.10580E-04
  17  Prefactor     .10000E-03    21.146        .18142E-02** at limit **
  18  norm          .33871        .76019        .10516E-03   -.48409E-03
  19  Prefactor     61.899        75.539        .51004E-04   -.69098E-04
  20  norm          .10000E-03    8.9377        .18142E-02** at limit **
  21  norm          17.322        8.6416        .96231E-04   -.36234E-03
  22  Prefactor     1.9455        5.3697        .28898E-03   -.20418E-04
  23  Normalizat    1.5845        .29301        .32047E-03   -.24679E-03
  24  Prefactor     .81419        .14090        .20669E-03   -.33118E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 41.8981
  norm       = 2.5893
  Prefactor  = 0.0001
  Prefactor  = 16.6439
  norm       = 6.44641
  Prefactor  = 4.75408
  norm       = 13.22
  Prefactor  = 2.74276
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.6639
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  Prefactor  = 5.7139
  Prefactor  = 3.97134
  Prefactor  = 0.0001
  norm       = 0.338712
  Prefactor  = 61.8986
  norm       = 0.0001
  norm       = 17.3225
  Prefactor  = 1.94549
  Normalizat = 1.58445
  Prefactor  = 0.814189
 **********
 **   18 **HESSE 
 **********

 FCN=   6899.108     FROM HESSE     STATUS=OK           387 CALLS     3894 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.3561        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     41.898        51.936        .12388E-04   -1.4412    
   3  norm          2.5893        1.9809        .39217E-05   -1.5386    
   4  Prefactor     .10000E-03    5.0240        .71530E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     16.644        18.761        .39272E-05   -1.4892    
   6  norm          6.4464        13.268        .63231E-05   -1.5200    
   7  Prefactor     4.7541        26.802        .73827E-05   -1.5272    
   8  norm          13.220        8.1655        .44065E-05   -1.4981    
   9  Prefactor     2.7428        3.2011        .31205E-04   -1.5377    
  10  Prefactor     .10000E-03    27.843        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.6990        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     43.664        25.827        .12133E-04   -1.4385    
  13  Prefactor     .10000E-03    62.103        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.897        .10274       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.7139        7.0400        .33610E-04   -1.5230    
  16  Prefactor     3.9713        2.3616        .37394E-05   -1.5309    
  17  Prefactor     .10000E-03    21.157        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .33871        .76013        .42066E-05   -1.5592    
  19  Prefactor     61.899        75.534        .10201E-04   -1.4133    
  20  norm          .10000E-03    8.9407        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          17.322        8.6382        .38492E-05   -1.4875    
  22  Prefactor     1.9455        5.3668        .11559E-04   -1.5429    
  23  Normalizat    1.5845        .29320        .64093E-04   -.75432    
  24  Prefactor     .81419        .14101        .41337E-04   -.99207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54871e-10
Minuit parameter uncertainties:
  1  3.20995e-05
  2  51.9922
  3  1.98096
  4  4.47078e-06
  5  18.7674
  6  13.2743
  7  22.5913
  8  8.16615
  9  3.20134
  10  0.000199912
  11  2.9447e-05
  12  25.8335
  13  0.000955667
  14  0.000189009
  15  7.04106
  16  2.36169
  17  7.9914e-05
  18  0.760155
  19  75.6517
  20  3.406e-05
  21  8.63886
  22  5.36813
  23  0.293522
  24  0.141071
Done.

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

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  9.557e-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.142e-01  1.411e-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.584e+00  2.935e-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: 9.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/429939/likelihoodResults_502416001_502675201_4FGL_J1214.5-2318_daily_bin1015.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) = 6899.10758608
delta logL = -7.66378443586e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6899.10751024
delta logL = -8.02498107078e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23397E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2949       1.0000          .0000       10.000    
     3 'Normalizat'    1.5845       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81419       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=   6899.108     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      237 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.225        .90712E-02** at limit **
   2  Index         2.3160        7.6875        .50000       -.23250E-05
   3  Normalizat    1.5845        .29328E-02    .72432E-01    .15605E-04
   4  Prefactor     .81419        .14211E-02    .43902E-01    .27661E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.31598
  Normalizat = 1.58445
  Prefactor  = 0.814189
 **********
 **   18 **HESSE 
 **********

 FCN=   6899.108     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      270 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    178.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3160        6.0900        .50000       -.56664    
   3  Normalizat    1.5845        .10023E-01    .32047E-03   -.75432    
   4  Prefactor     .81419        .48595E-02    .20669E-03   -.99207    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.12171e-09
Minuit parameter uncertainties:
  1  0.000505864
  2  135.779
  3  0.0100228
  4  0.00485949
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/429939': 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) = 6899.10750931
delta logL = 1.29259206005e-07

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  5.059e-04  1.000e-04  1.000e+04 ( 1.000e-14)
301        Index:  2.316e+00  1.358e+02  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.142e-01  4.859e-03  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.584e+00  1.002e-02  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/429939/cmap_HighResolution_502416001_502675201_4FGL_J1214.5-2318_daily_bin1015.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.35e-03', job_status='DONE', photon_flux_upper_limit='9.70e-08', time_completed='2021-09-05 05:12:36.998332', job_id='429939', GAL2='0.81', fit_tolerance='1e-08', EG2='1.58', EG='1.58', time_epoch_completed='1630843957.0', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='1015' AND source_name='4FGL J1214.5-2318' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:12:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 429939: <4FGL_J1214.5-2318_daily_bin1015> in cluster <slac> Done

Job <4FGL_J1214.5-2318_daily_bin1015> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 05:00:32 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:00:34 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:34 2021
Terminated at Sun Sep  5 05:12:37 2021
Results reported at Sun Sep  5 05:12:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1214.5-2318_daily_bin1015 183.625 -23.3113 502416001 502675201 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 :                                   617.44 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             350.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   723 sec.
    Turnaround time :                            725 sec.

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

