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


Performing analysis on: 4FGL_J2104.0-3546_daily_bin1654
RA = 316.01, Dec = -35.7678
tmin = 668044801, tmax = 668304001
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='100146', job_status='RUN', time_executed='2022-03-07 01:21:30.105534', time_epoch_executed='1646644890.11' WHERE source_name='4FGL J2104.0-3546' and cadence='daily' and bin_id='1654'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/100146

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/100146/ft1_4FGL_J2104.0-3546_daily_bin1654.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/100146/ft2_4FGL_J2104.0-3546_daily_bin1654.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/100146/ft1_4FGL_J2104.0-3546_daily_bin1654.fits outfile=/scratch/kocevski/100146/ft1_filteredMKT_4FGL_J2104.0-3546_daily_bin1654.fits ra=316.01 dec=-35.7678 rad=12.0 tmin=668044801.0 tmax=668304001.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.68
user 3.44
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/100146/ft2_4FGL_J2104.0-3546_daily_bin1654.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/100146/ft2_4FGL_J2104.0-3546_daily_bin1654.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/100146/ft1_filteredMKT_4FGL_J2104.0-3546_daily_bin1654.fits evtable="EVENTS" outfile="/scratch/kocevski/100146/ft1_filtered_4FGL_J2104.0-3546_daily_bin1654.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.56
user 0.34
sys 0.16
Number of photons that survived the gtmktime cut: 857

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/100146/ft1_filtered_4FGL_J2104.0-3546_daily_bin1654.fits" evtable="EVENTS" scfile=/scratch/kocevski/100146/ft2_4FGL_J2104.0-3546_daily_bin1654.fits sctable="SC_DATA" outfile=/scratch/kocevski/100146/ltcube_668044801_668304001_4FGL_J2104.0-3546_daily_bin1654.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/100146/ft2_4FGL_J2104.0-3546_daily_bin1654.fits
.....................!
real 13.84
user 13.47
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/100146/ft1_filtered_4FGL_J2104.0-3546_daily_bin1654.fits evtable="EVENTS" scfile=/scratch/kocevski/100146/ft2_4FGL_J2104.0-3546_daily_bin1654.fits sctable="SC_DATA" expcube=/scratch/kocevski/100146/ltcube_668044801_668304001_4FGL_J2104.0-3546_daily_bin1654.fits outfile=/scratch/kocevski/100146/expmap_668044801_668304001_4FGL_J2104.0-3546_daily_bin1654.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/100146/ltcube_668044801_668304001_4FGL_J2104.0-3546_daily_bin1654.fits
.....................!
real 193.10
user 187.83
sys 4.75

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 159 point sources and 0 extended sources

Setting source of interest to:
4FGL J2104.0-3546 @ 316.01 -35.7678

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/100146/ft1_filtered_4FGL_J2104.0-3546_daily_bin1654.fits scfile=/scratch/kocevski/100146/ft2_4FGL_J2104.0-3546_daily_bin1654.fits outfile=/scratch/kocevski/100146/cmap_668044801_668304001_4FGL_J2104.0-3546_daily_bin1654.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=316.01 yref=-35.7678 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.57
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/100146/ft1_filtered_4FGL_J2104.0-3546_daily_bin1654.fits scfile=/scratch/kocevski/100146/ft2_4FGL_J2104.0-3546_daily_bin1654.fits outfile=/scratch/kocevski/100146/cmap_HighResolution_668044801_668304001_4FGL_J2104.0-3546_daily_bin1654.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=316.01 yref=-35.7678 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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/100146/ft1_filtered_4FGL_J2104.0-3546_daily_bin1654.fits evtable="EVENTS" scfile=/scratch/kocevski/100146/ft2_4FGL_J2104.0-3546_daily_bin1654.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/100146/Model_4FGL_J2104.0-3546_daily_bin1654.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/100146/ft1_filtered_4FGL_J2104.0-3546_daily_bin1654.fits.....................!
real 73.27
user 71.90
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/100146/ft1_filtered_4FGL_J2104.0-3546_daily_bin1654.fits', '/scratch/kocevski/100146/ft2_4FGL_J2104.0-3546_daily_bin1654.fits', expMap='/scratch/kocevski/100146/expmap_668044801_668304001_4FGL_J2104.0-3546_daily_bin1654.fits', expCube='/scratch/kocevski/100146/ltcube_668044801_668304001_4FGL_J2104.0-3546_daily_bin1654.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/100146/Model_4FGL_J2104.0-3546_daily_bin1654.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2104.0-3546'

