aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 83 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 = 7327
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2104.0-3546_daily_bin1697
RA = 316.01, Dec = -35.7678
tmin = 679190401, tmax = 679449601
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='857575', job_status='RUN', time_executed='2022-07-14 00:37:17.161005', time_epoch_executed='1657784237.16' WHERE source_name='4FGL J2104.0-3546' and cadence='daily' and bin_id='1697'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/857575

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/857575/ft1_4FGL_J2104.0-3546_daily_bin1697.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/857575/ft2_4FGL_J2104.0-3546_daily_bin1697.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/857575/ft1_4FGL_J2104.0-3546_daily_bin1697.fits outfile=/scratch/kocevski/857575/ft1_filteredMKT_4FGL_J2104.0-3546_daily_bin1697.fits ra=316.01 dec=-35.7678 rad=12.0 tmin=679190401.0 tmax=679449601.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.44
user 3.22
sys 0.20

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

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

Number of photons that the gtmktime cut: 556

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/857575/ft1_filtered_4FGL_J2104.0-3546_daily_bin1697.fits" evtable="EVENTS" scfile=/scratch/kocevski/857575/ft2_4FGL_J2104.0-3546_daily_bin1697.fits sctable="SC_DATA" outfile=/scratch/kocevski/857575/ltcube_679190401_679449601_4FGL_J2104.0-3546_daily_bin1697.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/857575/ft2_4FGL_J2104.0-3546_daily_bin1697.fits
.....................!
real 12.51
user 12.16
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/857575/ft1_filtered_4FGL_J2104.0-3546_daily_bin1697.fits evtable="EVENTS" scfile=/scratch/kocevski/857575/ft2_4FGL_J2104.0-3546_daily_bin1697.fits sctable="SC_DATA" expcube=/scratch/kocevski/857575/ltcube_679190401_679449601_4FGL_J2104.0-3546_daily_bin1697.fits outfile=/scratch/kocevski/857575/expmap_679190401_679449601_4FGL_J2104.0-3546_daily_bin1697.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/857575/ltcube_679190401_679449601_4FGL_J2104.0-3546_daily_bin1697.fits
.....................!
real 191.05
user 186.05
sys 4.55

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/857575/ft1_filtered_4FGL_J2104.0-3546_daily_bin1697.fits scfile=/scratch/kocevski/857575/ft2_4FGL_J2104.0-3546_daily_bin1697.fits outfile=/scratch/kocevski/857575/cmap_679190401_679449601_4FGL_J2104.0-3546_daily_bin1697.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/857575/ft1_filtered_4FGL_J2104.0-3546_daily_bin1697.fits scfile=/scratch/kocevski/857575/ft2_4FGL_J2104.0-3546_daily_bin1697.fits outfile=/scratch/kocevski/857575/cmap_HighResolution_679190401_679449601_4FGL_J2104.0-3546_daily_bin1697.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.54
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/857575/ft1_filtered_4FGL_J2104.0-3546_daily_bin1697.fits evtable="EVENTS" scfile=/scratch/kocevski/857575/ft2_4FGL_J2104.0-3546_daily_bin1697.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/857575/Model_4FGL_J2104.0-3546_daily_bin1697.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/857575/ft1_filtered_4FGL_J2104.0-3546_daily_bin1697.fits.....................!
real 54.71
user 53.33
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10550E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .10285E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11678E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .19208E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11354E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    30.053       1.0000         .10000E-03   10000.    
    10 'norm      '    .25471E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10608E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.8602       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10738E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.385       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.4142       1.0000         .10000E-03   10000.    
    16 'norm      '    7.0305       1.0000         .10000E-03   10000.    
    17 'norm      '    .10675E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10242E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.4096       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .85561       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=   6148.957     FROM MIGRAD    STATUS=CONVERGED    939 CALLS     3412 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10079E-03    39.706        .15224    ** at limit **
   2  norm          .10001E-03    77.398        .44180E-02** at limit **
   3  Prefactor     .10000E-03    158.82        .18142E-02** at limit **
   4  norm          .10000E-03    6.5742        .18142E-02** at limit **
   5  Prefactor     .10000E-03    11.695        .18142E-02** at limit **
   6  Prefactor     .10005E-03    35.887        .35478E-02** at limit **
   7  Prefactor     .10010E-03    1723.5        .36475E-02** at limit **
   8  Prefactor     .10000E-03    42.521        .18142E-02** at limit **
   9  norm          30.117        32.909        .73086E-04    .93332E-06
  10  norm          .10001E-03    19.971        .15434E-02** at limit **
  11  Prefactor     .10000E-03    50.589        .18142E-02** at limit **
  12  Prefactor     5.8626        22.964        .16589E-03   -.39062E-05
  13  Prefactor     .10001E-03    23.781        .33646E-02** at limit **
  14  Prefactor     12.385        10.022        .11382E-03    .33959E-05
  15  Prefactor     7.3465        42.120        .14729E-03   -.29175E-04
  16  norm          7.0325        7.4724        .15130E-03   -.41328E-05
  17  norm          .10000E-03    5.4117        .35091E-03** at limit **
  18  Prefactor     .10000E-03    16.288        .36285E-03** at limit **
  19  Prefactor     .10000E-03    33.537        .36285E-03** at limit **
  20  norm          .10000E-03    3.2293        .13734E-02** at limit **
  21  norm          .10000E-03    2.5742        .12229E-02** at limit **
  22  Normalizat    1.4106        .27356        .30282E-03   -.82294E-04
  23  Prefactor     .85513        .13325        .18599E-03    .27961E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100788
  norm       = 0.000100006
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100048
  Prefactor  = 0.000100096
  Prefactor  = 0.0001
  norm       = 30.1171
  norm       = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 5.86261
  Prefactor  = 0.000100007
  Prefactor  = 12.3846
  Prefactor  = 7.34649
  norm       = 7.03245
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.41058
  Prefactor  = 0.855127
 **********
 **   18 **HESSE 
 **********

 FCN=   6148.957     FROM HESSE     STATUS=OK           356 CALLS     3768 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10079E-03    39.440        .15307       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10001E-03    79.716        .17672E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    158.87        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    6.5743        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.695        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10005E-03    36.684        .70957E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10010E-03    1735.3        .72950E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    42.521        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          30.117        32.908        .29234E-05   -1.4610    
  10  norm          .10001E-03    20.592        .61736E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    50.620        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.8626        22.965        .66358E-05   -1.5224    
  13  Prefactor     .10001E-03    23.948        .67293E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.385        10.022        .45530E-05   -1.5004    
  15  Prefactor     7.3465        42.113        .58918E-05   -1.5166    
  16  norm          7.0325        7.4724        .60518E-05   -1.5178    
  17  norm          .10000E-03    5.4119        .70182E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.289        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    33.539        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.2296        .27469E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.5746        .24457E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.4106        .27370        .12113E-04   -.80323    
  23  Prefactor     .85513        .13331        .37198E-04   -.97727    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.79574e-09
