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


Performing analysis on: 4FGL_J1214.5-2318_daily_bin307
RA = 183.625, Dec = -23.3113
tmin = 318902401, tmax = 319161601
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='425608', job_status='RUN', time_executed='2021-09-05 04:54:47.667542', time_epoch_executed='1630842887.67' WHERE source_name='4FGL J1214.5-2318' and cadence='daily' and bin_id='307'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/425608

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/425608/ft1_4FGL_J1214.5-2318_daily_bin307.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/425608/ft2_4FGL_J1214.5-2318_daily_bin307.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/425608/ft1_4FGL_J1214.5-2318_daily_bin307.fits outfile=/scratch/kocevski/425608/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin307.fits ra=183.625 dec=-23.3113 rad=12.0 tmin=318902401.0 tmax=319161601.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.38
user 3.16
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/425608/ft1_filtered_4FGL_J1214.5-2318_daily_bin307.fits" evtable="EVENTS" scfile=/scratch/kocevski/425608/ft2_4FGL_J1214.5-2318_daily_bin307.fits sctable="SC_DATA" outfile=/scratch/kocevski/425608/ltcube_318902401_319161601_4FGL_J1214.5-2318_daily_bin307.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/425608/ft2_4FGL_J1214.5-2318_daily_bin307.fits
.....................!
real 12.28
user 11.92
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/425608/ft1_filtered_4FGL_J1214.5-2318_daily_bin307.fits evtable="EVENTS" scfile=/scratch/kocevski/425608/ft2_4FGL_J1214.5-2318_daily_bin307.fits sctable="SC_DATA" expcube=/scratch/kocevski/425608/ltcube_318902401_319161601_4FGL_J1214.5-2318_daily_bin307.fits outfile=/scratch/kocevski/425608/expmap_318902401_319161601_4FGL_J1214.5-2318_daily_bin307.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/425608/ltcube_318902401_319161601_4FGL_J1214.5-2318_daily_bin307.fits
.....................!
real 190.86
user 185.96
sys 4.51

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/425608/ft1_filtered_4FGL_J1214.5-2318_daily_bin307.fits scfile=/scratch/kocevski/425608/ft2_4FGL_J1214.5-2318_daily_bin307.fits outfile=/scratch/kocevski/425608/cmap_318902401_319161601_4FGL_J1214.5-2318_daily_bin307.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.55
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/425608/ft1_filtered_4FGL_J1214.5-2318_daily_bin307.fits scfile=/scratch/kocevski/425608/ft2_4FGL_J1214.5-2318_daily_bin307.fits outfile=/scratch/kocevski/425608/cmap_HighResolution_318902401_319161601_4FGL_J1214.5-2318_daily_bin307.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10028E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.0549       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8793       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    40.819       1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.604       1.0000         .10000E-03   10000.    
     8 'norm      '    .11974E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    45.244       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.817       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11294E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.8057       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.7266       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.4929       1.0000         .10000E-03   10000.    
    19 'Prefactor '    230.09       1.0000         .10000E-03   10000.    
    20 'norm      '    1.6590       1.0000         .10000E-03   10000.    
    21 'norm      '    .41875E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.8808       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .64096       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=   6151.231     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     2805 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.5362       -.74904E-07** at limit **
   2  Prefactor     .10000E-03    102.71       -.36502E-07** at limit **
   3  norm          8.0544        2.7425        .11914E-07    .28940E-04
   4  Prefactor     2.8763        7.6380        .22987E-06    .29190E-04
   5  Prefactor     .10000E-03    17.863        .29191E-07** at limit **
   6  norm          40.819        26.616       -.65530E-07    .24217E-04
   7  Prefactor     29.609        22.587        .10125E-05   -.20368E-04
   8  norm          .10000E-03    7.8534       -.50489E-06** at limit **
   9  Prefactor     .10000E-03    4.4006        .15314E-05** at limit **
  10  Prefactor     45.036        78.636       -.25440E-05    .46128E-04
  11  Prefactor     17.788        45.528       -.67664E-05    .14431E-03
  12  Prefactor     .10000E-03    65.699        .27860E-05** at limit **
  13  Prefactor     .10000E-03    34.669        .56450E-06** at limit **
  14  Prefactor     .10000E-03    17.229        .43687E-06** at limit **
  15  Prefactor     6.8051        5.8366        .82703E-07   -.46639E-04
  16  Prefactor     4.7266        2.2973       -.14578E-07   -.12403E-05
  17  Prefactor     .10000E-03    7.1490       -.18179E-07** at limit **
  18  norm          1.4930        1.1995        .59594E-07   -.89695E-03
  19  Prefactor     230.47        101.40       -.93562E-05   -.64825E-03
  20  norm          1.6601        12.441        .97313E-05    .51433E-04
  21  norm          .10005E-03    6.7474        .71443E-05** at limit **
  22  Prefactor     .10000E-03    2.8784        .27423E-06** at limit **
  23  Normalizat    1.8812        .28080       -.14940E-05   -.44337E-03
  24  Prefactor     .64081        .12542        .14598E-05   -.62404E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.05438
  Prefactor  = 2.87628
  Prefactor  = 0.0001
  norm       = 40.8188
  Prefactor  = 29.6087
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 45.0365
  Prefactor  = 17.7878
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.80508
  Prefactor  = 4.72657
  Prefactor  = 0.0001
  norm       = 1.493
  Prefactor  = 230.469
  norm       = 1.66008
  norm       = 0.000100051
  Prefactor  = 0.0001
  Normalizat = 1.88118
  Prefactor  = 0.640814
 **********
 **   18 **HESSE 
 **********

 FCN=   6151.231     FROM HESSE     STATUS=OK           389 CALLS     3194 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.5410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    103.32        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.0544        2.7454        .73452E-04   -1.5140    
   4  Prefactor     2.8763        7.6356        .23953E-03   -1.5369    
   5  Prefactor     .10000E-03    17.869        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          40.819        26.616        .62741E-04   -1.4429    
   7  Prefactor     29.609        22.505        .73636E-04   -1.4619    
   8  norm          .10000E-03    7.9550        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.4451        .16072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     45.036        78.160        .59606E-04   -1.4365    
  11  Prefactor     17.788        45.006        .94887E-04   -1.4864    
  12  Prefactor     .10000E-03    66.894        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    34.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    17.254        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.8051        5.8468        .15380E-03   -1.5186    
  16  Prefactor     4.7266        2.2998        .79410E-04   -1.5273    
  17  Prefactor     .10000E-03    7.1706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.4930        1.1927        .73142E-04   -1.5464    
  19  Prefactor     230.47        104.16        .13339E-03   -1.2660    
  20  norm          1.6601        12.792        .16379E-02   -1.5450    
  21  norm          .10005E-03    13.883        .32780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.8871        .12987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.8812        .33192        .30627E-03   -.67563    
  24  Prefactor     .64081        .14705        .22557E-03   -1.0589    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.19136e-09
