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


Performing analysis on: 4FGL_J1209.8+1810_daily_bin804
RA = 182.466, Dec = 18.1776
tmin = 447724801, tmax = 447984001
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='378222', job_status='RUN', time_executed='2021-09-05 02:30:47.911756', time_epoch_executed='1630834247.91' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='804'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/378222

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/378222/ft1_4FGL_J1209.8+1810_daily_bin804.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/378222/ft2_4FGL_J1209.8+1810_daily_bin804.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/378222/ft1_4FGL_J1209.8+1810_daily_bin804.fits outfile=/scratch/kocevski/378222/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin804.fits ra=182.466 dec=18.1776 rad=12.0 tmin=447724801.0 tmax=447984001.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.35
user 3.15
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/378222/ft1_filtered_4FGL_J1209.8+1810_daily_bin804.fits evtable="EVENTS" scfile=/scratch/kocevski/378222/ft2_4FGL_J1209.8+1810_daily_bin804.fits sctable="SC_DATA" expcube=/scratch/kocevski/378222/ltcube_447724801_447984001_4FGL_J1209.8+1810_daily_bin804.fits outfile=/scratch/kocevski/378222/expmap_447724801_447984001_4FGL_J1209.8+1810_daily_bin804.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/378222/ltcube_447724801_447984001_4FGL_J1209.8+1810_daily_bin804.fits
.....................!
real 192.13
user 187.61
sys 4.19

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/378222/ft1_filtered_4FGL_J1209.8+1810_daily_bin804.fits scfile=/scratch/kocevski/378222/ft2_4FGL_J1209.8+1810_daily_bin804.fits outfile=/scratch/kocevski/378222/cmap_447724801_447984001_4FGL_J1209.8+1810_daily_bin804.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/378222/ft1_filtered_4FGL_J1209.8+1810_daily_bin804.fits scfile=/scratch/kocevski/378222/ft2_4FGL_J1209.8+1810_daily_bin804.fits outfile=/scratch/kocevski/378222/cmap_HighResolution_447724801_447984001_4FGL_J1209.8+1810_daily_bin804.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.53
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    3.9330       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.4253       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4979       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.2560       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    34.386       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7737       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8812       1.0000         .10000E-03   10000.    
    15 'Prefactor '    29.584       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.0546       1.0000         .10000E-03   10000.    
    18 'norm      '    17.427       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    36.710       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.3487       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0980       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .88924       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=   5599.381     FROM MIGRAD    STATUS=CONVERGED    528 CALLS     2687 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.143        .44628E-06** at limit **
   2  Prefactor     3.9279        115.67       -.21309E-04   -.10625E-04
   3  Prefactor     .10000E-03    10.161       -.58619E-08** at limit **
   4  Prefactor     9.4269        10.919       -.74326E-06   -.70533E-04
   5  Prefactor     1.4979        1.3440       -.58635E-07   -.18278E-03
   6  Prefactor     .10000E-03    43.408       -.62975E-06** at limit **
   7  Prefactor     .10000E-03    2.7739       -.11207E-06** at limit **
   8  norm          1.2561        1.4183       -.39312E-06   -.81263E-03
   9  Prefactor     .10000E-03    5.0922        .31839E-06** at limit **
  10  Prefactor     .10000E-03    1.8287        .22526E-07** at limit **
  11  Prefactor     34.385        70.738       -.14066E-05   -.39648E-05
  12  Prefactor     1.7754        2.5353       -.44353E-06   -.12173E-02
  13  Prefactor     .10000E-03    3.1503        .36008E-05** at limit **
  14  Prefactor     2.8810        1.8965        .49452E-07   -.23631E-04
  15  Prefactor     29.583        33.281       -.13597E-05    .50423E-06
  16  Prefactor     .10000E-03    1.7473        .77695E-07** at limit **
  17  norm          1.0547        .30731       -.43995E-08   -.70959E-03
  18  norm          17.426        5.9769       -.55785E-07   -.54590E-05
  19  Prefactor     .10000E-03    3.2512       -.31886E-05** at limit **
  20  Prefactor     .10000E-03    8.2305       -.11871E-05** at limit **
  21  Prefactor     36.713        25.054        .19228E-05    .13319E-04
  22  Prefactor     5.3487        4.9389        .14504E-07    .88852E-04
  23  Normalizat    1.0978        .19780        .14589E-05   -.15091E-03
  24  Prefactor     .88944        .19055       -.12531E-07   -.47910E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 3.92786
  Prefactor  = 0.0001
  Prefactor  = 9.42686
  Prefactor  = 1.49794
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.25614
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.3851
  Prefactor  = 1.77542
  Prefactor  = 0.0001
  Prefactor  = 2.88098
  Prefactor  = 29.5831
  Prefactor  = 0.0001
  norm       = 1.05466
  norm       = 17.4263
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.7128
  Prefactor  = 5.34874
  Normalizat = 1.09782
  Prefactor  = 0.889444
 **********
 **   18 **HESSE 
 **********

 FCN=   5599.381     FROM HESSE     STATUS=OK           399 CALLS     3086 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     3.9279        116.98        .20342E-03   -1.5312    
   3  Prefactor     .10000E-03    10.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.4269        10.951        .13054E-03   -1.5094    
   5  Prefactor     1.4979        1.3334        .79427E-04   -1.5463    
   6  Prefactor     .10000E-03    43.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.7760        .12171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.2561        1.4171        .90545E-04   -1.5484    
   9  Prefactor     .10000E-03    5.1015        .16488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.8944        .19745E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     34.385        70.771        .68338E-04   -1.4535    
  12  Prefactor     1.7754        2.5585        .13721E-03   -1.5441    
  13  Prefactor     .10000E-03    3.1830        .25450E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.8810        1.8942        .80989E-04   -1.5368    
  15  Prefactor     29.583        33.286        .73661E-04   -1.4620    
  16  Prefactor     .10000E-03    1.7497        .96573E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.0547        .30718        .21221E-04   -1.5503    
  18  norm          17.426        5.9803        .95942E-04   -1.4873    
  19  Prefactor     .10000E-03    3.2449        .13159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.4710        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     36.713        25.064        .66146E-04   -1.4495    
  22  Prefactor     5.3487        4.9431        .15566E-03   -1.5245    
  23  Normalizat    1.0978        .23526        .24363E-03   -.89822    
  24  Prefactor     .88944        .22551        .27054E-03   -.96511    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.80972e-10
