/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 208 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 = 7677
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1209.8+1810_daily_bin23
RA = 182.466, Dec = 18.1776
tmin = 245289601, tmax = 245548801
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='373650', job_status='RUN', time_executed='2021-09-05 02:19:07.071209', time_epoch_executed='1630833547.07' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='23'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/373650

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/373650/ft1_4FGL_J1209.8+1810_daily_bin23.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/373650/ft2_4FGL_J1209.8+1810_daily_bin23.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/373650/ft1_4FGL_J1209.8+1810_daily_bin23.fits outfile=/scratch/kocevski/373650/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin23.fits ra=182.466 dec=18.1776 rad=12.0 tmin=245289601.0 tmax=245548801.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 1.46
user 1.27
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/373650/ft1_filtered_4FGL_J1209.8+1810_daily_bin23.fits evtable="EVENTS" scfile=/scratch/kocevski/373650/ft2_4FGL_J1209.8+1810_daily_bin23.fits sctable="SC_DATA" expcube=/scratch/kocevski/373650/ltcube_245289601_245548801_4FGL_J1209.8+1810_daily_bin23.fits outfile=/scratch/kocevski/373650/expmap_245289601_245548801_4FGL_J1209.8+1810_daily_bin23.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/373650/ltcube_245289601_245548801_4FGL_J1209.8+1810_daily_bin23.fits
.....................!
real 193.58
user 187.81
sys 5.00

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/373650/ft1_filtered_4FGL_J1209.8+1810_daily_bin23.fits scfile=/scratch/kocevski/373650/ft2_4FGL_J1209.8+1810_daily_bin23.fits outfile=/scratch/kocevski/373650/cmap_245289601_245548801_4FGL_J1209.8+1810_daily_bin23.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.35
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.691       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10052E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    128.67       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.4755       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4130       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7230       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.2750       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.4940       1.0000         .10000E-03   10000.    
    17 'norm      '    .20474       1.0000         .10000E-03   10000.    
    18 'norm      '    3.7704       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.459       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .64359       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3235       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=   5990.620     FROM MIGRAD    STATUS=CONVERGED    562 CALLS     2775 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.092       -.13086E-06** at limit **
   2  Prefactor     16.687        33.801       -.46732E-05    .46560E-05
   3  Prefactor     .10001E-03    11.799       -.10573E-05** at limit **
   4  Prefactor     .10000E-03    2.2899       -.17078E-07** at limit **
   5  Prefactor     .10000E-03    .68215       -.17964E-06** at limit **
   6  Prefactor     128.58        144.36       -.70043E-04    .27400E-05
   7  Prefactor     .10000E-03    3.0586        .20503E-06** at limit **
   8  norm          2.4758        1.3371       -.10538E-06    .19337E-03
   9  Prefactor     .10000E-03    5.9921        .22557E-07** at limit **
  10  Prefactor     1.4130        2.5662       -.61211E-06   -.62571E-03
  11  Prefactor     .10000E-03    23.676       -.60905E-07** at limit **
  12  Prefactor     .10000E-03    .93577        .62666E-08** at limit **
  13  Prefactor     1.7229        2.9708       -.89192E-06   -.75888E-03
  14  Prefactor     9.2745        3.4638       -.18612E-06    .75036E-04
  15  Prefactor     .10000E-03    17.528        .96086E-07** at limit **
  16  Prefactor     1.4946        5.5856       -.21310E-05   -.93094E-03
  17  norm          .20472        .22476       -.14384E-06   -.22527E-02
  18  norm          3.7693        3.9751       -.28624E-07   -.61972E-04
  19  Prefactor     14.460        9.6545       -.34675E-06    .10988E-04
  20  Prefactor     .10000E-03    3.6115       -.51433E-08** at limit **
  21  Prefactor     .10000E-03    13.131       -.15236E-06** at limit **
  22  Prefactor     .10000E-03    4.3099       -.93239E-07** at limit **
  23  Normalizat    .64364        .17885        .41052E-05    .17263E-03
  24  Prefactor     1.3234        .17837        .11548E-05    .23495E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 16.687
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 128.582
  Prefactor  = 0.0001
  norm       = 2.47577
  Prefactor  = 0.0001
  Prefactor  = 1.413
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.72293
  Prefactor  = 9.27451
  Prefactor  = 0.0001
  Prefactor  = 1.49455
  norm       = 0.204722
  norm       = 3.76933
  Prefactor  = 14.4604
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.643644
  Prefactor  = 1.32343
 **********
 **   18 **HESSE 
 **********

 FCN=   5990.620     FROM HESSE     STATUS=OK           403 CALLS     3178 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     16.687        33.800        .98034E-04   -1.4891    
   3  Prefactor     .10001E-03    123.22        .50354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.2925        .11438E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.1490        .12257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     128.58        143.62        .17747E-03   -1.3435    
   7  Prefactor     .10000E-03    3.0653        .13221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.4758        1.3322        .63409E-04   -1.5393    
   9  Prefactor     .10000E-03    6.0117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.4130        2.5341        .16041E-03   -1.5470    
  11  Prefactor     .10000E-03    23.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .94314        .72950E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.7229        2.9461        .16423E-03   -1.5445    
  14  Prefactor     9.2745        3.4615        .83536E-04   -1.5099    
  15  Prefactor     .10000E-03    17.575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.4946        5.5489        .32509E-03   -1.5463    
  17  norm          .20472        .21102        .35629E-03   -1.5617    
  18  norm          3.7693        3.9300        .14599E-03   -1.5320    
  19  Prefactor     14.460        9.6519        .10533E-03   -1.4947    
  20  Prefactor     .10000E-03    3.6125        .14365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.3449        .15691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .64364        .20539        .29665E-03   -1.0616    
  24  Prefactor     1.3234        .20947        .22415E-03   -.82613    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7255e-09
