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


Performing analysis on: 4FGL_J1209.8+1810_daily_bin1049
RA = 182.466, Dec = 18.1776
tmin = 511228801, tmax = 511488001
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='380446', job_status='RUN', time_executed='2021-09-05 02:38:36.909769', time_epoch_executed='1630834716.91' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='1049'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/380446

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/380446/ft1_4FGL_J1209.8+1810_daily_bin1049.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/380446/ft2_4FGL_J1209.8+1810_daily_bin1049.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/380446/ft1_4FGL_J1209.8+1810_daily_bin1049.fits outfile=/scratch/kocevski/380446/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin1049.fits ra=182.466 dec=18.1776 rad=12.0 tmin=511228801.0 tmax=511488001.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.53
user 3.24
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/380446/ft2_4FGL_J1209.8+1810_daily_bin1049.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/380446/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin1049.fits evtable="EVENTS" outfile="/scratch/kocevski/380446/ft1_filtered_4FGL_J1209.8+1810_daily_bin1049.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/380446/ft1_filtered_4FGL_J1209.8+1810_daily_bin1049.fits" evtable="EVENTS" scfile=/scratch/kocevski/380446/ft2_4FGL_J1209.8+1810_daily_bin1049.fits sctable="SC_DATA" outfile=/scratch/kocevski/380446/ltcube_511228801_511488001_4FGL_J1209.8+1810_daily_bin1049.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/380446/ft2_4FGL_J1209.8+1810_daily_bin1049.fits
.....................!
real 15.02
user 14.63
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/380446/ft1_filtered_4FGL_J1209.8+1810_daily_bin1049.fits evtable="EVENTS" scfile=/scratch/kocevski/380446/ft2_4FGL_J1209.8+1810_daily_bin1049.fits sctable="SC_DATA" expcube=/scratch/kocevski/380446/ltcube_511228801_511488001_4FGL_J1209.8+1810_daily_bin1049.fits outfile=/scratch/kocevski/380446/expmap_511228801_511488001_4FGL_J1209.8+1810_daily_bin1049.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/380446/ltcube_511228801_511488001_4FGL_J1209.8+1810_daily_bin1049.fits
.....................!
real 191.84
user 185.86
sys 5.62

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/380446/ft1_filtered_4FGL_J1209.8+1810_daily_bin1049.fits scfile=/scratch/kocevski/380446/ft2_4FGL_J1209.8+1810_daily_bin1049.fits outfile=/scratch/kocevski/380446/cmap_511228801_511488001_4FGL_J1209.8+1810_daily_bin1049.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/380446/ft1_filtered_4FGL_J1209.8+1810_daily_bin1049.fits scfile=/scratch/kocevski/380446/ft2_4FGL_J1209.8+1810_daily_bin1049.fits outfile=/scratch/kocevski/380446/cmap_HighResolution_511228801_511488001_4FGL_J1209.8+1810_daily_bin1049.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.57
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.233       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12577E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.5791       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .77343       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.3750       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5813       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .44331E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.4539       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.305       1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.546       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1142       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0685       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=   5577.248     FROM MIGRAD    STATUS=CONVERGED    555 CALLS     2383 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.232        11.635        .95131E-07    .49070E-05
   2  Prefactor     .10002E-03    104.52        .66182E-05** at limit **
   3  Prefactor     7.5807        14.374       -.20553E-06   -.45547E-05
   4  Prefactor     .10000E-03    2.8589        .15449E-07** at limit **
   5  Prefactor     .10000E-03    1.3946       -.25992E-07** at limit **
   6  Prefactor     .10000E-03    135.02       -.12787E-05** at limit **
   7  Prefactor     .10000E-03    2.7807        .66558E-07** at limit **
   8  norm          .77338        1.0744        .90457E-06   -.25516E-03
   9  Prefactor     .10000E-03    7.6125        .91135E-08** at limit **
  10  Prefactor     .10000E-03    2.2710       -.33164E-08** at limit **
  11  Prefactor     .10000E-03    30.661        .32743E-07** at limit **
  12  Prefactor     5.3769        2.8476        .26219E-07   -.22387E-04
  13  Prefactor     .10000E-03    2.2564       -.16049E-07** at limit **
  14  Prefactor     1.5811        1.9411        .94681E-07   -.10445E-03
  15  Prefactor     .10000E-03    46.930       -.54337E-06** at limit **
  16  Prefactor     .10025E-03    3.6697        .62633E-06** at limit **
  17  norm          .10000E-03    .58476E-01   -.44341E-08** at limit **
  18  norm          8.4539        4.5044        .59837E-08   -.27483E-03
  19  Prefactor     .10000E-03    4.3701        .24979E-07** at limit **
  20  Prefactor     13.307        12.224       -.25637E-07   -.26597E-04
  21  Prefactor     20.552        29.180        .12404E-06    .14392E-04
  22  Prefactor     .10000E-03    2.7847       -.81290E-07** at limit **
  23  Normalizat    1.1143        .18093       -.98334E-07   -.86670E-04
  24  Prefactor     1.0685        .18286       -.16951E-07   -.79937E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.2317
  Prefactor  = 0.000100025
  Prefactor  = 7.58074
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.773384
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.3769
  Prefactor  = 0.0001
  Prefactor  = 1.5811
  Prefactor  = 0.000100001
  Prefactor  = 0.000100249
  norm       = 0.0001
  norm       = 8.45393
  Prefactor  = 0.0001
  Prefactor  = 13.307
  Prefactor  = 20.5521
  Prefactor  = 0.0001
  Normalizat = 1.11426
  Prefactor  = 1.06852
 **********
 **   18 **HESSE 
 **********

 FCN=   5577.248     FROM HESSE     STATUS=OK           401 CALLS     2784 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.232        11.644        .11011E-03   -1.4980    
   2  Prefactor     .10002E-03    113.53        .41208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.5807        14.377        .14567E-03   -1.5157    
   4  Prefactor     .10000E-03    2.8627        .12332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.4550        .17182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    136.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.7860        .12169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .77338        1.0851        .24681E-03   -1.5532    
   9  Prefactor     .10000E-03    7.6426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.3319        .21959E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    30.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.3769        2.8396        .87699E-04   -1.5244    
  13  Prefactor     .10000E-03    2.3392        .21839E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.5811        1.9170        .11022E-03   -1.5456    
  15  Prefactor     .10000E-03    47.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10025E-03    54.633        .26337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .65136E-01    .35104E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.4539        4.4031        .10920E-03   -1.5126    
  19  Prefactor     .10000E-03    4.3740        .15241E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.307        12.204        .10981E-03   -1.4978    
  21  Prefactor     20.552        29.186        .88363E-04   -1.4801    
  22  Prefactor     .10000E-03    2.7975        .12178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1143        .21267        .24305E-03   -.89295    
  24  Prefactor     1.0685        .21526        .25419E-03   -.90479    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.54265e-09
