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


Performing analysis on: 4FGL_J1214.5-2318_daily_bin816
RA = 183.625, Dec = -23.3113
tmin = 450835201, tmax = 451094401
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='427874', job_status='RUN', time_executed='2021-09-05 04:59:49.302476', time_epoch_executed='1630843189.3' WHERE source_name='4FGL J1214.5-2318' and cadence='daily' and bin_id='816'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/427874

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/427874/ft1_4FGL_J1214.5-2318_daily_bin816.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/427874/ft2_4FGL_J1214.5-2318_daily_bin816.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/427874/ft1_4FGL_J1214.5-2318_daily_bin816.fits outfile=/scratch/kocevski/427874/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin816.fits ra=183.625 dec=-23.3113 rad=12.0 tmin=450835201.0 tmax=451094401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.41
user 3.18
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/427874/ft1_filtered_4FGL_J1214.5-2318_daily_bin816.fits" evtable="EVENTS" scfile=/scratch/kocevski/427874/ft2_4FGL_J1214.5-2318_daily_bin816.fits sctable="SC_DATA" outfile=/scratch/kocevski/427874/ltcube_450835201_451094401_4FGL_J1214.5-2318_daily_bin816.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/427874/ft2_4FGL_J1214.5-2318_daily_bin816.fits
.....................!
real 15.13
user 14.71
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/427874/ft1_filtered_4FGL_J1214.5-2318_daily_bin816.fits evtable="EVENTS" scfile=/scratch/kocevski/427874/ft2_4FGL_J1214.5-2318_daily_bin816.fits sctable="SC_DATA" expcube=/scratch/kocevski/427874/ltcube_450835201_451094401_4FGL_J1214.5-2318_daily_bin816.fits outfile=/scratch/kocevski/427874/expmap_450835201_451094401_4FGL_J1214.5-2318_daily_bin816.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/427874/ltcube_450835201_451094401_4FGL_J1214.5-2318_daily_bin816.fits
.....................!
real 192.63
user 187.78
sys 4.23

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/427874/ft1_filtered_4FGL_J1214.5-2318_daily_bin816.fits scfile=/scratch/kocevski/427874/ft2_4FGL_J1214.5-2318_daily_bin816.fits outfile=/scratch/kocevski/427874/cmap_450835201_451094401_4FGL_J1214.5-2318_daily_bin816.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.56
user 0.39
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/427874/ft1_filtered_4FGL_J1214.5-2318_daily_bin816.fits evtable="EVENTS" scfile=/scratch/kocevski/427874/ft2_4FGL_J1214.5-2318_daily_bin816.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/427874/Model_4FGL_J1214.5-2318_daily_bin816.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/427874/ft1_filtered_4FGL_J1214.5-2318_daily_bin816.fits.....................!
real 58.96
user 57.53
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.068       1.0000         .10000E-03   10000.    
     3 'norm      '    4.1235       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.2798       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.0787       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0302       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16437       1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.532       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.165       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.8128       1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.404       1.0000         .10000E-03   10000.    
    18 'norm      '    .47272       1.0000         .10000E-03   10000.    
    19 'Prefactor '    37.577       1.0000         .10000E-03   10000.    
    20 'norm      '    5.1563       1.0000         .10000E-03   10000.    
    21 'norm      '    .10119E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0753       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98098       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=   6925.307     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2835 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.9720        .42794E-07** at limit **
   2  Prefactor     15.091        103.08        .29478E-05    .46381E-04
   3  norm          4.1241        2.1461        .18124E-07   -.72374E-04
   4  Prefactor     3.2815        5.5397        .64261E-06   -.56917E-04
   5  Prefactor     .10000E-03    15.149       -.36333E-07** at limit **
   6  norm          .10000E-03    10.545       -.44273E-07** at limit **
   7  Prefactor     .10000E-03    4.7263       -.11491E-06** at limit **
   8  norm          1.0786        2.8687        .77155E-06   -.68090E-04
   9  Prefactor     1.0296        2.9053        .88781E-06   -.85728E-04
  10  Prefactor     .10000E-03    16.262       -.68753E-07** at limit **
  11  Prefactor     .10000E-03    8.9491       -.10409E-08** at limit **
  12  Prefactor     .10000E-03    14.852       -.76049E-07** at limit **
  13  Prefactor     .85695        41.178        .12213E-05   -.73170E-04
  14  Prefactor     24.536        21.325        .44570E-06    .13250E-03
  15  Prefactor     14.171        10.553        .29845E-06    .27617E-04
  16  Prefactor     6.8130        3.1108       -.15069E-07   -.13210E-04
  17  Prefactor     25.406        15.287        .10413E-08   -.94129E-04
  18  norm          .47350        1.1257        .68197E-06   -.21717E-03
  19  Prefactor     37.588        82.327       -.55483E-07    .48098E-04
  20  norm          5.1590        8.8542        .34353E-05   -.20498E-03
  21  norm          .10000E-03    3.7414        .11213E-05** at limit **
  22  Prefactor     .10000E-03    3.8987        .82775E-06** at limit **
  23  Normalizat    1.0751        .23733       -.14862E-05   -.19961E-03
  24  Prefactor     .98085        .11612       -.34040E-06   -.34976E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 15.0915
  norm       = 4.12415
  Prefactor  = 3.28152
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.07863
  Prefactor  = 1.02964
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.856951
  Prefactor  = 24.5364
  Prefactor  = 14.1709
  Prefactor  = 6.81297
  Prefactor  = 25.406
  norm       = 0.473501
  Prefactor  = 37.5883
  norm       = 5.15902
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.07506
  Prefactor  = 0.980847
 **********
 **   18 **HESSE 
 **********

 FCN=   6925.307     FROM HESSE     STATUS=OK           403 CALLS     3238 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.9769        .18123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     15.091        102.89        .10318E-03   -1.4931    
   3  norm          4.1241        2.1444        .79767E-04   -1.5302    
   4  Prefactor     3.2815        5.5123        .22359E-03   -1.5346    
   5  Prefactor     .10000E-03    15.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    10.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.7328        .17657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.0786        2.8063        .22182E-03   -1.5500    
   9  Prefactor     1.0296        2.8536        .22760E-03   -1.5505    
  10  Prefactor     .10000E-03    16.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.9535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .85695        40.158        .15088       -1.5523    
  14  Prefactor     24.536        21.304        .80876E-04   -1.4717    
  15  Prefactor     14.171        10.588        .10642E-03   -1.4955    
  16  Prefactor     6.8130        3.1182        .88446E-04   -1.5186    
  17  Prefactor     25.406        15.290        .79479E-04   -1.4699    
  18  norm          .47350        1.1253        .12723E-03   -1.5570    
  19  Prefactor     37.588        81.881        .65382E-04   -1.4481    
  20  norm          5.1590        8.8180        .88522E-03   -1.5254    
  21  norm          .10000E-03    3.7450        .15642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.9334        .15997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0751        .27913        .35162E-03   -.90556    
  24  Prefactor     .98085        .13780        .18269E-03   -.93371    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.48929e-10
