/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 135 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 = 7398
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2104.0-3546_daily_bin373
RA = 316.01, Dec = -35.7678
tmin = 336009601, tmax = 336268801
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='284431', job_status='RUN', time_executed='2021-09-26 01:48:53.471976', time_epoch_executed='1632646133.47' WHERE source_name='4FGL J2104.0-3546' and cadence='daily' and bin_id='373'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/284431

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/284431/ft1_4FGL_J2104.0-3546_daily_bin373.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/284431/ft2_4FGL_J2104.0-3546_daily_bin373.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/284431/ft1_4FGL_J2104.0-3546_daily_bin373.fits outfile=/scratch/kocevski/284431/ft1_filteredMKT_4FGL_J2104.0-3546_daily_bin373.fits ra=316.01 dec=-35.7678 rad=12.0 tmin=336009601.0 tmax=336268801.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.32
user 3.08
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/284431/ft2_4FGL_J2104.0-3546_daily_bin373.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/284431/ft1_filteredMKT_4FGL_J2104.0-3546_daily_bin373.fits evtable="EVENTS" outfile="/scratch/kocevski/284431/ft1_filtered_4FGL_J2104.0-3546_daily_bin373.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/284431/ft1_filtered_4FGL_J2104.0-3546_daily_bin373.fits" evtable="EVENTS" scfile=/scratch/kocevski/284431/ft2_4FGL_J2104.0-3546_daily_bin373.fits sctable="SC_DATA" outfile=/scratch/kocevski/284431/ltcube_336009601_336268801_4FGL_J2104.0-3546_daily_bin373.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/284431/ft2_4FGL_J2104.0-3546_daily_bin373.fits
.....................!
real 14.65
user 14.20
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/284431/ft1_filtered_4FGL_J2104.0-3546_daily_bin373.fits evtable="EVENTS" scfile=/scratch/kocevski/284431/ft2_4FGL_J2104.0-3546_daily_bin373.fits sctable="SC_DATA" expcube=/scratch/kocevski/284431/ltcube_336009601_336268801_4FGL_J2104.0-3546_daily_bin373.fits outfile=/scratch/kocevski/284431/expmap_336009601_336268801_4FGL_J2104.0-3546_daily_bin373.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/284431/ltcube_336009601_336268801_4FGL_J2104.0-3546_daily_bin373.fits
.....................!
real 191.95
user 186.39
sys 5.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 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/284431/ft1_filtered_4FGL_J2104.0-3546_daily_bin373.fits scfile=/scratch/kocevski/284431/ft2_4FGL_J2104.0-3546_daily_bin373.fits outfile=/scratch/kocevski/284431/cmap_336009601_336268801_4FGL_J2104.0-3546_daily_bin373.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/284431/ft1_filtered_4FGL_J2104.0-3546_daily_bin373.fits scfile=/scratch/kocevski/284431/ft2_4FGL_J2104.0-3546_daily_bin373.fits outfile=/scratch/kocevski/284431/cmap_HighResolution_336009601_336268801_4FGL_J2104.0-3546_daily_bin373.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.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/284431/ft1_filtered_4FGL_J2104.0-3546_daily_bin373.fits evtable="EVENTS" scfile=/scratch/kocevski/284431/ft2_4FGL_J2104.0-3546_daily_bin373.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/284431/Model_4FGL_J2104.0-3546_daily_bin373.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/284431/ft1_filtered_4FGL_J2104.0-3546_daily_bin373.fits.....................!
real 52.70
user 51.16
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/284431/ft1_filtered_4FGL_J2104.0-3546_daily_bin373.fits', '/scratch/kocevski/284431/ft2_4FGL_J2104.0-3546_daily_bin373.fits', expMap='/scratch/kocevski/284431/expmap_336009601_336268801_4FGL_J2104.0-3546_daily_bin373.fits', expCube='/scratch/kocevski/284431/ltcube_336009601_336268801_4FGL_J2104.0-3546_daily_bin373.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/284431/Model_4FGL_J2104.0-3546_daily_bin373.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/284431/ft1_filtered_4FGL_J2104.0-3546_daily_bin373.fits
Spacecraft file(s): /scratch/kocevski/284431/ft2_4FGL_J2104.0-3546_daily_bin373.fits
Exposure map: /scratch/kocevski/284431/expmap_336009601_336268801_4FGL_J2104.0-3546_daily_bin373.fits
Exposure cube: /scratch/kocevski/284431/ltcube_336009601_336268801_4FGL_J2104.0-3546_daily_bin373.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/284431/Model_4FGL_J2104.0-3546_daily_bin373.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) = 6236.95786059

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.552       1.0000         .10000E-03   10000.    
     2 'norm      '    16.813       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.6836       1.0000         .10000E-03   10000.    
     4 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    28.429       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5100       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.903       1.0000         .10000E-03   10000.    
     9 'norm      '    .10233E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .83586       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.243       1.0000         .10000E-03   10000.    
    12 'Prefactor '    21.506       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.7251       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.553       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11606E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.149       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10265E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.010       1.0000         .10000E-03   10000.    
    20 'norm      '    .10136E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.7181       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .97579       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .84087       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=   6236.957     FROM MIGRAD    STATUS=CONVERGED    481 CALLS     2497 TOTAL
                     EDM=   .60E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.536        41.451        .10810E-07   -.62509E-05
   2  norm          16.802        12.804        .29023E-07   -.10738E-04
   3  Prefactor     7.6847        109.53       -.61093E-06   -.34040E-05
   4  norm          .10000E-03    5.0950        .41490E-07** at limit **
   5  Prefactor     28.431        20.333       -.18983E-07   -.79244E-06
   6  Prefactor     1.5133        5.9567        .91367E-06   -.96158E-05
   7  Prefactor     .10000E-03    15.873        .11224E-06** at limit **
   8  Prefactor     15.705        119.32       -.62967E-05   -.12435E-04
   9  norm          .10000E-03    13.547       -.20981E-05** at limit **
  10  norm          .83584        1.4492        .67123E-06    .54830E-03
  11  Prefactor     15.228        25.218       -.86606E-06   -.13937E-04
  12  Prefactor     21.504        24.906        .18186E-07   -.52095E-06
  13  Prefactor     7.7289        9.8160        .27427E-05   -.14865E-03
  14  Prefactor     16.555        9.0696       -.26146E-07   -.26746E-04
  15  Prefactor     .10000E-03    14.646        .32192E-06** at limit **
  16  norm          .10000E-03    2.4592        .41960E-07** at limit **
  17  norm          10.149        4.7938        .21128E-08   -.12360E-04
  18  Prefactor     .10000E-03    6.6542        .42903E-06** at limit **
  19  Prefactor     14.004        10.726        .39738E-07   -.22373E-04
  20  norm          .10000E-03    3.3973        .22444E-06** at limit **
  21  norm          7.7188        5.5358        .60318E-07   -.15537E-04
  22  Normalizat    .97567        .22222       -.59140E-06   -.28811E-04
  23  Prefactor     .84095        .10750       -.16115E-06   -.28392E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.5364
  norm       = 16.802
  Prefactor  = 7.68468
  norm       = 0.0001
  Prefactor  = 28.4307
  Prefactor  = 1.51329
  Prefactor  = 0.0001
  Prefactor  = 15.7054
  norm       = 0.0001
  norm       = 0.835839
  Prefactor  = 15.228
  Prefactor  = 21.5044
  Prefactor  = 7.72894
  Prefactor  = 16.5549
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.1486
  Prefactor  = 0.0001
  Prefactor  = 14.0037
  norm       = 0.0001
  norm       = 7.71883
  Normalizat = 0.975667
  Prefactor  = 0.84095
 **********
 **   18 **HESSE 
 **********

 FCN=   6236.957     FROM HESSE     STATUS=OK           380 CALLS     2877 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.536        41.511        .77745E-04   -1.4677    
   2  norm          16.802        12.827        .97677E-04   -1.4888    
   3  Prefactor     7.6847        107.32        .14467E-03   -1.5153    
   4  norm          .10000E-03    5.0961        .17411E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     28.431        20.337        .75138E-04   -1.4641    
   6  Prefactor     1.5133        5.8804        .34811E-03   -1.5462    
   7  Prefactor     .10000E-03    15.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.705        121.28        .10044E-03   -1.4915    
   9  norm          .10000E-03    13.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .83584        1.3389        .12712E-02   -1.5525    
  11  Prefactor     15.228        25.219        .10259E-03   -1.4927    
  12  Prefactor     21.504        24.925        .86371E-04   -1.4780    
  13  Prefactor     7.7289        9.6712        .72138E-03   -1.5152    
  14  Prefactor     16.555        9.0785        .98443E-04   -1.4894    
  15  Prefactor     .10000E-03    14.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.4596        .12095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.149        4.7950        .11481E-03   -1.5071    
  18  Prefactor     .10000E-03    6.7496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.004        10.747        .10701E-03   -1.4959    
  20  norm          .10000E-03    3.4150        .14214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.7188        5.5552        .14434E-03   -1.5152    
  22  Normalizat    .97567        .25776        .32769E-03   -.93850    
  23  Prefactor     .84095        .12545        .17589E-03   -.98236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44252e-10
