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


Performing analysis on: 4FGL_J2104.0-3546_daily_bin1129
RA = 316.01, Dec = -35.7678
tmin = 531964801, tmax = 532224001
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='287523', job_status='RUN', time_executed='2021-09-26 02:01:05.084023', time_epoch_executed='1632646865.08' WHERE source_name='4FGL J2104.0-3546' and cadence='daily' and bin_id='1129'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287523

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287523/ft1_4FGL_J2104.0-3546_daily_bin1129.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287523/ft2_4FGL_J2104.0-3546_daily_bin1129.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287523/ft1_4FGL_J2104.0-3546_daily_bin1129.fits outfile=/scratch/kocevski/287523/ft1_filteredMKT_4FGL_J2104.0-3546_daily_bin1129.fits ra=316.01 dec=-35.7678 rad=12.0 tmin=531964801.0 tmax=532224001.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.62
user 3.27
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/287523/ft2_4FGL_J2104.0-3546_daily_bin1129.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/287523/ft1_filteredMKT_4FGL_J2104.0-3546_daily_bin1129.fits evtable="EVENTS" outfile="/scratch/kocevski/287523/ft1_filtered_4FGL_J2104.0-3546_daily_bin1129.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/287523/ft1_filtered_4FGL_J2104.0-3546_daily_bin1129.fits" evtable="EVENTS" scfile=/scratch/kocevski/287523/ft2_4FGL_J2104.0-3546_daily_bin1129.fits sctable="SC_DATA" outfile=/scratch/kocevski/287523/ltcube_531964801_532224001_4FGL_J2104.0-3546_daily_bin1129.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/287523/ft2_4FGL_J2104.0-3546_daily_bin1129.fits
.....................!
real 13.74
user 13.39
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287523/ft1_filtered_4FGL_J2104.0-3546_daily_bin1129.fits evtable="EVENTS" scfile=/scratch/kocevski/287523/ft2_4FGL_J2104.0-3546_daily_bin1129.fits sctable="SC_DATA" expcube=/scratch/kocevski/287523/ltcube_531964801_532224001_4FGL_J2104.0-3546_daily_bin1129.fits outfile=/scratch/kocevski/287523/expmap_531964801_532224001_4FGL_J2104.0-3546_daily_bin1129.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/287523/ltcube_531964801_532224001_4FGL_J2104.0-3546_daily_bin1129.fits
.....................!
real 193.18
user 188.11
sys 4.54

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/287523/ft1_filtered_4FGL_J2104.0-3546_daily_bin1129.fits scfile=/scratch/kocevski/287523/ft2_4FGL_J2104.0-3546_daily_bin1129.fits outfile=/scratch/kocevski/287523/cmap_531964801_532224001_4FGL_J2104.0-3546_daily_bin1129.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/287523/ft1_filtered_4FGL_J2104.0-3546_daily_bin1129.fits scfile=/scratch/kocevski/287523/ft2_4FGL_J2104.0-3546_daily_bin1129.fits outfile=/scratch/kocevski/287523/cmap_HighResolution_531964801_532224001_4FGL_J2104.0-3546_daily_bin1129.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.8911       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10332E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    52.168       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.3810       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    11.251       1.0000         .10000E-03   10000.    
    10 'norm      '    2.8697       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .27054       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.425       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.3349       1.0000         .10000E-03   10000.    
    17 'norm      '    43.564       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.4651       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10223E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    14.951       1.0000         .10000E-03   10000.    
    21 'norm      '    7.9487       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .34519       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.2525       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=   6073.674     FROM MIGRAD    STATUS=CONVERGED    510 CALLS     2607 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.871        .21685E-05** at limit **
   2  norm          1.8834        27.593        .15257E-04    .27961E-03
   3  Prefactor     .10000E-03    37.035        .21719E-06** at limit **
   4  norm          .10000E-03    9.7482       -.25997E-06** at limit **
   5  Prefactor     52.143        36.638        .11651E-05   -.19145E-04
   6  Prefactor     2.3738        8.5020        .13051E-05    .46262E-04
   7  Prefactor     .10000E-03    32.719       -.11994E-05** at limit **
   8  Prefactor     .10000E-03    48.785        .19951E-05** at limit **
   9  norm          11.243        19.415       -.36503E-07    .34724E-05
  10  norm          2.8689        2.1422        .14904E-06    .18560E-03
  11  Prefactor     .10000E-03    8.8513        .24596E-07** at limit **
  12  Prefactor     .20120        28.658       -.90838E-05    .52618E-03
  13  Prefactor     10.422        8.4677        .40595E-06   -.19740E-04
  14  Prefactor     .10000E-03    11.194        .43094E-07** at limit **
  15  Prefactor     .10000E-03    62.663       -.58960E-05** at limit **
  16  norm          3.3343        7.2177        .28645E-06    .30228E-04
  17  norm          43.548        9.9784        .81892E-06    .43222E-03
  18  Prefactor     4.4612        8.8740        .90534E-06    .69152E-04
  19  Prefactor     .10000E-03    12.516       -.42922E-06** at limit **
  20  norm          14.950        12.151        .29680E-06    .48402E-04
  21  norm          7.9438        8.4841        .77108E-06    .27557E-05
  22  Normalizat    .34539        .31893       -.68700E-05   -.20443E-04
  23  Prefactor     1.2524        .15563        .39423E-06    .46882E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 1.88339
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 52.1433
  Prefactor  = 2.37383
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 11.2435
  norm       = 2.86893
  Prefactor  = 0.0001
  Prefactor  = 0.201201
  Prefactor  = 10.4216
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.33429
  norm       = 43.548
  Prefactor  = 4.46121
  Prefactor  = 0.0001
  norm       = 14.9505
  norm       = 7.94379
  Normalizat = 0.345387
  Prefactor  = 1.25241
 **********
 **   18 **HESSE 
 **********

 FCN=   6073.674     FROM HESSE     STATUS=OK           378 CALLS     2985 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    48.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.8834        28.154        .15129E-02   -1.5433    
   3  Prefactor     .10000E-03    37.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    9.7537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     52.143        36.617        .55528E-04   -1.4263    
   6  Prefactor     2.3738        8.4684        .26548E-03   -1.5400    
   7  Prefactor     .10000E-03    32.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    48.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          11.243        19.420        .11944E-03   -1.5037    
  10  norm          2.8689        2.1311        .95023E-04   -1.5369    
  11  Prefactor     .10000E-03    8.8662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .20120        16.782        .10419       -1.5618    
  13  Prefactor     10.422        8.4456        .12409E-03   -1.5062    
  14  Prefactor     .10000E-03    11.472        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    63.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.3343        7.2042        .22164E-03   -1.5343    
  17  norm          43.548        10.073        .30370E-03   -1.4387    
  18  Prefactor     4.4612        8.8079        .19056E-03   -1.5286    
  19  Prefactor     .10000E-03    12.840        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          14.950        12.099        .10358E-03   -1.4934    
  21  norm          7.9438        8.3965        .14222E-03   -1.5144    
  22  Normalizat    .34539        .28988        .58121E-03   -1.2023    
  23  Prefactor     1.2524        .14483        .16227E-03   -.84734    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.79851e-09
