/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 117 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 = 7424
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1209.8+1810_daily_bin1
RA = 182.466, Dec = 18.1776
tmin = 239587201, tmax = 239846401
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='373612', job_status='RUN', time_executed='2021-09-05 02:17:32.738202', time_epoch_executed='1630833452.74' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/373612

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/373612/ft1_4FGL_J1209.8+1810_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/373612/ft2_4FGL_J1209.8+1810_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/373612/ft1_4FGL_J1209.8+1810_daily_bin1.fits outfile=/scratch/kocevski/373612/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin1.fits ra=182.466 dec=18.1776 rad=12.0 tmin=239587201.0 tmax=239846401.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 1.48
user 1.12
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/373612/ft1_filtered_4FGL_J1209.8+1810_daily_bin1.fits" evtable="EVENTS" scfile=/scratch/kocevski/373612/ft2_4FGL_J1209.8+1810_daily_bin1.fits sctable="SC_DATA" outfile=/scratch/kocevski/373612/ltcube_239587201_239846401_4FGL_J1209.8+1810_daily_bin1.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/373612/ft2_4FGL_J1209.8+1810_daily_bin1.fits
.....................!
real 12.67
user 12.23
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/373612/ft1_filtered_4FGL_J1209.8+1810_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/373612/ft2_4FGL_J1209.8+1810_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/373612/ltcube_239587201_239846401_4FGL_J1209.8+1810_daily_bin1.fits outfile=/scratch/kocevski/373612/expmap_239587201_239846401_4FGL_J1209.8+1810_daily_bin1.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/373612/ltcube_239587201_239846401_4FGL_J1209.8+1810_daily_bin1.fits
.....................!
real 190.03
user 184.92
sys 4.43

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/373612/ft1_filtered_4FGL_J1209.8+1810_daily_bin1.fits scfile=/scratch/kocevski/373612/ft2_4FGL_J1209.8+1810_daily_bin1.fits outfile=/scratch/kocevski/373612/cmap_HighResolution_239587201_239846401_4FGL_J1209.8+1810_daily_bin1.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.53
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.492       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.3782       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10348E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.0113       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.5470       1.0000         .10000E-03   10000.    
    11 'Prefactor '    94.211       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6886       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.5911       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15487E-01   1.0000         .10000E-03   10000.    
    17 'norm      '    .56326E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    11.617       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.2946       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0327       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .54386       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=   4137.830     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2850 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.842       -.66803E-06** at limit **
   2  Prefactor     .10000E-03    25.478        .53657E-05** at limit **
   3  Prefactor     .10000E-03    34.881       -.17946E-04** at limit **
   4  Prefactor     16.493        13.259       -.10959E-06    .25101E-04
   5  Prefactor     2.3787        2.1297        .61120E-08    .41904E-03
   6  Prefactor     .10000E-03    44.954        .14865E-04** at limit **
   7  Prefactor     .10000E-03    3.8890        .38364E-06** at limit **
   8  norm          .10000E-03    .53335        .21596E-07** at limit **
   9  Prefactor     7.0220        18.172        .12816E-04    .39164E-04
  10  Prefactor     3.5476        4.4639       -.60230E-06   -.12963E-03
  11  Prefactor     94.164        97.478       -.43755E-04   -.26762E-04
  12  Prefactor     2.6893        3.4468       -.21492E-06   -.22464E-03
  13  Prefactor     .10000E-03    1.0229        .25121E-06** at limit **
  14  Prefactor     7.5910        2.9257       -.62166E-07    .26008E-03
  15  Prefactor     .10000E-03    11.648       -.36967E-07** at limit **
  16  Prefactor     .48689E-01    4.9808       -.91929E-06   -.24620E-04
  17  norm          .52984E-02    .20159       -.26819E-06    .65517E-03
  18  norm          11.614        5.5412        .98085E-06    .35197E-03
  19  Prefactor     .10000E-03    5.6258       -.49389E-06** at limit **
  20  Prefactor     .10000E-03    9.8167       -.78758E-06** at limit **
  21  Prefactor     4.2901        24.047        .43560E-05   -.29642E-04
  22  Prefactor     .10000E-03    2.4349        .45283E-08** at limit **
  23  Normalizat    1.0327        .18205        .22013E-05    .24428E-03
  24  Prefactor     .54389        .16799       -.65797E-06    .25150E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.4927
  Prefactor  = 2.37872
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.02204
  Prefactor  = 3.54758
  Prefactor  = 94.1637
  Prefactor  = 2.68928
  Prefactor  = 0.0001
  Prefactor  = 7.59096
  Prefactor  = 0.0001
  Prefactor  = 0.048689
  norm       = 0.00529839
  norm       = 11.6145
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.29009
  Prefactor  = 0.0001
  Normalizat = 1.03268
  Prefactor  = 0.543894
 **********
 **   18 **HESSE 
 **********

 FCN=   4137.830     FROM HESSE     STATUS=OK           405 CALLS     3255 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    35.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.493        13.253        .98625E-04   -1.4896    
   5  Prefactor     2.3787        2.1283        .84201E-04   -1.5399    
   6  Prefactor     .10000E-03    44.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.9017        .12392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .75609        .91414E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.0220        18.094        .15151E-03   -1.5178    
  10  Prefactor     3.5476        4.4345        .13812E-03   -1.5331    
  11  Prefactor     94.164        97.688        .20703E-03   -1.3764    
  12  Prefactor     2.6893        3.4099        .12200E-03   -1.5380    
  13  Prefactor     .10000E-03    1.0259        .63462E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.5910        2.9274        .66011E-04   -1.5157    
  15  Prefactor     .10000E-03    11.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .48689E-01    4.8518        .45908E-01   -1.5664    
  17  norm          .52984E-02    1.6625        .53996E-03   -1.5694    
  18  norm          11.614        5.5535        .99845E-04   -1.5026    
  19  Prefactor     .10000E-03    5.6384        .14885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.9016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.2901        23.960        .19440E-03   -1.5294    
  22  Prefactor     .10000E-03    2.4380        .98028E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0327        .21087        .20512E-03   -.91943    
  24  Prefactor     .54389        .19275        .26525E-03   -1.1000    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.92037e-10
