/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 125 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_bin1048
RA = 182.466, Dec = 18.1776
tmin = 510969601, tmax = 511228801
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='380444', job_status='RUN', time_executed='2021-09-05 02:38:00.573059', time_epoch_executed='1630834680.57' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='1048'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/380444

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/380444/ft1_4FGL_J1209.8+1810_daily_bin1048.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/380444/ft2_4FGL_J1209.8+1810_daily_bin1048.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/380444/ft1_4FGL_J1209.8+1810_daily_bin1048.fits outfile=/scratch/kocevski/380444/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin1048.fits ra=182.466 dec=18.1776 rad=12.0 tmin=510969601.0 tmax=511228801.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.49
user 3.24
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/380444/ft1_filtered_4FGL_J1209.8+1810_daily_bin1048.fits evtable="EVENTS" scfile=/scratch/kocevski/380444/ft2_4FGL_J1209.8+1810_daily_bin1048.fits sctable="SC_DATA" expcube=/scratch/kocevski/380444/ltcube_510969601_511228801_4FGL_J1209.8+1810_daily_bin1048.fits outfile=/scratch/kocevski/380444/expmap_510969601_511228801_4FGL_J1209.8+1810_daily_bin1048.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/380444/ltcube_510969601_511228801_4FGL_J1209.8+1810_daily_bin1048.fits
.....................!
real 190.65
user 185.25
sys 4.86

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/380444/ft1_filtered_4FGL_J1209.8+1810_daily_bin1048.fits scfile=/scratch/kocevski/380444/ft2_4FGL_J1209.8+1810_daily_bin1048.fits outfile=/scratch/kocevski/380444/cmap_510969601_511228801_4FGL_J1209.8+1810_daily_bin1048.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/380444/ft1_filtered_4FGL_J1209.8+1810_daily_bin1048.fits scfile=/scratch/kocevski/380444/ft2_4FGL_J1209.8+1810_daily_bin1048.fits outfile=/scratch/kocevski/380444/cmap_HighResolution_510969601_511228801_4FGL_J1209.8+1810_daily_bin1048.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/380444/ft1_filtered_4FGL_J1209.8+1810_daily_bin1048.fits evtable="EVENTS" scfile=/scratch/kocevski/380444/ft2_4FGL_J1209.8+1810_daily_bin1048.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/380444/Model_4FGL_J1209.8+1810_daily_bin1048.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/380444/ft1_filtered_4FGL_J1209.8+1810_daily_bin1048.fits.....................!
real 52.67
user 51.14
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.848       1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.608       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.110       1.0000         .10000E-03   10000.    
     8 'norm      '    5.6037       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.969       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.8041       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.1272       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.0139       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.1421       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.9240       1.0000         .10000E-03   10000.    
    17 'norm      '    .26095       1.0000         .10000E-03   10000.    
    18 'norm      '    9.8238       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.589       1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.293       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .80426       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.2548       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=   5801.828     FROM MIGRAD    STATUS=CONVERGED    535 CALLS     2725 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.209        .90712E-02** at limit **
   2  Prefactor     28.848        37.056        .18648E-02   -.20699E-03
   3  Prefactor     21.612        16.148        .21541E-02    .21051E-02
   4  Prefactor     .10000E-03    8.0437        .90712E-02** at limit **
   5  Prefactor     .10000E-03    .93228        .28165E-01** at limit **
   6  Prefactor     .10000E-03    95.754        .90712E-02** at limit **
   7  Prefactor     16.110        12.706        .24946E-02   -.13103E-02
   8  norm          5.6037        1.7948        .42427E-02    .87931E-04
   9  Prefactor     .10000E-03    8.0423        .90712E-02** at limit **
  10  Prefactor     .10000E-03    4.5673        .90712E-02** at limit **
  11  Prefactor     19.969        118.87        .22407E-02   -.50787E-05
  12  Prefactor     5.8060        4.4813        .41677E-02   -.37049E-03
  13  Prefactor     2.1271        4.3218        .70679E-02    .12200E-02
  14  Prefactor     3.0140        2.5168        .58445E-02    .14975E-03
  15  Prefactor     5.1414        24.930        .44323E-02    .36143E-04
  16  Prefactor     3.9243        6.0614        .50915E-02    .21315E-02
  17  norm          .26096        .19177        .61006E-02    .16235E-03
  18  norm          9.8242        5.4099        .31962E-02    .40716E-02
  19  Prefactor     13.589        9.3923        .27164E-02   -.34030E-04
  20  Prefactor     16.293        12.518        .24806E-02   -.25297E-03
  21  Prefactor     .10000E-03    7.6517        .90712E-02** at limit **
  22  Prefactor     .10000E-03    1.8604        .90712E-02** at limit **
  23  Normalizat    .80419        .20177        .65375E-01    .26127E-04
  24  Prefactor     1.2549        .19635        .55676E-01    .71746E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 28.8484
  Prefactor  = 21.6121
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 16.1096
  norm       = 5.60374
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.969
  Prefactor  = 5.806
  Prefactor  = 2.12713
  Prefactor  = 3.01395
  Prefactor  = 5.14143
  Prefactor  = 3.9243
  norm       = 0.260964
  norm       = 9.8242
  Prefactor  = 13.5891
  Prefactor  = 16.2933
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.804192
  Prefactor  = 1.25488
 **********
 **   18 **HESSE 
 **********

 FCN=   5801.828     FROM HESSE     STATUS=OK           399 CALLS     3124 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.498        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     28.848        37.151        .74592E-04   -1.4633    
   3  Prefactor     21.612        16.069        .86166E-04   -1.4778    
   4  Prefactor     .10000E-03    8.1554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.5503        .14114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    95.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.110        12.696        .99785E-04   -1.4905    
   8  norm          5.6037        1.7948        .55512E-04   -1.5234    
   9  Prefactor     .10000E-03    8.0577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.7327        .31658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     19.969        118.48        .89630E-04   -1.4814    
  12  Prefactor     5.8060        4.3687        .11054E-03   -1.5226    
  13  Prefactor     2.1271        4.1967        .17688E-03   -1.5416    
  14  Prefactor     3.0140        2.5084        .10430E-03   -1.5361    
  15  Prefactor     5.1414        25.028        .17729E-03   -1.5254    
  16  Prefactor     3.9243        6.0318        .20366E-03   -1.5312    
  17  norm          .26096        .18965        .27150E-04   -1.5606    
  18  norm          9.8242        5.3988        .12011E-03   -1.5081    
  19  Prefactor     13.589        9.3920        .10866E-03   -1.4971    
  20  Prefactor     16.293        12.505        .99223E-04   -1.4900    
  21  Prefactor     .10000E-03    7.6589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.8633        .10146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .80419        .24182        .28921E-03   -.99913    
  24  Prefactor     1.2549        .23679        .24618E-03   -.84659    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36177e-08
