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


Performing analysis on: 4FGL_J1209.8+1810_daily_bin1417
RA = 182.466, Dec = 18.1776
tmin = 606614401, tmax = 606873601
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='382636', job_status='RUN', time_executed='2021-09-05 02:42:59.974505', time_epoch_executed='1630834979.97' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='1417'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/382636

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/382636/ft1_4FGL_J1209.8+1810_daily_bin1417.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/382636/ft2_4FGL_J1209.8+1810_daily_bin1417.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/382636/ft1_4FGL_J1209.8+1810_daily_bin1417.fits outfile=/scratch/kocevski/382636/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin1417.fits ra=182.466 dec=18.1776 rad=12.0 tmin=606614401.0 tmax=606873601.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.06
user 4.80
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/382636/ft2_4FGL_J1209.8+1810_daily_bin1417.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/382636/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin1417.fits evtable="EVENTS" outfile="/scratch/kocevski/382636/ft1_filtered_4FGL_J1209.8+1810_daily_bin1417.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/382636/ft1_filtered_4FGL_J1209.8+1810_daily_bin1417.fits" evtable="EVENTS" scfile=/scratch/kocevski/382636/ft2_4FGL_J1209.8+1810_daily_bin1417.fits sctable="SC_DATA" outfile=/scratch/kocevski/382636/ltcube_606614401_606873601_4FGL_J1209.8+1810_daily_bin1417.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/382636/ft2_4FGL_J1209.8+1810_daily_bin1417.fits
.....................!
real 11.69
user 11.31
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/382636/ft1_filtered_4FGL_J1209.8+1810_daily_bin1417.fits evtable="EVENTS" scfile=/scratch/kocevski/382636/ft2_4FGL_J1209.8+1810_daily_bin1417.fits sctable="SC_DATA" expcube=/scratch/kocevski/382636/ltcube_606614401_606873601_4FGL_J1209.8+1810_daily_bin1417.fits outfile=/scratch/kocevski/382636/expmap_606614401_606873601_4FGL_J1209.8+1810_daily_bin1417.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/382636/ltcube_606614401_606873601_4FGL_J1209.8+1810_daily_bin1417.fits
.....................!
real 190.73
user 185.21
sys 5.16

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/382636/ft1_filtered_4FGL_J1209.8+1810_daily_bin1417.fits scfile=/scratch/kocevski/382636/ft2_4FGL_J1209.8+1810_daily_bin1417.fits outfile=/scratch/kocevski/382636/cmap_606614401_606873601_4FGL_J1209.8+1810_daily_bin1417.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=182.466 yref=18.1776 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/382636/ft1_filtered_4FGL_J1209.8+1810_daily_bin1417.fits scfile=/scratch/kocevski/382636/ft2_4FGL_J1209.8+1810_daily_bin1417.fits outfile=/scratch/kocevski/382636/cmap_HighResolution_606614401_606873601_4FGL_J1209.8+1810_daily_bin1417.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/382636/ft1_filtered_4FGL_J1209.8+1810_daily_bin1417.fits evtable="EVENTS" scfile=/scratch/kocevski/382636/ft2_4FGL_J1209.8+1810_daily_bin1417.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/382636/Model_4FGL_J1209.8+1810_daily_bin1417.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/382636/ft1_filtered_4FGL_J1209.8+1810_daily_bin1417.fits.....................!
real 51.46
user 50.16
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.433       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4792       1.0000         .10000E-03   10000.    
     3 'Prefactor '    48.838       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.622       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18223E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11183E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.4406       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.036       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.0006       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .41722       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.0354       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6530       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8083       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .85974E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    5.7211       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.1920       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.687       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.1901       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .85720       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0701       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=   5501.837     FROM MIGRAD    STATUS=CONVERGED    130 CALLS     2335 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.432        5.2445        .65581E-05    .37256E-02
   2  Prefactor     2.4794        2.0128        .40175E-05   -.23282E-03
   3  Prefactor     48.832        10.571       -.78185E-05    .12650E-01
   4  Prefactor     16.624        8.2946        .12663E-04    .92284E-02
   5  Prefactor     .10000E-03    .67779        .93327E-07** at limit **
   6  Prefactor     .10255E-03    170.20        .54763E-04** at limit **
   7  Prefactor     .10000E-03    23.667       -.57389E-05** at limit **
   8  norm          2.4406        1.1394        .25193E-06   -.84162E-04
   9  Prefactor     11.070        18.342        .22006E-05   -.67630E-03
  10  Prefactor     2.0001        3.2612       -.79300E-06   -.83441E-04
  11  Prefactor     .10318E-03    1351.0       -.22666E-03** at limit **
  12  Prefactor     1.0350        1.6106        .12253E-06    .87970E-05
  13  Prefactor     1.6524        2.1325        .10032E-06   -.11787E-03
  14  Prefactor     1.8082        1.7351        .19237E-06    .19216E-04
  15  Prefactor     .10000E-03    20.255        .23703E-05** at limit **
  16  Prefactor     .10000E-03    3.1152        .32677E-07** at limit **
  17  norm          .85944E-01    .15752        .15768E-06   -.26132E-04
  18  norm          5.7216        4.5785        .47441E-06    .45381E-04
  19  Prefactor     6.1932        7.1814        .29563E-05    .24801E-03
  20  Prefactor     .10000E-03    3.0665       -.43193E-07** at limit **
  21  Prefactor     22.666        7.0550       -.37325E-05    .55240E-02
  22  Prefactor     1.1892        7.3531       -.15426E-05    .21675E-03
  23  Normalizat    .85709        .21812       -.26610E-05   -.33506E-03
  24  Prefactor     1.0703        .21861       -.23261E-05   -.25577E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.4321
  Prefactor  = 2.47938
  Prefactor  = 48.832
  Prefactor  = 16.6235
  Prefactor  = 0.0001
  Prefactor  = 0.000102554
  Prefactor  = 0.000100001
  norm       = 2.44059
  Prefactor  = 11.0702
  Prefactor  = 2.00013
  Prefactor  = 0.000103176
  Prefactor  = 1.03501
  Prefactor  = 1.65243
  Prefactor  = 1.80816
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0859441
  norm       = 5.72158
  Prefactor  = 6.19315
  Prefactor  = 0.0001
  Prefactor  = 22.6662
  Prefactor  = 1.1892
  Normalizat = 0.857089
  Prefactor  = 1.0703
 **********
 **   18 **HESSE 
 **********

 FCN=   5501.837     FROM HESSE     STATUS=OK           463 CALLS     2798 TOTAL
                     EDM=   .37E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.432        12.728        .20687E-02   -1.4739    
   2  Prefactor     2.4794        56.200        .64912E-02   -1.5393    
   3  Prefactor     48.832        21.102        .14345E-02   -1.4309    
   4  Prefactor     16.624        11.316        .24560E-02   -1.4892    
   5  Prefactor     .10000E-03    .66801        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10255E-03    179.12        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    23.004        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.4406        1.1422        .65473E-02   -1.5396    
   9  Prefactor     11.070        23.092        .30150E-02   -1.5042    
  10  Prefactor     2.0001        3.3161        .73202E-02   -1.5425    
  11  Prefactor     .10318E-03    156.93        .17614       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.0350        1.9256        .26395E-01   -1.5504    
  13  Prefactor     1.6524        2.1788        .82082E-02   -1.5451    
  14  Prefactor     1.8082        1.7458        .77682E-02   -1.5439    
  15  Prefactor     .10000E-03    20.248        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.0959        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .85944E-01    .17611        .86302E-02   -1.5649    
  18  norm          5.7216        4.6055        .41982E-02   -1.5230    
  19  Prefactor     6.1932        7.3636        .40332E-02   -1.5210    
  20  Prefactor     .10000E-03    3.0683        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     22.666        26.008        .21024E-02   -1.4755    
  22  Prefactor     1.1892        7.4457        .10441E-01   -1.5490    
  23  Normalizat    .85709        .19824        .44352E-01   -.97985    
  24  Prefactor     1.0703        .19035        .38851E-01   -.90421    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.68591e-07