4FGL J2104.0-3546
   Spectrum: PowerLaw
274    Prefactor:  6.791e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
275        Index:  2.368e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
276        Scale:  9.926e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/100146/ft1_filtered_4FGL_J2104.0-3546_daily_bin1654.fits
Spacecraft file(s): /scratch/kocevski/100146/ft2_4FGL_J2104.0-3546_daily_bin1654.fits
Exposure map: /scratch/kocevski/100146/expmap_668044801_668304001_4FGL_J2104.0-3546_daily_bin1654.fits
Exposure cube: /scratch/kocevski/100146/ltcube_668044801_668304001_4FGL_J2104.0-3546_daily_bin1654.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/100146/Model_4FGL_J2104.0-3546_daily_bin1654.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) = 9148.89976208

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.6590       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.8034       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.8949       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.5635       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.4173       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13099E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.6178       1.0000         .10000E-03   10000.    
    20 'norm      '    3.1910       1.0000         .10000E-03   10000.    
    21 'norm      '    .17455E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1845       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .98100       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9148.158     FROM MIGRAD    STATUS=CONVERGED    516 CALLS     2223 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.788       -.46469E-08** at limit **
   2  norm          .10000E-03    2.2810        .19189E-07** at limit **
   3  Prefactor     .10000E-03    25.654        .10784E-06** at limit **
   4  norm          1.6600        16.020        .10410E-04   -.39576E-04
   5  Prefactor     .10000E-03    21.602       -.41934E-07** at limit **
   6  Prefactor     .10000E-03    2.2898        .57878E-07** at limit **
   7  Prefactor     .10002E-03    59.361       -.63919E-06** at limit **
   8  Prefactor     .10002E-03    47.688        .69077E-06** at limit **
   9  norm          .10000E-03    12.892        .29643E-06** at limit **
  10  norm          .10000E-03    .85863        .66394E-07** at limit **
  11  Prefactor     9.8034        15.771        .23929E-06    .34762E-04
  12  Prefactor     6.8956        26.866        .15146E-05    .19787E-05
  13  Prefactor     .10000E-03    6.7108        .69376E-07** at limit **
  14  Prefactor     6.5633        5.9254        .49737E-07    .95938E-04
  15  Prefactor     .10000E-03    10.034        .83859E-07** at limit **
  16  norm          .10000E-03    2.2194        .83865E-09** at limit **
  17  norm          3.4174        3.1313        .14093E-07    .68340E-04
  18  Prefactor     .10000E-03    5.9346       -.52990E-05** at limit **
  19  Prefactor     3.6182        6.0957       -.14818E-07   -.96358E-05
  20  norm          3.1911        5.7496        .94924E-07   -.99428E-04
  21  norm          .10001E-03    3.5012       -.11485E-05** at limit **
  22  Normalizat    1.1845        .19176        .50395E-06    .19421E-03
  23  Prefactor     .98103        .93910E-01   -.64114E-06    .87718E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.66001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 0.000100016
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 9.80342
  Prefactor  = 6.89564
  Prefactor  = 0.0001
  Prefactor  = 6.56328
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.41745
  Prefactor  = 0.0001
  Prefactor  = 3.61825
  norm       = 3.19114
  norm       = 0.000100005
  Normalizat = 1.18447
  Prefactor  = 0.981026
 **********
 **   18 **HESSE 
 **********

 FCN=   9148.158     FROM HESSE     STATUS=OK           366 CALLS     2589 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.2863        .14107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    25.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.6600        20.660        .16379E-02   -1.5450    
   5  Prefactor     .10000E-03    21.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.3181        .14131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    60.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10002E-03    48.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    13.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .89413        .17302E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.8034        15.766        .12798E-03   -1.5082    
  12  Prefactor     6.8956        26.914        .76396E-03   -1.5183    
  13  Prefactor     .10000E-03    6.9552        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.5633        5.9248        .15664E-03   -1.5196    
  15  Prefactor     .10000E-03    10.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.2207        .13916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.4174        3.1358        .15696E-03   -1.5338    
  18  Prefactor     .10000E-03    11.359        .33917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.6182        6.0498        .21242E-03   -1.5328    
  20  norm          3.1911        5.7325        .22684E-03   -1.5351    
  21  norm          .10001E-03    22.104        .33356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1845        .22314        .31858E-03   -.87084    
  23  Prefactor     .98103        .11107        .17570E-03   -.93365    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0762e-09
