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


Performing analysis on: 4FGL_J1209.8+1810_daily_bin482
RA = 182.466, Dec = 18.1776
tmin = 364262401, tmax = 364521601
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='375532', job_status='RUN', time_executed='2021-09-05 02:21:01.040989', time_epoch_executed='1630833661.04' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='482'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/375532

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/375532/ft1_4FGL_J1209.8+1810_daily_bin482.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/375532/ft2_4FGL_J1209.8+1810_daily_bin482.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/375532/ft1_4FGL_J1209.8+1810_daily_bin482.fits outfile=/scratch/kocevski/375532/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin482.fits ra=182.466 dec=18.1776 rad=12.0 tmin=364262401.0 tmax=364521601.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.20
user 2.99
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/375532/ft1_filtered_4FGL_J1209.8+1810_daily_bin482.fits" evtable="EVENTS" scfile=/scratch/kocevski/375532/ft2_4FGL_J1209.8+1810_daily_bin482.fits sctable="SC_DATA" outfile=/scratch/kocevski/375532/ltcube_364262401_364521601_4FGL_J1209.8+1810_daily_bin482.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/375532/ft2_4FGL_J1209.8+1810_daily_bin482.fits
.....................!
real 11.85
user 11.51
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/375532/ft1_filtered_4FGL_J1209.8+1810_daily_bin482.fits evtable="EVENTS" scfile=/scratch/kocevski/375532/ft2_4FGL_J1209.8+1810_daily_bin482.fits sctable="SC_DATA" expcube=/scratch/kocevski/375532/ltcube_364262401_364521601_4FGL_J1209.8+1810_daily_bin482.fits outfile=/scratch/kocevski/375532/expmap_364262401_364521601_4FGL_J1209.8+1810_daily_bin482.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/375532/ltcube_364262401_364521601_4FGL_J1209.8+1810_daily_bin482.fits
.....................!
real 190.64
user 185.67
sys 4.56

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/375532/ft1_filtered_4FGL_J1209.8+1810_daily_bin482.fits scfile=/scratch/kocevski/375532/ft2_4FGL_J1209.8+1810_daily_bin482.fits outfile=/scratch/kocevski/375532/cmap_364262401_364521601_4FGL_J1209.8+1810_daily_bin482.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.863       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.030       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.6915       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    13.122       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .29878E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8700       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4025       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9784       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10586E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.1695       1.0000         .10000E-03   10000.    
    18 'norm      '    .10101E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.781       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.2511       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .56022       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3073       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=   6031.971     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     2771 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.501        .32787E-05** at limit **
   2  Prefactor     32.834        34.310       -.24794E-04    .65291E-05
   3  Prefactor     .10000E-03    17.779        .70170E-07** at limit **
   4  Prefactor     17.032        13.249       -.79548E-06   -.75931E-03
   5  Prefactor     3.6917        1.8859       -.11874E-06    .34599E-04
   6  Prefactor     .10000E-03    40.964        .11481E-04** at limit **
   7  Prefactor     .10000E-03    11.342        .36854E-06** at limit **
   8  norm          13.122        2.2631       -.58514E-07    .12022E-03
   9  Prefactor     .10000E-03    34.157       -.78674E-05** at limit **
  10  Prefactor     .10003E-03    1.9902       -.27795E-06** at limit **
  11  Prefactor     .10000E-03    36.505       -.25987E-05** at limit **
  12  Prefactor     3.8691        3.3511       -.83021E-07   -.61137E-04
  13  Prefactor     1.4035        2.8647       -.66908E-06   -.82719E-03
  14  Prefactor     1.9781        2.0761       -.27689E-06   -.48625E-03
  15  Prefactor     .10000E-03    58.167        .91783E-06** at limit **
  16  Prefactor     .10000E-03    4.8771       -.99090E-07** at limit **
  17  norm          1.1695        .29793       -.43668E-07    .72992E-03
  18  norm          .10000E-03    4.4355       -.14283E-06** at limit **
  19  Prefactor     .10000E-03    3.9956       -.31467E-07** at limit **
  20  Prefactor     15.781        11.189       -.15375E-06    .14941E-04
  21  Prefactor     .10000E-03    14.258       -.32752E-05** at limit **
  22  Prefactor     8.2510        5.5611        .77448E-07    .10034E-03
  23  Normalizat    .56022        .18792        .36835E-05    .10638E-03
  24  Prefactor     1.3073        .18861        .67018E-06    .16217E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 32.8336
  Prefactor  = 0.0001
  Prefactor  = 17.0324
  Prefactor  = 3.69172
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.122
  Prefactor  = 0.0001
  Prefactor  = 0.000100034
  Prefactor  = 0.0001
  Prefactor  = 3.8691
  Prefactor  = 1.40349
  Prefactor  = 1.97808
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.1695
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.7811
  Prefactor  = 0.0001
  Prefactor  = 8.25101
  Normalizat = 0.560224
  Prefactor  = 1.30729
 **********
 **   18 **HESSE 
 **********

 FCN=   6031.971     FROM HESSE     STATUS=OK           399 CALLS     3170 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.954        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     32.834        34.165        .69900E-04   -1.4561    
   3  Prefactor     .10000E-03    17.941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.032        13.109        .48527E-03   -1.4882    
   5  Prefactor     3.6917        1.8827        .73037E-04   -1.5324    
   6  Prefactor     .10000E-03    40.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.761        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          13.122        2.2628        .46908E-04   -1.4983    
   9  Prefactor     .10000E-03    35.122        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10003E-03    40.007        .20000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    36.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.8691        3.2283        .11360E-03   -1.5315    
  13  Prefactor     1.4035        2.7987        .16621E-03   -1.5471    
  14  Prefactor     1.9781        2.0623        .10937E-03   -1.5427    
  15  Prefactor     .10000E-03    58.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.0920        .33478E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.1695        .29779        .20287E-04   -1.5492    
  18  norm          .10000E-03    4.6321        .31907E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.0042        .15161E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.781        11.177        .10082E-03   -1.4913    
  21  Prefactor     .10000E-03    14.326        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.2510        5.5630        .13957E-03   -1.5133    
  23  Normalizat    .56022        .21551        .32601E-03   -1.0970    
  24  Prefactor     1.3073        .21939        .23319E-03   -.83091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02393e-09