Minuit parameter uncertainties:
  1  5.70011e-06
  2  0.000246335
  3  2.7454
  4  7.63819
  5  1.11955e-05
  6  26.6242
  7  22.5115
  8  5.70955e-05
  9  0.000113572
  10  78.3382
  11  45.0921
  12  0.00086468
  13  0.000106854
  14  6.42442e-05
  15  5.84732
  16  2.29987
  17  1.75972e-06
  18  1.19269
  19  104.239
  20  9.21878
  21  0.0016886
  22  6.66925e-06
  23  0.332321
  24  0.147144
Done.

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

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  1.069e-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:  6.408e-01  1.471e-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.881e+00  3.323e-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.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/425608/likelihoodResults_318902401_319161601_4FGL_J1214.5-2318_daily_bin307.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) = 6151.23127436
delta logL = -0.000137081929097

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6151.23113728
delta logL = 2.52839527093e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1939       1.0000          .0000       10.000    
     3 'Normalizat'    1.8812       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64082       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=   6151.231     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      233 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1222.1        .90712E-02** at limit **
   2  Index         2.2031        5.5721        .50000       -.22489E-05
   3  Normalizat    1.8812        .43639E-01    .69242E-01    .37328E-05
   4  Prefactor     .64081        .20202E-01    .41608E-01   -.83578E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.20307
  Normalizat = 1.88119
  Prefactor  = 0.640814
 **********
 **   18 **HESSE 
 **********

 FCN=   6151.231     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      266 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8241.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2031        7.9301        .50000       -.59365    
   3  Normalizat    1.8812        .29913        .30627E-03   -.67563    
   4  Prefactor     .64081        .13853        .22557E-03   -1.0589    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.29199e-08
Minuit parameter uncertainties:
  1  0.00827324
  2  65.3748
  3  0.299426
  4  0.138601
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/425608': 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) = 6151.23113724
delta logL = 3.879176802e-08

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  1.000e-04  8.273e-03  1.000e-04  1.000e+04 ( 1.000e-14)
301        Index:  2.203e+00  6.537e+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.408e-01  1.386e-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.881e+00  2.994e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/425608/cmap_HighResolution_318902401_319161601_4FGL_J1214.5-2318_daily_bin307.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.09e-03', job_status='DONE', photon_flux_upper_limit='9.36e-08', time_completed='2021-09-05 05:06:19.020941', job_id='425608', GAL2='0.64', fit_tolerance='1e-08', EG2='1.88', EG='1.88', time_epoch_completed='1630843579.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='3.88e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='307' AND source_name='4FGL J1214.5-2318' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:06:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 425608: <4FGL_J1214.5-2318_daily_bin307> in cluster <slac> Done

Job <4FGL_J1214.5-2318_daily_bin307> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 04:50:37 2021
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 04:50:38 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:50:38 2021
Terminated at Sun Sep  5 05:06:19 2021
Results reported at Sun Sep  5 05:06:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1214.5-2318_daily_bin307 183.625 -23.3113 318902401 319161601 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 :                                   684.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             250.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   941 sec.
    Turnaround time :                            942 sec.

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

