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


Performing analysis on: 4FGL_J2104.0-3546_daily_bin925
RA = 316.01, Dec = -35.7678
tmin = 479088001, tmax = 479347201
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='286258', job_status='RUN', time_executed='2021-09-26 01:53:54.488337', time_epoch_executed='1632646434.49' WHERE source_name='4FGL J2104.0-3546' and cadence='daily' and bin_id='925'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/286258

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/286258/ft1_4FGL_J2104.0-3546_daily_bin925.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/286258/ft2_4FGL_J2104.0-3546_daily_bin925.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/286258/ft1_4FGL_J2104.0-3546_daily_bin925.fits outfile=/scratch/kocevski/286258/ft1_filteredMKT_4FGL_J2104.0-3546_daily_bin925.fits ra=316.01 dec=-35.7678 rad=12.0 tmin=479088001.0 tmax=479347201.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.28
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/286258/ft1_filtered_4FGL_J2104.0-3546_daily_bin925.fits" evtable="EVENTS" scfile=/scratch/kocevski/286258/ft2_4FGL_J2104.0-3546_daily_bin925.fits sctable="SC_DATA" outfile=/scratch/kocevski/286258/ltcube_479088001_479347201_4FGL_J2104.0-3546_daily_bin925.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/286258/ft2_4FGL_J2104.0-3546_daily_bin925.fits
.....................!
real 14.32
user 13.94
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/286258/ft1_filtered_4FGL_J2104.0-3546_daily_bin925.fits evtable="EVENTS" scfile=/scratch/kocevski/286258/ft2_4FGL_J2104.0-3546_daily_bin925.fits sctable="SC_DATA" expcube=/scratch/kocevski/286258/ltcube_479088001_479347201_4FGL_J2104.0-3546_daily_bin925.fits outfile=/scratch/kocevski/286258/expmap_479088001_479347201_4FGL_J2104.0-3546_daily_bin925.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/286258/ltcube_479088001_479347201_4FGL_J2104.0-3546_daily_bin925.fits
.....................!
real 191.29
user 186.66
sys 4.12

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/286258/ft1_filtered_4FGL_J2104.0-3546_daily_bin925.fits scfile=/scratch/kocevski/286258/ft2_4FGL_J2104.0-3546_daily_bin925.fits outfile=/scratch/kocevski/286258/cmap_479088001_479347201_4FGL_J2104.0-3546_daily_bin925.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.59
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/286258/ft1_filtered_4FGL_J2104.0-3546_daily_bin925.fits scfile=/scratch/kocevski/286258/ft2_4FGL_J2104.0-3546_daily_bin925.fits outfile=/scratch/kocevski/286258/cmap_HighResolution_479088001_479347201_4FGL_J2104.0-3546_daily_bin925.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/286258/ft1_filtered_4FGL_J2104.0-3546_daily_bin925.fits evtable="EVENTS" scfile=/scratch/kocevski/286258/ft2_4FGL_J2104.0-3546_daily_bin925.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/286258/Model_4FGL_J2104.0-3546_daily_bin925.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/286258/ft1_filtered_4FGL_J2104.0-3546_daily_bin925.fits.....................!
real 76.38
user 75.01
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10122E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.9530       1.0000         .10000E-03   10000.    
     4 'norm      '    .10771E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .13227E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    .90262       1.0000         .10000E-03   10000.    
    11 'Prefactor '    21.506       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.5305       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    17.213       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.2445       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9447       1.0000         .10000E-03   10000.    
    20 'norm      '    2.8250       1.0000         .10000E-03   10000.    
    21 'norm      '    7.9726       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .97287       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0267       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=   9662.010     FROM MIGRAD    STATUS=CONVERGED    515 CALLS     2521 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.701       -.20211E-05** at limit **
   2  norm          .10000E-03    4.9247        .63370E-07** at limit **
   3  Prefactor     2.9553        67.814        .15870E-06   -.32044E-05
   4  norm          .10000E-03    9.5351        .55821E-07** at limit **
   5  Prefactor     .10000E-03    15.431        .37617E-06** at limit **
   6  Prefactor     .10000E-03    1.4766        .91009E-09** at limit **
   7  Prefactor     .10000E-03    30.789       -.62958E-06** at limit **
   8  Prefactor     .10000E-03    48.690        .10104E-04** at limit **
   9  norm          .10000E-03    71.133       -.19098E-04** at limit **
  10  norm          .90280        1.3076        .34106E-06    .13344E-02
  11  Prefactor     21.497        17.678       -.16037E-06   -.17500E-04
  12  Prefactor     .10000E-03    7.1265       -.78183E-06** at limit **
  13  Prefactor     .10000E-03    1.1482        .18869E-08** at limit **
  14  Prefactor     5.5306        6.2869       -.16519E-05   -.48045E-04
  15  Prefactor     .10000E-03    6.9886        .75633E-06** at limit **
  16  norm          .10000E-03    2.1195        .19328E-07** at limit **
  17  norm          17.209        4.7240        .39026E-07   -.41032E-04
  18  Prefactor     2.2429        6.9514       -.43588E-06    .10636E-04
  19  Prefactor     1.9463        3.6421       -.16289E-06    .46943E-05
  20  norm          2.8232        8.3187       -.26303E-06    .15178E-04
  21  norm          7.9769        4.7241       -.13016E-06    .24412E-04
  22  Normalizat    .97278        .19096        .24291E-06   -.82337E-04
  23  Prefactor     1.0268        .92712E-01   -.10339E-06    .10487E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.95534
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.902804
  Prefactor  = 21.4969
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.53063
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 17.2095
  Prefactor  = 2.24292
  Prefactor  = 1.9463
  norm       = 2.82315
  norm       = 7.97692
  Normalizat = 0.972777
  Prefactor  = 1.02676
 **********
 **   18 **HESSE 
 **********

 FCN=   9662.010     FROM HESSE     STATUS=OK           372 CALLS     2893 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.9502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.9553        67.990        .23633E-03   -1.5364    
   4  norm          .10000E-03    9.5856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.4823        .11662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    30.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    47.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    69.122        .54770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .90280        1.1330        .13366E-02   -1.5518    
  11  Prefactor     21.497        17.674        .86370E-04   -1.4780    
  12  Prefactor     .10000E-03    7.1302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.1500        .10286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.5306        6.2900        .85421E-03   -1.5238    
  15  Prefactor     .10000E-03    6.9954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.1219        .13976E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          17.209        4.7250        .96537E-04   -1.4878    
  18  Prefactor     2.2429        6.9298        .27431E-03   -1.5408    
  19  Prefactor     1.9463        3.5988        .24712E-03   -1.5429    
  20  norm          2.8232        8.2785        .24197E-03   -1.5372    
  21  norm          7.9769        4.7294        .14200E-03   -1.5143    
  22  Normalizat    .97278        .22249        .34011E-03   -.93948    
  23  Prefactor     1.0268        .10877        .17143E-03   -.91843    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.18041e-10
