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


Performing analysis on: 4FGL_J1209.8+1810_daily_bin36
RA = 182.466, Dec = 18.1776
tmin = 248659201, tmax = 248918401
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='373671', job_status='RUN', time_executed='2021-09-05 02:18:57.090288', time_epoch_executed='1630833537.09' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='36'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/373671

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/373671/ft1_4FGL_J1209.8+1810_daily_bin36.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/373671/ft2_4FGL_J1209.8+1810_daily_bin36.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/373671/ft1_4FGL_J1209.8+1810_daily_bin36.fits outfile=/scratch/kocevski/373671/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin36.fits ra=182.466 dec=18.1776 rad=12.0 tmin=248659201.0 tmax=248918401.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.43
user 1.24
sys 0.15

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/373671/ft1_filtered_4FGL_J1209.8+1810_daily_bin36.fits evtable="EVENTS" scfile=/scratch/kocevski/373671/ft2_4FGL_J1209.8+1810_daily_bin36.fits sctable="SC_DATA" expcube=/scratch/kocevski/373671/ltcube_248659201_248918401_4FGL_J1209.8+1810_daily_bin36.fits outfile=/scratch/kocevski/373671/expmap_248659201_248918401_4FGL_J1209.8+1810_daily_bin36.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/373671/ltcube_248659201_248918401_4FGL_J1209.8+1810_daily_bin36.fits
.....................!
real 190.86
user 185.41
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/373671/ft1_filtered_4FGL_J1209.8+1810_daily_bin36.fits scfile=/scratch/kocevski/373671/ft2_4FGL_J1209.8+1810_daily_bin36.fits outfile=/scratch/kocevski/373671/cmap_248659201_248918401_4FGL_J1209.8+1810_daily_bin36.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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/373671/ft1_filtered_4FGL_J1209.8+1810_daily_bin36.fits scfile=/scratch/kocevski/373671/ft2_4FGL_J1209.8+1810_daily_bin36.fits outfile=/scratch/kocevski/373671/cmap_HighResolution_248659201_248918401_4FGL_J1209.8+1810_daily_bin36.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/373671/ft1_filtered_4FGL_J1209.8+1810_daily_bin36.fits evtable="EVENTS" scfile=/scratch/kocevski/373671/ft2_4FGL_J1209.8+1810_daily_bin36.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/373671/Model_4FGL_J1209.8+1810_daily_bin36.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/373671/ft1_filtered_4FGL_J1209.8+1810_daily_bin36.fits.....................!
real 56.04
user 54.64
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1339       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.986       1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.191       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .95271E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    54.407       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11888E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    31.422       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8271       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5960       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.1203       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.4337       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .11112       1.0000         .10000E-03   10000.    
    18 'norm      '    4.1516       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.563       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.5784       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .20176E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.5494       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0043       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0060       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5959.653     FROM MIGRAD    STATUS=CONVERGED    104 CALLS     2381 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1330        7.0017       -.19708E-05    .28290E-02
   2  Prefactor     11.978        1.6015        .26880E-06   -.57497E-03
   3  Prefactor     21.210        8.8801       -.17112E-05    .72082E-02
   4  Prefactor     .10000E-03    2.8951       -.21626E-06** at limit **
   5  Prefactor     .91781E-01    3.3154        .32075E-05    .18343E-03
   6  Prefactor     54.403        1.2221       -.63644E-07    .14780E-02
   7  Prefactor     .10000E-03    32.137       -.20893E-05** at limit **
   8  norm          .10000E-03    1.4172        .19008E-06** at limit **
   9  Prefactor     .10000E-03    5.3962       -.93488E-06** at limit **
  10  Prefactor     .10000E-03    1.0228        .55880E-06** at limit **
  11  Prefactor     31.417        1.2595       -.82243E-07    .11259E-02
  12  Prefactor     1.8250        3.0045        .43731E-06   -.36271E-04
  13  Prefactor     1.5977        3.3123       -.65745E-06    .34940E-03
  14  Prefactor     6.1209        2.7056       -.50468E-06   -.51488E-03
  15  Prefactor     7.4520        8.6373       -.28869E-05    .36231E-02
  16  Prefactor     .10000E-03    1.6199       -.21978E-06** at limit **
  17  norm          .11100        .18051       -.99004E-07    .13796E-03
  18  norm          4.1515        3.7455        .93416E-06    .36986E-02
  19  Prefactor     11.560        7.2060       -.18277E-05   -.11240E-01
  20  Prefactor     4.5765        2.1138       -.78162E-06   -.90519E-03
  21  Prefactor     .10065E-03    254.46        .54858E-06** at limit **
  22  Prefactor     3.5490        3.4587       -.14833E-05   -.15953E-02
  23  Normalizat    1.0045        .21073        .39997E-05    .23076E-03
  24  Prefactor     1.0060        .20796        .82778E-06    .20545E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.133
  Prefactor  = 11.9784
  Prefactor  = 21.2102
  Prefactor  = 0.0001
  Prefactor  = 0.0917814
  Prefactor  = 54.4032
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.4172
  Prefactor  = 1.82496
  Prefactor  = 1.59767
  Prefactor  = 6.12092
  Prefactor  = 7.45202
  Prefactor  = 0.0001
  norm       = 0.111
  norm       = 4.15151
  Prefactor  = 11.5604
  Prefactor  = 4.57649
  Prefactor  = 0.000100647
  Prefactor  = 3.54904
  Normalizat = 1.0045
  Prefactor  = 1.00596
 **********
 **   18 **HESSE 
 **********

 FCN=   5959.653     FROM HESSE     STATUS=OK           473 CALLS     2854 TOTAL
                     EDM=   .39E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1330        7.2301        .57251E-02   -1.5354    
   2  Prefactor     11.978        28.104        .28927E-02   -1.5016    
   3  Prefactor     21.210        19.267        .21752E-02   -1.4787    
   4  Prefactor     .10000E-03    2.8898        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .91781E-01    .98889        .42961E-01   -1.5647    
   6  Prefactor     54.403        145.31        .13595E-02   -1.4231    
   7  Prefactor     .10000E-03    31.100        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .80527        .25544E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.3995        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.0198        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     31.417        80.269        .17870E-02   -1.4586    
  12  Prefactor     1.8250        3.1618        .77204E-02   -1.5438    
  13  Prefactor     1.5977        3.4985        .83929E-02   -1.5455    
  14  Prefactor     6.1209        2.7484        .40571E-02   -1.5213    
  15  Prefactor     7.4520        18.336        .36775E-02   -1.5162    
  16  Prefactor     .10000E-03    1.6179        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .11100        .19255        .90431E-02   -1.5641    
  18  norm          4.1515        3.8034        .49455E-02   -1.5300    
  19  Prefactor     11.560        9.2771        .29452E-02   -1.5028    
  20  Prefactor     4.5765        10.530        .47031E-02   -1.5280    
  21  Prefactor     .10065E-03    26.922        .11445       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.5490        5.0628        .53635E-02   -1.5331    
  23  Normalizat    1.0045        .18793        .46221E-01   -.92880    
  24  Prefactor     1.0060        .17886        .43985E-01   -.92531    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91238e-07