Minuit parameter uncertainties:
  1  8.89925e-05
  2  1.62888e-06
  3  0.000110203
  4  11.7172
  5  0.000107126
  6  6.38731e-06
  7  0.00192746
  8  0.00174393
  9  0.000258075
  10  5.66344e-06
  11  15.773
  12  26.9613
  13  5.11719e-06
  14  5.92533
  15  5.74337e-05
  16  1.87788e-06
  17  3.13591
  18  9.13449e-05
  19  6.05086
  20  5.73344
  21  0.000679422
  22  0.223321
  23  0.111099
Done.

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

Extracting fit parameters...

4FGL J2104.0-3546
   Spectrum: PowerLaw
274    Prefactor:  6.896e+00  2.696e+01  1.000e-04  1.000e+04 ( 1.000e-13)
275        Index:  2.368e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
276        Scale:  9.926e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
516    Prefactor:  9.810e-01  1.111e-01  0.000e+00  1.000e+01 ( 1.000e+00)
517        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
518        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
515   Normalization:  1.184e+00  2.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.07
Ra Dec: 316.010 -35.768
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/100146/likelihoodResults_668044801_668304001_4FGL_J2104.0-3546_daily_bin1654.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) = 9147.95752338
delta logL = 0.200311607052

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9147.90822503
delta logL = 0.249609956993

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9147.908     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      275 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5400        233.78        .10108E-02   -.68201E-03
   2  Index         3.5836        6.1895        .87680E-02   -.81227E-04
   3  Normalizat    1.1548        .16193        .32206E-03   -.79424E-04
   4  Prefactor     .98872        .84600E-01    .17506E-03   -.10297E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.54004
  Index      = 3.58365
  Normalizat = 1.15485
  Prefactor  = 0.988721
 **********
 **   18 **HESSE 
 **********

 FCN=   9147.908     FROM HESSE     STATUS=OK            27 CALLS      302 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5400        14.145        .40432E-04   -1.5389    
   2  Index         3.5836        2.2513        .35072E-03   -.28720    
   3  Normalizat    1.1548        .22154        .12883E-04   -.88010    
   4  Prefactor     .98872        .11119        .35012E-04   -.93106    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.48078e-10
Minuit parameter uncertainties:
  1  11.9923
  2  2.34346
  3  0.221717
  4  0.111217
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/100146': 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) = 9147.9082187
delta logL = 0.249616282741

Extracting fit parameters...

4FGL J2104.0-3546
   Spectrum: PowerLaw
274    Prefactor:  2.540e+00  1.199e+01  1.000e-04  1.000e+04 ( 1.000e-13)
275        Index:  3.584e+00  2.343e+00  0.000e+00  1.000e+01 (-1.000e+00)
276        Scale:  9.926e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
516    Prefactor:  9.887e-01  1.112e-01  0.000e+00  1.000e+01 ( 1.000e+00)
517        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
518        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
515   Normalization:  1.155e+00  2.217e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.07
Ra Dec: 316.010 -35.768

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/100146/cmap_HighResolution_668044801_668304001_4FGL_J2104.0-3546_daily_bin1654.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.35e-03', job_status='DONE', photon_flux_upper_limit='1.08e-07', time_completed='2022-03-07 01:33:59.310824', job_id='100146', GAL2='0.99', fit_tolerance='1e-08', EG2='1.15', EG='1.18', time_epoch_completed='1646645639.31', return_code2='0', ts='0.07', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='2.50e-01', ts2='0.59', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1654' AND source_name='4FGL J2104.0-3546' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Mar  7 01:33:59 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 100146: <4FGL_J2104.0-3546_daily_bin1654> in cluster <slac> Done

Job <4FGL_J2104.0-3546_daily_bin1654> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Mar  7 01:20:35 2022
Job was executed on host(s) <bullet0162>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Mar  7 01:21:20 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Mar  7 01:21:20 2022
Terminated at Mon Mar  7 01:34:00 2022
Results reported at Mon Mar  7 01:34:00 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2104.0-3546_daily_bin1654 316.01 -35.7678 668044801 668304001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2104.0-3546 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   751.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             369.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   759 sec.
    Turnaround time :                            805 sec.

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

