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


Performing analysis on: 4FGL_J1209.8+1810_daily_bin973
RA = 182.466, Dec = 18.1776
tmin = 491529601, tmax = 491788801
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='380321', job_status='RUN', time_executed='2021-09-05 02:35:45.438775', time_epoch_executed='1630834545.44' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='973'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/380321

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/380321/ft1_4FGL_J1209.8+1810_daily_bin973.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/380321/ft2_4FGL_J1209.8+1810_daily_bin973.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/380321/ft1_4FGL_J1209.8+1810_daily_bin973.fits outfile=/scratch/kocevski/380321/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin973.fits ra=182.466 dec=18.1776 rad=12.0 tmin=491529601.0 tmax=491788801.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.49
user 3.26
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/380321/ft2_4FGL_J1209.8+1810_daily_bin973.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/380321/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin973.fits evtable="EVENTS" outfile="/scratch/kocevski/380321/ft1_filtered_4FGL_J1209.8+1810_daily_bin973.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/380321/ft1_filtered_4FGL_J1209.8+1810_daily_bin973.fits" evtable="EVENTS" scfile=/scratch/kocevski/380321/ft2_4FGL_J1209.8+1810_daily_bin973.fits sctable="SC_DATA" outfile=/scratch/kocevski/380321/ltcube_491529601_491788801_4FGL_J1209.8+1810_daily_bin973.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/380321/ft2_4FGL_J1209.8+1810_daily_bin973.fits
.....................!
real 11.83
user 11.41
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/380321/ft1_filtered_4FGL_J1209.8+1810_daily_bin973.fits evtable="EVENTS" scfile=/scratch/kocevski/380321/ft2_4FGL_J1209.8+1810_daily_bin973.fits sctable="SC_DATA" expcube=/scratch/kocevski/380321/ltcube_491529601_491788801_4FGL_J1209.8+1810_daily_bin973.fits outfile=/scratch/kocevski/380321/expmap_491529601_491788801_4FGL_J1209.8+1810_daily_bin973.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/380321/ltcube_491529601_491788801_4FGL_J1209.8+1810_daily_bin973.fits
.....................!
real 191.21
user 185.73
sys 5.07

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/380321/ft1_filtered_4FGL_J1209.8+1810_daily_bin973.fits scfile=/scratch/kocevski/380321/ft2_4FGL_J1209.8+1810_daily_bin973.fits outfile=/scratch/kocevski/380321/cmap_491529601_491788801_4FGL_J1209.8+1810_daily_bin973.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.57
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/380321/ft1_filtered_4FGL_J1209.8+1810_daily_bin973.fits scfile=/scratch/kocevski/380321/ft2_4FGL_J1209.8+1810_daily_bin973.fits outfile=/scratch/kocevski/380321/cmap_HighResolution_491529601_491788801_4FGL_J1209.8+1810_daily_bin973.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.55
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/380321/ft1_filtered_4FGL_J1209.8+1810_daily_bin973.fits', '/scratch/kocevski/380321/ft2_4FGL_J1209.8+1810_daily_bin973.fits', expMap='/scratch/kocevski/380321/expmap_491529601_491788801_4FGL_J1209.8+1810_daily_bin973.fits', expCube='/scratch/kocevski/380321/ltcube_491529601_491788801_4FGL_J1209.8+1810_daily_bin973.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/380321/Model_4FGL_J1209.8+1810_daily_bin973.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/380321/ft1_filtered_4FGL_J1209.8+1810_daily_bin973.fits
Spacecraft file(s): /scratch/kocevski/380321/ft2_4FGL_J1209.8+1810_daily_bin973.fits
Exposure map: /scratch/kocevski/380321/expmap_491529601_491788801_4FGL_J1209.8+1810_daily_bin973.fits
Exposure cube: /scratch/kocevski/380321/ltcube_491529601_491788801_4FGL_J1209.8+1810_daily_bin973.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/380321/Model_4FGL_J1209.8+1810_daily_bin973.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) = 5429.17711212

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    65.505       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1483       1.0000         .10000E-03   10000.    
     8 'norm      '    3.0801       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .55046       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.3947       1.0000         .10000E-03   10000.    
    17 'norm      '    .65949       1.0000         .10000E-03   10000.    
    18 'norm      '    5.9629       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.757       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.036       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11009E-02   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .75318       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1678       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=   5429.175     FROM MIGRAD    STATUS=CONVERGED    547 CALLS     2693 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.240       -.18901E-04** at limit **
   2  Prefactor     65.502        47.929       -.20520E-05    .35505E-04
   3  Prefactor     .10000E-03    9.8252       -.34743E-07** at limit **
   4  Prefactor     .10000E-03    3.9455       -.31815E-07** at limit **
   5  Prefactor     .10000E-03    .77692        .57053E-08** at limit **
   6  Prefactor     .10000E-03    69.782       -.16498E-04** at limit **
   7  Prefactor     1.1484        1.1643        .23982E-06   -.20714E-02
   8  norm          3.0801        1.4842        .45120E-08    .26726E-04
   9  Prefactor     .10000E-03    4.5359       -.64563E-07** at limit **
  10  Prefactor     .10000E-03    2.5620        .30429E-07** at limit **
  11  Prefactor     .10000E-03    17.482        .90460E-05** at limit **
  12  Prefactor     .10000E-03    1.0161        .10857E-07** at limit **
  13  Prefactor     .10000E-03    1.7261        .99976E-08** at limit **
  14  Prefactor     .55079        1.9602       -.21050E-06   -.16838E-03
  15  Prefactor     .10000E-03    14.942       -.38092E-05** at limit **
  16  Prefactor     4.3946        4.2568       -.22180E-05   -.10425E-04
  17  norm          .65947        .27949       -.14457E-07   -.48444E-04
  18  norm          5.9627        4.6731        .23049E-05    .72893E-04
  19  Prefactor     17.757        12.293       -.36408E-06   -.25227E-03
  20  Prefactor     13.036        10.756       -.51982E-08    .98243E-05
  21  Prefactor     .10000E-03    36.755        .26260E-04** at limit **
  22  Prefactor     .10006E-03    5.7870       -.10591E-05** at limit **
  23  Normalizat    .75324        .18300        .36141E-06    .14105E-03
  24  Prefactor     1.1677        .17769       -.62295E-08    .14581E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 65.5024
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.1484
  norm       = 3.0801
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.55079
  Prefactor  = 0.0001
  Prefactor  = 4.39464
  norm       = 0.659469
  norm       = 5.96271
  Prefactor  = 17.757
  Prefactor  = 13.0357
  Prefactor  = 0.0001
  Prefactor  = 0.00010006
  Normalizat = 0.753235
  Prefactor  = 1.16766
 **********
 **   18 **HESSE 
 **********

 FCN=   5429.175     FROM HESSE     STATUS=OK           393 CALLS     3086 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     65.502        48.000        .49587E-04   -1.4088    
   3  Prefactor     .10000E-03    9.8575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.9519        .14292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .78865        .63377E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    69.828        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.1484        6.9642        .18916E-02   -1.5494    
   8  norm          3.0801        1.4819        .60216E-04   -1.5357    
   9  Prefactor     .10000E-03    4.5436        .15326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.6173        .11508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.0281        .72487E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.7631        .94444E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .55079        1.9585        .18465E-03   -1.5560    
  15  Prefactor     .10000E-03    14.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.3946        4.2597        .14382E-03   -1.5289    
  17  norm          .65947        .27883        .23927E-04   -1.5546    
  18  norm          5.9627        4.6662        .13434E-03   -1.5220    
  19  Prefactor     17.757        12.301        .95047E-04   -1.4865    
  20  Prefactor     13.036        10.723        .11094E-03   -1.4986    
  21  Prefactor     .10000E-03    36.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10006E-03    34.482        .34297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .75324        .21521        .28032E-03   -1.0183    
  24  Prefactor     1.1677        .21004        .22977E-03   -.87332    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34441e-08
