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


Performing analysis on: 4FGL_J1209.8+1810_daily_bin1085
RA = 182.466, Dec = 18.1776
tmin = 520560001, tmax = 520819201
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='380506', job_status='RUN', time_executed='2021-09-05 02:36:01.235495', time_epoch_executed='1630834561.24' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='1085'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/380506

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/380506/ft1_4FGL_J1209.8+1810_daily_bin1085.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/380506/ft2_4FGL_J1209.8+1810_daily_bin1085.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/380506/ft1_4FGL_J1209.8+1810_daily_bin1085.fits outfile=/scratch/kocevski/380506/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin1085.fits ra=182.466 dec=18.1776 rad=12.0 tmin=520560001.0 tmax=520819201.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.21
user 4.96
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/380506/ft2_4FGL_J1209.8+1810_daily_bin1085.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/380506/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin1085.fits evtable="EVENTS" outfile="/scratch/kocevski/380506/ft1_filtered_4FGL_J1209.8+1810_daily_bin1085.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.57
user 0.35
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/380506/ft1_filtered_4FGL_J1209.8+1810_daily_bin1085.fits evtable="EVENTS" scfile=/scratch/kocevski/380506/ft2_4FGL_J1209.8+1810_daily_bin1085.fits sctable="SC_DATA" expcube=/scratch/kocevski/380506/ltcube_520560001_520819201_4FGL_J1209.8+1810_daily_bin1085.fits outfile=/scratch/kocevski/380506/expmap_520560001_520819201_4FGL_J1209.8+1810_daily_bin1085.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/380506/ltcube_520560001_520819201_4FGL_J1209.8+1810_daily_bin1085.fits
.....................!
real 189.96
user 185.19
sys 4.40

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/380506/ft1_filtered_4FGL_J1209.8+1810_daily_bin1085.fits scfile=/scratch/kocevski/380506/ft2_4FGL_J1209.8+1810_daily_bin1085.fits outfile=/scratch/kocevski/380506/cmap_520560001_520819201_4FGL_J1209.8+1810_daily_bin1085.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/380506/ft1_filtered_4FGL_J1209.8+1810_daily_bin1085.fits scfile=/scratch/kocevski/380506/ft2_4FGL_J1209.8+1810_daily_bin1085.fits outfile=/scratch/kocevski/380506/cmap_HighResolution_520560001_520819201_4FGL_J1209.8+1810_daily_bin1085.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .75924E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .34684       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.1246       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.3567       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.5880       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.392       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.5268       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.2701       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7652       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.325       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.454       1.0000         .10000E-03   10000.    
    17 'norm      '    .57513       1.0000         .10000E-03   10000.    
    18 'norm      '    4.3081       1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.104       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    26.509       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .76935       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .89192       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=   3871.539     FROM MIGRAD    STATUS=CONVERGED   1020 CALLS     3283 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .31072        114.51        .36122E-02    .15966E-03
   2  Prefactor     .27561        41.245        .10567        .76487E-04
   3  Prefactor     .10000E-03    14.310        .18142E-02** at limit **
   4  Prefactor     6.1263        9.0298        .16223E-03    .80486E-04
   5  Prefactor     4.3587        2.4491        .69349E-04    .13869E-03
   6  Prefactor     .10000E-03    90.114        .18142E-02** at limit **
   7  Prefactor     .10000E-03    3.6716        .11640E-02** at limit **
   8  norm          5.5897        1.9323        .48878E-04    .56753E-04
   9  Prefactor     19.418        22.081        .90954E-04    .38623E-04
  10  Prefactor     .10000E-03    1.9245        .83885E-03** at limit **
  11  Prefactor     6.5497        207.52        .15709E-03    .43423E-06
  12  Prefactor     7.2736        4.1639        .87523E-04    .16120E-03
  13  Prefactor     1.7666        2.6350        .11640E-03    .79258E-04
  14  Prefactor     .10000E-03    .49604        .42757E-03** at limit **
  15  Prefactor     17.340        39.837        .96224E-04   -.11579E-04
  16  Prefactor     11.458        7.3910        .11837E-03    .31838E-04
  17  norm          .57547        .28899        .22485E-04    .97838E-04
  18  norm          4.3115        4.5402        .12996E-03    .53013E-04
  19  Prefactor     22.112        13.457        .85195E-04   -.42702E-05
  20  Prefactor     .10000E-03    5.1700        .13800E-02** at limit **
  21  Prefactor     26.522        25.698        .77806E-04    .15342E-05
  22  Prefactor     .10000E-03    7.4730        .16524E-02** at limit **
  23  Normalizat    .76833        .25040        .25658E-03    .10556E-03
  24  Prefactor     .89218        .23650        .24272E-03    .10438E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.310723
  Prefactor  = 0.275612
  Prefactor  = 0.0001
  Prefactor  = 6.12627
  Prefactor  = 4.35867
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.58975
  Prefactor  = 19.4177
  Prefactor  = 0.0001
  Prefactor  = 6.54972
  Prefactor  = 7.27361
  Prefactor  = 1.76664
  Prefactor  = 0.0001
  Prefactor  = 17.3397
  Prefactor  = 11.4584
  norm       = 0.575469
  norm       = 4.31147
  Prefactor  = 22.1115
  Prefactor  = 0.0001
  Prefactor  = 26.5223
  Prefactor  = 0.0001
  Normalizat = 0.768334
  Prefactor  = 0.892184
 **********
 **   18 **HESSE 
 **********

 FCN=   3871.539     FROM HESSE     STATUS=OK           385 CALLS     3668 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .31072        114.79        .14449E-03   -1.5596    
   2  Prefactor     .27561        38.699        .11043       -1.5603    
   3  Prefactor     .10000E-03    14.312        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.1263        9.0295        .64890E-05   -1.5213    
   5  Prefactor     4.3587        2.4485        .27740E-05   -1.5290    
   6  Prefactor     .10000E-03    90.115        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.6716        .23279E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.5897        1.9318        .19551E-05   -1.5235    
   9  Prefactor     19.418        22.064        .36382E-05   -1.4826    
  10  Prefactor     .10000E-03    1.9246        .16777E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.5497        207.14        .62835E-05   -1.5196    
  12  Prefactor     7.2736        4.1618        .35009E-05   -1.5169    
  13  Prefactor     1.7666        2.6346        .46560E-05   -1.5442    
  14  Prefactor     .10000E-03    .49604        .85515E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     17.340        39.825        .38490E-05   -1.4875    
  16  Prefactor     11.458        7.3900        .47348E-05   -1.5031    
  17  norm          .57547        .28886        .89938E-06   -1.5556    
  18  norm          4.3115        4.5394        .51983E-05   -1.5293    
  19  Prefactor     22.112        13.456        .34078E-05   -1.4767    
  20  Prefactor     .10000E-03    5.1703        .27599E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     26.522        25.693        .31123E-05   -1.4678    
  22  Prefactor     .10000E-03    7.4756        .33047E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .76833        .24951        .10263E-04   -1.0125    
  24  Prefactor     .89218        .23668        .97089E-05   -.96415    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.29443e-10
