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


Performing analysis on: 4FGL_J1209.8+1810_daily_bin1130
RA = 182.466, Dec = 18.1776
tmin = 532224001, tmax = 532483201
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='380580', job_status='RUN', time_executed='2021-09-05 02:36:10.725810', time_epoch_executed='1630834570.73' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='1130'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/380580

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/380580/ft1_4FGL_J1209.8+1810_daily_bin1130.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/380580/ft2_4FGL_J1209.8+1810_daily_bin1130.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/380580/ft1_4FGL_J1209.8+1810_daily_bin1130.fits outfile=/scratch/kocevski/380580/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin1130.fits ra=182.466 dec=18.1776 rad=12.0 tmin=532224001.0 tmax=532483201.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.25
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/380580/ft2_4FGL_J1209.8+1810_daily_bin1130.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/380580/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin1130.fits evtable="EVENTS" outfile="/scratch/kocevski/380580/ft1_filtered_4FGL_J1209.8+1810_daily_bin1130.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.62
user 0.34
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/380580/ft1_filtered_4FGL_J1209.8+1810_daily_bin1130.fits evtable="EVENTS" scfile=/scratch/kocevski/380580/ft2_4FGL_J1209.8+1810_daily_bin1130.fits sctable="SC_DATA" expcube=/scratch/kocevski/380580/ltcube_532224001_532483201_4FGL_J1209.8+1810_daily_bin1130.fits outfile=/scratch/kocevski/380580/expmap_532224001_532483201_4FGL_J1209.8+1810_daily_bin1130.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/380580/ltcube_532224001_532483201_4FGL_J1209.8+1810_daily_bin1130.fits
.....................!
real 192.20
user 186.92
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/380580/ft1_filtered_4FGL_J1209.8+1810_daily_bin1130.fits scfile=/scratch/kocevski/380580/ft2_4FGL_J1209.8+1810_daily_bin1130.fits outfile=/scratch/kocevski/380580/cmap_532224001_532483201_4FGL_J1209.8+1810_daily_bin1130.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/380580/ft1_filtered_4FGL_J1209.8+1810_daily_bin1130.fits scfile=/scratch/kocevski/380580/ft2_4FGL_J1209.8+1810_daily_bin1130.fits outfile=/scratch/kocevski/380580/cmap_HighResolution_532224001_532483201_4FGL_J1209.8+1810_daily_bin1130.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.018       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.908       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .74998       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    44.855       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.2449       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0924       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .68894       1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.0638       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.457       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10426E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .25257       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.4300       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    30.164       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2303       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .74986       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=   8308.330     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2736 TOTAL
                     EDM=   .22E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.019        11.343       -.22862E-07    .62649E-06
   2  Prefactor     .10000E-03    8.9020       -.31722E-06** at limit **
   3  Prefactor     .10000E-03    21.425       -.65690E-06** at limit **
   4  Prefactor     11.908        7.8918       -.12039E-07    .66919E-06
   5  Prefactor     .75063        1.9484        .21729E-06   -.12490E-03
   6  Prefactor     .10000E-03    411.91        .51401E-05** at limit **
   7  Prefactor     .10000E-03    1.9572       -.12144E-07** at limit **
   8  norm          44.855        3.8289        .42398E-09    .21427E-04
   9  Prefactor     6.2443        7.6017       -.18579E-07    .41581E-07
  10  Prefactor     .10000E-03    2.0080       -.45018E-07** at limit **
  11  Prefactor     .10000E-03    22.932        .69501E-06** at limit **
  12  Prefactor     2.0921        2.5318        .84828E-07    .45561E-04
  13  Prefactor     .68839        2.9147        .17678E-06   -.47380E-04
  14  Prefactor     6.0638        2.6518       -.43145E-08    .61026E-04
  15  Prefactor     11.446        20.937       -.36408E-05   -.17897E-04
  16  Prefactor     .10000E-03    2.9133       -.35286E-06** at limit **
  17  norm          .25259        .21234       -.44748E-08    .10052E-03
  18  norm          .10000E-03    1.0800       -.12098E-07** at limit **
  19  Prefactor     4.4272        13.352        .20099E-05    .29840E-05
  20  Prefactor     .10000E-03    9.6797        .13242E-06** at limit **
  21  Prefactor     30.170        31.886       -.32225E-06    .10981E-04
  22  Prefactor     .10000E-03    6.8187       -.10607E-06** at limit **
  23  Normalizat    1.2302        .17452        .35692E-06    .34765E-04
  24  Prefactor     .74991        .15921       -.27762E-06    .36798E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.0187
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.9083
  Prefactor  = 0.75063
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 44.8552
  Prefactor  = 6.24426
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.09205
  Prefactor  = 0.68839
  Prefactor  = 6.06383
  Prefactor  = 11.4459
  Prefactor  = 0.000100001
  norm       = 0.252595
  norm       = 0.0001
  Prefactor  = 4.42718
  Prefactor  = 0.0001
  Prefactor  = 30.17
  Prefactor  = 0.0001
  Normalizat = 1.23024
  Prefactor  = 0.749913
 **********
 **   18 **HESSE 
 **********

 FCN=   8308.330     FROM HESSE     STATUS=OK           407 CALLS     3143 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.019        11.355        .94355E-04   -1.4859    
   2  Prefactor     .10000E-03    8.9116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    21.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.908        7.8959        .11609E-03   -1.5018    
   5  Prefactor     .75063        2.3474        .18631E-02   -1.5535    
   6  Prefactor     .10000E-03    412.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.9582        .12454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          44.855        3.8210        .50254E-04   -1.4367    
   9  Prefactor     6.2443        7.6006        .16064E-03   -1.5208    
  10  Prefactor     .10000E-03    2.0456        .12601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.938        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.0921        2.4336        .14083E-03   -1.5419    
  13  Prefactor     .68839        2.7376        .27035E-03   -1.5542    
  14  Prefactor     6.0638        2.6468        .94593E-04   -1.5215    
  15  Prefactor     11.446        20.995        .11836E-03   -1.5031    
  16  Prefactor     .10000E-03    8.1759        .29654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .25259        .20425        .36107E-03   -1.5607    
  18  norm          .10000E-03    1.0817        .92484E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.4272        13.424        .95664E-03   -1.5287    
  20  Prefactor     .10000E-03    9.7742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     30.170        32.002        .72951E-04   -1.4609    
  22  Prefactor     .10000E-03    6.9107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.2302        .20696        .26341E-03   -.85674    
  24  Prefactor     .74991        .18832        .31247E-03   -1.0160    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0144e-08
