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


Performing analysis on: 4FGL_J1209.8+1810_daily_bin1398
RA = 182.466, Dec = 18.1776
tmin = 601689601, tmax = 601948801
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='382609', job_status='RUN', time_executed='2021-09-05 02:40:42.662680', time_epoch_executed='1630834842.66' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='1398'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/382609

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/382609/ft1_4FGL_J1209.8+1810_daily_bin1398.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/382609/ft2_4FGL_J1209.8+1810_daily_bin1398.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/382609/ft1_4FGL_J1209.8+1810_daily_bin1398.fits outfile=/scratch/kocevski/382609/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin1398.fits ra=182.466 dec=18.1776 rad=12.0 tmin=601689601.0 tmax=601948801.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.55
user 3.31
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/382609/ft1_filtered_4FGL_J1209.8+1810_daily_bin1398.fits" evtable="EVENTS" scfile=/scratch/kocevski/382609/ft2_4FGL_J1209.8+1810_daily_bin1398.fits sctable="SC_DATA" outfile=/scratch/kocevski/382609/ltcube_601689601_601948801_4FGL_J1209.8+1810_daily_bin1398.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/382609/ft2_4FGL_J1209.8+1810_daily_bin1398.fits
.....................!
real 12.20
user 11.79
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/382609/ft1_filtered_4FGL_J1209.8+1810_daily_bin1398.fits evtable="EVENTS" scfile=/scratch/kocevski/382609/ft2_4FGL_J1209.8+1810_daily_bin1398.fits sctable="SC_DATA" expcube=/scratch/kocevski/382609/ltcube_601689601_601948801_4FGL_J1209.8+1810_daily_bin1398.fits outfile=/scratch/kocevski/382609/expmap_601689601_601948801_4FGL_J1209.8+1810_daily_bin1398.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/382609/ltcube_601689601_601948801_4FGL_J1209.8+1810_daily_bin1398.fits
.....................!
real 189.98
user 185.31
sys 4.22

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/382609/ft1_filtered_4FGL_J1209.8+1810_daily_bin1398.fits scfile=/scratch/kocevski/382609/ft2_4FGL_J1209.8+1810_daily_bin1398.fits outfile=/scratch/kocevski/382609/cmap_601689601_601948801_4FGL_J1209.8+1810_daily_bin1398.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.53
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1231       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .99606E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.5506       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10025E-03   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 '    2.0914       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.1521       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .99751       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .22138       1.0000         .10000E-03   10000.    
    18 'norm      '    3.1909       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.2384       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.072       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3430       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .91712       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=   6151.424     FROM MIGRAD    STATUS=CONVERGED    560 CALLS     2331 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.244       -.32211E-05** at limit **
   2  Prefactor     .10000E-03    10.540        .14052E-06** at limit **
   3  Prefactor     .10000E-03    6.0244       -.20821E-07** at limit **
   4  Prefactor     .10000E-03    3.1585       -.42748E-07** at limit **
   5  Prefactor     1.1228        1.4970       -.27460E-07    .22919E-03
   6  Prefactor     .10002E-03    146.09        .55949E-05** at limit **
   7  Prefactor     .10002E-03    27.923       -.95342E-05** at limit **
   8  norm          1.5505        1.0643        .29725E-07    .22930E-03
   9  Prefactor     .10000E-03    20.643        .18700E-05** at limit **
  10  Prefactor     .10000E-03    .92499       -.68703E-08** at limit **
  11  Prefactor     .10001E-03    90.481       -.39530E-05** at limit **
  12  Prefactor     2.0923        3.4063        .12510E-06    .38782E-03
  13  Prefactor     1.1507        2.7995       -.68850E-07    .26439E-03
  14  Prefactor     .99758        1.9491       -.37156E-06   -.28683E-03
  15  Prefactor     .10000E-03    17.578       -.26096E-05** at limit **
  16  Prefactor     .10000E-03    2.9261        .18394E-07** at limit **
  17  norm          .22136        .21766       -.12894E-08    .44276E-03
  18  norm          3.1898        4.2228        .13284E-06    .24636E-03
  19  Prefactor     7.2344        9.4638        .48805E-07    .68006E-03
  20  Prefactor     10.072        9.0460        .13083E-06    .60546E-04
  21  Prefactor     .10000E-03    11.856       -.30807E-06** at limit **
  22  Prefactor     .10000E-03    15.491        .24746E-05** at limit **
  23  Normalizat    1.3430        .18993        .12756E-06    .20683E-03
  24  Prefactor     .91716        .18479       -.42224E-07    .16763E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.12283
  Prefactor  = 0.000100015
  Prefactor  = 0.000100016
  norm       = 1.55047
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 2.0923
  Prefactor  = 1.15068
  Prefactor  = 0.997579
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.221363
  norm       = 3.18983
  Prefactor  = 7.23435
  Prefactor  = 10.0716
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.343
  Prefactor  = 0.917163
 **********
 **   18 **HESSE 
 **********

 FCN=   6151.424     FROM HESSE     STATUS=OK           399 CALLS     2730 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.0346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.1644        .13613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.1228        1.4647        .10701E-03   -1.5496    
   6  Prefactor     .10002E-03    148.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    29.974        .38118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.5505        1.0644        .34206E-04   -1.5459    
   9  Prefactor     .10000E-03    21.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .92745        .73644E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    91.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.0923        3.2812        .15842E-03   -1.5419    
  13  Prefactor     1.1507        2.6592        .17865E-03   -1.5493    
  14  Prefactor     .99758        1.8395        .14880E-02   -1.5508    
  15  Prefactor     .10000E-03    18.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.9361        .13092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .22136        .20610        .34288E-03   -1.5614    
  18  norm          3.1898        4.1996        .17747E-03   -1.5351    
  19  Prefactor     7.2344        9.7595        .74544E-03   -1.5170    
  20  Prefactor     10.072        9.0318        .12626E-03   -1.5073    
  21  Prefactor     .10000E-03    11.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    16.126        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3430        .22236        .23677E-03   -.82292    
  24  Prefactor     .91716        .21680        .27745E-03   -.95544    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.97145e-09