Minuit parameter uncertainties:
  1  0.000361537
  2  14.5714
  3  0.000104746
  4  4.67279e-05
  5  36.6327
  6  8.47269
  7  0.000215521
  8  0.000445763
  9  19.4306
  10  2.13117
  11  6.95854e-06
  12  3.67523
  13  8.44655
  14  1.11617e-05
  15  0.000567884
  16  7.2061
  17  10.073
  18  8.81044
  19  5.25637e-05
  20  12.1007
  21  8.39774
  22  0.291145
  23  0.144874
Done.

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

Extracting fit parameters...

4FGL J2104.0-3546
   Spectrum: PowerLaw
274    Prefactor:  2.012e-01  3.675e+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

GAL_V02
   Spectrum: PowerLaw
516    Prefactor:  1.252e+00  1.449e-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:  3.454e-01  2.911e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 316.010 -35.768
Photon Flux Upper Limit: 9.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/287523/likelihoodResults_531964801_532224001_4FGL_J2104.0-3546_daily_bin1129.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) = 6073.62488117
delta logL = 0.048788699607

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6073.62488097
delta logL = 0.048788901443

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.4829       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7089       1.0000          .0000       10.000    
     3 'Normalizat'    .34988       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2482       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=   6073.625     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      261 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5032        6304.0        .39406E-02    .25192E-04
   2  Index         1.7112        8.2082        .32767       -.71776E-05
   3  Normalizat    .34997        .11534        .13044        .11432E-04
   4  Prefactor     1.2482        .60226E-01    .33579E-01   -.25018E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.50324
  Index      = 1.71122
  Normalizat = 0.34997
  Prefactor  = 1.24819
 **********
 **   18 **HESSE 
 **********

 FCN=   6073.625     FROM HESSE     STATUS=OK            31 CALLS      292 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5032        22.665        .15762E-03   -1.5198    
   2  Index         1.7112        1.2430        .18475E-01   -.71784    
   3  Normalizat    .34997        .26990        .57757E-03   -1.1997    
   4  Prefactor     1.2482        .13969        .16249E-03   -.84861    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7158e-11
Minuit parameter uncertainties:
  1  22.6947
  2  1.2668
  3  0.270911
  4  0.139735
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287523': 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) = 6073.62487878
delta logL = 0.048791091901

Extracting fit parameters...

4FGL J2104.0-3546
   Spectrum: PowerLaw
274    Prefactor:  6.503e+00  2.269e+01  1.000e-04  1.000e+04 ( 1.000e-13)
275        Index:  1.711e+00  1.267e+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:  1.248e+00  1.397e-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:  3.500e-01  2.709e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/287523/cmap_HighResolution_531964801_532224001_4FGL_J2104.0-3546_daily_bin1129.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.00e-03', job_status='DONE', photon_flux_upper_limit='9.07e-08', time_completed='2021-09-26 02:11:30.155153', job_id='287523', GAL2='1.25', fit_tolerance='1e-08', EG2='0.35', EG='0.35', time_epoch_completed='1632647490.16', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='4.88e-02', ts2='0.10', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1129' AND source_name='4FGL J2104.0-3546' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 02:11:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 287523: <4FGL_J2104.0-3546_daily_bin1129> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2104.0-3546_daily_bin1129 316.01 -35.7678 531964801 532224001 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 :                                   618.44 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             267.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            951 sec.

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