Minuit parameter uncertainties:
  1  2.78925e-06
  2  42.9632
  3  7.62927e-07
  4  10.9537
  5  1.33338
  6  2.43193e-06
  7  1.07907e-07
  8  1.41716
  9  2.48e-07
  10  6.64308e-07
  11  70.9449
  12  2.55865
  13  3.10685e-05
  14  1.89422
  15  33.3071
  16  9.01115e-07
  17  0.307177
  18  5.98055
  19  7.14138e-06
  20  3.02119e-06
  21  25.0708
  22  4.94343
  23  0.235484
  24  0.225742
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.775e+00  2.559e+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:  8.894e-01  2.257e-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.098e+00  2.355e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/378222/likelihoodResults_447724801_447984001_4FGL_J1209.8+1810_daily_bin804.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) = 5599.32885529
delta logL = 0.0518273494963

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5599.31570119
delta logL = 0.064981447752

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3800       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7413       1.0000          .0000       10.000    
     3 'Normalizat'    1.0898       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89385       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=   5599.316     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      211 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3750        50.880        .92637E-02    .61686E-03
   2  Index         2.7423        6.3663        .16814        .68781E-04
   3  Normalizat    1.0894        .50437E-01    .55277E-01    .37567E-04
   4  Prefactor     .89439        .51410E-01    .44927E-01   -.60572E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.37496
  Index      = 2.74232
  Normalizat = 1.08945
  Prefactor  = 0.894387
 **********
 **   18 **HESSE 
 **********

 FCN=   5599.316     FROM HESSE     STATUS=OK            33 CALLS      244 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3750        2.6557        .10917E-03   -1.5473    
   2  Index         2.7423        1.0564        .89030E-02   -.46849    
   3  Normalizat    1.0894        .22259        .24442E-03   -.90091    
   4  Prefactor     .89439        .22409        .26985E-03   -.96338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.08692e-09
Minuit parameter uncertainties:
  1  2.65594
  2  1.06654
  3  0.222781
  4  0.224318
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/378222': 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) = 5599.3156959
delta logL = 0.0649867409684

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.375e+00  2.656e+00  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  2.742e+00  1.067e+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.944e-01  2.243e-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.089e+00  2.228e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.64
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/378222/cmap_HighResolution_447724801_447984001_4FGL_J1209.8+1810_daily_bin804.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.20e-03', job_status='DONE', photon_flux_upper_limit='1.06e-07', time_completed='2021-09-05 02:42:16.585456', job_id='378222', GAL2='0.89', fit_tolerance='1e-08', EG2='1.09', EG='1.10', time_epoch_completed='1630834936.59', return_code2='0', ts='0.64', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='6.50e-02', ts2='0.77', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='804' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:42:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 378222: <4FGL_J1209.8+1810_daily_bin804> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin804 182.466 18.1776 447724801 447984001 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 :                                   682.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   704 sec.
    Turnaround time :                            707 sec.

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

