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


Performing analysis on: 4FGL_J1209.8+1810_daily_bin1118
RA = 182.466, Dec = 18.1776
tmin = 529113601, tmax = 529372801
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='380560', job_status='RUN', time_executed='2021-09-05 02:37:57.563511', time_epoch_executed='1630834677.56' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='1118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/380560

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/380560/ft1_4FGL_J1209.8+1810_daily_bin1118.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/380560/ft2_4FGL_J1209.8+1810_daily_bin1118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/380560/ft1_4FGL_J1209.8+1810_daily_bin1118.fits outfile=/scratch/kocevski/380560/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin1118.fits ra=182.466 dec=18.1776 rad=12.0 tmin=529113601.0 tmax=529372801.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.97
user 3.70
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/380560/ft1_filtered_4FGL_J1209.8+1810_daily_bin1118.fits" evtable="EVENTS" scfile=/scratch/kocevski/380560/ft2_4FGL_J1209.8+1810_daily_bin1118.fits sctable="SC_DATA" outfile=/scratch/kocevski/380560/ltcube_529113601_529372801_4FGL_J1209.8+1810_daily_bin1118.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/380560/ft2_4FGL_J1209.8+1810_daily_bin1118.fits
.....................!
real 11.89
user 11.47
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/380560/ft1_filtered_4FGL_J1209.8+1810_daily_bin1118.fits evtable="EVENTS" scfile=/scratch/kocevski/380560/ft2_4FGL_J1209.8+1810_daily_bin1118.fits sctable="SC_DATA" expcube=/scratch/kocevski/380560/ltcube_529113601_529372801_4FGL_J1209.8+1810_daily_bin1118.fits outfile=/scratch/kocevski/380560/expmap_529113601_529372801_4FGL_J1209.8+1810_daily_bin1118.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/380560/ltcube_529113601_529372801_4FGL_J1209.8+1810_daily_bin1118.fits
.....................!
real 190.60
user 185.45
sys 4.73

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/380560/ft1_filtered_4FGL_J1209.8+1810_daily_bin1118.fits scfile=/scratch/kocevski/380560/ft2_4FGL_J1209.8+1810_daily_bin1118.fits outfile=/scratch/kocevski/380560/cmap_529113601_529372801_4FGL_J1209.8+1810_daily_bin1118.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.73
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/380560/ft1_filtered_4FGL_J1209.8+1810_daily_bin1118.fits scfile=/scratch/kocevski/380560/ft2_4FGL_J1209.8+1810_daily_bin1118.fits outfile=/scratch/kocevski/380560/cmap_HighResolution_529113601_529372801_4FGL_J1209.8+1810_daily_bin1118.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.89
user 0.38
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .27272E-02   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.1987       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.561       1.0000         .10000E-03   10000.    
     8 'norm      '    15.246       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.425       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    101.35       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.3438       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.6293       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3223       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.3182       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .39575E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    5.0740       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.616       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.844       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .94719       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1880       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=   5559.511     FROM MIGRAD    STATUS=CONVERGED     81 CALLS     2304 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    4.4552       -.21525E-05** at limit **
   2  Prefactor     .17505E-03    70.122        .91001E-06** at limit **
   3  Prefactor     .10000E-03    8.9403        .10208E-06** at limit **
   4  Prefactor     .10004E-03    4.0524        .55939E-05** at limit **
   5  Prefactor     1.1987        1.2115        .85229E-07    .51297E-04
   6  Prefactor     .14010E-03    161.75       -.77714E-05** at limit **
   7  Prefactor     18.564        1.7225       -.72060E-06    .50958E-02
   8  norm          15.246        2.7470       -.13688E-05   -.59602E-02
   9  Prefactor     20.434        2.3899       -.83716E-06    .77149E-02
  10  Prefactor     .10000E-03    1.0213        .26774E-06** at limit **
  11  Prefactor     101.36        2.1828        .20124E-06   -.75921E-02
  12  Prefactor     1.3438        1.6369       -.31427E-07    .44305E-04
  13  Prefactor     3.6293        2.5046        .68081E-07   -.59938E-04
  14  Prefactor     1.3224        1.9447        .20806E-06    .83343E-04
  15  Prefactor     6.3217        1.1169        .10020E-06   -.15279E-03
  16  Prefactor     .10000E-03    1.8563        .38345E-07** at limit **
  17  norm          .39594E-01    .14098       -.37543E-08    .12129E-03
  18  norm          5.0740        1.0127       -.60779E-07   -.61492E-04
  19  Prefactor     16.619        1.9375       -.89279E-06    .52315E-02
  20  Prefactor     .10001E-03    3.9535       -.36050E-05** at limit **
  21  Prefactor     21.841        1.1238        .13959E-07   -.49111E-03
  22  Prefactor     .10000E-03    2.6861       -.26583E-08** at limit **
  23  Normalizat    .94729        .23523        .20555E-05    .17208E-04
  24  Prefactor     1.1878        .24096        .79393E-06    .25948E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Prefactor  = 0.000175052
  Prefactor  = 0.0001
  Prefactor  = 0.000100036
  Prefactor  = 1.19869
  Prefactor  = 0.000140102
  Prefactor  = 18.5636
  norm       = 15.2458
  Prefactor  = 20.4344
  Prefactor  = 0.0001
  Prefactor  = 101.363
  Prefactor  = 1.34383
  Prefactor  = 3.62931
  Prefactor  = 1.32236
  Prefactor  = 6.32169
  Prefactor  = 0.0001
  norm       = 0.0395939
  norm       = 5.07404
  Prefactor  = 16.6187
  Prefactor  = 0.000100013
  Prefactor  = 21.8409
  Prefactor  = 0.0001
  Normalizat = 0.94729
  Prefactor  = 1.18782
 **********
 **   18 **HESSE 
 **********

 FCN=   5559.511     FROM HESSE     STATUS=OK           449 CALLS     2753 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    4.4697        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .17505E-03    212.67        .99647E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    8.9193        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10004E-03    4.1549        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.1987        1.2035        .10372E-01   -1.5489    
   6  Prefactor     .14010E-03    236.69        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.564        12.737        .23241E-02   -1.4846    
   8  norm          15.246        2.7518        .25644E-02   -1.4927    
   9  Prefactor     20.434        20.614        .22156E-02   -1.4804    
  10  Prefactor     .10000E-03    1.0159        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     101.36        115.94        .99840E-03   -1.3691    
  12  Prefactor     1.3438        1.6591        .94470E-02   -1.5476    
  13  Prefactor     3.6293        2.5096        .53017E-02   -1.5327    
  14  Prefactor     1.3224        1.9816        .95632E-02   -1.5478    
  15  Prefactor     6.3217        53.033        .39922E-02   -1.5205    
  16  Prefactor     .10000E-03    1.8541        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .39594E-01    .13615        .92191E-02   -1.5668    
  18  norm          5.0740        4.2646        .44625E-02   -1.5257    
  19  Prefactor     16.619        10.936        .24564E-02   -1.4892    
  20  Prefactor     .10001E-03    3.9918        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     21.841        24.417        .21425E-02   -1.4773    
  22  Prefactor     .10000E-03    2.6832        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .94729        .20320        .45502E-01   -.94818    
  24  Prefactor     1.1878        .20644        .59008E-01   -.86707    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73103e-06