Minuit parameter uncertainties:
  1  6.53128e-05
  2  7.01258e-07
  3  28.3863
  4  5.16298e-07
  5  8.08029e-06
  6  6.66413e-07
  7  1.10541e-05
  8  0.000326064
  9  0.000262928
  10  1.13303
  11  17.6787
  12  1.14468e-05
  13  5.09316e-08
  14  6.29079
  15  6.93895e-06
  16  2.00683e-07
  17  4.7251
  18  6.93232
  19  3.5992
  20  8.28183
  21  4.72967
  22  0.222704
  23  0.108796
Done.

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

Extracting fit parameters...

4FGL J2104.0-3546
   Spectrum: PowerLaw
274    Prefactor:  1.000e-04  1.145e-05  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.027e+00  1.088e-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.728e-01  2.227e-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: 5.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/286258/likelihoodResults_479088001_479347201_4FGL_J2104.0-3546_daily_bin925.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) = 9662.01116394
delta logL = -0.000668520347972

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9662.01049539
delta logL = 2.16696207644e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3591       1.0000          .0000       10.000    
     3 'Normalizat'    .97278       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0268       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=   9662.010     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      244 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10058E-03    110.28        .18142E-02** at limit **
   2  Index         2.3124        5.4782        .50000        .87465E-05
   3  Normalizat    .97278        .18471E-01    .34011E-03   -.62841E-05
   4  Prefactor     1.0268        .96027E-02    .17143E-03   -.58360E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100576
  Index      = 2.31242
  Normalizat = 0.972778
  Prefactor  = 1.02676
 **********
 **   18 **HESSE 
 **********

 FCN=   9662.010     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10058E-03    463.32        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3124        7.7174        .50000       -.56749    
   3  Normalizat    .97278        .40512E-01    .13605E-04   -.93948    
   4  Prefactor     1.0268        .21060E-01    .68570E-05   -.91843    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.29978e-08
Minuit parameter uncertainties:
  1  0.0329184
  2  1107.8
  3  0.0405129
  4  0.0210605
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/286258': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9662.01049533
delta logL = 8.79263097886e-08

Extracting fit parameters...

4FGL J2104.0-3546
   Spectrum: PowerLaw
274    Prefactor:  1.006e-04  3.292e-02  1.000e-04  1.000e+04 ( 1.000e-13)
275        Index:  2.312e+00  1.108e+03  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.027e+00  2.106e-02  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.728e-01  4.051e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/286258/cmap_HighResolution_479088001_479347201_4FGL_J2104.0-3546_daily_bin925.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.17e-03', job_status='DONE', photon_flux_upper_limit='5.41e-08', time_completed='2021-09-26 02:07:20.994875', job_id='286258', GAL2='1.03', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1632647240.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='8.79e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='925' AND source_name='4FGL J2104.0-3546' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 02:07:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 286258: <4FGL_J2104.0-3546_daily_bin925> in cluster <slac> Done

Job <4FGL_J2104.0-3546_daily_bin925> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep 26 01:51:07 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 01:53:36 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:53:36 2021
Terminated at Sun Sep 26 02:07:21 2021
Results reported at Sun Sep 26 02:07:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2104.0-3546_daily_bin925 316.01 -35.7678 479088001 479347201 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 :                                   803.33 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             334.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            974 sec.

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

