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


Performing analysis on: 4FGL_J1209.8+1810_daily_bin601
RA = 182.466, Dec = 18.1776
tmin = 395107201, tmax = 395366401
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='376895', job_status='RUN', time_executed='2021-09-05 02:25:39.223265', time_epoch_executed='1630833939.22' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='601'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/376895

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

Retrieving the FT1 file...

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

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

Retrieving 55 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/376895/ft1_4FGL_J1209.8+1810_daily_bin601.fits


Retrieving the FT1 file...

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

Retrieving 55 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/376895/ft2_4FGL_J1209.8+1810_daily_bin601.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/376895/ft1_4FGL_J1209.8+1810_daily_bin601.fits outfile=/scratch/kocevski/376895/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin601.fits ra=182.466 dec=18.1776 rad=12.0 tmin=395107201.0 tmax=395366401.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 7.96
user 7.63
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/376895/ft2_4FGL_J1209.8+1810_daily_bin601.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/376895/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin601.fits evtable="EVENTS" outfile="/scratch/kocevski/376895/ft1_filtered_4FGL_J1209.8+1810_daily_bin601.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/376895/ft1_filtered_4FGL_J1209.8+1810_daily_bin601.fits evtable="EVENTS" scfile=/scratch/kocevski/376895/ft2_4FGL_J1209.8+1810_daily_bin601.fits sctable="SC_DATA" expcube=/scratch/kocevski/376895/ltcube_395107201_395366401_4FGL_J1209.8+1810_daily_bin601.fits outfile=/scratch/kocevski/376895/expmap_395107201_395366401_4FGL_J1209.8+1810_daily_bin601.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/376895/ltcube_395107201_395366401_4FGL_J1209.8+1810_daily_bin601.fits
.....................!
real 191.82
user 187.21
sys 4.24

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/376895/ft1_filtered_4FGL_J1209.8+1810_daily_bin601.fits scfile=/scratch/kocevski/376895/ft2_4FGL_J1209.8+1810_daily_bin601.fits outfile=/scratch/kocevski/376895/cmap_395107201_395366401_4FGL_J1209.8+1810_daily_bin601.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/376895/ft1_filtered_4FGL_J1209.8+1810_daily_bin601.fits scfile=/scratch/kocevski/376895/ft2_4FGL_J1209.8+1810_daily_bin601.fits outfile=/scratch/kocevski/376895/cmap_HighResolution_395107201_395366401_4FGL_J1209.8+1810_daily_bin601.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.3932       1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.659       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.957       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .70119       1.0000         .10000E-03   10000.    
     6 'Prefactor '    147.78       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.342       1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8789       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .62675       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.3179       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10553E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.6968       1.0000         .10000E-03   10000.    
    17 'norm      '    2.5325       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.947       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    40.074       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .93434       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .98147       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=   5427.744     FROM MIGRAD    STATUS=CONVERGED    555 CALLS     3460 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.3938        11.195       -.12431E-07    .23701E-04
   2  Prefactor     24.659        47.644       -.67785E-08    .75468E-04
   3  Prefactor     12.959        15.479       -.86702E-09   -.10161E-03
   4  Prefactor     .10000E-03    7.5559       -.54909E-08** at limit **
   5  Prefactor     .70064        1.4729       -.20901E-08    .13410E-03
   6  Prefactor     147.78        202.15       -.90087E-08    .50080E-04
   7  Prefactor     13.341        15.098        .67712E-08   -.10253E-03
   8  norm          .10001E-03    .70349        .13887E-09** at limit **
   9  Prefactor     1.8771        2.2184       -.15126E-06   -.91885E-04
  10  Prefactor     .10000E-03    3.7258       -.17463E-08** at limit **
  11  Prefactor     .10000E-03    40.593        .71001E-09** at limit **
  12  Prefactor     .61676        4.4223       -.52364E-08   -.68962E-05
  13  Prefactor     7.3214        5.1345        .18520E-08    .56245E-05
  14  Prefactor     .10000E-03    1.6960       -.94805E-09** at limit **
  15  Prefactor     .10000E-03    13.904        .58605E-09** at limit **
  16  Prefactor     5.6966        5.0967       -.39093E-09   -.15133E-04
  17  norm          2.5325        .47250       -.13998E-09   -.30395E-03
  18  norm          .10000E-03    3.0245       -.40259E-09** at limit **
  19  Prefactor     13.946        23.095        .20330E-08    .31042E-03
  20  Prefactor     .10000E-03    4.0655        .17361E-08** at limit **
  21  Prefactor     40.074        54.127       -.13684E-07    .55668E-03
  22  Prefactor     .10000E-03    5.8629       -.39281E-08** at limit **
  23  Normalizat    .93427        .21440        .13937E-07    .77083E-05
  24  Prefactor     .98153        .19099        .29345E-08    .33567E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.39375
  Prefactor  = 24.6591
  Prefactor  = 12.959
  Prefactor  = 0.000100005
  Prefactor  = 0.700644
  Prefactor  = 147.782
  Prefactor  = 13.3409
  norm       = 0.000100013
  Prefactor  = 1.87709
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.616762
  Prefactor  = 7.32137
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.69662
  norm       = 2.53253
  norm       = 0.0001
  Prefactor  = 13.9461
  Prefactor  = 0.000100001
  Prefactor  = 40.0738
  Prefactor  = 0.000100002
  Normalizat = 0.93427
  Prefactor  = 0.981526
 **********
 **   18 **HESSE 
 **********

 FCN=   5427.744     FROM HESSE     STATUS=OK           405 CALLS     3865 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.3938        11.294        .36803E-03   -1.5472    
   2  Prefactor     24.659        47.684        .80668E-04   -1.4714    
   3  Prefactor     12.959        15.398        .11128E-03   -1.4988    
   4  Prefactor     .10000E-03    7.5915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .70064        1.2484        .12374E-02   -1.5541    
   6  Prefactor     147.78        202.33        .33150E-04   -1.3271    
   7  Prefactor     13.341        15.124        .10966E-03   -1.4977    
   8  norm          .10001E-03    6.8874        .11900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.8771        27.952        .15187E-02   -1.5434    
  10  Prefactor     .10000E-03    3.8284        .27720E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    40.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .61676        6.9386        .23196E-02   -1.5551    
  13  Prefactor     7.3214        4.8627        .10884E-03   -1.5167    
  14  Prefactor     .10000E-03    3.2114        .18508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.6966        5.0951        .15225E-03   -1.5231    
  17  norm          2.5325        .47381        .20421E-04   -1.5390    
  18  norm          .10000E-03    3.0835        .12503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     13.946        22.999        .10725E-03   -1.4961    
  20  Prefactor     .10000E-03    4.0669        .14508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     40.074        53.959        .63319E-04   -1.4441    
  22  Prefactor     .10000E-03    5.8910        .17419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .93427        .24106        .28015E-03   -.95266    
  24  Prefactor     .98153        .21676        .26353E-03   -.93348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46004e-08
