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


Performing analysis on: 4FGL_J1209.8+1810_daily_bin1412
RA = 182.466, Dec = 18.1776
tmin = 605318401, tmax = 605577601
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='382630', job_status='RUN', time_executed='2021-09-05 02:43:16.122967', time_epoch_executed='1630834996.12' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='1412'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/382630

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/382630/ft1_4FGL_J1209.8+1810_daily_bin1412.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/382630/ft2_4FGL_J1209.8+1810_daily_bin1412.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/382630/ft1_4FGL_J1209.8+1810_daily_bin1412.fits outfile=/scratch/kocevski/382630/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin1412.fits ra=182.466 dec=18.1776 rad=12.0 tmin=605318401.0 tmax=605577601.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 5.47
user 5.24
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/382630/ft1_filtered_4FGL_J1209.8+1810_daily_bin1412.fits" evtable="EVENTS" scfile=/scratch/kocevski/382630/ft2_4FGL_J1209.8+1810_daily_bin1412.fits sctable="SC_DATA" outfile=/scratch/kocevski/382630/ltcube_605318401_605577601_4FGL_J1209.8+1810_daily_bin1412.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/382630/ft2_4FGL_J1209.8+1810_daily_bin1412.fits
.....................!
real 11.65
user 11.30
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/382630/ft1_filtered_4FGL_J1209.8+1810_daily_bin1412.fits evtable="EVENTS" scfile=/scratch/kocevski/382630/ft2_4FGL_J1209.8+1810_daily_bin1412.fits sctable="SC_DATA" expcube=/scratch/kocevski/382630/ltcube_605318401_605577601_4FGL_J1209.8+1810_daily_bin1412.fits outfile=/scratch/kocevski/382630/expmap_605318401_605577601_4FGL_J1209.8+1810_daily_bin1412.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/382630/ltcube_605318401_605577601_4FGL_J1209.8+1810_daily_bin1412.fits
.....................!
real 192.68
user 187.06
sys 5.31

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/382630/ft1_filtered_4FGL_J1209.8+1810_daily_bin1412.fits scfile=/scratch/kocevski/382630/ft2_4FGL_J1209.8+1810_daily_bin1412.fits outfile=/scratch/kocevski/382630/cmap_605318401_605577601_4FGL_J1209.8+1810_daily_bin1412.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/382630/ft1_filtered_4FGL_J1209.8+1810_daily_bin1412.fits scfile=/scratch/kocevski/382630/ft2_4FGL_J1209.8+1810_daily_bin1412.fits outfile=/scratch/kocevski/382630/cmap_HighResolution_605318401_605577601_4FGL_J1209.8+1810_daily_bin1412.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .63533E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.971       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4559       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.5569       1.0000         .10000E-03   10000.    
     8 'norm      '    5.6152       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .75859       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10532E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10875E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.8841       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12011E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .31325       1.0000         .10000E-03   10000.    
    18 'norm      '    11.028       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10693E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    34.936       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .68734       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.3057       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=   5132.555     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2748 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10163E-03    15.185        .56089E-05** at limit **
   2  Prefactor     .10000E-03    17.639       -.24239E-05** at limit **
   3  Prefactor     32.976        31.024        .32163E-05   -.67664E-04
   4  Prefactor     .10000E-03    5.9253       -.15125E-06** at limit **
   5  Prefactor     1.4557        2.0976       -.29671E-06   -.74570E-03
   6  Prefactor     .10000E-03    96.194       -.20745E-04** at limit **
   7  Prefactor     7.5601        11.403        .57035E-06    .14904E-03
   8  norm          5.6157        2.1036       -.22785E-07   -.96513E-04
   9  Prefactor     .10000E-03    10.149       -.78796E-05** at limit **
  10  Prefactor     .75737        4.8981        .11287E-06   -.58379E-03
  11  Prefactor     .10000E-03    101.76       -.70353E-04** at limit **
  12  Prefactor     .10000E-03    1.7706        .30881E-06** at limit **
  13  Prefactor     7.8792        4.1098       -.65086E-06   -.36534E-03
  14  Prefactor     .10000E-03    1.9416        .68693E-07** at limit **
  15  Prefactor     .10000E-03    86.443        .55823E-04** at limit **
  16  Prefactor     .10000E-03    3.0323        .17391E-06** at limit **
  17  norm          .31334        .30970        .42855E-07   -.13679E-02
  18  norm          11.031        6.0449        .20650E-06   -.11121E-03
  19  Prefactor     .10000E-03    10.902        .46602E-05** at limit **
  20  Prefactor     .10000E-03    10.871        .32328E-05** at limit **
  21  Prefactor     34.956        31.022        .11620E-04   -.99509E-04
  22  Prefactor     .10000E-03    7.2785        .97380E-06** at limit **
  23  Normalizat    .68708        .20903       -.29114E-05   -.51055E-03
  24  Prefactor     1.3058        .19517       -.50092E-06   -.56880E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101626
  Prefactor  = 0.0001
  Prefactor  = 32.9761
  Prefactor  = 0.0001
  Prefactor  = 1.45573
  Prefactor  = 0.0001
  Prefactor  = 7.56008
  norm       = 5.61574
  Prefactor  = 0.0001
  Prefactor  = 0.757367
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.87916
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.313342
  norm       = 11.0306
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 34.9556
  Prefactor  = 0.0001
  Normalizat = 0.687084
  Prefactor  = 1.30578
 **********
 **   18 **HESSE 
 **********

 FCN=   5132.555     FROM HESSE     STATUS=OK           399 CALLS     3147 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10163E-03    94.876        .52182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     32.976        30.852        .69785E-04   -1.4559    
   4  Prefactor     .10000E-03    5.9534        .17026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.4557        2.0472        .11508E-03   -1.5467    
   6  Prefactor     .10000E-03    96.249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.5601        11.372        .14589E-03   -1.5158    
   8  norm          5.6157        2.1012        .60765E-04   -1.5234    
   9  Prefactor     .10000E-03    10.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .75737        9.0533        .28340E-02   -1.5534    
  11  Prefactor     .10000E-03    101.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.9735        .17942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.8792        4.0394        .98121E-04   -1.5146    
  14  Prefactor     .10000E-03    3.2920        .19206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    87.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.0395        .12179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .31334        .29502        .36617E-03   -1.5596    
  18  norm          11.031        6.0131        .12064E-03   -1.5044    
  19  Prefactor     .10000E-03    11.102        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    10.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     34.956        30.898        .67800E-04   -1.4525    
  22  Prefactor     .10000E-03    7.4359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .68708        .23435        .31105E-03   -1.0441    
  24  Prefactor     1.3058        .22735        .23267E-03   -.83135    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77025e-08