Minuit parameter uncertainties:
  1  11.9657
  2  6.53487
  3  1.64016e-05
  4  9.03153
  5  2.44855
  6  1.70964e-05
  7  8.09387e-07
  8  1.93186
  9  22.0729
  10  3.15444e-06
  11  73.9486
  12  4.16196
  13  2.63478
  14  3.02709e-07
  15  39.8864
  16  7.39063
  17  0.288859
  18  4.53977
  19  13.4576
  20  3.18259e-06
  21  25.7036
  22  1.24335e-05
  23  0.249881
  24  0.23695
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  7.274e+00  4.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:  8.922e-01  2.369e-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:  7.683e-01  2.499e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.34
Ra Dec: 182.466 18.178
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 9.96e-08 +/- 5.69e-08
Energy Flux (Fixed Index): 3.22e-05 +/- 1.84e-05

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) = 3871.13826125
delta logL = 0.400385263027

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3871.13514506
delta logL = 0.403501455911

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.0055       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9581       1.0000          .0000       10.000    
     3 'Normalizat'    .72163       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92729       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=   3871.135     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      231 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.0055        36.257        .50377E-02    .27019E-03
   2  Index         2.9581        3.1333        .90027E-01    .91351E-04
   3  Normalizat    .72165        .93367E-01    .42579E-01    .13685E-04
   4  Prefactor     .92730        .88761E-01    .45352E-01    .62075E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.00548
  Index      = 2.95813
  Normalizat = 0.721648
  Prefactor  = 0.927301
 **********
 **   18 **HESSE 
 **********

 FCN=   3871.135     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.0055        5.1450        .59015E-04   -1.5308    
   2  Index         2.9581        .79937        .36943E-02   -.42067    
   3  Normalizat    .72165        .24002        .26375E-03   -1.0304    
   4  Prefactor     .92730        .24044        .23867E-03   -.95194    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02136e-09
Minuit parameter uncertainties:
  1  5.14552
  2  0.803518
  3  0.240373
  4  0.240714
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/380506': 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) = 3871.13514497
delta logL = 0.403501544308

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  4.005e+00  5.146e+00  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  2.958e+00  8.035e-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:  9.273e-01  2.407e-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:  7.216e-01  2.404e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.21
Ra Dec: 182.466 18.178
Photon Index (Free Index): 2.96 +/- 0.80
Photon Flux (Free Index): 1.31e-07 +/- 6.93e-08
Energy Flux (Free Index): 2.66e-05 +/- 1.51e-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/380506/cmap_HighResolution_520560001_520819201_4FGL_J1209.8+1810_daily_bin1085.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.96e-08', energy_flux2='2.66e-05', photon_flux_error='5.69e-08', dlogl='4.04e-01', energy_flux='3.22e-05', photon_flux2='1.31e-07', job_status='DONE', time_completed='2021-09-05 02:45:21.911129', photon_index_error2='0.80', photon_index2='2.96', ts='5.34', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.51e-05', EG='0.77', time_epoch_completed='1630835121.91', return_code='0', job_id='380506', GAL2='0.93', EG2='0.72', return_code2='0', energy_flux_error='1.84e-05', photon_flux_error2='6.93e-08', ts2='6.21', photon_index='2.41' WHERE bin_id='1085' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:45:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 380506: <4FGL_J1209.8+1810_daily_bin1085> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin1085 182.466 18.1776 520560001 520819201 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 :                                   555.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             350.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   574 sec.
    Turnaround time :                            576 sec.

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

