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


Performing analysis on: 4FGL_J1209.8+1810_daily_bin1021
RA = 182.466, Dec = 18.1776
tmin = 503971201, tmax = 504230401
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='380400', job_status='RUN', time_executed='2021-09-05 02:38:22.626292', time_epoch_executed='1630834702.63' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='1021'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/380400

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/380400/ft1_4FGL_J1209.8+1810_daily_bin1021.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/380400/ft2_4FGL_J1209.8+1810_daily_bin1021.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/380400/ft1_4FGL_J1209.8+1810_daily_bin1021.fits outfile=/scratch/kocevski/380400/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin1021.fits ra=182.466 dec=18.1776 rad=12.0 tmin=503971201.0 tmax=504230401.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.16
user 2.88
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/380400/ft1_filtered_4FGL_J1209.8+1810_daily_bin1021.fits" evtable="EVENTS" scfile=/scratch/kocevski/380400/ft2_4FGL_J1209.8+1810_daily_bin1021.fits sctable="SC_DATA" outfile=/scratch/kocevski/380400/ltcube_503971201_504230401_4FGL_J1209.8+1810_daily_bin1021.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/380400/ft2_4FGL_J1209.8+1810_daily_bin1021.fits
.....................!
real 9.26
user 8.90
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/380400/ft1_filtered_4FGL_J1209.8+1810_daily_bin1021.fits evtable="EVENTS" scfile=/scratch/kocevski/380400/ft2_4FGL_J1209.8+1810_daily_bin1021.fits sctable="SC_DATA" expcube=/scratch/kocevski/380400/ltcube_503971201_504230401_4FGL_J1209.8+1810_daily_bin1021.fits outfile=/scratch/kocevski/380400/expmap_503971201_504230401_4FGL_J1209.8+1810_daily_bin1021.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/380400/ltcube_503971201_504230401_4FGL_J1209.8+1810_daily_bin1021.fits
.....................!
real 146.77
user 142.51
sys 4.02

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/380400/ft1_filtered_4FGL_J1209.8+1810_daily_bin1021.fits scfile=/scratch/kocevski/380400/ft2_4FGL_J1209.8+1810_daily_bin1021.fits outfile=/scratch/kocevski/380400/cmap_503971201_504230401_4FGL_J1209.8+1810_daily_bin1021.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.45
user 0.31
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/380400/ft1_filtered_4FGL_J1209.8+1810_daily_bin1021.fits scfile=/scratch/kocevski/380400/ft2_4FGL_J1209.8+1810_daily_bin1021.fits outfile=/scratch/kocevski/380400/cmap_HighResolution_503971201_504230401_4FGL_J1209.8+1810_daily_bin1021.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.46
user 0.29
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18031E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.623       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.1968       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .73236       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.8618       1.0000         .10000E-03   10000.    
     8 'norm      '    9.2551       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .21268E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    74.954       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.9368       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12493E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.3319       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .24680E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6813       1.0000         .10000E-03   10000.    
    17 'norm      '    .38500       1.0000         .10000E-03   10000.    
    18 'norm      '    5.8493       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    19.535       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.5775       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .90654       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2564       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=   6774.342     FROM MIGRAD    STATUS=CONVERGED    982 CALLS     3578 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.009        .36285E-02** at limit **
   2  Prefactor     14.627        24.203        .10474E-03    .28330E-04
   3  Prefactor     8.1972        18.586        .70016E-03    .37264E-03
   4  Prefactor     .10000E-03    6.8283        .18142E-02** at limit **
   5  Prefactor     .73303        1.8594        .16683E-03    .92360E-03
   6  Prefactor     .10000E-03    84.368        .18142E-02** at limit **
   7  Prefactor     3.8607        9.8253        .20535E-03    .33107E-03
   8  norm          9.2553        2.2765        .59043E-04    .65567E-03
   9  Prefactor     .10000E-03    7.4131        .18142E-02** at limit **
  10  Prefactor     .10002E-03    35.822        .20844E-02** at limit **
  11  Prefactor     74.990        101.53        .46377E-04   -.53096E-04
  12  Prefactor     5.9327        3.2750        .10494E-03    .90796E-03
  13  Prefactor     .10000E-03    3.8802        .30957E-02** at limit **
  14  Prefactor     3.3320        2.6623        .11500E-03    .44575E-03
  15  Prefactor     .10001E-03    25.885        .12375    ** at limit **
  16  Prefactor     1.6831        6.9742        .32486E-03    .16115E-03
  17  norm          .38501        .21003        .26858E-04    .25338E-02
  18  norm          5.8495        5.4031        .16057E-03    .66520E-03
  19  Prefactor     .10000E-03    5.2369        .18142E-02** at limit **
  20  Prefactor     .10000E-03    3.7848        .15635E-02** at limit **
  21  Prefactor     19.534        29.196        .90620E-04    .80793E-04
  22  Prefactor     6.5781        6.0219        .15647E-03    .27682E-04
  23  Normalizat    .90694        .22777        .29807E-03    .53546E-03
  24  Prefactor     1.2558        .21821        .25563E-03    .85824E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 14.6271
  Prefactor  = 8.19717
  Prefactor  = 0.0001
  Prefactor  = 0.73303
  Prefactor  = 0.000100005
  Prefactor  = 3.86075
  norm       = 9.25527
  Prefactor  = 0.000100001
  Prefactor  = 0.000100023
  Prefactor  = 74.9902
  Prefactor  = 5.93273
  Prefactor  = 0.0001
  Prefactor  = 3.33195
  Prefactor  = 0.000100006
  Prefactor  = 1.68313
  norm       = 0.38501
  norm       = 5.84951
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.534
  Prefactor  = 6.57808
  Normalizat = 0.906939
  Prefactor  = 1.25578
 **********
 **   18 **HESSE 
 **********

 FCN=   6774.342     FROM HESSE     STATUS=OK           385 CALLS     3963 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.183        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.627        24.202        .41896E-05   -1.4943    
   3  Prefactor     8.1972        18.575        .28007E-04   -1.5135    
   4  Prefactor     .10000E-03    6.8297        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .73303        1.8585        .66730E-05   -1.5537    
   6  Prefactor     .10000E-03    84.369        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.8607        9.8226        .82139E-05   -1.5315    
   8  norm          9.2553        2.2763        .11809E-04   -1.5099    
   9  Prefactor     .10000E-03    7.4134        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10002E-03    37.337        .83377E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     74.990        101.51        .92755E-05   -1.3974    
  12  Prefactor     5.9327        3.2726        .41976E-05   -1.5221    
  13  Prefactor     .10000E-03    3.8967        .61913E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.3320        2.6621        .46000E-05   -1.5343    
  15  Prefactor     .10001E-03    25.310        .12589       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.6831        6.9608        .12995E-04   -1.5448    
  17  norm          .38501        .21002        .10743E-05   -1.5584    
  18  norm          5.8495        5.3989        .64226E-05   -1.5224    
  19  Prefactor     .10000E-03    5.2373        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.7849        .31269E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     19.534        29.188        .36248E-05   -1.4824    
  22  Prefactor     6.5781        6.0218        .62590E-05   -1.5195    
  23  Normalizat    .90694        .22791        .59614E-04   -.96217    
  24  Prefactor     1.2558        .21836        .51126E-04   -.84631    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.76812e-09