Minuit parameter uncertainties:
  1  4.73285e-05
  2  33.8389
  3  0.00186316
  4  2.58785e-06
  5  1.93253e-05
  6  144.013
  7  3.59998e-05
  8  1.33224
  9  4.90231e-06
  10  2.53427
  11  2.44451e-05
  12  6.13226e-07
  13  2.94635
  14  3.46159
  15  1.39559e-05
  16  5.55077
  17  0.211025
  18  3.93029
  19  9.6529
  20  1.25324e-06
  21  3.11561e-05
  22  1.89534e-05
  23  0.205634
  24  0.2096
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  6.132e-07  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.323e+00  2.096e-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:  6.436e-01  2.056e-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: 5.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/373650/likelihoodResults_245289601_245548801_4FGL_J1209.8+1810_daily_bin23.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) = 5990.62453897
delta logL = -0.00495133162349

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5990.619588
delta logL = -3.54610165232e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3970       1.0000          .0000       10.000    
     3 'Normalizat'    .64366       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3235       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.

 FCN=   5990.620     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      254 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.2761        .73571E-02** at limit **
   2  Index         2.0046        6.4454        .50000       -.73020E-06
   3  Normalizat    .64364        .95258E-02    .29664E-03    .13272E-03
   4  Prefactor     1.3234        .10034E-01    .22415E-03    .19754E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.0046
  Normalizat = 0.643645
  Prefactor  = 1.32343
 **********
 **   18 **HESSE 
 **********

 FCN=   5990.620     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      281 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    58.924        .78060E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0046        5.9729        .50000       -.64235    
   3  Normalizat    .64364        .33747E-01    .11866E-04   -1.0616    
   4  Prefactor     1.3234        .35545E-01    .44829E-04   -.82613    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.50262e-09
Minuit parameter uncertainties:
  1  2.07538e-06
  2  411.629
  3  0.0337477
  4  0.0355453
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/373650': 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) = 5990.61958135
delta logL = 6.29619353276e-06

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  2.075e-06  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  2.005e+00  4.116e+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.323e+00  3.555e-02  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:  6.436e-01  3.375e-02  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/373650/cmap_HighResolution_245289601_245548801_4FGL_J1209.8+1810_daily_bin23.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.49e-03', job_status='DONE', photon_flux_upper_limit='5.81e-08', time_completed='2021-09-05 02:30:50.024582', job_id='373650', GAL2='1.32', fit_tolerance='1e-08', EG2='0.64', EG='0.64', time_epoch_completed='1630834250.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.32', dlogl='6.30e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='23' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:30:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 373650: <4FGL_J1209.8+1810_daily_bin23> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin23 182.466 18.1776 245289601 245548801 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 :                                   701.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            922 sec.

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

