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


Performing analysis on: 4FGL_J1209.8+1810_daily_bin1106
RA = 182.466, Dec = 18.1776
tmin = 526003201, tmax = 526262401
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='380540', job_status='RUN', time_executed='2021-09-05 02:38:19.998900', time_epoch_executed='1630834700.0' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='1106'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/380540

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/380540/ft1_4FGL_J1209.8+1810_daily_bin1106.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/380540/ft2_4FGL_J1209.8+1810_daily_bin1106.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/380540/ft1_4FGL_J1209.8+1810_daily_bin1106.fits outfile=/scratch/kocevski/380540/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin1106.fits ra=182.466 dec=18.1776 rad=12.0 tmin=526003201.0 tmax=526262401.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.73
user 3.50
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/380540/ft1_filtered_4FGL_J1209.8+1810_daily_bin1106.fits" evtable="EVENTS" scfile=/scratch/kocevski/380540/ft2_4FGL_J1209.8+1810_daily_bin1106.fits sctable="SC_DATA" outfile=/scratch/kocevski/380540/ltcube_526003201_526262401_4FGL_J1209.8+1810_daily_bin1106.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/380540/ft2_4FGL_J1209.8+1810_daily_bin1106.fits
.....................!
real 11.90
user 11.57
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/380540/ft1_filtered_4FGL_J1209.8+1810_daily_bin1106.fits evtable="EVENTS" scfile=/scratch/kocevski/380540/ft2_4FGL_J1209.8+1810_daily_bin1106.fits sctable="SC_DATA" expcube=/scratch/kocevski/380540/ltcube_526003201_526262401_4FGL_J1209.8+1810_daily_bin1106.fits outfile=/scratch/kocevski/380540/expmap_526003201_526262401_4FGL_J1209.8+1810_daily_bin1106.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/380540/ltcube_526003201_526262401_4FGL_J1209.8+1810_daily_bin1106.fits
.....................!
real 189.98
user 185.91
sys 3.72

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/380540/ft1_filtered_4FGL_J1209.8+1810_daily_bin1106.fits scfile=/scratch/kocevski/380540/ft2_4FGL_J1209.8+1810_daily_bin1106.fits outfile=/scratch/kocevski/380540/cmap_526003201_526262401_4FGL_J1209.8+1810_daily_bin1106.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.55
user 0.39
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.7989       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9627       1.0000         .10000E-03   10000.    
     6 'Prefactor '    229.03       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7796       1.0000         .10000E-03   10000.    
     8 'norm      '    3.6547       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.9543       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9738       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .77436       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5974       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1506       1.0000         .10000E-03   10000.    
    17 'norm      '    .10862E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .36441E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.533       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .84836       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2155       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=   5753.621     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2814 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.6342        .90712E-02** at limit **
   2  Prefactor     .10000E-03    36.740        .90712E-02** at limit **
   3  Prefactor     .10000E-03    5.7217        .90712E-02** at limit **
   4  Prefactor     9.7996        8.9239        .32003E-02    .51252E-03
   5  Prefactor     1.9631        1.8492        .74016E-02    .35967E-03
   6  Prefactor     229.03        202.61        .66847E-03    .91349E-03
   7  Prefactor     2.7814        16.010        .61020E-02    .38985E-03
   8  norm          3.6549        1.3862        .52825E-02    .42926E-03
   9  Prefactor     4.9442        22.859        .45172E-02    .24159E-03
  10  Prefactor     2.9741        3.5168        .58862E-02    .15080E-03
  11  Prefactor     .10000E-03    83.164        .90712E-02** at limit **
  12  Prefactor     .77427        2.0420        .12344E-01    .53887E-03
  13  Prefactor     .10000E-03    1.1595        .90712E-02** at limit **
  14  Prefactor     1.5972        2.0836        .83883E-02    .81946E-03
  15  Prefactor     .10000E-03    11.433        .90712E-02** at limit **
  16  Prefactor     1.1497        4.0842        .10785E-01    .89905E-03
  17  norm          .10000E-03    .18294        .10608E-01** at limit **
  18  norm          .10001E-03    1.9687        .58670E-01** at limit **
  19  Prefactor     11.533        10.149        .29491E-02    .38867E-03
  20  Prefactor     .10000E-03    5.0642        .90712E-02** at limit **
  21  Prefactor     .10000E-03    10.062        .90712E-02** at limit **
  22  Prefactor     .10000E-03    2.8763        .90712E-02** at limit **
  23  Normalizat    .84822        .18901        .44238E-01   -.51167E-04
  24  Prefactor     1.2156        .18438        .53452E-01   -.87634E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.79957
  Prefactor  = 1.96309
  Prefactor  = 229.032
  Prefactor  = 2.78144
  norm       = 3.6549
  Prefactor  = 4.94418
  Prefactor  = 2.97414
  Prefactor  = 0.0001
  Prefactor  = 0.774275
  Prefactor  = 0.0001
  Prefactor  = 1.5972
  Prefactor  = 0.0001
  Prefactor  = 1.1497
  norm       = 0.0001
  norm       = 0.000100007
  Prefactor  = 11.5327
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.848216
  Prefactor  = 1.21562
 **********
 **   18 **HESSE 
 **********

 FCN=   5753.621     FROM HESSE     STATUS=OK           401 CALLS     3215 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.6399        .14122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    36.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.7297        .17718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.7996        8.9135        .12801E-03   -1.5082    
   5  Prefactor     1.9631        1.8341        .95288E-04   -1.5428    
   6  Prefactor     229.03        201.63        .13369E-03   -1.2670    
   7  Prefactor     2.7814        15.586        .24408E-03   -1.5374    
   8  norm          3.6549        1.3859        .53214E-04   -1.5326    
   9  Prefactor     4.9442        22.520        .18069E-03   -1.5263    
  10  Prefactor     2.9741        3.4912        .14613E-03   -1.5363    
  11  Prefactor     .10000E-03    83.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .77427        1.9840        .16656E-03   -1.5532    
  13  Prefactor     .10000E-03    1.1672        .79639E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.5972        2.0615        .11976E-03   -1.5455    
  15  Prefactor     .10000E-03    11.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.1497        3.9849        .27407E-03   -1.5494    
  17  norm          .10000E-03    1.7004        .60856E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10001E-03    16.093        .20297E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.533        10.151        .11797E-03   -1.5029    
  20  Prefactor     .10000E-03    5.0878        .16668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.8818        .12563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .84822        .21668        .27028E-03   -.98304    
  24  Prefactor     1.2156        .21631        .23633E-03   -.85852    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62511e-08
