/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 126 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 = 7496
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1209.8+1810_daily_bin5
RA = 182.466, Dec = 18.1776
tmin = 240624001, tmax = 240883201
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='373619', job_status='RUN', time_executed='2021-09-05 02:17:42.412889', time_epoch_executed='1630833462.41' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='5'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/373619

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/373619/ft1_4FGL_J1209.8+1810_daily_bin5.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/373619/ft2_4FGL_J1209.8+1810_daily_bin5.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/373619/ft1_4FGL_J1209.8+1810_daily_bin5.fits outfile=/scratch/kocevski/373619/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin5.fits ra=182.466 dec=18.1776 rad=12.0 tmin=240624001.0 tmax=240883201.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 1.79
user 1.23
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/373619/ft2_4FGL_J1209.8+1810_daily_bin5.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/373619/ft2_4FGL_J1209.8+1810_daily_bin5.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/373619/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin5.fits evtable="EVENTS" outfile="/scratch/kocevski/373619/ft1_filtered_4FGL_J1209.8+1810_daily_bin5.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.83
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/373619/ft1_filtered_4FGL_J1209.8+1810_daily_bin5.fits" evtable="EVENTS" scfile=/scratch/kocevski/373619/ft2_4FGL_J1209.8+1810_daily_bin5.fits sctable="SC_DATA" outfile=/scratch/kocevski/373619/ltcube_240624001_240883201_4FGL_J1209.8+1810_daily_bin5.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/373619/ft2_4FGL_J1209.8+1810_daily_bin5.fits
.....................!
real 13.28
user 12.71
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/373619/ft1_filtered_4FGL_J1209.8+1810_daily_bin5.fits evtable="EVENTS" scfile=/scratch/kocevski/373619/ft2_4FGL_J1209.8+1810_daily_bin5.fits sctable="SC_DATA" expcube=/scratch/kocevski/373619/ltcube_240624001_240883201_4FGL_J1209.8+1810_daily_bin5.fits outfile=/scratch/kocevski/373619/expmap_240624001_240883201_4FGL_J1209.8+1810_daily_bin5.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/373619/ltcube_240624001_240883201_4FGL_J1209.8+1810_daily_bin5.fits
.....................!
real 191.58
user 185.86
sys 5.35

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 192 point sources and 0 extended sources

