/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 6 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 = 7417
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1209.8+1810_daily_bin275
RA = 182.466, Dec = 18.1776
tmin = 310608001, tmax = 310867201
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='375185', job_status='RUN', time_executed='2021-09-05 02:20:35.502877', time_epoch_executed='1630833635.5' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='275'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/375185

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/375185/ft1_4FGL_J1209.8+1810_daily_bin275.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/375185/ft2_4FGL_J1209.8+1810_daily_bin275.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/375185/ft1_4FGL_J1209.8+1810_daily_bin275.fits outfile=/scratch/kocevski/375185/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin275.fits ra=182.466 dec=18.1776 rad=12.0 tmin=310608001.0 tmax=310867201.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 4.09
user 3.24
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/375185/ft1_filtered_4FGL_J1209.8+1810_daily_bin275.fits evtable="EVENTS" scfile=/scratch/kocevski/375185/ft2_4FGL_J1209.8+1810_daily_bin275.fits sctable="SC_DATA" expcube=/scratch/kocevski/375185/ltcube_310608001_310867201_4FGL_J1209.8+1810_daily_bin275.fits outfile=/scratch/kocevski/375185/expmap_310608001_310867201_4FGL_J1209.8+1810_daily_bin275.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/375185/ltcube_310608001_310867201_4FGL_J1209.8+1810_daily_bin275.fits
.....................!
real 191.02
user 185.86
sys 4.46

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/375185/ft1_filtered_4FGL_J1209.8+1810_daily_bin275.fits scfile=/scratch/kocevski/375185/ft2_4FGL_J1209.8+1810_daily_bin275.fits outfile=/scratch/kocevski/375185/cmap_310608001_310867201_4FGL_J1209.8+1810_daily_bin275.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/375185/ft1_filtered_4FGL_J1209.8+1810_daily_bin275.fits scfile=/scratch/kocevski/375185/ft2_4FGL_J1209.8+1810_daily_bin275.fits outfile=/scratch/kocevski/375185/cmap_HighResolution_310608001_310867201_4FGL_J1209.8+1810_daily_bin275.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.8068       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.0742       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.0097       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.6371       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.4284       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    117.88       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8595       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7120       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8765       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.876       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.1945       1.0000         .10000E-03   10000.    
    18 'norm      '    8.8442       1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.308       1.0000         .10000E-03   10000.    
    20 'Prefactor '    30.501       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.5247       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84721       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7816.545     FROM MIGRAD    STATUS=CONVERGED    531 CALLS     2676 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8904        .70686E-07** at limit **
   2  Prefactor     .10000E-03    11.292        .92948E-07** at limit **
   3  Prefactor     6.7967        23.974        .10475E-05    .41759E-05
   4  Prefactor     8.0738        13.076       -.11251E-07   -.59976E-04
   5  Prefactor     2.0102        1.7405       -.17494E-06   -.94114E-03
   6  Prefactor     .10000E-03    49.922       -.22724E-06** at limit **
   7  Prefactor     .10000E-03    5.7157       -.13875E-05** at limit **
   8  norm          6.6373        1.9294       -.50986E-07   -.65434E-03
   9  Prefactor     8.4275        20.140       -.20747E-05   -.22992E-03
  10  Prefactor     .10000E-03    1.7631        .92055E-07** at limit **
  11  Prefactor     117.81        113.77        .32170E-05    .15229E-04
  12  Prefactor     3.8589        4.2176       -.17072E-05   -.96074E-04
  13  Prefactor     1.7126        4.4069        .62944E-05   -.42711E-03
  14  Prefactor     2.8765        2.1361        .75033E-07   -.88080E-04
  15  Prefactor     16.876        20.916       -.57863E-08   -.20591E-04
  16  Prefactor     .10000E-03    1.8391        .53882E-07** at limit **
  17  norm          4.1946        .54789       -.51055E-07   -.18253E-02
  18  norm          8.8442        5.1436        .30102E-07   -.57286E-04
  19  Prefactor     18.313        13.835       -.55158E-07   -.84207E-04
  20  Prefactor     30.501        16.440       -.31886E-07   -.31489E-04
  21  Prefactor     .10000E-03    14.528       -.93728E-07** at limit **
  22  Prefactor     .10000E-03    2.3753        .99806E-07** at limit **
  23  Normalizat    1.5247        .21775        .18624E-05    .14963E-03
  24  Prefactor     .84731        .19660       -.33623E-05   -.21997E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.79672
  Prefactor  = 8.07378
  Prefactor  = 2.01019
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 6.63731
  Prefactor  = 8.42747
  Prefactor  = 0.0001
  Prefactor  = 117.814
  Prefactor  = 3.8589
  Prefactor  = 1.71259
  Prefactor  = 2.87647
  Prefactor  = 16.8763
  Prefactor  = 0.0001
  norm       = 4.19458
  norm       = 8.84419
  Prefactor  = 18.3126
  Prefactor  = 30.5006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.52467
  Prefactor  = 0.847307
 **********
 **   18 **HESSE 
 **********

 FCN=   7816.545     FROM HESSE     STATUS=OK           395 CALLS     3071 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.8928        .14680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.298        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.7967        23.965        .15379E-03   -1.5186    
   4  Prefactor     8.0738        13.111        .14110E-03   -1.5140    
   5  Prefactor     2.0102        1.7401        .10309E-03   -1.5424    
   6  Prefactor     .10000E-03    49.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.8462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.6373        1.9307        .63327E-04   -1.5193    
   9  Prefactor     8.4275        20.204        .13808E-03   -1.5127    
  10  Prefactor     .10000E-03    1.7689        .11459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     117.81        113.85        .18531E-03   -1.3533    
  12  Prefactor     3.8589        4.2252        .16208E-03   -1.5315    
  13  Prefactor     1.7126        4.4807        .12872E-02   -1.5446    
  14  Prefactor     2.8765        2.1340        .53657E-03   -1.5369    
  15  Prefactor     16.876        20.917        .97495E-04   -1.4886    
  16  Prefactor     .10000E-03    1.8426        .11708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.1946        .55185        .22134E-04   -1.5298    
  18  norm          8.8442        5.1430        .13478E-03   -1.5113    
  19  Prefactor     18.313        13.840        .93605E-04   -1.4852    
  20  Prefactor     30.501        16.445        .72548E-04   -1.4603    
  21  Prefactor     .10000E-03    14.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    2.3788        .13308E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.5247        .26362        .29050E-03   -.77088    
  24  Prefactor     .84731        .23253        .35166E-03   -.98007    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0843e-09
