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


Performing analysis on: 4FGL_J1209.8+1810_daily_bin1089
RA = 182.466, Dec = 18.1776
tmin = 521596801, tmax = 521856001
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='380513', job_status='RUN', time_executed='2021-09-05 02:38:51.816053', time_epoch_executed='1630834731.82' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='1089'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/380513

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/380513/ft1_4FGL_J1209.8+1810_daily_bin1089.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/380513/ft2_4FGL_J1209.8+1810_daily_bin1089.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/380513/ft1_4FGL_J1209.8+1810_daily_bin1089.fits outfile=/scratch/kocevski/380513/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin1089.fits ra=182.466 dec=18.1776 rad=12.0 tmin=521596801.0 tmax=521856001.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 4.34
user 4.10
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/380513/ft2_4FGL_J1209.8+1810_daily_bin1089.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/380513/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin1089.fits evtable="EVENTS" outfile="/scratch/kocevski/380513/ft1_filtered_4FGL_J1209.8+1810_daily_bin1089.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.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/380513/ft1_filtered_4FGL_J1209.8+1810_daily_bin1089.fits" evtable="EVENTS" scfile=/scratch/kocevski/380513/ft2_4FGL_J1209.8+1810_daily_bin1089.fits sctable="SC_DATA" outfile=/scratch/kocevski/380513/ltcube_521596801_521856001_4FGL_J1209.8+1810_daily_bin1089.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/380513/ft2_4FGL_J1209.8+1810_daily_bin1089.fits
.....................!
real 12.08
user 11.70
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/380513/ft1_filtered_4FGL_J1209.8+1810_daily_bin1089.fits evtable="EVENTS" scfile=/scratch/kocevski/380513/ft2_4FGL_J1209.8+1810_daily_bin1089.fits sctable="SC_DATA" expcube=/scratch/kocevski/380513/ltcube_521596801_521856001_4FGL_J1209.8+1810_daily_bin1089.fits outfile=/scratch/kocevski/380513/expmap_521596801_521856001_4FGL_J1209.8+1810_daily_bin1089.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/380513/ltcube_521596801_521856001_4FGL_J1209.8+1810_daily_bin1089.fits
.....................!
real 190.77
user 185.38
sys 4.92

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/380513/ft1_filtered_4FGL_J1209.8+1810_daily_bin1089.fits scfile=/scratch/kocevski/380513/ft2_4FGL_J1209.8+1810_daily_bin1089.fits outfile=/scratch/kocevski/380513/cmap_521596801_521856001_4FGL_J1209.8+1810_daily_bin1089.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/380513/ft1_filtered_4FGL_J1209.8+1810_daily_bin1089.fits scfile=/scratch/kocevski/380513/ft2_4FGL_J1209.8+1810_daily_bin1089.fits outfile=/scratch/kocevski/380513/cmap_HighResolution_521596801_521856001_4FGL_J1209.8+1810_daily_bin1089.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.820       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.0212       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .78897       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    27.996       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11808E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.555       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .88684       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.6492       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.8688       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3019       1.0000         .10000E-03   10000.    
    17 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.6076       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12696E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.486       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.857       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2850       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .78037       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5719.745     FROM MIGRAD    STATUS=CONVERGED    115 CALLS     2329 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.819        1.0041       -.16253E-07    .14767E-03
   2  Prefactor     .10001E-03    12.584        .48517E-05** at limit **
   3  Prefactor     .10001E-03    13.570       -.97899E-05** at limit **
   4  Prefactor     9.0213        1.0905        .42928E-06    .21297E-03
   5  Prefactor     .78890        1.2801        .43556E-06   -.79604E-04
   6  Prefactor     .12541E-03    84.719       -.49852E-04** at limit **
   7  Prefactor     .10000E-03    7.8373        .44222E-05** at limit **
   8  norm          27.996        3.4853       -.16723E-06   -.29677E-03
   9  Prefactor     .11574E-03    69.096       -.21825E-04** at limit **
  10  Prefactor     10.557        5.7871        .39413E-05    .54684E-03
  11  Prefactor     .10020E-03    45.431        .10857E-04** at limit **
  12  Prefactor     .88267        4.2125        .64222E-05    .89742E-03
  13  Prefactor     2.6543        3.3984       -.73774E-05   -.34210E-02
  14  Prefactor     4.8687        2.6668       -.26800E-06    .35374E-04
  15  Prefactor     .10003E-03    26.313       -.21452E-04** at limit **
  16  Prefactor     1.3020        3.6574        .30101E-05    .53703E-04
  17  norm          .10000E-03    .38844       -.32752E-06** at limit **
  18  norm          2.6075        3.5369       -.11058E-05   -.21978E-03
  19  Prefactor     .10000E-03    20.249        .17245E-04** at limit **
  20  Prefactor     20.486        1.0034        .89567E-09    .47543E-04
  21  Prefactor     16.855        1.0170       -.17918E-06    .74125E-05
  22  Prefactor     .10000E-03    3.3522        .19003E-05** at limit **
  23  Normalizat    1.2850        .24744       -.51990E-06    .16640E-04
  24  Prefactor     .78037        .22860        .30306E-07    .63867E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.8191
  Prefactor  = 0.000100011
  Prefactor  = 0.000100014
  Prefactor  = 9.02134
  Prefactor  = 0.788896
  Prefactor  = 0.000125408
  Prefactor  = 0.0001
  norm       = 27.9962
  Prefactor  = 0.000115738
  Prefactor  = 10.5568
  Prefactor  = 0.000100195
  Prefactor  = 0.882674
  Prefactor  = 2.65433
  Prefactor  = 4.8687
  Prefactor  = 0.000100025
  Prefactor  = 1.30199
  norm       = 0.0001
  norm       = 2.60753
  Prefactor  = 0.0001
  Prefactor  = 20.4863
  Prefactor  = 16.855
  Prefactor  = 0.0001
  Normalizat = 1.28501
  Prefactor  = 0.780369
 **********
 **   18 **HESSE 
 **********

 FCN=   5719.745     FROM HESSE     STATUS=OK           467 CALLS     2796 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.819        11.896        .26936E-02   -1.4964    
   2  Prefactor     .10001E-03    13.149        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    14.584        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.0213        9.2336        .33361E-02   -1.5107    
   5  Prefactor     .78890        1.5529        .25204E-01   -1.5530    
   6  Prefactor     .12541E-03    170.35        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.7942        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          27.996        3.4872        .18929E-02   -1.4649    
   9  Prefactor     .11574E-03    17.766        .10917       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.557        6.3197        .30832E-02   -1.5058    
  11  Prefactor     .10020E-03    47.051        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .88267        9.1582        .43752E-01   -1.5520    
  13  Prefactor     2.6543        8.0447        .62617E-02   -1.5382    
  14  Prefactor     4.8687        2.6897        .45575E-02   -1.5267    
  15  Prefactor     .10003E-03    28.157        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.3020        3.7354        .96786E-02   -1.5480    
  17  norm          .10000E-03    .14061        .15521E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.6075        3.5649        .63155E-02   -1.5385    
  19  Prefactor     .10000E-03    21.414        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     20.486        13.680        .22123E-02   -1.4802    
  21  Prefactor     16.855        33.135        .24387E-02   -1.4887    
  22  Prefactor     .10000E-03    3.3437        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2850        .21299        .58968E-01   -.84015    
  24  Prefactor     .78037        .19369        .69872E-01   -1.0046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48761e-07
