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


Performing analysis on: 4FGL_J1209.8+1810_daily_bin588
RA = 182.466, Dec = 18.1776
tmin = 391737601, tmax = 391996801
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='376875', job_status='RUN', time_executed='2021-09-05 02:25:38.048202', time_epoch_executed='1630833938.05' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='588'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/376875

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/376875/ft1_4FGL_J1209.8+1810_daily_bin588.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/376875/ft2_4FGL_J1209.8+1810_daily_bin588.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/376875/ft1_4FGL_J1209.8+1810_daily_bin588.fits outfile=/scratch/kocevski/376875/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin588.fits ra=182.466 dec=18.1776 rad=12.0 tmin=391737601.0 tmax=391996801.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.35
user 3.06
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/376875/ft2_4FGL_J1209.8+1810_daily_bin588.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/376875/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin588.fits evtable="EVENTS" outfile="/scratch/kocevski/376875/ft1_filtered_4FGL_J1209.8+1810_daily_bin588.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.31
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/376875/ft1_filtered_4FGL_J1209.8+1810_daily_bin588.fits evtable="EVENTS" scfile=/scratch/kocevski/376875/ft2_4FGL_J1209.8+1810_daily_bin588.fits sctable="SC_DATA" expcube=/scratch/kocevski/376875/ltcube_391737601_391996801_4FGL_J1209.8+1810_daily_bin588.fits outfile=/scratch/kocevski/376875/expmap_391737601_391996801_4FGL_J1209.8+1810_daily_bin588.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/376875/ltcube_391737601_391996801_4FGL_J1209.8+1810_daily_bin588.fits
.....................!
real 189.19
user 184.66
sys 4.14

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/376875/ft1_filtered_4FGL_J1209.8+1810_daily_bin588.fits scfile=/scratch/kocevski/376875/ft2_4FGL_J1209.8+1810_daily_bin588.fits outfile=/scratch/kocevski/376875/cmap_391737601_391996801_4FGL_J1209.8+1810_daily_bin588.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/376875/ft1_filtered_4FGL_J1209.8+1810_daily_bin588.fits scfile=/scratch/kocevski/376875/ft2_4FGL_J1209.8+1810_daily_bin588.fits outfile=/scratch/kocevski/376875/cmap_HighResolution_391737601_391996801_4FGL_J1209.8+1810_daily_bin588.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.56
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5473       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    35.716       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.736       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10355E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.570       1.0000         .10000E-03   10000.    
     8 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.317       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11937E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9482       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.6481       1.0000         .10000E-03   10000.    
    17 'norm      '    1.4443       1.0000         .10000E-03   10000.    
    18 'norm      '    5.5773       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.723       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.9038       1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.545       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0898       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .80564       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=   6119.730     FROM MIGRAD    STATUS=CONVERGED    542 CALLS     2745 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5420        12.254       -.18473E-05   -.96876E-04
   2  Prefactor     .10000E-03    18.507       -.25760E-06** at limit **
   3  Prefactor     35.706        19.847       -.24403E-05    .61198E-04
   4  Prefactor     14.734        10.658       -.63974E-06    .26076E-04
   5  Prefactor     .10000E-03    .86711       -.13312E-06** at limit **
   6  Prefactor     .10000E-03    29.003       -.49465E-08** at limit **
   7  Prefactor     14.569        10.597       -.34816E-06   -.18574E-04
   8  norm          .10000E-03    .44165       -.53382E-07** at limit **
   9  Prefactor     20.314        18.096       -.10142E-05    .77546E-06
  10  Prefactor     .10000E-03    1.2937        .13225E-06** at limit **
  11  Prefactor     .10000E-03    62.683        .62348E-05** at limit **
  12  Prefactor     .10000E-03    2.0801       -.45705E-06** at limit **
  13  Prefactor     4.9493        3.4381        .24708E-06    .34807E-03
  14  Prefactor     .10000E-03    .66074       -.55962E-07** at limit **
  15  Prefactor     .10000E-03    15.802        .10142E-05** at limit **
  16  Prefactor     4.6481        4.2746        .11050E-05    .47686E-04
  17  norm          1.4442        .33077       -.64341E-07    .11944E-02
  18  norm          5.5768        3.9388        .13931E-05   -.62484E-05
  19  Prefactor     16.730        13.625        .10176E-04    .60034E-04
  20  Prefactor     2.9032        5.4733       -.45904E-05   -.28638E-03
  21  Prefactor     23.510        32.153       -.36572E-04    .12750E-05
  22  Prefactor     .10000E-03    2.0499        .83838E-07** at limit **
  23  Normalizat    1.0903        .18593        .44497E-05   -.72655E-04
  24  Prefactor     .80530        .17245       -.66948E-06    .21781E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.54201
  Prefactor  = 0.0001
  Prefactor  = 35.7056
  Prefactor  = 14.7342
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.5694
  norm       = 0.0001
  Prefactor  = 20.3144
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.94929
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.64808
  norm       = 1.4442
  norm       = 5.57676
  Prefactor  = 16.73
  Prefactor  = 2.90316
  Prefactor  = 23.5096
  Prefactor  = 0.0001
  Normalizat = 1.09027
  Prefactor  = 0.805299
 **********
 **   18 **HESSE 
 **********

 FCN=   6119.730     FROM HESSE     STATUS=OK           403 CALLS     3148 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5420        12.287        .18878E-03   -1.5282    
   2  Prefactor     .10000E-03    18.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     35.706        19.954        .67058E-04   -1.4512    
   4  Prefactor     14.734        10.667        .10434E-03   -1.4940    
   5  Prefactor     .10000E-03    .88734        .14180E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    29.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.569        10.595        .10493E-03   -1.4944    
   8  norm          .10000E-03    .45441        .10141E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.314        18.120        .88860E-04   -1.4806    
  10  Prefactor     .10000E-03    1.3077        .86839E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    62.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.2085        .20285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.9493        3.2142        .10727E-03   -1.5263    
  14  Prefactor     .10000E-03    .67125        .62081E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.6481        4.2750        .14922E-03   -1.5277    
  17  norm          1.4442        .33177        .20268E-04   -1.5468    
  18  norm          5.5768        3.9382        .12508E-03   -1.5236    
  19  Prefactor     16.730        13.611        .97940E-04   -1.4890    
  20  Prefactor     2.9032        5.4739        .23845E-03   -1.5367    
  21  Prefactor     23.510        32.130        .82550E-04   -1.4738    
  22  Prefactor     .10000E-03    2.0520        .10938E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0903        .21660        .24379E-03   -.90065    
  24  Prefactor     .80530        .19937        .27597E-03   -.99533    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.00216e-10
