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


Performing analysis on: 4FGL_J1209.8+1810_daily_bin853
RA = 182.466, Dec = 18.1776
tmin = 460425601, tmax = 460684801
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='378295', job_status='RUN', time_executed='2021-09-05 02:30:57.167176', time_epoch_executed='1630834257.17' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='853'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/378295

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/378295/ft1_4FGL_J1209.8+1810_daily_bin853.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/378295/ft2_4FGL_J1209.8+1810_daily_bin853.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/378295/ft1_4FGL_J1209.8+1810_daily_bin853.fits outfile=/scratch/kocevski/378295/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin853.fits ra=182.466 dec=18.1776 rad=12.0 tmin=460425601.0 tmax=460684801.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.11
sys 0.18

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/378295/ft1_filtered_4FGL_J1209.8+1810_daily_bin853.fits evtable="EVENTS" scfile=/scratch/kocevski/378295/ft2_4FGL_J1209.8+1810_daily_bin853.fits sctable="SC_DATA" expcube=/scratch/kocevski/378295/ltcube_460425601_460684801_4FGL_J1209.8+1810_daily_bin853.fits outfile=/scratch/kocevski/378295/expmap_460425601_460684801_4FGL_J1209.8+1810_daily_bin853.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/378295/ltcube_460425601_460684801_4FGL_J1209.8+1810_daily_bin853.fits
.....................!
real 192.10
user 187.61
sys 4.16

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/378295/ft1_filtered_4FGL_J1209.8+1810_daily_bin853.fits scfile=/scratch/kocevski/378295/ft2_4FGL_J1209.8+1810_daily_bin853.fits outfile=/scratch/kocevski/378295/cmap_460425601_460684801_4FGL_J1209.8+1810_daily_bin853.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/378295/ft1_filtered_4FGL_J1209.8+1810_daily_bin853.fits scfile=/scratch/kocevski/378295/ft2_4FGL_J1209.8+1810_daily_bin853.fits outfile=/scratch/kocevski/378295/cmap_HighResolution_460425601_460684801_4FGL_J1209.8+1810_daily_bin853.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.141       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.7618       1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.683       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10496E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.5633       1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.014       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10494E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0855       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.7011       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.5346       1.0000         .10000E-03   10000.    
    17 'norm      '    .58938       1.0000         .10000E-03   10000.    
    18 'norm      '    36.172       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    58.570       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.2466       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .80855       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0912       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=   6085.111     FROM MIGRAD    STATUS=CONVERGED    559 CALLS     2757 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.143        9.8779        .20068E-06    .57109E-05
   2  Prefactor     3.7428        66.358       -.26865E-04   -.16519E-04
   3  Prefactor     33.677        19.922        .27431E-06    .14403E-04
   4  Prefactor     .10000E-03    2.9250        .11093E-05** at limit **
   5  Prefactor     .10000E-03    .75515       -.38200E-07** at limit **
   6  Prefactor     .10000E-03    46.428       -.11678E-05** at limit **
   7  Prefactor     .10000E-03    2.9501       -.25301E-06** at limit **
   8  norm          2.5634        1.2061       -.70197E-08    .24267E-04
   9  Prefactor     38.007        24.863       -.59265E-06    .90802E-05
  10  Prefactor     .10000E-03    2.2099        .30241E-07** at limit **
  11  Prefactor     .10000E-03    94.807        .60123E-05** at limit **
  12  Prefactor     .10000E-03    1.6836       -.25297E-06** at limit **
  13  Prefactor     2.0841        3.6392       -.80224E-06   -.66952E-03
  14  Prefactor     4.7011        2.2478        .14883E-07   -.40553E-04
  15  Prefactor     .10000E-03    22.517        .19966E-06** at limit **
  16  Prefactor     2.5347        3.8919       -.10773E-05   -.30952E-03
  17  norm          .58940        .23721       -.23006E-08   -.25373E-04
  18  norm          36.172        7.5643       -.70694E-07    .35442E-04
  19  Prefactor     .10000E-03    18.805       -.13387E-05** at limit **
  20  Prefactor     .10000E-03    4.8468        .10024E-07** at limit **
  21  Prefactor     58.595        31.345        .85336E-05    .39818E-04
  22  Prefactor     4.2462        6.2842       -.35233E-06   -.28127E-03
  23  Normalizat    .80828        .19496        .20012E-06    .87061E-04
  24  Prefactor     1.0915        .18282       -.10028E-07    .10338E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.1427
  Prefactor  = 3.74278
  Prefactor  = 33.6766
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.56336
  Prefactor  = 38.0073
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.08413
  Prefactor  = 4.70109
  Prefactor  = 0.0001
  Prefactor  = 2.53468
  norm       = 0.589401
  norm       = 36.1715
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 58.5952
  Prefactor  = 4.24616
  Normalizat = 0.808283
  Prefactor  = 1.09146
 **********
 **   18 **HESSE 
 **********

 FCN=   6085.111     FROM HESSE     STATUS=OK           403 CALLS     3160 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.143        9.8964        .12002E-03   -1.5040    
   2  Prefactor     3.7428        67.042        .20816E-03   -1.5321    
   3  Prefactor     33.677        19.754        .69045E-04   -1.4547    
   4  Prefactor     .10000E-03    2.9303        .13027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.1923        .12845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    46.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.9516        .13084E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.5634        1.2057        .56534E-04   -1.5388    
   9  Prefactor     38.007        24.974        .65006E-04   -1.4474    
  10  Prefactor     .10000E-03    2.2629        .22623E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    94.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.9237        .18667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.0841        3.5106        .17629E-03   -1.5419    
  14  Prefactor     4.7011        2.2480        .77976E-04   -1.5274    
  15  Prefactor     .10000E-03    22.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.5347        3.8889        .18349E-03   -1.5390    
  17  norm          .58940        .23604        .22936E-04   -1.5554    
  18  norm          36.172        7.5668        .66635E-04   -1.4504    
  19  Prefactor     .10000E-03    19.551        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.8655        .16772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     58.595        31.165        .52422E-04   -1.4176    
  22  Prefactor     4.2462        6.2875        .19553E-03   -1.5296    
  23  Normalizat    .80828        .23360        .28323E-03   -.99762    
  24  Prefactor     1.0915        .21939        .25220E-03   -.89740    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.77136e-10