Minuit parameter uncertainties:
  1  0.000184375
  2  48.0288
  3  9.21356e-07
  4  1.98086e-06
  5  2.9184e-08
  6  5.47348e-05
  7  5.65678
  8  1.48194
  9  3.58597e-07
  10  1.81975e-07
  11  1.45453e-05
  12  3.50023e-07
  13  1.28699e-06
  14  1.95874
  15  6.12969e-06
  16  4.26003
  17  0.278827
  18  4.66648
  19  12.3025
  20  10.7242
  21  6.23263e-06
  22  0.00287815
  23  0.215457
  24  0.210189
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  3.500e-07  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.168e+00  2.102e-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:  7.532e-01  2.155e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 182.466 18.178
Photon Flux Upper Limit: 6.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/380321/likelihoodResults_491529601_491788801_4FGL_J1209.8+1810_daily_bin973.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) = 5429.17993825
delta logL = -0.00456296390894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5429.1753758
delta logL = -5.13432496518e-07

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5429.175     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      253 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.0754        .73207E-02** at limit **
   2  Index         2.0109        5.7308        .50000        .23765E-06
   3  Normalizat    .75324        .10419E-01    .28032E-03    .54297E-03
   4  Prefactor     1.1677        .10473E-01    .22977E-03    .68294E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.01091
  Normalizat = 0.753236
  Prefactor  = 1.16766
 **********
 **   18 **HESSE 
 **********

 FCN=   5429.175     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      282 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    60.466        .77965E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0109        8.8267        .50000       -.64078    
   3  Normalizat    .75324        .34647E-01    .56064E-04   -1.0183    
   4  Prefactor     1.1677        .34827E-01    .45953E-04   -.87332    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.06451e-10
Minuit parameter uncertainties:
  1  4.73772e-05
  2  392.603
  3  0.0346476
  4  0.0348278
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/380321': 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) = 5429.17536907
delta logL = 6.21444542048e-06

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  4.738e-05  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  2.011e+00  3.926e+02  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.168e+00  3.483e-02  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:  7.532e-01  3.465e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 182.466 18.178

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/380321/cmap_HighResolution_491529601_491788801_4FGL_J1209.8+1810_daily_bin973.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.82e-03', job_status='DONE', photon_flux_upper_limit='6.23e-08', time_completed='2021-09-05 02:46:40.085878', job_id='380321', GAL2='1.17', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1630835200.09', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='6.21e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='973' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:46:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 380321: <4FGL_J1209.8+1810_daily_bin973> in cluster <slac> Done

Job <4FGL_J1209.8+1810_daily_bin973> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 02:35:30 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 02:35:32 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:35:32 2021
Terminated at Sun Sep  5 02:46:40 2021
Results reported at Sun Sep  5 02:46:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin973 182.466 18.1776 491529601 491788801 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 :                                   650.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             369.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   676 sec.
    Turnaround time :                            670 sec.

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