Minuit parameter uncertainties:
  1  7.23208
  2  28.1348
  3  19.2728
  4  1.56569e-06
  5  0.602219
  6  146.268
  7  0.000761889
  8  9.47848e-07
  9  2.10175e-05
  10  3.28414e-06
  11  80.5464
  12  3.16205
  13  3.49897
  14  2.74844
  15  18.3496
  16  1.87123e-06
  17  0.192548
  18  3.8036
  19  9.27827
  20  10.5338
  21  0.00835219
  22  5.06339
  23  0.188053
  24  0.178961
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.825e+00  3.162e+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:  1.006e+00  1.790e-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.005e+00  1.881e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/373671/likelihoodResults_248659201_248918401_4FGL_J1209.8+1810_daily_bin36.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) = 5958.28814777
delta logL = 1.36498815867

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5958.26944609
delta logL = 1.38368984112

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15147       1.0000         .10000E-03   10000.    
     2 'Index     '    4.5389       1.0000          .0000       10.000    
     3 'Normalizat'    .91859       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0647       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=   5958.269     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      232 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15008        1.4193        .41348E-02    .17820E-02
   2  Index         4.5438        2.5734        .11095        .15043E-03
   3  Normalizat    .91820        .47629E-01    .45139E-01    .15140E-04
   4  Prefactor     1.0652        .48391E-01    .39116E-01    .71245E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.150077
  Index      = 4.54378
  Normalizat = 0.918196
  Prefactor  = 1.0652
 **********
 **   18 **HESSE 
 **********

 FCN=   5958.269     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      265 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15008        3.0620        .18678E-04   -1.5631    
   2  Index         4.5438        4.0349        .42565E-02   -.91371E-01
   3  Normalizat    .91820        .18865        .25450E-03   -.95824    
   4  Prefactor     1.0652        .19013        .24191E-03   -.90587    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.15315e-10
Minuit parameter uncertainties:
  1  1.3554
  2  4.70415
  3  0.188791
  4  0.190251
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/373671': 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) = 5958.26943949
delta logL = 1.38369644387

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.501e-01  1.355e+00  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  4.544e+00  4.704e+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:  1.065e+00  1.903e-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.182e-01  1.888e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.51
Ra Dec: 182.466 18.178
Photon Index (Free Index): 4.54 +/- 4.70
Photon Flux (Free Index): 8.64e-08 +/- 5.55e-08
Energy Flux (Free Index): 1.20e-05 +/- 1.04e-05

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/373671/cmap_HighResolution_248659201_248918401_4FGL_J1209.8+1810_daily_bin36.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.17e-03', comment='SUCCESS', energy_flux2='1.20e-05', dlogl='1.38e+00', photon_flux2='8.64e-08', job_status='DONE', time_completed='2021-09-05 02:30:12.234758', photon_index_error2='4.70', photon_index2='4.54', ts='0.54', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='1.04e-05', EG='1.00', time_epoch_completed='1630834212.23', return_code='0', job_id='373671', GAL2='1.07', EG2='0.92', return_code2='102', photon_flux_error2='5.55e-08', ts2='3.51', photon_index='2.41' WHERE bin_id='36' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:30:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 373671: <4FGL_J1209.8+1810_daily_bin36> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin36 182.466 18.1776 248659201 248918401 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 :                                   673.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            883 sec.

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

