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


Performing analysis on: 4FGL_J1214.5-2318_daily_bin1421
RA = 183.625, Dec = -23.3113
tmin = 607651201, tmax = 607910401
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='433493', job_status='RUN', time_executed='2021-09-05 05:12:06.384458', time_epoch_executed='1630843926.38' WHERE source_name='4FGL J1214.5-2318' and cadence='daily' and bin_id='1421'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/433493

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/433493/ft1_4FGL_J1214.5-2318_daily_bin1421.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/433493/ft2_4FGL_J1214.5-2318_daily_bin1421.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/433493/ft1_4FGL_J1214.5-2318_daily_bin1421.fits outfile=/scratch/kocevski/433493/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin1421.fits ra=183.625 dec=-23.3113 rad=12.0 tmin=607651201.0 tmax=607910401.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.84
user 3.58
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/433493/ft2_4FGL_J1214.5-2318_daily_bin1421.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/433493/ft1_filteredMKT_4FGL_J1214.5-2318_daily_bin1421.fits evtable="EVENTS" outfile="/scratch/kocevski/433493/ft1_filtered_4FGL_J1214.5-2318_daily_bin1421.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/433493/ft1_filtered_4FGL_J1214.5-2318_daily_bin1421.fits" evtable="EVENTS" scfile=/scratch/kocevski/433493/ft2_4FGL_J1214.5-2318_daily_bin1421.fits sctable="SC_DATA" outfile=/scratch/kocevski/433493/ltcube_607651201_607910401_4FGL_J1214.5-2318_daily_bin1421.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/433493/ft2_4FGL_J1214.5-2318_daily_bin1421.fits
.....................!
real 12.38
user 11.99
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/433493/ft1_filtered_4FGL_J1214.5-2318_daily_bin1421.fits evtable="EVENTS" scfile=/scratch/kocevski/433493/ft2_4FGL_J1214.5-2318_daily_bin1421.fits sctable="SC_DATA" expcube=/scratch/kocevski/433493/ltcube_607651201_607910401_4FGL_J1214.5-2318_daily_bin1421.fits outfile=/scratch/kocevski/433493/expmap_607651201_607910401_4FGL_J1214.5-2318_daily_bin1421.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/433493/ltcube_607651201_607910401_4FGL_J1214.5-2318_daily_bin1421.fits
.....................!
real 192.21
user 186.26
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/433493/ft1_filtered_4FGL_J1214.5-2318_daily_bin1421.fits scfile=/scratch/kocevski/433493/ft2_4FGL_J1214.5-2318_daily_bin1421.fits outfile=/scratch/kocevski/433493/cmap_607651201_607910401_4FGL_J1214.5-2318_daily_bin1421.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/433493/ft1_filtered_4FGL_J1214.5-2318_daily_bin1421.fits scfile=/scratch/kocevski/433493/ft2_4FGL_J1214.5-2318_daily_bin1421.fits outfile=/scratch/kocevski/433493/cmap_HighResolution_607651201_607910401_4FGL_J1214.5-2318_daily_bin1421.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/433493/ft1_filtered_4FGL_J1214.5-2318_daily_bin1421.fits evtable="EVENTS" scfile=/scratch/kocevski/433493/ft2_4FGL_J1214.5-2318_daily_bin1421.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/433493/Model_4FGL_J1214.5-2318_daily_bin1421.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/433493/ft1_filtered_4FGL_J1214.5-2318_daily_bin1421.fits.....................!
real 55.75
user 54.17
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.678       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .49910E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    41.561       1.0000         .10000E-03   10000.    
     7 'Prefactor '    89.133       1.0000         .10000E-03   10000.    
     8 'norm      '    3.4428       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    20.983       1.0000         .10000E-03   10000.    
    14 'Prefactor '    43.841       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .51811       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.6679       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.4505       1.0000         .10000E-03   10000.    
    18 'norm      '    .96449       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    13.262       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2727       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .92501       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=   6272.400     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2739 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.187       -.10627E-05** at limit **
   2  Prefactor     .10000E-03    73.751       -.64824E-06** at limit **
   3  norm          .10000E-03    .89295        .23916E-07** at limit **
   4  Prefactor     18.646        10.682       -.70030E-06   -.51699E-03
   5  Prefactor     .10003E-03    196.62       -.77920E-05** at limit **
   6  norm          41.564        39.218        .33870E-06    .35080E-05
   7  Prefactor     89.120        30.365       -.22588E-06   -.19625E-03
   8  norm          3.4412        5.4116        .30861E-06    .55470E-04
   9  Prefactor     .10000E-03    3.4378       -.10928E-06** at limit **
  10  Prefactor     .10000E-03    64.167        .22302E-06** at limit **
  11  Prefactor     .10000E-03    17.116        .70522E-07** at limit **
  12  Prefactor     .10000E-03    8.4579       -.10518E-07** at limit **
  13  Prefactor     20.983        29.527        .33212E-06    .12092E-04
  14  Prefactor     43.844        30.927        .14538E-06   -.15627E-04
  15  Prefactor     .50162        10.302       -.33159E-05    .44556E-03
  16  Prefactor     9.6708        3.3701       -.50291E-07   -.77177E-04
  17  Prefactor     9.4511        17.502        .25871E-06    .39806E-05
  18  norm          .96469        1.1193        .37163E-06    .11779E-02
  19  Prefactor     .10000E-03    41.813        .54464E-06** at limit **
  20  norm          13.263        13.604        .18898E-06    .13974E-04
  21  norm          .10000E-03    2.3574        .40595E-07** at limit **
  22  Prefactor     .10000E-03    3.4414        .40936E-07** at limit **
  23  Normalizat    1.2731        .28526        .38712E-06   -.17211E-03
  24  Prefactor     .92479        .13422       -.10044E-05   -.28450E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 18.6458
  Prefactor  = 0.000100027
  norm       = 41.564
  Prefactor  = 89.12
  norm       = 3.44117
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.9833
  Prefactor  = 43.8437
  Prefactor  = 0.501617
  Prefactor  = 9.67084
  Prefactor  = 9.45109
  norm       = 0.96469
  Prefactor  = 0.000100001
  norm       = 13.2635
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.27309
  Prefactor  = 0.924794
 **********
 **   18 **HESSE 
 **********

 FCN=   6272.400     FROM HESSE     STATUS=OK           399 CALLS     3138 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.251        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    74.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .92787        .14615E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     18.646        10.695        .92674E-04   -1.4844    
   5  Prefactor     .10003E-03    204.03        .42317E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          41.564        39.289        .62181E-04   -1.4418    
   7  Prefactor     89.120        30.277        .42559E-04   -1.3817    
   8  norm          3.4412        5.3790        .20559E-03   -1.5337    
   9  Prefactor     .10000E-03    3.4684        .14330E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    64.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.4617        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     20.983        29.539        .43719E-03   -1.4791    
  14  Prefactor     43.844        30.949        .60548E-04   -1.4383    
  15  Prefactor     .50162        14.077        .33976E-02   -1.5566    
  16  Prefactor     9.6708        3.4053        .79418E-04   -1.5086    
  17  Prefactor     9.4511        17.524        .13036E-03   -1.5093    
  18  norm          .96469        1.0825        .89382E-03   -1.5512    
  19  Prefactor     .10000E-03    42.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          13.263        13.612        .10999E-03   -1.4979    
  21  norm          .10000E-03    2.3736        .11874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.4905        .14345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2731        .33695        .36575E-03   -.84373    
  24  Prefactor     .92479        .15930        .20216E-03   -.95280    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51893e-09
