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


Performing analysis on: 4FGL_J1209.8+1810_daily_bin1298
RA = 182.466, Dec = 18.1776
tmin = 575769601, tmax = 576028801
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='380917', job_status='RUN', time_executed='2021-09-05 02:36:38.391061', time_epoch_executed='1630834598.39' WHERE source_name='4FGL J1209.8+1810' and cadence='daily' and bin_id='1298'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/380917

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/380917/ft1_4FGL_J1209.8+1810_daily_bin1298.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/380917/ft2_4FGL_J1209.8+1810_daily_bin1298.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/380917/ft1_4FGL_J1209.8+1810_daily_bin1298.fits outfile=/scratch/kocevski/380917/ft1_filteredMKT_4FGL_J1209.8+1810_daily_bin1298.fits ra=182.466 dec=18.1776 rad=12.0 tmin=575769601.0 tmax=576028801.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.90
user 3.62
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/380917/ft1_filtered_4FGL_J1209.8+1810_daily_bin1298.fits" evtable="EVENTS" scfile=/scratch/kocevski/380917/ft2_4FGL_J1209.8+1810_daily_bin1298.fits sctable="SC_DATA" outfile=/scratch/kocevski/380917/ltcube_575769601_576028801_4FGL_J1209.8+1810_daily_bin1298.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/380917/ft2_4FGL_J1209.8+1810_daily_bin1298.fits
.....................!
real 11.61
user 11.25
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/380917/ft1_filtered_4FGL_J1209.8+1810_daily_bin1298.fits evtable="EVENTS" scfile=/scratch/kocevski/380917/ft2_4FGL_J1209.8+1810_daily_bin1298.fits sctable="SC_DATA" expcube=/scratch/kocevski/380917/ltcube_575769601_576028801_4FGL_J1209.8+1810_daily_bin1298.fits outfile=/scratch/kocevski/380917/expmap_575769601_576028801_4FGL_J1209.8+1810_daily_bin1298.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/380917/ltcube_575769601_576028801_4FGL_J1209.8+1810_daily_bin1298.fits
.....................!
real 189.66
user 185.18
sys 4.04

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/380917/ft1_filtered_4FGL_J1209.8+1810_daily_bin1298.fits scfile=/scratch/kocevski/380917/ft2_4FGL_J1209.8+1810_daily_bin1298.fits outfile=/scratch/kocevski/380917/cmap_575769601_576028801_4FGL_J1209.8+1810_daily_bin1298.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/380917/ft1_filtered_4FGL_J1209.8+1810_daily_bin1298.fits scfile=/scratch/kocevski/380917/ft2_4FGL_J1209.8+1810_daily_bin1298.fits outfile=/scratch/kocevski/380917/cmap_HighResolution_575769601_576028801_4FGL_J1209.8+1810_daily_bin1298.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .39262E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.222       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.4677       1.0000         .10000E-03   10000.    
     6 'Prefactor '    117.75       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.1918       1.0000         .10000E-03   10000.    
     8 'norm      '    4.5634       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10831E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.9268       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.0091       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14092E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.4158       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3499       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .71474       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=   5461.316     FROM MIGRAD    STATUS=CONVERGED    622 CALLS     2820 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.2331       -.89447E-08** at limit **
   2  Prefactor     .10079E-03    32.824       -.21371E-05** at limit **
   3  Prefactor     15.212        21.141       -.11314E-05    .21626E-04
   4  Prefactor     .10000E-03    3.5703       -.83465E-07** at limit **
   5  Prefactor     2.4693        1.8593       -.19642E-06   -.12718E-03
   6  Prefactor     117.50        138.27       -.13836E-03    .57841E-05
   7  Prefactor     8.1900        8.0431        .27872E-05    .12332E-03
   8  norm          4.5638        1.5961       -.71946E-07    .20459E-03
   9  Prefactor     .10000E-03    7.0104        .11758E-06** at limit **
  10  Prefactor     .10000E-03    1.3007       -.44356E-07** at limit **
  11  Prefactor     .10000E-03    34.087        .41380E-06** at limit **
  12  Prefactor     .10000E-03    1.6159       -.39488E-06** at limit **
  13  Prefactor     .10000E-03    1.1698       -.45364E-07** at limit **
  14  Prefactor     3.9177        2.4882       -.13972E-06    .51377E-03
  15  Prefactor     .10000E-03    22.783       -.11811E-06** at limit **
  16  Prefactor     .10000E-03    2.1278       -.44509E-07** at limit **
  17  norm          .10000E-03    .62256E-01   -.55101E-07** at limit **
  18  norm          3.0077        2.6324        .32296E-06    .20081E-02
  19  Prefactor     .10000E-03    6.4973       -.69466E-07** at limit **
  20  Prefactor     .20357        13.165       -.26855E-05    .18345E-03
  21  Prefactor     .10000E-03    9.9010       -.77615E-07** at limit **
  22  Prefactor     6.4168        5.6286       -.14846E-06    .74114E-04
  23  Normalizat    1.3500        .18724        .41611E-05    .19604E-03
  24  Prefactor     .71423        .18134       -.22255E-06    .44524E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100786
  Prefactor  = 15.212
  Prefactor  = 0.0001
  Prefactor  = 2.46929
  Prefactor  = 117.497
  Prefactor  = 8.19
  norm       = 4.56375
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.91774
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.00772
  Prefactor  = 0.0001
  Prefactor  = 0.203573
  Prefactor  = 0.0001
  Prefactor  = 6.41685
  Normalizat = 1.35003
  Prefactor  = 0.714229
 **********
 **   18 **HESSE 
 **********

 FCN=   5461.316     FROM HESSE     STATUS=OK           411 CALLS     3231 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.2388        .12977E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10079E-03    35.418        .11795       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.212        21.210        .10266E-03   -1.4928    
   4  Prefactor     .10000E-03    3.5853        .13636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.4693        1.8486        .81984E-04   -1.5394    
   6  Prefactor     117.50        138.23        .18541E-03   -1.3536    
   7  Prefactor     8.1900        8.0473        .14008E-03   -1.5136    
   8  norm          4.5638        1.5956        .52853E-04   -1.5281    
   9  Prefactor     .10000E-03    7.0220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.3130        .82267E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    34.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.1412        .18083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.1814        .77957E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.9177        2.4921        .86927E-04   -1.5312    
  15  Prefactor     .10000E-03    22.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.1360        .10526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .67608E-01    .35844E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.0077        2.6364        .54574E-03   -1.5361    
  19  Prefactor     .10000E-03    6.5530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .20357        17.566        .75216E-01   -1.5618    
  21  Prefactor     .10000E-03    9.9091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.4168        5.6307        .15846E-03   -1.5201    
  23  Normalizat    1.3500        .22264        .21876E-03   -.82085    
  24  Prefactor     .71423        .21523        .28855E-03   -1.0297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.7516e-09