Minuit parameter uncertainties:
  1  9.89789
  2  31.7221
  3  19.7577
  4  2.32012e-06
  5  2.13478e-06
  6  2.51265e-06
  7  1.2529e-06
  8  1.20576
  9  24.9805
  10  3.3206e-06
  11  5.68982e-05
  12  9.64367e-05
  13  3.51095
  14  2.24807
  15  1.85854e-05
  16  3.8893
  17  0.236041
  18  7.56701
  19  0.000556171
  20  5.38377e-07
  21  31.1734
  22  6.28848
  23  0.233891
  24  0.21957
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  9.644e-05  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.091e+00  2.196e-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.083e-01  2.339e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/378295/likelihoodResults_460425601_460684801_4FGL_J1209.8+1810_daily_bin853.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): 102
logL (Free Index) = 6085.11220094
delta logL = -0.00163094179243

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6085.11057056
delta logL = -5.58860847377e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3992       1.0000          .0000       10.000    
     3 'Normalizat'    .80825       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0916       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6085.111     FROM MIGRAD    STATUS=FAILED       100 CALLS      272 TOTAL
                     EDM=   .60E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10183E-03    180.08        .18806E-02** at limit **
   2  Index         2.2467        8.6144        .50000        .17036E-04
   3  Normalizat    .80828        .36737E-01    .28323E-03   -.55914E-04
   4  Prefactor     1.0915        .37678E-01    .25220E-03   -.24522E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6085.111     FROM SIMPLEX   STATUS=UNCHANGED    145 CALLS      417 TOTAL
                     EDM=   .90E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10183E-03    180.08        .28259E-03** at limit **
   2  Index         2.2467        8.6144        .72959E-04    .17036E-04
   3  Normalizat    .80828        .36737E-01    .66259E-06   -.55914E-04
   4  Prefactor     1.0915        .37678E-01    .11076E-05   -.24522E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6085.111     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      460 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.6903        .37613E-03** at limit **
   2  Index         2.1199        5.2267        .50000       -.19425E-06
   3  Normalizat    .80828        .21105        .11329E-04    .26973E-03
   4  Prefactor     1.0915        .21654        .10088E-04    .32839E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.11988
  Normalizat = 0.808284
  Prefactor  = 1.09146
 **********
 **   18 **HESSE 
 **********

 FCN=   6085.111     FROM HESSE     STATUS=OK            29 CALLS      489 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.1871        .75226E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1199        8.8229        .50000       -.61386    
   3  Normalizat    .80828        .21073        .22659E-05   -.99762    
   4  Prefactor     1.0915        .21624        .20176E-05   -.89740    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4088e-10
Minuit parameter uncertainties:
  1  5.68119e-06
  2  95.0488
  3  0.210938
  4  0.216418
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/378295': 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) = 6085.11056872
delta logL = 1.28712053993e-06

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  5.681e-06  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  2.120e+00  9.505e+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.091e+00  2.164e-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.083e-01  2.109e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/378295/cmap_HighResolution_460425601_460684801_4FGL_J1209.8+1810_daily_bin853.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.98e-03', job_status='DONE', photon_flux_upper_limit='7.73e-08', time_completed='2021-09-05 02:43:14.524744', job_id='378295', GAL2='1.09', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1630834994.52', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='1.29e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='853' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:43:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 378295: <4FGL_J1209.8+1810_daily_bin853> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin853 182.466 18.1776 460425601 460684801 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 :                                   726.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            759 sec.

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