Minuit parameter uncertainties:
  1  0.00033356
  2  0.253581
  3  4.70484e-05
  4  0.00077462
  5  1.20349
  6  0.195628
  7  12.7387
  8  2.75182
  9  20.6215
  10  2.67977e-06
  11  116.197
  12  1.65917
  13  2.50965
  14  1.98172
  15  36.6639
  16  1.84733e-06
  17  0.13615
  18  4.26487
  19  10.9376
  20  0.000460565
  21  24.4278
  22  1.73483e-06
  23  0.203369
  24  0.206583
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.344e+00  1.659e+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.188e+00  2.066e-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.473e-01  2.034e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.43
Ra Dec: 182.466 18.178
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.84e-08 +/- 2.27e-08
Energy Flux (Fixed Index): 5.94e-06 +/- 7.34e-06

TS (Fixed Index): 1.43
Ra Dec: 182.466 18.178
Photon Flux Upper Limit: 8.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/380560/likelihoodResults_529113601_529372801_4FGL_J1209.8+1810_daily_bin1118.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) = 5559.39575186
delta logL = 0.115589968968

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5559.3923912
delta logL = 0.11895063282

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6448       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9283       1.0000          .0000       10.000    
     3 'Normalizat'    .95569       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1824       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=   5559.392     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      270 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6447        1.9666        .11180E-03    .21283E-03
   2  Index         1.9273        .89781        .13110E-01    .25653E-04
   3  Normalizat    .95558        .23164        .27770E-03   -.12323E-04
   4  Prefactor     1.1825        .24050        .26142E-03   -.14047E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.64475
  Index      = 1.92725
  Normalizat = 0.955584
  Prefactor  = 1.18254
 **********
 **   18 **HESSE 
 **********

 FCN=   5559.392     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6447        1.9647        .44720E-05   -1.5451    
   2  Index         1.9273        .89727        .52439E-03   -.66181    
   3  Normalizat    .95558        .23189        .11108E-04   -.94534    
   4  Prefactor     1.1825        .24078        .10457E-04   -.86870    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.97872e-11
Minuit parameter uncertainties:
  1  1.96482
  2  0.905198
  3  0.232136
  4  0.240999
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/380560': 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) = 5559.39239021
delta logL = 0.118951625539

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.645e+00  1.965e+00  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  1.927e+00  9.052e-01  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.183e+00  2.410e-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.556e-01  2.321e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.67
Ra Dec: 182.466 18.178
Photon Index (Free Index): 1.93 +/- 0.91
Photon Flux (Free Index): 1.19e-08 +/- 1.85e-08
Energy Flux (Free Index): 9.91e-06 +/- 1.84e-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/380560/cmap_HighResolution_529113601_529372801_4FGL_J1209.8+1810_daily_bin1118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.54e-03', comment='SUCCESS', photon_flux='1.84e-08', energy_flux2='9.91e-06', photon_flux_error='2.27e-08', dlogl='1.19e-01', energy_flux='5.94e-06', photon_flux2='1.19e-08', job_status='DONE', time_completed='2021-09-05 02:49:25.885496', photon_index_error2='0.91', photon_index2='1.93', ts='1.43', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', photon_flux_upper_limit='8.45e-08', energy_flux_error2='1.84e-05', EG='0.95', time_epoch_completed='1630835365.89', return_code='0', job_id='380560', GAL2='1.18', EG2='0.96', return_code2='0', energy_flux_error='7.34e-06', photon_flux_error2='1.85e-08', ts2='1.67', photon_index='2.41' WHERE bin_id='1118' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:49:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 380560: <4FGL_J1209.8+1810_daily_bin1118> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin1118 182.466 18.1776 529113601 529372801 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 :                                   658.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             296.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            816 sec.

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