Minuit parameter uncertainties:
  1  6.41396e-06
  2  0.0105609
  3  21.2205
  4  1.04178e-05
  5  1.8486
  6  138.614
  7  8.04837
  8  1.59558
  9  1.98667e-05
  10  6.42741e-06
  11  7.92161e-05
  12  6.61386e-05
  13  5.83101e-06
  14  2.49218
  15  7.22898e-06
  16  7.43643e-06
  17  1.39433e-06
  18  2.63651
  19  1.77751e-05
  20  3.78229
  21  1.6232e-05
  22  5.63118
  23  0.222797
  24  0.215482
Done.

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

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.000e-04  6.614e-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:  7.142e-01  2.155e-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.350e+00  2.228e-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.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.71e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/380917/likelihoodResults_575769601_576028801_4FGL_J1209.8+1810_daily_bin1298.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) = 5461.3177904
delta logL = -0.00151732680297

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5461.31627443
delta logL = -1.36211383506e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10844E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3898       1.0000          .0000       10.000    
     3 'Normalizat'    1.3501       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71422       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=   5461.316     FROM MIGRAD    STATUS=FAILED        97 CALLS      269 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10118E-03    29.688        .18397E-02** at limit **
   2  Index         2.3237        5.9529        .50000        .34359E-04
   3  Normalizat    1.3500        .13861E-01    .21876E-03   -.49269E-03
   4  Prefactor     .71423        .13812E-01    .28855E-03   -.21788E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5461.316     FROM SIMPLEX   STATUS=UNCHANGED    123 CALLS      392 TOTAL
                     EDM=   .93E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10118E-03    29.688        .28586E-03** at limit **
   2  Index         2.3237        5.9529        .25280E-03    .34359E-04
   3  Normalizat    1.3500        .13861E-01    .12096E-05   -.49269E-03
   4  Prefactor     .71423        .13812E-01    .16387E-05   -.21788E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5461.316     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      425 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10072E-03    135.18        .36793E-03** at limit **
   2  Index         2.3307        5.0752        .50000        .36360E-04
   3  Normalizat    1.3500        .30728E-01    .43752E-04   -.48934E-03
   4  Prefactor     .71423        .30615E-01    .11542E-04   -.21571E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100721
  Index      = 2.33073
  Normalizat = 1.35003
  Prefactor  = 0.714226
 **********
 **   18 **HESSE 
 **********

 FCN=   5461.316     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      454 TOTAL
                     EDM=   .72E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10072E-03    410.34        .73587E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3307        8.4936        .50000       -.56315    
   3  Normalizat    1.3500        .62018E-01    .87504E-05   -.82085    
   4  Prefactor     .71423        .61707E-01    .23084E-05   -1.0297    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.19752e-08
Minuit parameter uncertainties:
  1  0.0346397
  2  604.197
  3  0.0620218
  4  0.0617133
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/380917': 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) = 5461.31627226
delta logL = 8.04463525128e-07

Extracting fit parameters...

4FGL J1209.8+1810
   Spectrum: PowerLaw
284    Prefactor:  1.007e-04  3.464e-02  1.000e-04  1.000e+04 ( 1.000e-12)
285        Index:  2.331e+00  6.042e+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:  7.142e-01  6.171e-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.350e+00  6.202e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/380917/cmap_HighResolution_575769601_576028801_4FGL_J1209.8+1810_daily_bin1298.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.71e-03', job_status='DONE', photon_flux_upper_limit='7.38e-08', time_completed='2021-09-05 02:48:35.907298', job_id='380917', GAL2='0.71', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1630835315.91', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='8.04e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1298' AND source_name='4FGL J1209.8+1810' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 02:48:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0186>
Subject: Job 380917: <4FGL_J1209.8+1810_daily_bin1298> in cluster <slac> Done

Job <4FGL_J1209.8+1810_daily_bin1298> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 02:36:14 2021
Job was executed on host(s) <bullet0186>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 02:36:16 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:36:16 2021
Terminated at Sun Sep  5 02:48:36 2021
Results reported at Sun Sep  5 02:48:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1209.8+1810_daily_bin1298 182.466 18.1776 575769601 576028801 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 :                                   712.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             350.84 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   740 sec.
    Turnaround time :                            742 sec.

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