Minuit parameter uncertainties:
  1  41.556
  2  12.8296
  3  57.5621
  4  3.50824e-07
  5  20.3424
  6  5.88264
  7  2.87364e-06
  8  87.5323
  9  5.5804e-05
  10  1.33892
  11  25.2368
  12  24.9369
  13  9.67315
  14  9.07922
  15  1.62131e-06
  16  4.24387e-07
  17  4.79523
  18  2.86961e-06
  19  10.7485
  20  1.49609e-06
  21  5.55561
  22  0.258092
  23  0.125489
Done.

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

Extracting fit parameters...

4FGL J2104.0-3546
   Spectrum: PowerLaw
274    Prefactor:  2.150e+01  2.494e+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:  8.410e-01  1.255e-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:  9.757e-01  2.581e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.14
Ra Dec: 316.010 -35.768
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 3.61e-08 +/- 4.18e-08
Energy Flux (Fixed Index): 1.23e-05 +/- 1.43e-05

TS (Fixed Index): 1.14
Ra Dec: 316.010 -35.768
Photon Flux Upper Limit: 1.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.03e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/284431/likelihoodResults_336009601_336268801_4FGL_J2104.0-3546_daily_bin373.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) = 6236.92354996
delta logL = 0.0335054559664

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6236.91368011
delta logL = 0.0433753098878

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.969       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6205       1.0000          .0000       10.000    
     3 'Normalizat'    .96639       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84310       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6236.914     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      268 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.981        27.156        .94485E-04    .27674E-05
   2  Index         2.6197        .94535        .90110E-02    .15507E-04
   3  Normalizat    .96633        .24550        .32911E-03   -.17341E-04
   4  Prefactor     .84314        .12277        .17568E-03    .33262E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.9811
  Index      = 2.6197
  Normalizat = 0.966334
  Prefactor  = 0.84314
 **********
 **   18 **HESSE 
 **********

 FCN=   6236.914     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .81E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.981        25.128        .37794E-05   -1.4860    
   2  Index         2.6197        .87459        .36044E-03   -.49617    
   3  Normalizat    .96633        .24537        .13164E-04   -.94167    
   4  Prefactor     .84314        .12275        .70272E-05   -.98157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.07219e-12