Minuit parameter uncertainties:
  1  12.2941
  2  3.76625e-05
  3  19.9575
  4  10.6679
  5  2.0553e-06
  6  2.74252e-06
  7  10.5964
  8  1.11542e-06
  9  18.1247
  10  4.18815e-06
  11  2.33911e-05
  12  2.1004e-05
  13  3.21432
  14  2.3428e-06
  15  1.39695e-05
  16  4.27524
  17  0.331772
  18  3.93838
  19  13.6132
  20  5.4748
  21  32.154
  22  3.20308e-06
  23  0.216779
  24  0.199545
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  2.100e-05  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.053e-01  1.995e-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.090e+00  2.168e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/376875/likelihoodResults_391737601_391996801_4FGL_J1209.8+1810_daily_bin588.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): 102
logL (Free Index) = 6119.73137327
delta logL = -0.00113376562058

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6119.73023559
delta logL = 3.91741832573e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16309E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5237       1.0000          .0000       10.000    
     3 'Normalizat'    1.0900       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80552       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=   6118.826     FROM MIGRAD    STATUS=CONVERGED    133 CALLS      308 TOTAL
                     EDM=   .87E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .13263E-01    .16025        .16712E-02    .11067E-01
   2  Index         5.6332        2.5142        .14434        .18210E-03
   3  Normalizat    1.0215        .38536E-01    .56580E-01    .29140E-04
   4  Prefactor     .84710        .38305E-01    .43789E-01    .36296E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0132631
  Index      = 5.63317
  Normalizat = 1.0215
  Prefactor  = 0.847095
 **********
 **   18 **HESSE 
 **********

 FCN=   6118.826     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      343 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .13263E-01    .48469        .75909E-04   -1.5685    
   2  Index         5.6332        7.5433        .50398E-02    .12697    
   3  Normalizat    1.0215        .15325        .25021E-03   -.92314    
   4  Prefactor     .84710        .15058        .26961E-03   -.98015    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.96897e-10
Minuit parameter uncertainties:
  1  0.159751
  2  6.07994
  3  0.153317
  4  0.150651
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/376875': 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) = 6118.82587963
delta logL = 0.904359876977

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.326e-02  1.598e-01  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  5.633e+00  6.080e+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:  8.471e-01  1.507e-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.021e+00  1.533e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.89
Ra Dec: 182.466 18.178
Photon Index (Free Index): 5.63 +/- 6.08
Photon Flux (Free Index): 6.32e-08 +/- 5.05e-08
Energy Flux (Free Index): 8.03e-06 +/- 7.25e-06

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/376875/cmap_HighResolution_391737601_391996801_4FGL_J1209.8+1810_daily_bin588.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.93e-03', comment='SUCCESS', energy_flux2='8.03e-06', dlogl='9.04e-01', photon_flux2='6.32e-08', job_status='DONE', time_completed='2021-09-05 02:37:56.392681', photon_index_error2='6.08', photon_index2='5.63', ts='-0.00', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='7.67e-08', energy_flux_error2='7.25e-06', EG='1.09', time_epoch_completed='1630834676.39', return_code='0', job_id='376875', GAL2='0.85', EG2='1.02', return_code2='102', photon_flux_error2='5.05e-08', ts2='1.89', photon_index='2.41' WHERE bin_id='588' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:37:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 376875: <4FGL_J1209.8+1810_daily_bin588> in cluster <slac> Done

Job <4FGL_J1209.8+1810_daily_bin588> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep  5 02:25:25 2021
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 02:25:27 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:25:27 2021
Terminated at Sun Sep  5 02:37:57 2021
Results reported at Sun Sep  5 02:37:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin588 182.466 18.1776 391737601 391996801 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 :                                   733.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             349.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   749 sec.
    Turnaround time :                            752 sec.

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

