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


Performing analysis on: 4FGL_J1209.8+1810_daily_bin1269
RA = 182.466, Dec = 18.1776
tmin = 568252801, tmax = 568512001
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='380819', job_status='RUN', time_executed='2021-09-05 02:39:55.404025', time_epoch_executed='1630834795.4' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='1269'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/380819

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/380819/ft1_4FGL_J1209.8+1810_daily_bin1269.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/380819/ft2_4FGL_J1209.8+1810_daily_bin1269.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/380819/ft1_4FGL_J1209.8+1810_daily_bin1269.fits outfile=/scratch/kocevski/380819/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin1269.fits ra=182.466 dec=18.1776 rad=12.0 tmin=568252801.0 tmax=568512001.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.64
user 3.40
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/380819/ft1_filtered_4FGL_J1209.8+1810_daily_bin1269.fits evtable="EVENTS" scfile=/scratch/kocevski/380819/ft2_4FGL_J1209.8+1810_daily_bin1269.fits sctable="SC_DATA" expcube=/scratch/kocevski/380819/ltcube_568252801_568512001_4FGL_J1209.8+1810_daily_bin1269.fits outfile=/scratch/kocevski/380819/expmap_568252801_568512001_4FGL_J1209.8+1810_daily_bin1269.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/380819/ltcube_568252801_568512001_4FGL_J1209.8+1810_daily_bin1269.fits
.....................!
real 189.23
user 185.23
sys 3.62

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/380819/ft1_filtered_4FGL_J1209.8+1810_daily_bin1269.fits scfile=/scratch/kocevski/380819/ft2_4FGL_J1209.8+1810_daily_bin1269.fits outfile=/scratch/kocevski/380819/cmap_568252801_568512001_4FGL_J1209.8+1810_daily_bin1269.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.52
user 0.35
sys 0.13

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.515       1.0000         .10000E-03   10000.    
     2 'Prefactor '    124.35       1.0000         .10000E-03   10000.    
     3 'Prefactor '    45.292       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    119.16       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .98527       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11061E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    70.564       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .21957E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.2329       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.6097       1.0000         .10000E-03   10000.    
    17 'norm      '    .31810E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    12.333       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .42933E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .90435       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0331       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=   4124.779     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2802 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.517        19.124        .38163E-07    .52889E-04
   2  Prefactor     124.37        94.427        .68554E-07    .51891E-04
   3  Prefactor     45.286        26.755        .66191E-06    .41340E-03
   4  Prefactor     .10000E-03    18.440       -.68737E-06** at limit **
   5  Prefactor     .10000E-03    .89658       -.67880E-06** at limit **
   6  Prefactor     119.23        404.72        .16731E-05    .14626E-04
   7  Prefactor     .10000E-03    9.1124        .10457E-05** at limit **
   8  norm          .98519        1.2865       -.20367E-07    .11602E-03
   9  Prefactor     .10003E-03    28.702        .62297E-05** at limit **
  10  Prefactor     .10000E-03    1.6936       -.58699E-07** at limit **
  11  Prefactor     70.626        141.20        .51282E-05    .12267E-03
  12  Prefactor     .10000E-03    1.9330       -.34457E-07** at limit **
  13  Prefactor     .10013E-03    5.8860       -.27969E-05** at limit **
  14  Prefactor     7.2336        2.9900        .67607E-07    .14951E-03
  15  Prefactor     .10000E-03    45.786       -.36069E-06** at limit **
  16  Prefactor     7.6097        6.4901        .32339E-08    .11428E-04
  17  norm          .31758E-01    .18899        .16489E-06    .22487E-03
  18  norm          12.333        5.7741       -.64723E-08   -.48671E-04
  19  Prefactor     .10000E-03    7.0136        .14549E-07** at limit **
  20  Prefactor     .10001E-03    10.555        .35771E-05** at limit **
  21  Prefactor     .10000E-03    16.770        .23787E-06** at limit **
  22  Prefactor     .10000E-03    3.2569       -.65931E-07** at limit **
  23  Normalizat    .90457        .25155        .14471E-05    .37291E-03
  24  Prefactor     1.0329        .22390       -.14232E-05    .27853E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.5175
  Prefactor  = 124.366
  Prefactor  = 45.2865
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 119.232
  Prefactor  = 0.000100001
  norm       = 0.985188
  Prefactor  = 0.000100028
  Prefactor  = 0.0001
  Prefactor  = 70.6262
  Prefactor  = 0.0001
  Prefactor  = 0.000100127
  Prefactor  = 7.23361
  Prefactor  = 0.0001
  Prefactor  = 7.60974
  norm       = 0.0317583
  norm       = 12.3334
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.904568
  Prefactor  = 1.03293
 **********
 **   18 **HESSE 
 **********

 FCN=   4124.779     FROM HESSE     STATUS=OK           395 CALLS     3197 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.517        19.100        .93082E-04   -1.4847    
   2  Prefactor     124.37        94.573        .36095E-04   -1.3473    
   3  Prefactor     45.286        26.827        .59575E-04   -1.4361    
   4  Prefactor     .10000E-03    19.060        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.3356        .11439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     119.23        405.18        .18432E-03   -1.3520    
   7  Prefactor     .10000E-03    9.1779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .98519        1.2314        .77172E-03   -1.5509    
   9  Prefactor     .10003E-03    30.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.7036        .81605E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     70.626        142.08        .23894E-03   -1.4025    
  12  Prefactor     .10000E-03    1.9453        .87041E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10013E-03    20.138        .20420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.2336        2.9780        .67359E-04   -1.5170    
  15  Prefactor     .10000E-03    45.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.6097        6.4757        .14106E-03   -1.5156    
  17  norm          .31758E-01    .44566        .49230E-03   -1.5672    
  18  norm          12.333        5.7729        .98377E-04   -1.5005    
  19  Prefactor     .10000E-03    7.0162        .16613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    19.752        .31921E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.2621        .11320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .90457        .28882        .28253E-03   -.96300    
  24  Prefactor     1.0329        .26056        .26127E-03   -.91640    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.44482e-09