Minuit parameter uncertainties:
  1  4.44224e-05
  2  34.185
  3  4.72724e-05
  4  13.1108
  5  1.88269
  6  6.49989e-06
  7  3.89662e-05
  8  2.26283
  9  2.05369e-05
  10  0.00233164
  11  7.58859e-06
  12  3.22847
  13  2.79898
  14  2.06237
  15  0.000194677
  16  1.93502e-05
  17  0.297791
  18  3.02744e-05
  19  8.54523e-06
  20  11.1782
  21  3.27798e-05
  22  5.56331
  23  0.215834
  24  0.219546
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  3.869e+00  3.228e+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.307e+00  2.195e-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:  5.602e-01  2.158e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.23
Ra Dec: 182.466 18.178
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 5.30e-08 +/- 4.42e-08
Energy Flux (Fixed Index): 1.71e-05 +/- 1.43e-05

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

Saving results to:
/scratch/kocevski/375532/likelihoodResults_364262401_364521601_4FGL_J1209.8+1810_daily_bin482.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) = 6031.96198627
delta logL = 0.00869471987608

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6031.95477461
delta logL = 0.0159063775391

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4248       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5356       1.0000          .0000       10.000    
     3 'Normalizat'    .55381       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3125       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=   6031.955     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      248 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4244        4.1826        .10565E-03    .11165E-02
   2  Index         2.5357        .79569        .71396E-02    .16639E-03
   3  Normalizat    .55383        .21098        .32777E-03   -.24186E-03
   4  Prefactor     1.3125        .22121        .23281E-03   -.48324E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.4244
  Index      = 2.5357
  Normalizat = 0.553833
  Prefactor  = 1.31245
 **********
 **   18 **HESSE 
 **********

 FCN=   6031.955     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4244        3.8122        .42261E-05   -1.5338    
   2  Index         2.5357        .72506        .28558E-03   -.51537    
   3  Normalizat    .55383        .21058        .13111E-04   -1.0998    
   4  Prefactor     1.3125        .22077        .46562E-04   -.82937    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.68877e-10
Minuit parameter uncertainties:
  1  3.81252
  2  0.728461
  3  0.210882
  4  0.220923
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/375532': 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) = 6031.95477455
delta logL = 0.0159064377594

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  3.424e+00  3.813e+00  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  2.536e+00  7.285e-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.312e+00  2.209e-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:  5.538e-01  2.109e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.25
Ra Dec: 182.466 18.178
Photon Index (Free Index): 2.54 +/- 0.73
Photon Flux (Free Index): 5.66e-08 +/- 4.74e-08
Energy Flux (Free Index): 1.58e-05 +/- 1.41e-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/375532/cmap_HighResolution_364262401_364521601_4FGL_J1209.8+1810_daily_bin482.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-02', comment='SUCCESS', photon_flux='5.30e-08', energy_flux2='1.58e-05', photon_flux_error='4.42e-08', dlogl='1.59e-02', energy_flux='1.71e-05', photon_flux2='5.66e-08', job_status='DONE', time_completed='2021-09-05 02:33:01.115706', photon_index_error2='0.73', photon_index2='2.54', ts='2.23', fit_tolerance='1e-08', GAL='1.31', photon_index_error='0.00', photon_flux_upper_limit='1.38e-07', energy_flux_error2='1.41e-05', EG='0.56', time_epoch_completed='1630834381.12', return_code='0', job_id='375532', GAL2='1.31', EG2='0.55', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='4.74e-08', ts2='2.25', photon_index='2.41' WHERE bin_id='482' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:33:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 375532: <4FGL_J1209.8+1810_daily_bin482> in cluster <slac> Done

Job <4FGL_J1209.8+1810_daily_bin482> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 02:20:48 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 02:20:49 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:20:49 2021
Terminated at Sun Sep  5 02:33:01 2021
Results reported at Sun Sep  5 02:33:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin482 182.466 18.1776 364262401 364521601 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 :                                   716.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             320.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            733 sec.

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