Minuit parameter uncertainties:
  1  11.3564
  2  3.11742e-06
  3  2.49203e-05
  4  7.89662
  5  2.34767
  6  2.92941e-05
  7  3.59023e-07
  8  3.82103
  9  7.60177
  10  3.18132e-06
  11  3.51229e-06
  12  2.4337
  13  2.73805
  14  2.64682
  15  21.0082
  16  0.000132028
  17  0.204248
  18  2.37019e-08
  19  13.4328
  20  1.80305e-06
  21  32.0198
  22  4.94859e-06
  23  0.207103
  24  0.188484
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  2.092e+00  2.434e+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:  7.499e-01  1.885e-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.230e+00  2.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.15
Ra Dec: 182.466 18.178
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 2.86e-08 +/- 3.33e-08
Energy Flux (Fixed Index): 9.25e-06 +/- 1.08e-05

TS (Fixed Index): 1.15
Ra Dec: 182.466 18.178
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/380580/likelihoodResults_532224001_532483201_4FGL_J1209.8+1810_daily_bin1130.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) = 8308.25310101
delta logL = 0.0773418035678

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8308.25095297
delta logL = 0.0794898459826

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6030       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8029       1.0000          .0000       10.000    
     3 'Normalizat'    1.2154       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75898       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=   8308.251     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      240 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5985        29.329        .83694E-02    .87386E-03
   2  Index         2.8044        3.2731        .22599        .83123E-04
   3  Normalizat    1.2154        .43186E-01    .59870E-01    .13328E-05
   4  Prefactor     .75892        .38883E-01    .70231E-01    .16871E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.59854
  Index      = 2.80443
  Normalizat = 1.21542
  Prefactor  = 0.758916
 **********
 **   18 **HESSE 
 **********

 FCN=   8308.251     FROM HESSE     STATUS=OK            33 CALLS      273 TOTAL
                     EDM=   .95E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5985        2.6764        .11275E-03   -1.5455    
   2  Index         2.8044        1.1639        .84837E-02   -.45461    
   3  Normalizat    1.2154        .20176        .26478E-03   -.86128    
   4  Prefactor     .75892        .18873        .31078E-03   -1.0126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.54685e-12
Minuit parameter uncertainties:
  1  2.67661
  2  1.17735
  3  0.201891
  4  0.188889
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/380580': 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) = 8308.25095103
delta logL = 0.0794917836374

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.599e+00  2.677e+00  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  2.804e+00  1.177e+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:  7.589e-01  1.889e-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.215e+00  2.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.30
Ra Dec: 182.466 18.178
Photon Index (Free Index): 2.80 +/- 1.18
Photon Flux (Free Index): 4.04e-08 +/- 4.79e-08
Energy Flux (Free Index): 9.02e-06 +/- 9.41e-06

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/380580/cmap_HighResolution_532224001_532483201_4FGL_J1209.8+1810_daily_bin1130.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.91e-03', comment='SUCCESS', photon_flux='2.86e-08', energy_flux2='9.02e-06', photon_flux_error='3.33e-08', dlogl='7.95e-02', energy_flux='9.25e-06', photon_flux2='4.04e-08', job_status='DONE', time_completed='2021-09-05 02:50:33.688030', photon_index_error2='1.18', photon_index2='2.80', ts='1.15', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='9.41e-06', EG='1.23', time_epoch_completed='1630835433.69', return_code='0', job_id='380580', GAL2='0.76', EG2='1.22', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='4.79e-08', ts2='1.30', photon_index='2.41' WHERE bin_id='1130' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:50:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 380580: <4FGL_J1209.8+1810_daily_bin1130> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin1130 182.466 18.1776 532224001 532483201 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 :                                   857.11 sec.
    Max Memory :                                 1176 MB
    Average Memory :                             347.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            882 sec.

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