Minuit parameter uncertainties:
  1  25.1426
  2  0.88046
  3  0.245656
  4  0.122791
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/284431': 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) = 6236.91367959
delta logL = 0.0433758278059

Extracting fit parameters...

4FGL J2104.0-3546
   Spectrum: PowerLaw
274    Prefactor:  1.798e+01  2.514e+01  1.000e-04  1.000e+04 ( 1.000e-13)
275        Index:  2.620e+00  8.805e-01  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:  8.431e-01  1.228e-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:  9.663e-01  2.457e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.23
Ra Dec: 316.010 -35.768
Photon Index (Free Index): 2.62 +/- 0.88
Photon Flux (Free Index): 4.54e-08 +/- 5.63e-08
Energy Flux (Free Index): 1.17e-05 +/- 1.29e-05

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/284431/cmap_HighResolution_336009601_336268801_4FGL_J2104.0-3546_daily_bin373.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.03e-02', comment='SUCCESS', photon_flux='3.61e-08', energy_flux2='1.17e-05', photon_flux_error='4.18e-08', dlogl='4.34e-02', energy_flux='1.23e-05', photon_flux2='4.54e-08', job_status='DONE', time_completed='2021-09-26 01:59:22.337178', photon_index_error2='0.88', photon_index2='2.62', ts='1.14', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='1.34e-07', energy_flux_error2='1.29e-05', EG='0.98', time_epoch_completed='1632646762.34', return_code='0', job_id='284431', GAL2='0.84', EG2='0.97', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='5.63e-08', ts2='1.23', photon_index='2.37' WHERE bin_id='373' AND source_name='4FGL J2104.0-3546' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 01:59:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 284431: <4FGL_J2104.0-3546_daily_bin373> in cluster <slac> Done

Job <4FGL_J2104.0-3546_daily_bin373> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Sep 26 01:45:38 2021
Job was executed on host(s) <bullet0194>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 01:46:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 01:46:20 2021
Terminated at Sun Sep 26 01:59:23 2021
Results reported at Sun Sep 26 01:59:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2104.0-3546_daily_bin373 316.01 -35.7678 336009601 336268801 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 :                                   624.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            825 sec.

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