Minuit parameter uncertainties:
  1  0.000547674
  2  1.94215e-05
  3  1.91879e-06
  4  3.29756e-06
  5  1.46472
  6  0.00299216
  7  0.0014023
  8  1.06446
  9  0.000370471
  10  3.55902e-07
  11  0.00156595
  12  3.28148
  13  2.65948
  14  1.83962
  15  0.000466983
  16  1.48022e-06
  17  0.206101
  18  4.20001
  19  9.76162
  20  9.03302
  21  3.81611e-05
  22  0.000282296
  23  0.22252
  24  0.217006
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  2.092e+00  3.281e+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.172e-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:  1.343e+00  2.225e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/382609/likelihoodResults_601689601_601948801_4FGL_J1209.8+1810_daily_bin1398.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) = 6151.29277478
delta logL = 0.130763969877

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6151.28304604
delta logL = 0.140492711825

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1040       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0479       1.0000          .0000       10.000    
     3 'Normalizat'    1.3268       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92809       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=   6151.283     FROM MIGRAD    STATUS=FAILED        81 CALLS      271 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1039        3.5725        .95058E-04   -.45555E-03
   2  Index         3.0480        1.7484        .83735E-02    .43477E-03
   3  Normalizat    1.3268        .22213        .23795E-03   -.22160E-03
   4  Prefactor     .92804        .21836        .27598E-03   -.18088E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6151.283     FROM SIMPLEX   STATUS=UNCHANGED     77 CALLS      348 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1039        3.5725        .10888E-03   -1.5498    
   2  Index         3.0480        1.7484        .12421E-02   -.40107    
   3  Normalizat    1.3268        .22213        .19089E-03   -.82770    
   4  Prefactor     .92804        .21836        .30873E-03   -.95168    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6151.283     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      376 TOTAL
                     EDM=   .78E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1039        2.5452        .38023E-05    .71759E-05
   2  Index         3.0480        1.2605        .16747E-02   -.26339E-05
   3  Normalizat    1.3268        .22207        .47589E-04    .19111E-06
   4  Prefactor     .92804        .21774        .11039E-04    .12358E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.10392
  Index      = 3.04796
  Normalizat = 1.32681
  Prefactor  = 0.928044
 **********
 **   18 **HESSE 
 **********

 FCN=   6151.283     FROM HESSE     STATUS=OK            23 CALLS      399 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1039        2.4301        .76046E-06   -1.5498    
   2  Index         3.0480        1.2043        .66988E-04   -.40107    
   3  Normalizat    1.3268        .22207        .95179E-05   -.82770    
   4  Prefactor     .92804        .21769        .11039E-04   -.95168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.074e-12
Minuit parameter uncertainties:
  1  2.43036
  2  1.21844
  3  0.222232
  4  0.217895
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/382609': 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) = 6151.28304602
delta logL = 0.140492732785

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.104e+00  2.430e+00  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  3.048e+00  1.218e+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:  9.280e-01  2.179e-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:  1.327e+00  2.222e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.56
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/382609/cmap_HighResolution_601689601_601948801_4FGL_J1209.8+1810_daily_bin1398.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.34e-03', job_status='DONE', photon_flux_upper_limit='1.21e-07', time_completed='2021-09-05 02:52:12.047231', job_id='382609', GAL2='0.93', fit_tolerance='1e-08', EG2='1.33', EG='1.34', time_epoch_completed='1630835532.05', return_code2='0', ts='0.56', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.40e-01', ts2='0.85', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1398' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:52:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 382609: <4FGL_J1209.8+1810_daily_bin1398> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin1398 182.466 18.1776 601689601 601948801 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 :                                   682.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            705 sec.

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

