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


Performing analysis on: 4FGL_J1209.8+1810_daily_bin1498
RA = 182.466, Dec = 18.1776
tmin = 627609601, tmax = 627868801
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='382754', job_status='RUN', time_executed='2021-09-05 02:40:50.942137', time_epoch_executed='1630834850.94' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='1498'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/382754

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/382754/ft1_4FGL_J1209.8+1810_daily_bin1498.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/382754/ft2_4FGL_J1209.8+1810_daily_bin1498.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/382754/ft1_4FGL_J1209.8+1810_daily_bin1498.fits outfile=/scratch/kocevski/382754/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin1498.fits ra=182.466 dec=18.1776 rad=12.0 tmin=627609601.0 tmax=627868801.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 2.67
user 2.39
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/382754/ft1_filtered_4FGL_J1209.8+1810_daily_bin1498.fits evtable="EVENTS" scfile=/scratch/kocevski/382754/ft2_4FGL_J1209.8+1810_daily_bin1498.fits sctable="SC_DATA" expcube=/scratch/kocevski/382754/ltcube_627609601_627868801_4FGL_J1209.8+1810_daily_bin1498.fits outfile=/scratch/kocevski/382754/expmap_627609601_627868801_4FGL_J1209.8+1810_daily_bin1498.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/382754/ltcube_627609601_627868801_4FGL_J1209.8+1810_daily_bin1498.fits
.....................!
real 190.84
user 185.34
sys 5.00

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/382754/ft1_filtered_4FGL_J1209.8+1810_daily_bin1498.fits scfile=/scratch/kocevski/382754/ft2_4FGL_J1209.8+1810_daily_bin1498.fits outfile=/scratch/kocevski/382754/cmap_627609601_627868801_4FGL_J1209.8+1810_daily_bin1498.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/382754/ft1_filtered_4FGL_J1209.8+1810_daily_bin1498.fits scfile=/scratch/kocevski/382754/ft2_4FGL_J1209.8+1810_daily_bin1498.fits outfile=/scratch/kocevski/382754/cmap_HighResolution_627609601_627868801_4FGL_J1209.8+1810_daily_bin1498.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=182.466 yref=18.1776 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/382754/ft1_filtered_4FGL_J1209.8+1810_daily_bin1498.fits', '/scratch/kocevski/382754/ft2_4FGL_J1209.8+1810_daily_bin1498.fits', expMap='/scratch/kocevski/382754/expmap_627609601_627868801_4FGL_J1209.8+1810_daily_bin1498.fits', expCube='/scratch/kocevski/382754/ltcube_627609601_627868801_4FGL_J1209.8+1810_daily_bin1498.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/382754/Model_4FGL_J1209.8+1810_daily_bin1498.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/382754/ft1_filtered_4FGL_J1209.8+1810_daily_bin1498.fits
Spacecraft file(s): /scratch/kocevski/382754/ft2_4FGL_J1209.8+1810_daily_bin1498.fits
Exposure map: /scratch/kocevski/382754/expmap_627609601_627868801_4FGL_J1209.8+1810_daily_bin1498.fits
Exposure cube: /scratch/kocevski/382754/ltcube_627609601_627868801_4FGL_J1209.8+1810_daily_bin1498.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/382754/Model_4FGL_J1209.8+1810_daily_bin1498.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 8000.65533107

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.6772       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .32173       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.743       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .23402       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12805E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.6498       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.282       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3013       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11035E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.1222       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .39663       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    10.141       1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.221       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.7431       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3146       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .64454       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=   8000.513     FROM MIGRAD    STATUS=CONVERGED    618 CALLS     2466 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0165       -.56646E-08** at limit **
   2  Prefactor     8.6727        18.421        .37620E-05    .25730E-03
   3  Prefactor     .88717E-02    14.997       -.73822E-06    .34005E-04
   4  Prefactor     10.741        8.2570       -.20866E-06   -.16927E-03
   5  Prefactor     .24265        1.2184        .46572E-06   -.48280E-03
   6  Prefactor     .10000E-03    150.44        .96420E-06** at limit **
   7  Prefactor     .10000E-03    9.9196       -.80918E-07** at limit **
   8  norm          4.6518        1.3615        .15663E-07   -.21377E-04
   9  Prefactor     10.279        8.6180       -.65792E-07   -.56618E-04
  10  Prefactor     2.3007        2.4473        .11004E-06   -.75188E-04
  11  Prefactor     .10000E-03    22.351        .21006E-07** at limit **
  12  Prefactor     .10000E-03    1.1423       -.54323E-07** at limit **
  13  Prefactor     .10000E-03    .80386       -.84296E-08** at limit **
  14  Prefactor     2.1216        1.7764        .29740E-07   -.12708E-03
  15  Prefactor     .10000E-03    7.9364        .11445E-07** at limit **
  16  Prefactor     .39708        3.9701        .32787E-05   -.29213E-03
  17  norm          .10000E-03    .56546E-01   -.35686E-07** at limit **
  18  norm          10.139        4.2376       -.27029E-06   -.30713E-03
  19  Prefactor     19.212        10.459        .50422E-07   -.23311E-04
  20  Prefactor     .10000E-03    4.5855       -.34241E-07** at limit **
  21  Prefactor     .10000E-03    18.262       -.13659E-06** at limit **
  22  Prefactor     5.7420        5.1498        .45674E-06    .22459E-03
  23  Normalizat    1.3151        .15183       -.36319E-06   -.63772E-04
  24  Prefactor     .64423        .14202       -.15128E-06   -.75045E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.67267
  Prefactor  = 0.00887172
  Prefactor  = 10.7408
  Prefactor  = 0.242646
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.65177
  Prefactor  = 10.2794
  Prefactor  = 2.30065
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.12164
  Prefactor  = 0.0001
  Prefactor  = 0.397085
  norm       = 0.0001
  norm       = 10.1386
  Prefactor  = 19.2117
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.74198
  Normalizat = 1.31514
  Prefactor  = 0.644235
 **********
 **   18 **HESSE 
 **********

 FCN=   8000.513     FROM HESSE     STATUS=OK           413 CALLS     2879 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.0240        .15171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.6727        19.508        .13608E-03   -1.5119    
   3  Prefactor     .88717E-02    22.446        .80553E-01   -1.5689    
   4  Prefactor     10.741        8.2742        .12224E-03   -1.5052    
   5  Prefactor     .24265        2.1744        .16473E-02   -1.5609    
   6  Prefactor     .10000E-03    150.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.331        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.6518        1.3624        .54165E-04   -1.5277    
   9  Prefactor     10.279        8.6241        .12495E-03   -1.5067    
  10  Prefactor     2.3007        2.4270        .13793E-03   -1.5405    
  11  Prefactor     .10000E-03    22.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.8605        .18378E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .81180        .78206E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.1216        1.7735        .10488E-03   -1.5417    
  15  Prefactor     .10000E-03    7.9410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .39708        4.2875        .35178E-03   -1.5582    
  17  norm          .10000E-03    .68591E-01    .41195E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.139        4.2392        .11286E-03   -1.5071    
  19  Prefactor     19.212        10.450        .91356E-04   -1.4831    
  20  Prefactor     .10000E-03    4.6112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    18.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.7420        5.1706        .16760E-03   -1.5229    
  23  Normalizat    1.3151        .17753        .21760E-03   -.83116    
  24  Prefactor     .64423        .16551        .29137E-03   -1.0575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.73937e-08