Setting source of interest to:
4FGL J1209.8+1810 @ 182.466 18.1776

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/373619/ft1_filtered_4FGL_J1209.8+1810_daily_bin5.fits scfile=/scratch/kocevski/373619/ft2_4FGL_J1209.8+1810_daily_bin5.fits outfile=/scratch/kocevski/373619/cmap_240624001_240883201_4FGL_J1209.8+1810_daily_bin5.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=182.466 yref=18.1776 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.63
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/373619/ft1_filtered_4FGL_J1209.8+1810_daily_bin5.fits scfile=/scratch/kocevski/373619/ft2_4FGL_J1209.8+1810_daily_bin5.fits outfile=/scratch/kocevski/373619/cmap_HighResolution_240624001_240883201_4FGL_J1209.8+1810_daily_bin5.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=182.466 yref=18.1776 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.35
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/373619/ft1_filtered_4FGL_J1209.8+1810_daily_bin5.fits evtable="EVENTS" scfile=/scratch/kocevski/373619/ft2_4FGL_J1209.8+1810_daily_bin5.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/373619/Model_4FGL_J1209.8+1810_daily_bin5.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/373619/ft1_filtered_4FGL_J1209.8+1810_daily_bin5.fits.....................!
real 53.32
user 51.93
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/373619/ft1_filtered_4FGL_J1209.8+1810_daily_bin5.fits', '/scratch/kocevski/373619/ft2_4FGL_J1209.8+1810_daily_bin5.fits', expMap='/scratch/kocevski/373619/expmap_240624001_240883201_4FGL_J1209.8+1810_daily_bin5.fits', expCube='/scratch/kocevski/373619/ltcube_240624001_240883201_4FGL_J1209.8+1810_daily_bin5.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/373619/Model_4FGL_J1209.8+1810_daily_bin5.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1209.8+1810'

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.095e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  2.411e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  8.871e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/373619/ft1_filtered_4FGL_J1209.8+1810_daily_bin5.fits
Spacecraft file(s): /scratch/kocevski/373619/ft2_4FGL_J1209.8+1810_daily_bin5.fits
Exposure map: /scratch/kocevski/373619/expmap_240624001_240883201_4FGL_J1209.8+1810_daily_bin5.fits
Exposure cube: /scratch/kocevski/373619/ltcube_240624001_240883201_4FGL_J1209.8+1810_daily_bin5.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/373619/Model_4FGL_J1209.8+1810_daily_bin5.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) = 5685.16423506

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.1781       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10255E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    58.711       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.3881       1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.432       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.6838       1.0000         .10000E-03   10000.    
    11 'Prefactor '    42.917       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8860       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16888E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.7935       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .45291       1.0000         .10000E-03   10000.    
    18 'norm      '    .24616E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .86357       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1995       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5685.150     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2744 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.334        .66981E-06** at limit **
   2  Prefactor     .10000E-03    29.188        .40765E-06** at limit **
   3  Prefactor     6.1674        19.277        .67737E-06    .44955E-04
   4  Prefactor     .10000E-03    9.9149        .80759E-06** at limit **
   5  Prefactor     .10000E-03    1.3042       -.38103E-06** at limit **
   6  Prefactor     58.574        99.479       -.52591E-06   -.35197E-04
   7  Prefactor     .10001E-03    14.316       -.55208E-05** at limit **
   8  norm          1.3885        1.2322        .18721E-07   -.54870E-05
   9  Prefactor     23.432        19.038       -.69090E-07   -.12183E-04
  10  Prefactor     3.6843        4.4839        .35036E-06    .30077E-03
  11  Prefactor     42.882        80.688       -.35021E-07   -.66078E-05
  12  Prefactor     1.8864        2.5201        .91484E-07    .34931E-03
  13  Prefactor     .10003E-03    1.7245       -.67612E-06** at limit **
  14  Prefactor     4.7942        2.6919       -.61358E-07   -.65329E-03
  15  Prefactor     .10000E-03    11.973        .17016E-07** at limit **
  16  Prefactor     .10000E-03    9.3648        .75011E-06** at limit **
  17  norm          .45296        .21632       -.83064E-08   -.15408E-02
  18  norm          .10020E-03    5.8471        .25055E-05** at limit **
  19  Prefactor     .10000E-03    5.6907        .28376E-06** at limit **
  20  Prefactor     .10000E-03    8.4862        .16172E-06** at limit **
  21  Prefactor     .10000E-03    12.325        .30887E-06** at limit **
  22  Prefactor     .10000E-03    2.9655        .18365E-06** at limit **
  23  Normalizat    .86343        .18631        .40418E-06   -.27419E-03
  24  Prefactor     1.1997        .18041       -.10985E-05   -.36238E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.16739
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 58.5743
  Prefactor  = 0.000100014
  norm       = 1.38848
  Prefactor  = 23.4324
  Prefactor  = 3.68425
  Prefactor  = 42.8816
  Prefactor  = 1.88644
  Prefactor  = 0.000100025
  Prefactor  = 4.79418
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.452957
  norm       = 0.000100201
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.863425
  Prefactor  = 1.19969
 **********
 **   18 **HESSE 
 **********

 FCN=   5685.150     FROM HESSE     STATUS=OK           395 CALLS     3139 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    29.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.1674        19.253        .16151E-03   -1.5211    
   4  Prefactor     .10000E-03    10.212        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.3492        .16744E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     58.574        99.626        .26180E-03   -1.4176    
   7  Prefactor     .10001E-03    15.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.3885        1.2134        .75803E-04   -1.5472    
   9  Prefactor     23.432        19.029        .82749E-04   -1.4739    
  10  Prefactor     3.6843        4.4707        .16409E-03   -1.5324    
  11  Prefactor     42.882        80.640        .61194E-04   -1.4397    
  12  Prefactor     1.8864        2.4192        .12642E-03   -1.5433    
  13  Prefactor     .10003E-03    13.473        .16914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.7942        2.6854        .88900E-04   -1.5270    
  15  Prefactor     .10000E-03    11.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.6349        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .45296        .21540        .23203E-04   -1.5573    
  18  norm          .10020E-03    20.891        .23115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.7446        .17574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.5181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.9878        .12685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .86343        .21394        .26694E-03   -.97757    
  24  Prefactor     1.1997        .20834        .23524E-03   -.86341    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25257e-08