Minuit parameter uncertainties:
  1  6.8231e-05
  2  0.000221955
  3  5.77205e-05
  4  8.91471
  5  1.83418
  6  202.248
  7  13.1734
  8  1.38594
  9  21.1169
  10  3.49146
  11  0.000189016
  12  1.98418
  13  1.27593e-05
  14  2.06162
  15  8.63928e-05
  16  3.98585
  17  3.18478e-05
  18  0.000652585
  19  10.1525
  20  5.69021e-05
  21  0.000119831
  22  6.82761e-05
  23  0.216906
  24  0.216464
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  7.743e-01  1.984e+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.216e+00  2.165e-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:  8.482e-01  2.169e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.19
Ra Dec: 182.466 18.178
Photon Flux Upper Limit: 8.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.52e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/380540/likelihoodResults_526003201_526262401_4FGL_J1209.8+1810_daily_bin1106.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) = 5753.62032696
delta logL = 0.000210194572901

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5753.62028884
delta logL = 0.000248309585913

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .79272       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3869       1.0000          .0000       10.000    
     3 'Normalizat'    .84839       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2155       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=   5753.620     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      202 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .79377        90.220        .12413E-01    .11144E-02
   2  Index         2.3840        5.7547        .23954        .46078E-04
   3  Normalizat    .84841        .41176E-01    .44239E-01    .16231E-04
   4  Prefactor     1.2155        .43191E-01    .53455E-01    .28996E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.793766
  Index      = 2.38405
  Normalizat = 0.848413
  Prefactor  = 1.21547
 **********
 **   18 **HESSE 
 **********

 FCN=   5753.620     FROM HESSE     STATUS=OK            33 CALLS      235 TOTAL
                     EDM=   .40E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .79377        2.2996        .16855E-03   -1.5530    
   2  Index         2.3840        1.2471        .14360E-01   -.55059    
   3  Normalizat    .84841        .20725        .27025E-03   -.98297    
   4  Prefactor     1.2155        .21387        .23634E-03   -.85856    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.99319e-12
Minuit parameter uncertainties:
  1  2.29988
  2  1.2656
  3  0.20744
  4  0.214026
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/380540': 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) = 5753.62028591
delta logL = 0.00025124370768

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  7.938e-01  2.300e+00  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  2.384e+00  1.266e+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:  1.215e+00  2.140e-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:  8.484e-01  2.074e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.19
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/380540/cmap_HighResolution_526003201_526262401_4FGL_J1209.8+1810_daily_bin1106.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.52e-03', job_status='DONE', photon_flux_upper_limit='8.44e-08', time_completed='2021-09-05 02:50:09.897880', job_id='380540', GAL2='1.22', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1630835409.9', return_code2='0', ts='0.19', comment='SUCCESS', return_code='0', GAL='1.22', dlogl='2.51e-04', ts2='0.19', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1106' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:50:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 380540: <4FGL_J1209.8+1810_daily_bin1106> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin1106 182.466 18.1776 526003201 526262401 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 :                                   680.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             281.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            861 sec.

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