Minuit parameter uncertainties:
  1  4.3249e-05
  2  3.39854e-05
  3  0.000104696
  4  13.2549
  5  2.12835
  6  3.34887e-05
  7  8.43313e-05
  8  3.78276e-06
  9  18.1077
  10  4.43494
  11  97.8552
  12  3.4102
  13  1.23916e-06
  14  2.92747
  15  3.3319e-06
  16  0.971152
  17  0.185935
  18  5.55378
  19  2.56016e-05
  20  1.49635e-05
  21  20.2894
  22  2.23466e-06
  23  0.211044
  24  0.192984
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  2.689e+00  3.410e+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:  5.439e-01  1.930e-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.033e+00  2.110e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/373612/likelihoodResults_239587201_239846401_4FGL_J1209.8+1810_daily_bin1.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) = 4137.82964964
delta logL = 0.000448422711088

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4137.82933942
delta logL = 0.000758647031944

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7876       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3755       1.0000          .0000       10.000    
     3 'Normalizat'    1.0338       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .54290       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6140E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4137.829     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      230 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.7879        4.4872        .12425E-03   -.83444E-03
   2  Index         2.3751        .96658        .88007E-02   -.10855E-03
   3  Normalizat    1.0338        .20112        .20502E-03    .24998E-03
   4  Prefactor     .54288        .19345        .26548E-03    .27852E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.78793
  Index      = 2.37512
  Normalizat = 1.03385
  Prefactor  = 0.54288
 **********
 **   18 **HESSE 
 **********

 FCN=   4137.829     FROM HESSE     STATUS=OK            25 CALLS      255 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.7879        4.2151        .49702E-05   -1.5374    
   2  Index         2.3751        .90813        .35203E-03   -.55269    
   3  Normalizat    1.0338        .20097        .41004E-04   -.91905    
   4  Prefactor     .54288        .19313        .10619E-04   -1.1005    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.93019e-10
Minuit parameter uncertainties:
  1  4.21557
  2  0.915167
  3  0.201115
  4  0.193368
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/373612': 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) = 4137.82933932
delta logL = 0.00075874754566

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  2.788e+00  4.216e+00  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  2.375e+00  9.152e-01  0.000e+00  1.000e+01 (-1.000e+00)
286        Scale:  8.871e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
611    Prefactor:  5.429e-01  1.934e-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.034e+00  2.011e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.83
Ra Dec: 182.466 18.178

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/373612/cmap_HighResolution_239587201_239846401_4FGL_J1209.8+1810_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', job_status='DONE', photon_flux_upper_limit='1.33e-07', time_completed='2021-09-05 02:27:13.017215', job_id='373612', GAL2='0.54', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1630834033.02', return_code2='0', ts='0.83', comment='SUCCESS', return_code='0', GAL='0.54', dlogl='7.59e-04', ts2='0.83', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:27:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 373612: <4FGL_J1209.8+1810_daily_bin1> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin1 182.466 18.1776 239587201 239846401 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 :                                   578.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   706 sec.
    Turnaround time :                            708 sec.

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