Minuit parameter uncertainties:
  1  0.000101202
  2  0.000100448
  3  19.2723
  4  0.000117846
  5  1.99793e-05
  6  99.9109
  7  0.000933193
  8  1.21338
  9  19.0337
  10  4.4711
  11  80.8458
  12  2.4193
  13  0.00116145
  14  2.68551
  15  4.02308e-06
  16  4.57193e-05
  17  0.215397
  18  0.00409847
  19  3.37279e-05
  20  1.39647e-05
  21  5.13462e-05
  22  1.43979e-05
  23  0.214145
  24  0.208484
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.886e+00  2.419e+00  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  2.411e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
286        Scale:  8.871e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.200e+00  2.085e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  8.634e-01  2.141e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.91
Ra Dec: 182.466 18.178
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/373619/likelihoodResults_240624001_240883201_4FGL_J1209.8+1810_daily_bin5.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) = 5685.03061715
delta logL = 0.119209414412

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5685.02486006
delta logL = 0.124966500507

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1247       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8597       1.0000          .0000       10.000    
     3 'Normalizat'    .87920       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1897       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5685.025     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      232 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1271        169.20        .70725E-02    .20335E-03
   2  Index         1.8606        6.5023        .26665       -.35597E-04
   3  Normalizat    .87935        .18568        .44635E-01    .90959E-05
   4  Prefactor     1.1895        .14000        .53393E-01    .17145E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.1271
  Index      = 1.8606
  Normalizat = 0.879351
  Prefactor  = 1.18953
 **********
 **   18 **HESSE 
 **********

 FCN=   5685.025     FROM HESSE     STATUS=OK            33 CALLS      265 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1271        2.7643        .13503E-03   -1.5416    
   2  Index         1.8606        .92105        .12516E-01   -.67883    
   3  Normalizat    .87935        .20323        .26477E-03   -.97190    
   4  Prefactor     1.1895        .20768        .23607E-03   -.86654    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40754e-09
Minuit parameter uncertainties:
  1  2.76444
  2  0.929878
  3  0.203403
  4  0.207826
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/373619': 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) = 5685.02485906
delta logL = 0.124967501209

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  2.127e+00  2.764e+00  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  1.861e+00  9.299e-01  0.000e+00  1.000e+01 (-1.000e+00)
286        Scale:  8.871e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  1.190e+00  2.078e-01  0.000e+00  1.000e+01 ( 1.000e+00)
612        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
613        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
610   Normalization:  8.794e-01  2.034e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.17
Ra Dec: 182.466 18.178
Photon Index (Free Index): 1.86 +/- 0.93
Photon Flux (Free Index): 1.43e-08 +/- 2.58e-08
Energy Flux (Free Index): 1.43e-05 +/- 2.67e-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/373619/cmap_HighResolution_240624001_240883201_4FGL_J1209.8+1810_daily_bin5.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.16e-03', comment='SUCCESS', energy_flux2='1.43e-05', dlogl='1.25e-01', photon_flux2='1.43e-08', job_status='DONE', time_completed='2021-09-05 02:28:56.315023', photon_index_error2='0.93', photon_index2='1.86', ts='0.91', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='2.67e-05', EG='0.86', time_epoch_completed='1630834136.32', return_code='0', job_id='373619', GAL2='1.19', EG2='0.88', return_code2='0', photon_flux_error2='2.58e-08', ts2='1.17', photon_index='2.41' WHERE bin_id='5' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:28:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 373619: <4FGL_J1209.8+1810_daily_bin5> in cluster <slac> Done

Job <4FGL_J1209.8+1810_daily_bin5> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 02:15:25 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 02:15:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 02:15:27 2021
Terminated at Sun Sep  5 02:28:56 2021
Results reported at Sun Sep  5 02:28:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin5 182.466 18.1776 240624001 240883201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1209.8+1810 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   672.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            811 sec.

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