Minuit parameter uncertainties:
  1  19.1066
  2  94.6877
  3  26.8343
  4  0.000184529
  5  2.37022e-05
  6  415.233
  7  0.000152757
  8  1.23142
  9  0.00185335
  10  2.37539e-06
  11  142.769
  12  5.09893e-06
  13  0.00319645
  14  2.97808
  15  0.000265487
  16  6.47633
  17  0.237563
  18  5.77312
  19  3.55775e-06
  20  0.000818359
  21  0.000102134
  22  6.54208e-06
  23  0.289316
  24  0.260879
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  5.099e-06  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.033e+00  2.609e-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.046e-01  2.893e-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: 1.07e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/380819/likelihoodResults_568252801_568512001_4FGL_J1209.8+1810_daily_bin1269.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) = 4124.78181847
delta logL = -0.00243851163486

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4124.77938007
delta logL = -1.19625838124e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4054       1.0000          .0000       10.000    
     3 'Normalizat'    .90460       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0330       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=   4124.779     FROM MIGRAD    STATUS=FAILED        87 CALLS      238 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10054E-03    3.2772        .87166E-03** at limit **
   2  Index         2.3080        7.1660        .50000        .12670E-04
   3  Normalizat    .90456        .25843        .28253E-03    .10543E-04
   4  Prefactor     1.0329        .25489        .26127E-03    .22409E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4124.779     FROM SIMPLEX   STATUS=UNCHANGED    113 CALLS      351 TOTAL
                     EDM=   .89E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10054E-03    3.2772        .20895E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3080        7.1660        .16884E-02   -.56853    
   3  Normalizat    .90456        .25843        .10843E-03   -.96300    
   4  Prefactor     1.0329        .25489        .10307E-03   -.91640    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4124.779     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      387 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9930        .17433E-03** at limit **
   2  Index         2.2147        8.8896        .50000       -.92291E-07
   3  Normalizat    .90456        .25864        .11301E-04   -.25592E-03
   4  Prefactor     1.0329        .25515        .10451E-04   -.18362E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.21469
  Normalizat = 0.904562
  Prefactor  = 1.03293
 **********
 **   18 **HESSE 
 **********

 FCN=   4124.779     FROM HESSE     STATUS=OK            29 CALLS      416 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.9929        .34866E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2147        8.8895        .50000       -.59084    
   3  Normalizat    .90456        .25893        .22602E-05   -.96300    
   4  Prefactor     1.0329        .25541        .20902E-05   -.91640    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90071e-10
Minuit parameter uncertainties:
  1  2.15322e-05
  2  121.266
  3  0.259282
  4  0.255714
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/380819': 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) = 4124.77937934
delta logL = 6.11476934864e-07

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  2.153e-05  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  2.215e+00  1.213e+02  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.033e+00  2.557e-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.046e-01  2.593e-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/380819/cmap_HighResolution_568252801_568512001_4FGL_J1209.8+1810_daily_bin1269.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.24e-03', job_status='DONE', photon_flux_upper_limit='1.07e-07', time_completed='2021-09-05 02:49:34.380499', job_id='380819', GAL2='1.03', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1630835374.38', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='6.11e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1269' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:49:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 380819: <4FGL_J1209.8+1810_daily_bin1269> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin1269 182.466 18.1776 568252801 568512001 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 :                                   575.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             220.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            804 sec.

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