Minuit parameter uncertainties:
  1  7.93667
  2  47.7578
  3  15.4025
  4  0.000376374
  5  1.24846
  6  203.294
  7  15.1288
  8  0.000590566
  9  14.4948
  10  8.63961e-05
  11  6.25975e-05
  12  4.13766
  13  4.863
  14  2.25106e-05
  15  6.00809e-05
  16  5.09549
  17  0.473807
  18  5.72604e-06
  19  23.0135
  20  9.06906e-05
  21  54.0248
  22  0.000218107
  23  0.241337
  24  0.216952
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  6.168e-01  4.138e+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:  9.815e-01  2.170e-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.343e-01  2.413e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/376895/likelihoodResults_395107201_395366401_4FGL_J1209.8+1810_daily_bin601.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) = 5426.48954618
delta logL = 1.25470891576

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5426.48453319
delta logL = 1.25972190439

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13479       1.0000         .10000E-03   10000.    
     2 'Index     '    4.8563       1.0000          .0000       10.000    
     3 'Normalizat'    .81083       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0519       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=   5426.485     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      297 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13483        1.2779        .39344E-02   -.52365E-03
   2  Index         4.8563        2.5551        .11229        .10608E-03
   3  Normalizat    .81082        .52046E-01    .67276E-01   -.23685E-04
   4  Prefactor     1.0518        .50119E-01    .57742E-01   -.17344E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.134832
  Index      = 4.85632
  Normalizat = 0.810824
  Prefactor  = 1.05181
 **********
 **   18 **HESSE 
 **********

 FCN=   5426.485     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      330 TOTAL
                     EDM=   .37E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13483        2.9556        .17715E-04   -1.5635    
   2  Index         4.8563        4.1787        .42027E-02   -.28739E-01
   3  Normalizat    .81082        .21425        .29765E-03   -.99668    
   4  Prefactor     1.0518        .20204        .25532E-03   -.91022    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.72992e-07
Minuit parameter uncertainties:
  1  1.26215
  2  4.94846
  3  0.214475
  4  0.202191
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/376895': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5426.48453299
delta logL = 1.25972210565

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.348e-01  1.262e+00  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  4.856e+00  4.948e+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.052e+00  2.022e-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.108e-01  2.145e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.80
Ra Dec: 182.466 18.178
Photon Index (Free Index): 4.86 +/- 4.95
Photon Flux (Free Index): 1.41e-07 +/- 1.00e-07
Energy Flux (Free Index): 1.90e-05 +/- 1.40e-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/376895/cmap_HighResolution_395107201_395366401_4FGL_J1209.8+1810_daily_bin601.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.71e-03', comment='SUCCESS', energy_flux2='1.90e-05', dlogl='1.26e+00', photon_flux2='1.41e-07', job_status='DONE', time_completed='2021-09-05 02:37:57.654911', photon_index_error2='4.95', photon_index2='4.86', ts='0.03', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.26e-07', energy_flux_error2='1.40e-05', EG='0.93', time_epoch_completed='1630834677.65', return_code='0', job_id='376895', GAL2='1.05', EG2='0.81', return_code2='102', photon_flux_error2='1.00e-07', ts2='2.80', photon_index='2.41' WHERE bin_id='601' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:37:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 376895: <4FGL_J1209.8+1810_daily_bin601> in cluster <slac> Done

Job <4FGL_J1209.8+1810_daily_bin601> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep  5 02:25:27 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 02:25:28 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:25:28 2021
Terminated at Sun Sep  5 02:37:58 2021
Results reported at Sun Sep  5 02:37:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin601 182.466 18.1776 395107201 395366401 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 :                                   731.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             356.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            751 sec.

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