Minuit parameter uncertainties:
  1  3.71923e-07
  2  79.0043
  3  2.14442
  4  5.51311
  5  1.99399e-05
  6  5.83614e-06
  7  8.08455e-06
  8  2.80663
  9  2.85402
  10  5.79357e-06
  11  5.4043e-06
  12  8.38399e-06
  13  11.7403
  14  21.311
  15  10.5889
  16  3.11823
  17  15.2923
  18  1.12539
  19  82.1276
  20  8.82021
  21  2.06457e-05
  22  1.74467e-05
  23  0.279518
  24  0.137852
Done.

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

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  8.570e-01  1.174e+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.808e-01  1.379e-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.075e+00  2.795e-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.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.21e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/427874/likelihoodResults_450835201_451094401_4FGL_J1214.5-2318_daily_bin816.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) = 6925.30638381
delta logL = 0.000180092611117

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6925.2933399
delta logL = 0.0132240045787

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3104       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8873       1.0000          .0000       10.000    
     3 'Normalizat'    1.0692       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98143       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6925.293     FROM MIGRAD    STATUS=FAILED       104 CALLS      299 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3267        2264.3        .19260E-02    .56504E-03
   2  Index         2.8866        5.3862        .12232E-01    .15446E-03
   3  Normalizat    1.0692        .17288        .35250E-03    .24156E-04
   4  Prefactor     .98147        .91112E-01    .18264E-03    .24526E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6925.293     FROM SIMPLEX   STATUS=UNCHANGED     95 CALLS      394 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3267        2264.3        .71430E-03    .56504E-03
   2  Index         2.8866        5.3862        .48488E-02    .15446E-03
   3  Normalizat    1.0692        .17288        .22627E-03    .24156E-04
   4  Prefactor     .98147        .91112E-01    .75047E-04    .24526E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6925.293     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      428 TOTAL
                     EDM=   .48E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3267        61.129        .38520E-03   -.20955E-04
   2  Index         2.8866        6.4280        .24463E-02   -.30161E-05
   3  Normalizat    1.0692        .27235        .14100E-04    .24027E-04
   4  Prefactor     .98147        .13563        .73055E-05    .24277E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.32666
  Index      = 2.88658
  Normalizat = 1.06917
  Prefactor  = 0.981474
 **********
 **   18 **HESSE 
 **********

 FCN=   6925.293     FROM HESSE     STATUS=OK            23 CALLS      451 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3267        38.690        .15408E-04   -1.5478    
   2  Index         2.8866        3.2945        .97853E-04   -.43641    
   3  Normalizat    1.0692        .27236        .28200E-05   -.90748    
   4  Prefactor     .98147        .13551        .14611E-05   -.93350    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.40384e-12
Minuit parameter uncertainties:
  1  14.3384
  2  3.68862
  3  0.272713
  4  0.135557
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/427874': 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) = 6925.29333827
delta logL = 0.0132256332636

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.327e+00  1.434e+01  1.000e-04  1.000e+04 ( 1.000e-14)
301        Index:  2.887e+00  3.689e+00  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.815e-01  1.356e-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.069e+00  2.727e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 183.625 -23.311

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/427874/cmap_HighResolution_450835201_451094401_4FGL_J1214.5-2318_daily_bin816.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.21e-03', job_status='DONE', photon_flux_upper_limit='9.51e-08', time_completed='2021-09-05 05:12:19.841795', job_id='427874', GAL2='0.98', fit_tolerance='1e-08', EG2='1.07', EG='1.08', time_epoch_completed='1630843939.84', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.32e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='816' AND source_name='4FGL J1214.5-2318' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:12:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 427874: <4FGL_J1214.5-2318_daily_bin816> in cluster <slac> Done

Job <4FGL_J1214.5-2318_daily_bin816> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 04:55:57 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 04:55:59 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:59 2021
Terminated at Sun Sep  5 05:12:20 2021
Results reported at Sun Sep  5 05:12:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1214.5-2318_daily_bin816 183.625 -23.3113 450835201 451094401 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 :                                   748.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             270.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            983 sec.

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