Minuit parameter uncertainties:
  1  0.0111586
  2  0.00136448
  3  9.04573e-05
  4  3.00755e-06
  5  1.24773e-05
  6  0.00265744
  7  0.0266801
  8  5.20554e-05
  9  32.9278
  10  0.00100383
  11  1.44635e-05
  12  22.9997
  13  0.000801607
  14  10.0231
  15  35.2162
  16  7.4734
  17  2.57289e-06
  18  0.000107686
  19  0.000222703
  20  3.06661e-06
  21  4.55968e-06
  22  0.273989
  23  0.13336
Done.

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

Extracting fit parameters...

4FGL J2104.0-3546
   Spectrum: PowerLaw
274    Prefactor:  5.863e+00  2.300e+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.551e-01  1.334e-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.411e+00  2.740e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/857575/likelihoodResults_679190401_679449601_4FGL_J2104.0-3546_daily_bin1697.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) = 6148.75690854
delta logL = 0.199925649218

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6148.68586698
delta logL = 0.270967204511

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6148.686     FROM MIGRAD    STATUS=FAILED       100 CALLS      282 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .91510        84.785        .25856E-03   -.94315E-04
   2  Index         4.2888        6.7720        .78715E-02    .54232E-03
   3  Normalizat    1.3652        .21018        .30694E-03   -.21112E-05
   4  Prefactor     .86747        .10288        .18476E-03   -.32982E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6148.686     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      371 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .91510        84.785        .29445E-03   -.94315E-04
   2  Index         4.2888        6.7720        .23950E-02    .54232E-03
   3  Normalizat    1.3652        .21018        .22490E-03   -.21112E-05
   4  Prefactor     .86747        .10288        .65957E-04   -.32982E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6148.686     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      402 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .91514        87.284        .10342E-04   -.59359E-04
   2  Index         4.2888        6.7297        .15743E-02   -.46290E-05
   3  Normalizat    1.3652        .27042        .12278E-04    .25927E-05
   4  Prefactor     .86747        .13298        .73903E-05   -.19383E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.915141
  Index      = 4.28878
  Normalizat = 1.36517
  Prefactor  = 0.867475
 **********
 **   18 **HESSE 
 **********

 FCN=   6148.686     FROM HESSE     STATUS=OK            23 CALLS      425 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .91514        16.501        .41369E-06   -1.5517    
   2  Index         4.2888        3.7958        .62972E-04   -.14273    
   3  Normalizat    1.3652        .27388        .24555E-05   -.81641    
   4  Prefactor     .86747        .13318        .14781E-05   -.97287    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85682e-12
Minuit parameter uncertainties:
  1  7.77408
  2  4.32601
  3  0.274174
  4  0.133232
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/857575': 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) = 6148.68585989
delta logL = 0.270974299012

Extracting fit parameters...

4FGL J2104.0-3546
   Spectrum: PowerLaw
274    Prefactor:  9.151e-01  7.774e+00  1.000e-04  1.000e+04 ( 1.000e-13)
275        Index:  4.289e+00  4.326e+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:  8.675e-01  1.332e-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.365e+00  2.742e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.08
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/857575/cmap_HighResolution_679190401_679449601_4FGL_J2104.0-3546_daily_bin1697.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.79e-03', job_status='DONE', photon_flux_upper_limit='1.14e-07', time_completed='2022-07-14 00:48:14.830065', job_id='857575', GAL2='0.87', fit_tolerance='1e-08', EG2='1.37', EG='1.41', time_epoch_completed='1657784894.83', return_code2='0', ts='0.08', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='2.71e-01', ts2='0.65', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1697' AND source_name='4FGL J2104.0-3546' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Jul 14 00:48:14 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 857575: <4FGL_J2104.0-3546_daily_bin1697> in cluster <slac> Done

Job <4FGL_J2104.0-3546_daily_bin1697> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Jul 14 00:35:42 2022
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jul 14 00:35:43 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jul 14 00:35:43 2022
Terminated at Thu Jul 14 00:48:15 2022
Results reported at Thu Jul 14 00:48:15 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2104.0-3546_daily_bin1697 316.01 -35.7678 679190401 679449601 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 :                                   659.25 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             308.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            753 sec.

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