Minuit parameter uncertainties:
  1  0.00029942
  2  0.00045019
  3  2.01471e-06
  4  10.6964
  5  0.00473323
  6  39.3138
  7  30.2825
  8  5.37971
  9  2.61014e-06
  10  0.000326674
  11  3.37777e-05
  12  6.09052e-06
  13  29.5598
  14  30.9602
  15  5.31538
  16  3.40533
  17  17.5331
  18  1.08251
  19  0.000331864
  20  13.6153
  21  3.03749e-06
  22  2.64873e-06
  23  0.337532
  24  0.159383
Done.

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

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  2.098e+01  2.956e+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.248e-01  1.594e-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.273e+00  3.375e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.00
Ra Dec: 183.625 -23.311
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 1.80e-08 +/- 2.54e-08
Energy Flux (Fixed Index): 9.39e-06 +/- 1.32e-05

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

Saving results to:
/scratch/kocevski/433493/likelihoodResults_607651201_607910401_4FGL_J1214.5-2318_daily_bin1421.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) = 6271.66941488
delta logL = 0.730737803493

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6271.6692463
delta logL = 0.730906387742

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.823       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2309       1.0000          .0000       10.000    
     3 'Normalizat'    1.2844       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92128       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=   6271.669     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      267 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.823        6070.7        .15685E-02   -.16415E-03
   2  Index         1.2309        7.1611        .33195       -.40834E-04
   3  Normalizat    1.2843        .30825        .82303E-01    .17873E-03
   4  Prefactor     .92131        .10788        .45276E-01    .56096E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.8225
  Index      = 1.23091
  Normalizat = 1.28427
  Prefactor  = 0.921311
 **********
 **   18 **HESSE 
 **********

 FCN=   6271.669     FROM HESSE     STATUS=OK            29 CALLS      296 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.823        47.894        .62738E-04   -1.4429    
   2  Index         1.2309        .64336        .12165E-01   -.85385    
   3  Normalizat    1.2843        .32390        .36436E-03   -.84037    
   4  Prefactor     .92131        .15659        .20242E-03   -.95400    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.55539e-10