Minuit parameter uncertainties:
  1  12.7297
  2  23.6332
  3  21.1056
  4  11.3178
  5  2.81677e-06
  6  0.0429104
  7  0.0003431
  8  1.14222
  9  23.1107
  10  3.31642
  11  0.0447687
  12  1.92576
  13  2.17887
  14  1.74582
  15  0.000111271
  16  6.24095e-06
  17  0.176113
  18  4.60582
  19  7.36468
  20  4.67038e-06
  21  26.0213
  22  5.95213
  23  0.198412
  24  0.190475
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.035e+00  1.926e+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.070e+00  1.905e-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:  8.571e-01  1.984e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/382636/likelihoodResults_606614401_606873601_4FGL_J1209.8+1810_daily_bin1417.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) = 5501.79425571
delta logL = 0.0430561712192

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5501.78669682
delta logL = 0.0506150627571

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2506       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0592       1.0000          .0000       10.000    
     3 'Normalizat'    .86232       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0667       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=   5501.787     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      194 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2506        2.0724        .99971E-02   -.10388E-02
   2  Index         2.0591        1.1020        .25459E-01   -.98263E-05
   3  Normalizat    .86233        .18315        .44418E-01    .13795E-04
   4  Prefactor     1.0667        .18919        .39015E-01    .78345E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.25064
  Index      = 2.05913
  Normalizat = 0.862325
  Prefactor  = 1.06674
 **********
 **   18 **HESSE 
 **********

 FCN=   5501.787     FROM HESSE     STATUS=OK            31 CALLS      225 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2506        1.8867        .12345E-03   -1.5484    
   2  Index         2.0591        1.0286        .10184E-02   -.62880    
   3  Normalizat    .86233        .21042        .25904E-03   -.97797    
   4  Prefactor     1.0667        .21747        .24222E-03   -.90537    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.14453e-10
Minuit parameter uncertainties:
  1  1.88683
  2  1.04007
  3  0.210617
  4  0.217647
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/382636': 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) = 5501.78669681
delta logL = 0.0506150667334

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.251e+00  1.887e+00  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  2.059e+00  1.040e+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.067e+00  2.176e-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:  8.623e-01  2.106e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.67
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/382636/cmap_HighResolution_606614401_606873601_4FGL_J1209.8+1810_daily_bin1417.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.01e-03', job_status='DONE', photon_flux_upper_limit='7.77e-08', time_completed='2021-09-05 02:55:29.950279', job_id='382636', GAL2='1.07', fit_tolerance='1e-08', EG2='0.86', EG='0.86', time_epoch_completed='1630835729.95', return_code2='0', ts='0.67', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='5.06e-02', ts2='0.77', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1417' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:55:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 382636: <4FGL_J1209.8+1810_daily_bin1417> in cluster <slac> Done

Job <4FGL_J1209.8+1810_daily_bin1417> 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) <bullet0288>, 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:55:30 2021
Results reported at Sun Sep  5 02:55:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin1417 182.466 18.1776 606614401 606873601 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 :                                   649.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   898 sec.
    Turnaround time :                            900 sec.

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

