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


Performing analysis on: 4FGL_J2104.0-3546_daily_bin1046
RA = 316.01, Dec = -35.7678
tmin = 510451201, tmax = 510710401
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='287404', job_status='RUN', time_executed='2021-09-26 01:57:11.185434', time_epoch_executed='1632646631.19' WHERE source_name='4FGL J2104.0-3546' and cadence='daily' and bin_id='1046'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287404

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287404/ft1_4FGL_J2104.0-3546_daily_bin1046.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287404/ft2_4FGL_J2104.0-3546_daily_bin1046.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287404/ft1_4FGL_J2104.0-3546_daily_bin1046.fits outfile=/scratch/kocevski/287404/ft1_filteredMKT_4FGL_J2104.0-3546_daily_bin1046.fits ra=316.01 dec=-35.7678 rad=12.0 tmin=510451201.0 tmax=510710401.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.99
user 3.72
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/287404/ft2_4FGL_J2104.0-3546_daily_bin1046.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/287404/ft1_filteredMKT_4FGL_J2104.0-3546_daily_bin1046.fits evtable="EVENTS" outfile="/scratch/kocevski/287404/ft1_filtered_4FGL_J2104.0-3546_daily_bin1046.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.51
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/287404/ft1_filtered_4FGL_J2104.0-3546_daily_bin1046.fits" evtable="EVENTS" scfile=/scratch/kocevski/287404/ft2_4FGL_J2104.0-3546_daily_bin1046.fits sctable="SC_DATA" outfile=/scratch/kocevski/287404/ltcube_510451201_510710401_4FGL_J2104.0-3546_daily_bin1046.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/287404/ft2_4FGL_J2104.0-3546_daily_bin1046.fits
.....................!
real 15.83
user 15.45
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287404/ft1_filtered_4FGL_J2104.0-3546_daily_bin1046.fits evtable="EVENTS" scfile=/scratch/kocevski/287404/ft2_4FGL_J2104.0-3546_daily_bin1046.fits sctable="SC_DATA" expcube=/scratch/kocevski/287404/ltcube_510451201_510710401_4FGL_J2104.0-3546_daily_bin1046.fits outfile=/scratch/kocevski/287404/expmap_510451201_510710401_4FGL_J2104.0-3546_daily_bin1046.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/287404/ltcube_510451201_510710401_4FGL_J2104.0-3546_daily_bin1046.fits
.....................!
real 191.36
user 185.73
sys 5.13

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/287404/ft1_filtered_4FGL_J2104.0-3546_daily_bin1046.fits scfile=/scratch/kocevski/287404/ft2_4FGL_J2104.0-3546_daily_bin1046.fits outfile=/scratch/kocevski/287404/cmap_510451201_510710401_4FGL_J2104.0-3546_daily_bin1046.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/287404/ft1_filtered_4FGL_J2104.0-3546_daily_bin1046.fits scfile=/scratch/kocevski/287404/ft2_4FGL_J2104.0-3546_daily_bin1046.fits outfile=/scratch/kocevski/287404/cmap_HighResolution_510451201_510710401_4FGL_J2104.0-3546_daily_bin1046.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.57
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/287404/ft1_filtered_4FGL_J2104.0-3546_daily_bin1046.fits evtable="EVENTS" scfile=/scratch/kocevski/287404/ft2_4FGL_J2104.0-3546_daily_bin1046.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/287404/Model_4FGL_J2104.0-3546_daily_bin1046.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/287404/ft1_filtered_4FGL_J2104.0-3546_daily_bin1046.fits.....................!
real 59.80
user 58.45
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.843       1.0000         .10000E-03   10000.    
     2 'norm      '    .14916E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.5665       1.0000         .10000E-03   10000.    
     4 'norm      '    9.5382       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    62.665       1.0000         .10000E-03   10000.    
     9 'norm      '    7.9770       1.0000         .10000E-03   10000.    
    10 'norm      '    .68284       1.0000         .10000E-03   10000.    
    11 'Prefactor '    40.802       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.543       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16030E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   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      '    9.2756       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.4836       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .28073       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.8576       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.6084       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .79502       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=   7000.200     FROM MIGRAD    STATUS=CONVERGED    545 CALLS     2609 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.844        40.151       -.15259E-07   -.11525E-04
   2  norm          .10000E-03    50.321       -.28399E-05** at limit **
   3  Prefactor     1.4901        167.48        .45457E-05    .45649E-05
   4  norm          9.5371        15.762        .18152E-06   -.16778E-05
   5  Prefactor     .10000E-03    7.8745        .12465E-07** at limit **
   6  Prefactor     .10000E-03    6.4253        .22141E-07** at limit **
   7  Prefactor     .10000E-03    85.770        .50396E-05** at limit **
   8  Prefactor     62.630        70.984       -.38289E-05   -.67402E-04
   9  norm          7.9778        19.650       -.10325E-05   -.73583E-04
  10  norm          .68273        2.0857       -.32314E-06   -.16881E-03
  11  Prefactor     40.800        25.556        .70433E-07    .11704E-04
  12  Prefactor     12.541        20.960        .14128E-06   -.59957E-05
  13  Prefactor     .10698E-03    7.6435       -.14355E-05** at limit **
  14  Prefactor     .10000E-03    3.1293        .43937E-07** at limit **
  15  Prefactor     .10000E-03    9.0337        .94924E-07** at limit **
  16  norm          .10000E-03    3.6057        .38342E-07** at limit **
  17  norm          9.2754        4.7688        .47522E-07   -.24749E-04
  18  Prefactor     7.4801        9.3211        .36526E-06   -.31067E-04
  19  Prefactor     .30574        19.337       -.90700E-06   -.23750E-03
  20  norm          .10000E-03    2.2809       -.25548E-07** at limit **
  21  norm          2.8572        5.3173        .72932E-07   -.24212E-04
  22  Normalizat    1.6085        .23593        .76196E-06   -.13520E-03
  23  Prefactor     .79503        .11247       -.10915E-05   -.16744E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.8439
  norm       = 0.000100002
  Prefactor  = 1.49008
  norm       = 9.53715
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 62.63
  norm       = 7.97775
  norm       = 0.682725
  Prefactor  = 40.8
  Prefactor  = 12.5415
  Prefactor  = 0.000106979
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.27542
  Prefactor  = 7.48007
  Prefactor  = 0.30574
  norm       = 0.0001
  norm       = 2.85718
  Normalizat = 1.60849
  Prefactor  = 0.79503
 **********
 **   18 **HESSE 
 **********

 FCN=   7000.200     FROM HESSE     STATUS=OK           382 CALLS     2991 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.844        40.178        .61246E-04   -1.4398    
   2  norm          .10000E-03    65.855        .43765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.4901        168.98        .33979E-03   -1.5464    
   4  norm          9.5371        15.763        .12976E-03   -1.5090    
   5  Prefactor     .10000E-03    7.8756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.6353        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    86.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     62.630        70.861        .50690E-04   -1.4124    
   9  norm          7.9778        19.673        .70981E-03   -1.5143    
  10  norm          .68273        2.0882        .20359E-03   -1.5543    
  11  Prefactor     40.800        25.584        .62754E-04   -1.4430    
  12  Prefactor     12.541        20.967        .11310E-03   -1.5000    
  13  Prefactor     .10698E-03    5.3360        .59084E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.1385        .14454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.0416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.6132        .15517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.2754        4.7740        .12670E-03   -1.5099    
  18  Prefactor     7.4801        9.3227        .14660E-03   -1.5161    
  19  Prefactor     .30574        51.010        .40365E-02   -1.5597    
  20  norm          .10000E-03    2.2843        .12340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.8572        5.3300        .24049E-03   -1.5370    
  22  Normalizat    1.6085        .26806        .30165E-03   -.74774    
  23  Prefactor     .79503        .12623        .20138E-03   -.99912    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26893e-09