Minuit parameter uncertainties:
  1  4.37064e-05
  2  37.181
  3  16.0721
  4  0.000259125
  5  3.45648e-06
  6  0.000815833
  7  12.6986
  8  1.79479
  9  2.12831e-05
  10  1.17611e-05
  11  97.5732
  12  4.36894
  13  4.1973
  14  2.50848
  15  22.7023
  16  6.03271
  17  0.189653
  18  5.39909
  19  9.39298
  20  12.5074
  21  0.000179108
  22  6.85293e-06
  23  0.242149
  24  0.236997
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  5.806e+00  4.369e+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.255e+00  2.370e-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.042e-01  2.421e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.31
Ra Dec: 182.466 18.178
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 7.95e-08 +/- 5.98e-08
Energy Flux (Fixed Index): 2.57e-05 +/- 1.93e-05

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

Saving results to:
/scratch/kocevski/380444/likelihoodResults_510969601_511228801_4FGL_J1209.8+1810_daily_bin1048.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) = 5798.8864887
delta logL = 2.94130806731

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5798.82818759
delta logL = 2.99960917458

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44337       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3628       1.0000          .0000       10.000    
     3 'Normalizat'    .63873       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3794       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=   5798.828     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      270 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44289        2.1758        .41973E-02    .51478E-03
   2  Index         4.3634        2.1425        .67020E-01    .15013E-03
   3  Normalizat    .63877        .71939E-01    .72425E-01    .21119E-04
   4  Prefactor     1.3793        .73870E-01    .53428E-01   -.80222E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.442885
  Index      = 4.36342
  Normalizat = 0.638774
  Prefactor  = 1.37935
 **********
 **   18 **HESSE 
 **********

 FCN=   5798.828     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      301 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44289        3.1508        .18712E-04   -1.5575    
   2  Index         4.3634        2.6797        .28301E-02   -.12766    
   3  Normalizat    .63877        .22531        .32058E-03   -1.0636    
   4  Prefactor     1.3793        .23265        .23621E-03   -.80977    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.46525e-07
Minuit parameter uncertainties:
  1  2.36249
  2  2.83099
  3  0.225639
  4  0.232826
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/380444': 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) = 5798.82818727
delta logL = 2.99960950008

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  4.429e-01  2.362e+00  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  4.363e+00  2.831e+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.379e+00  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:  6.388e-01  2.256e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.23
Ra Dec: 182.466 18.178
Photon Index (Free Index): 4.36 +/- 2.83
Photon Flux (Free Index): 1.81e-07 +/- 7.15e-08
Energy Flux (Free Index): 2.57e-05 +/- 1.34e-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/380444/cmap_HighResolution_510969601_511228801_4FGL_J1209.8+1810_daily_bin1048.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.38e-02', comment='SUCCESS', photon_flux='7.95e-08', energy_flux2='2.57e-05', photon_flux_error='5.98e-08', dlogl='3.00e+00', energy_flux='2.57e-05', photon_flux2='1.81e-07', job_status='DONE', time_completed='2021-09-05 02:49:39.165020', photon_index_error2='2.83', photon_index2='4.36', ts='3.31', fit_tolerance='1e-08', GAL='1.25', photon_index_error='0.00', photon_flux_upper_limit='1.78e-07', energy_flux_error2='1.34e-05', EG='0.80', time_epoch_completed='1630835379.17', return_code='0', job_id='380444', GAL2='1.38', EG2='0.64', return_code2='102', energy_flux_error='1.93e-05', photon_flux_error2='7.15e-08', ts2='10.23', photon_index='2.41' WHERE bin_id='1048' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:49:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 380444: <4FGL_J1209.8+1810_daily_bin1048> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin1048 182.466 18.1776 510969601 511228801 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 :                                   690.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   836 sec.
    Turnaround time :                            838 sec.

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