Minuit parameter uncertainties:
  1  7.60465e-08
  2  19.5226
  3  0.887782
  4  8.27513
  5  1.4525
  6  0.00042517
  7  1.08829e-05
  8  1.36239
  9  8.62516
  10  2.42713
  11  1.24596e-05
  12  3.09144e-05
  13  1.21467e-06
  14  1.77357
  15  3.08181e-06
  16  2.60951
  17  2.93809e-08
  18  4.23937
  19  10.4511
  20  1.7587e-07
  21  5.90876e-07
  22  5.17098
  23  0.177614
  24  0.165631
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  3.091e-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:  6.442e-01  1.656e-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.315e+00  1.776e-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: 5.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/382754/likelihoodResults_627609601_627868801_4FGL_J1209.8+1810_daily_bin1498.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) = 8000.51457068
delta logL = -0.00166757812349

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8000.51290431
delta logL = -1.21572520584e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10273E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4295       1.0000          .0000       10.000    
     3 'Normalizat'    1.3150       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64444       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8000.513     FROM MIGRAD    STATUS=FAILED        98 CALLS      271 TOTAL
                     EDM=   .87E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10174E-03    25.524        .18280E-02** at limit **
   2  Index         2.5150        6.6511        .50000       -.36130E-04
   3  Normalizat    1.3151        .10932E-01    .21760E-03    .64493E-04
   4  Prefactor     .64424        .10659E-01    .29137E-03    .36678E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8000.513     FROM SIMPLEX   STATUS=PROGRESS     113 CALLS      384 TOTAL
                     EDM=   .63E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10092E-03    25.524        .23239E-03** at limit **
   2  Index         2.5139        6.6511        .35948E-03   -.36130E-04
   3  Normalizat    1.3151        .10932E-01    .15169E-05    .64493E-04
   4  Prefactor     .64423        .10659E-01    .26233E-05    .36678E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8000.513     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      440 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .61114E-01    .36560E-01** at limit **
   2  Index         2.6655        7.2870        .50000        .13416E-05
   3  Normalizat    1.3151        .11286E-02    .43520E-04    .12011E-03
   4  Prefactor     .64424        .11004E-02    .11655E-04    .73745E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.66546
  Normalizat = 1.31513
  Prefactor  = 0.644235
 **********
 **   18 **HESSE 
 **********

 FCN=   8000.513     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      471 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.719        .14335E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6655        8.6496        .50000       -.48579    
   3  Normalizat    1.3151        .10750E-01    .87039E-05   -.83116    
   4  Prefactor     .64424        .10481E-01    .23309E-05   -1.0575    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.40286e-09
Minuit parameter uncertainties:
  1  1.34511e-05
  2  130.339
  3  0.0107502
  4  0.0104808
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/382754': 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) = 8000.51290134
delta logL = 1.75914374267e-06

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  1.345e-05  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  2.665e+00  1.303e+02  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:  6.442e-01  1.048e-02  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.315e+00  1.075e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 182.466 18.178

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/382754/cmap_HighResolution_627609601_627868801_4FGL_J1209.8+1810_daily_bin1498.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.30e-03', job_status='DONE', photon_flux_upper_limit='5.56e-08', time_completed='2021-09-05 02:54:47.178620', job_id='382754', GAL2='0.64', fit_tolerance='1e-08', EG2='1.32', EG='1.32', time_epoch_completed='1630835687.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.64', dlogl='1.76e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1498' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:54:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 382754: <4FGL_J1209.8+1810_daily_bin1498> in cluster <slac> Done

Job <4FGL_J1209.8+1810_daily_bin1498> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep  5 02:40:38 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 02:40:39 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:40:39 2021
Terminated at Sun Sep  5 02:54:47 2021
Results reported at Sun Sep  5 02:54:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin1498 182.466 18.1776 627609601 627868801 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 :                                   817.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             369.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            849 sec.

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