Minuit parameter uncertainties:
  1  0.024878
  2  1.58034e-05
  3  30.8664
  4  7.58738e-06
  5  2.04727
  6  6.93508e-05
  7  11.3753
  8  2.10126
  9  3.549e-05
  10  5.23768
  11  0.000246335
  12  5.63337e-05
  13  4.03954
  14  4.06682e-05
  15  0.000763345
  16  3.06427e-06
  17  0.295017
  18  6.01346
  19  0.000281869
  20  7.1208e-06
  21  30.912
  22  1.14484e-05
  23  0.234687
  24  0.227526
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  5.633e-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.306e+00  2.275e-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.871e-01  2.347e-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: 8.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/382630/likelihoodResults_605318401_605577601_4FGL_J1209.8+1810_daily_bin1412.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) = 5132.55694235
delta logL = -0.00160136637624

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5132.55534125
delta logL = -2.64749360213e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4097       1.0000          .0000       10.000    
     3 'Normalizat'    .68713       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3058       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5132.555     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      230 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .30349        .35678E-01** at limit **
   2  Index         2.4085        5.4187        .50000        .33450E-05
   3  Normalizat    .68709        .21424E-02    .70282E-01   -.49847E-04
   4  Prefactor     1.3058        .21503E-02    .52628E-01   -.80609E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.40846
  Normalizat = 0.687087
  Prefactor  = 1.30578
 **********
 **   18 **HESSE 
 **********

 FCN=   5132.555     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      263 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.004        .17954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4085        6.3829        .50000       -.54487    
   3  Normalizat    .68709        .16522E-01    .31105E-03   -1.0440    
   4  Prefactor     1.3058        .16610E-01    .23267E-03   -.83135    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.07062e-08
Minuit parameter uncertainties:
  1  7.17983e-05
  2  199.32
  3  0.0165223
  4  0.0166103
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/382630': 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) = 5132.55534098
delta logL = 2.32284946833e-09

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  7.180e-05  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  2.408e+00  1.993e+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.306e+00  1.661e-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.871e-01  1.652e-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/382630/cmap_HighResolution_605318401_605577601_4FGL_J1209.8+1810_daily_bin1412.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.85e-03', job_status='DONE', photon_flux_upper_limit='8.86e-08', time_completed='2021-09-05 02:56:11.616811', job_id='382630', GAL2='1.31', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1630835771.62', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.31', dlogl='2.32e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1412' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:56:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0142>
Subject: Job 382630: <4FGL_J1209.8+1810_daily_bin1412> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin1412 182.466 18.1776 605318401 605577601 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 :                                   638.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             264.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            944 sec.

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