Minuit parameter uncertainties:
  1  0.000195792
  2  24.2178
  3  18.5886
  4  3.52951e-05
  5  1.8586
  6  0.00125814
  7  9.82674
  8  2.27637
  9  0.000153451
  10  0.00186525
  11  101.749
  12  3.27273
  13  1.82188e-05
  14  2.6622
  15  0.000796608
  16  6.84688
  17  0.210023
  18  5.39931
  19  1.1101e-05
  20  3.66126e-06
  21  29.2095
  22  6.02233
  23  0.228154
  24  0.218519
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  5.933e+00  3.273e+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.256e+00  2.185e-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:  9.069e-01  2.282e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.44
Ra Dec: 182.466 18.178
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 8.12e-08 +/- 4.48e-08
Energy Flux (Fixed Index): 2.62e-05 +/- 1.45e-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) = 6774.25121027
delta logL = 0.0912633961007

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6774.23904379
delta logL = 0.103429872553

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5691       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2079       1.0000          .0000       10.000    
     3 'Normalizat'    .92159       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2478       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=   6774.239     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      242 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5691        86.158        .39144E-02    .23252E-03
   2  Index         2.2078        6.0924        .18420        .50098E-04
   3  Normalizat    .92158        .12210        .66904E-01    .18475E-04
   4  Prefactor     1.2478        .91201E-01    .57971E-01    .45112E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.56913
  Index      = 2.20785
  Normalizat = 0.921584
  Prefactor  = 1.24781
 **********
 **   18 **HESSE 
 **********

 FCN=   6774.239     FROM HESSE     STATUS=OK            33 CALLS      275 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5691        3.8736        .11541E-03   -1.5195    
   2  Index         2.2078        .44509        .66203E-02   -.59249    
   3  Normalizat    .92158        .22053        .29596E-03   -.95706    
   4  Prefactor     1.2478        .21738        .25635E-03   -.84873    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.5306e-10
Minuit parameter uncertainties:
  1  3.87374
  2  0.445947
  3  0.220747
  4  0.217542
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/380400': 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) = 6774.23904379
delta logL = 0.103429874155

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  6.569e+00  3.874e+00  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  2.208e+00  4.459e-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.248e+00  2.175e-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:  9.216e-01  2.207e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.60
Ra Dec: 182.466 18.178
Photon Index (Free Index): 2.21 +/- 0.45
Photon Flux (Free Index): 6.74e-08 +/- 4.95e-08
Energy Flux (Free Index): 2.98e-05 +/- 2.01e-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/380400/cmap_HighResolution_503971201_504230401_4FGL_J1209.8+1810_daily_bin1021.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.12e-08', energy_flux2='2.98e-05', photon_flux_error='4.48e-08', dlogl='1.03e-01', energy_flux='2.62e-05', photon_flux2='6.74e-08', job_status='DONE', time_completed='2021-09-05 02:50:17.545171', photon_index_error2='0.45', photon_index2='2.21', ts='7.44', fit_tolerance='1e-08', GAL='1.26', photon_index_error='0.00', energy_flux_error2='2.01e-05', EG='0.91', time_epoch_completed='1630835417.55', return_code='0', job_id='380400', GAL2='1.25', EG2='0.92', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='4.95e-08', ts2='7.60', photon_index='2.41' WHERE bin_id='1021' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:50:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 380400: <4FGL_J1209.8+1810_daily_bin1021> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin1021 182.466 18.1776 503971201 504230401 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 :                                   562.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             241.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            882 sec.

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