Minuit parameter uncertainties:
  1  11.8983
  2  0.000747603
  3  0.000906362
  4  9.2351
  5  1.55303
  6  0.131955
  7  1.45114e-05
  8  3.48726
  9  0.0334528
  10  6.32007
  11  0.00606626
  12  5.68716
  13  8.04801
  14  2.68976
  15  0.00168851
  16  3.73604
  17  2.88253e-07
  18  3.56523
  19  3.5497e-06
  20  13.6823
  21  33.1713
  22  6.50511e-06
  23  0.213137
  24  0.193863
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  8.827e-01  5.687e+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:  7.804e-01  1.939e-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.285e+00  2.131e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/380513/likelihoodResults_521596801_521856001_4FGL_J1209.8+1810_daily_bin1089.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) = 5719.26287129
delta logL = 0.48224266828

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5719.17899247
delta logL = 0.566121480728

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10054       1.0000         .10000E-03   10000.    
     2 'Index     '    4.7465       1.0000          .0000       10.000    
     3 'Normalizat'    1.2024       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83194       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=   5719.179     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      277 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .96988E-01    1.4984        .49318E-02   -.52850E-03
   2  Index         4.7663        3.0136        .11374        .78127E-04
   3  Normalizat    1.2028        .46042E-01    .60572E-01    .84105E-04
   4  Prefactor     .83149        .44031E-01    .67895E-01   -.13639E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0969884
  Index      = 4.76631
  Normalizat = 1.20276
  Prefactor  = 0.831486
 **********
 **   18 **HESSE 
 **********

 FCN=   5719.179     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      312 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .96988E-01    4.3457        .22388E-03   -1.5646    
   2  Index         4.7663        7.3589        .59238E-02   -.46755E-01
   3  Normalizat    1.2028        .17404        .26789E-03   -.86518    
   4  Prefactor     .83149        .16401        .30038E-03   -.98578    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.94213e-09
Minuit parameter uncertainties:
  1  1.29786
  2  6.91517
  3  0.174128
  4  0.164102
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/380513': 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) = 5719.17897825
delta logL = 0.566135703397

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  9.699e-02  1.298e+00  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  4.766e+00  6.915e+00  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:  8.315e-01  1.641e-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.203e+00  1.741e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.31
Ra Dec: 182.466 18.178
Photon Index (Free Index): 4.77 +/- 6.92
Photon Flux (Free Index): 8.54e-08 +/- 7.86e-08
Energy Flux (Free Index): 1.16e-05 +/- 1.38e-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/380513/cmap_HighResolution_521596801_521856001_4FGL_J1209.8+1810_daily_bin1089.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', comment='SUCCESS', energy_flux2='1.16e-05', dlogl='5.66e-01', photon_flux2='8.54e-08', job_status='DONE', time_completed='2021-09-05 02:51:06.207853', photon_index_error2='6.92', photon_index2='4.77', ts='0.05', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='1.38e-07', energy_flux_error2='1.38e-05', EG='1.29', time_epoch_completed='1630835466.21', return_code='0', job_id='380513', GAL2='0.83', EG2='1.20', return_code2='102', photon_flux_error2='7.86e-08', ts2='1.31', photon_index='2.41' WHERE bin_id='1089' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:51:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 380513: <4FGL_J1209.8+1810_daily_bin1089> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin1089 182.466 18.1776 521596801 521856001 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.53 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            920 sec.

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