Minuit parameter uncertainties:
  1  9.15114e-06
  2  2.44555e-05
  3  23.9988
  4  13.1161
  5  1.74014
  6  0.000114251
  7  0.000262545
  8  1.9307
  9  20.2206
  10  9.31086e-06
  11  114.059
  12  4.22556
  13  4.4816
  14  2.13409
  15  20.9262
  16  5.7016e-06
  17  0.551851
  18  5.1433
  19  13.842
  20  16.4474
  21  2.97221e-05
  22  1.18232e-05
  23  0.263863
  24  0.232806
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  3.859e+00  4.226e+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.473e-01  2.328e-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.525e+00  2.639e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.64
Ra Dec: 182.466 18.178
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 5.28e-08 +/- 5.78e-08
Energy Flux (Fixed Index): 1.71e-05 +/- 1.87e-05

TS (Fixed Index): 1.64
Ra Dec: 182.466 18.178
Photon Flux Upper Limit: 1.66e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.28e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/375185/likelihoodResults_310608001_310867201_4FGL_J1209.8+1810_daily_bin275.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) = 7814.97219519
delta logL = 1.57235259564

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7814.93406255
delta logL = 1.6104852338

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16686       1.0000         .10000E-03   10000.    
     2 'Index     '    4.9611       1.0000          .0000       10.000    
     3 'Normalizat'    1.3415       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97532       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=   7814.934     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      282 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16693        .93775        .38013E-02    .10810E-01
   2  Index         4.9613        2.0843        .96951E-01    .35667E-03
   3  Normalizat    1.3420        .60857E-01    .68961E-01    .38529E-05
   4  Prefactor     .97505        .57130E-01    .74683E-01   -.15424E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.166926
  Index      = 4.96135
  Normalizat = 1.34199
  Prefactor  = 0.975046
 **********
 **   18 **HESSE 
 **********

 FCN=   7814.934     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      315 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16693        1.9158        .17051E-04   -1.5626    
   2  Index         4.9613        3.2668        .37840E-02   -.77304E-02
   3  Normalizat    1.3420        .22992        .30510E-03   -.82321    
   4  Prefactor     .97505        .21276        .33045E-03   -.93566    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.14783e-08
Minuit parameter uncertainties:
  1  1.13071
  2  3.56006
  3  0.230096
  4  0.212942
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/375185': 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) = 7814.93405722
delta logL = 1.61049056926

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.669e-01  1.131e+00  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  4.961e+00  3.560e+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:  9.750e-01  2.129e-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.342e+00  2.301e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.37
Ra Dec: 182.466 18.178
Photon Index (Free Index): 4.96 +/- 3.56
Photon Flux (Free Index): 2.14e-07 +/- 1.09e-07
Energy Flux (Free Index): 2.86e-05 +/- 1.51e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/375185/cmap_HighResolution_310608001_310867201_4FGL_J1209.8+1810_daily_bin275.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.28e-02', comment='SUCCESS', photon_flux='5.28e-08', energy_flux2='2.86e-05', photon_flux_error='5.78e-08', dlogl='1.61e+00', energy_flux='1.71e-05', photon_flux2='2.14e-07', job_status='DONE', time_completed='2021-09-05 02:34:26.102694', photon_index_error2='3.56', photon_index2='4.96', ts='1.64', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.66e-07', energy_flux_error2='1.51e-05', EG='1.52', time_epoch_completed='1630834466.1', return_code='0', job_id='375185', GAL2='0.98', EG2='1.34', return_code2='102', energy_flux_error='1.87e-05', photon_flux_error2='1.09e-07', ts2='5.37', photon_index='2.41' WHERE bin_id='275' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:34:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0043>
Subject: Job 375185: <4FGL_J1209.8+1810_daily_bin275> in cluster <slac> Done

Job <4FGL_J1209.8+1810_daily_bin275> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 02:20:20 2021
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 02:20:21 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:20:21 2021
Terminated at Sun Sep  5 02:34:26 2021
Results reported at Sun Sep  5 02:34:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin275 182.466 18.1776 310608001 310867201 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 :                                   823.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             367.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            846 sec.

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