Minuit parameter uncertainties:
  1  47.9387
  2  0.647546
  3  0.324412
  4  0.156667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/433493': 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) = 6271.66924627
delta logL = 0.730906415588

Extracting fit parameters...

4FGL J1214.5-2318
   Spectrum: PowerLaw
300    Prefactor:  4.082e+01  4.794e+01  1.000e-04  1.000e+04 ( 1.000e-14)
301        Index:  1.231e+00  6.475e-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.213e-01  1.567e-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.284e+00  3.244e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.47
Ra Dec: 183.625 -23.311
Photon Index (Free Index): 1.23 +/- 0.65
Photon Flux (Free Index): 7.56e-09 +/- 1.02e-08
Energy Flux (Free Index): 5.75e-05 +/- 9.68e-05

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/433493/cmap_HighResolution_607651201_607910401_4FGL_J1214.5-2318_daily_bin1421.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.82e-03', comment='SUCCESS', photon_flux='1.80e-08', energy_flux2='5.75e-05', photon_flux_error='2.54e-08', dlogl='7.31e-01', energy_flux='9.39e-06', photon_flux2='7.56e-09', job_status='DONE', time_completed='2021-09-05 05:23:44.909102', photon_index_error2='0.65', photon_index2='1.23', ts='1.00', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.03e-07', energy_flux_error2='9.68e-05', EG='1.27', time_epoch_completed='1630844624.91', return_code='0', job_id='433493', GAL2='0.92', EG2='1.28', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='1.02e-08', ts2='2.47', photon_index='2.12' WHERE bin_id='1421' AND source_name='4FGL J1214.5-2318' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 05:23:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 433493: <4FGL_J1214.5-2318_daily_bin1421> in cluster <slac> Done

Job <4FGL_J1214.5-2318_daily_bin1421> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 05:10:41 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 05:10:42 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:10:42 2021
Terminated at Sun Sep  5 05:23:48 2021
Results reported at Sun Sep  5 05:23:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1214.5-2318_daily_bin1421 183.625 -23.3113 607651201 607910401 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 :                                   685.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   783 sec.
    Turnaround time :                            787 sec.

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