Minuit parameter uncertainties:
  1  40.2036
  2  0.000767769
  3  31.8276
  4  15.7695
  5  1.10873e-06
  6  7.24113e-06
  7  0.000670643
  8  70.9571
  9  19.689
  10  2.0884
  11  25.5911
  12  20.9789
  13  0.0122056
  14  1.74582e-06
  15  3.35017e-06
  16  2.01966e-06
  17  4.77419
  18  9.32447
  19  7.90389
  20  1.25491e-06
  21  5.33085
  22  0.268302
  23  0.126277
Done.

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

Extracting fit parameters...

4FGL J2104.0-3546
   Spectrum: PowerLaw
274    Prefactor:  1.254e+01  2.098e+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:  7.950e-01  1.263e-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.608e+00  2.683e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/287404/likelihoodResults_510451201_510710401_4FGL_J2104.0-3546_daily_bin1046.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) = 7000.19819096
delta logL = 0.00189723343919

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7000.19771967
delta logL = 0.00236851539466

Fit tolerance = 1e-08

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

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

 FCN=   7000.198     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      228 TOTAL
                     EDM=   .93E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.227        976.10        .27534E-02   -.47512E-04
   2  Index         2.2799        5.2114        .24393        .35239E-04
   3  Normalizat    1.6103        .91417E-01    .68161E-01    .45926E-05
   4  Prefactor     .79455        .37010E-01    .43646E-01    .15485E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.2271
  Index      = 2.2799
  Normalizat = 1.61032
  Prefactor  = 0.794547
 **********
 **   18 **HESSE 
 **********

 FCN=   7000.198     FROM HESSE     STATUS=OK            33 CALLS      261 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.227        24.549        .11014E-03   -1.4980    
   2  Index         2.2799        1.2847        .14598E-01   -.57522    
   3  Normalizat    1.6103        .25047        .30151E-03   -.74724    
   4  Prefactor     .79455        .12310        .20143E-03   -.99930    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60178e-11
Minuit parameter uncertainties:
  1  24.5675
  2  1.30568
  3  0.250666
  4  0.123142
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287404': 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) = 7000.19771967
delta logL = 0.00236851903355

Extracting fit parameters...

4FGL J2104.0-3546
   Spectrum: PowerLaw
274    Prefactor:  1.323e+01  2.457e+01  1.000e-04  1.000e+04 ( 1.000e-13)
275        Index:  2.280e+00  1.306e+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:  7.945e-01  1.231e-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.610e+00  2.507e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.47
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/287404/cmap_HighResolution_510451201_510710401_4FGL_J2104.0-3546_daily_bin1046.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.57e-03', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-09-26 02:08:33.858950', job_id='287404', GAL2='0.79', fit_tolerance='1e-08', EG2='1.61', EG='1.61', time_epoch_completed='1632647313.86', return_code2='0', ts='0.47', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='2.37e-03', ts2='0.47', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1046' AND source_name='4FGL J2104.0-3546' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 02:08:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 287404: <4FGL_J2104.0-3546_daily_bin1046> in cluster <slac> Done

Job <4FGL_J2104.0-3546_daily_bin1046> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep 26 01:55:30 2021
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 01:56:52 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:56:52 2021
Terminated at Sun Sep 26 02:08:34 2021
Results reported at Sun Sep 26 02:08:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2104.0-3546_daily_bin1046 316.01 -35.7678 510451201 510710401 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 :                                   681.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             324.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   702 sec.
    Turnaround time :                            784 sec.

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