Minuit parameter uncertainties:
  1  11.6462
  2  0.00334858
  3  14.384
  4  2.21066e-06
  5  1.604e-06
  6  0.00147518
  7  1.11655e-05
  8  1.08511
  9  2.12518e-06
  10  8.10531e-08
  11  1.79484e-05
  12  2.83968
  13  1.52805e-06
  14  1.91708
  15  0.00033977
  16  0.00738314
  17  1.26387e-07
  18  4.4033
  19  1.40047e-07
  20  12.2067
  21  29.2067
  22  1.23143e-05
  23  0.212838
  24  0.215435
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  5.377e+00  2.840e+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.069e+00  2.154e-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:  1.114e+00  2.128e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.57
Ra Dec: 182.466 18.178
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 7.36e-08 +/- 3.88e-08
Energy Flux (Fixed Index): 2.38e-05 +/- 1.26e-05

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) = 5576.68741796
delta logL = 0.560202308281

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5576.6860637
delta logL = 0.561556566293

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1027       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9844       1.0000          .0000       10.000    
     3 'Normalizat'    1.1373       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0468       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=   5576.686     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      281 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1026        4.3678        .10289E-03    .55800E-03
   2  Index         1.9844        .35789        .55622E-02    .96735E-04
   3  Normalizat    1.1373        .20866        .24082E-03    .25492E-05
   4  Prefactor     1.0468        .21492        .25623E-03   -.42949E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.10261
  Index      = 1.98438
  Normalizat = 1.13735
  Prefactor  = 1.04679
 **********
 **   18 **HESSE 
 **********

 FCN=   5576.686     FROM HESSE     STATUS=OK            25 CALLS      306 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1026        4.3263        .41155E-05   -1.5139    
   2  Index         1.9844        .35446        .22249E-03   -.64741    
   3  Normalizat    1.1373        .20883        .96330E-05   -.88562    
   4  Prefactor     1.0468        .21509        .10249E-04   -.91186    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02223e-10
Minuit parameter uncertainties:
  1  4.32648
  2  0.354927
  3  0.208979
  4  0.215268
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/380446': 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) = 5576.6860637
delta logL = 0.56155657079

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  8.103e+00  4.326e+00  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  1.984e+00  3.549e-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.047e+00  2.153e-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:  1.137e+00  2.090e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.70
Ra Dec: 182.466 18.178
Photon Index (Free Index): 1.98 +/- 0.35
Photon Flux (Free Index): 6.26e-08 +/- 3.46e-08
Energy Flux (Free Index): 4.50e-05 +/- 3.71e-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/380446/cmap_HighResolution_511228801_511488001_4FGL_J1209.8+1810_daily_bin1049.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.36e-08', energy_flux2='4.50e-05', photon_flux_error='3.88e-08', dlogl='5.62e-01', energy_flux='2.38e-05', photon_flux2='6.26e-08', job_status='DONE', time_completed='2021-09-05 02:49:12.021110', photon_index_error2='0.35', photon_index2='1.98', ts='6.57', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='3.71e-05', EG='1.11', time_epoch_completed='1630835352.02', return_code='0', job_id='380446', GAL2='1.05', EG2='1.14', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='3.46e-08', ts2='7.70', photon_index='2.41' WHERE bin_id='1049' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:49:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 380446: <4FGL_J1209.8+1810_daily_bin1049> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin1049 182.466 18.1776 511228801 511488001 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 :                                   597.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            811 sec.

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

