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 108 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 = 7473
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2104.0-3546_daily_bin1681
RA = 316.01, Dec = -35.7678
tmin = 675043201, tmax = 675302401
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='755781', job_status='RUN', time_executed='2022-05-27 00:57:55.695152', time_epoch_executed='1653638275.7' WHERE source_name='4FGL J2104.0-3546' and cadence='daily' and bin_id='1681'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/755781

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/755781/ft1_4FGL_J2104.0-3546_daily_bin1681.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/755781/ft2_4FGL_J2104.0-3546_daily_bin1681.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/755781/ft1_4FGL_J2104.0-3546_daily_bin1681.fits outfile=/scratch/kocevski/755781/ft1_filteredMKT_4FGL_J2104.0-3546_daily_bin1681.fits ra=316.01 dec=-35.7678 rad=12.0 tmin=675043201.0 tmax=675302401.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.56
user 3.33
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/755781/ft2_4FGL_J2104.0-3546_daily_bin1681.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/755781/ft1_filteredMKT_4FGL_J2104.0-3546_daily_bin1681.fits evtable="EVENTS" outfile="/scratch/kocevski/755781/ft1_filtered_4FGL_J2104.0-3546_daily_bin1681.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.50
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 820

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/755781/ft1_filtered_4FGL_J2104.0-3546_daily_bin1681.fits" evtable="EVENTS" scfile=/scratch/kocevski/755781/ft2_4FGL_J2104.0-3546_daily_bin1681.fits sctable="SC_DATA" outfile=/scratch/kocevski/755781/ltcube_675043201_675302401_4FGL_J2104.0-3546_daily_bin1681.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/755781/ft2_4FGL_J2104.0-3546_daily_bin1681.fits
.....................!
real 15.40
user 14.99
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/755781/ft1_filtered_4FGL_J2104.0-3546_daily_bin1681.fits evtable="EVENTS" scfile=/scratch/kocevski/755781/ft2_4FGL_J2104.0-3546_daily_bin1681.fits sctable="SC_DATA" expcube=/scratch/kocevski/755781/ltcube_675043201_675302401_4FGL_J2104.0-3546_daily_bin1681.fits outfile=/scratch/kocevski/755781/expmap_675043201_675302401_4FGL_J2104.0-3546_daily_bin1681.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/755781/ltcube_675043201_675302401_4FGL_J2104.0-3546_daily_bin1681.fits
.....................!
real 193.58
user 187.40
sys 5.68

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/755781/ft1_filtered_4FGL_J2104.0-3546_daily_bin1681.fits scfile=/scratch/kocevski/755781/ft2_4FGL_J2104.0-3546_daily_bin1681.fits outfile=/scratch/kocevski/755781/cmap_675043201_675302401_4FGL_J2104.0-3546_daily_bin1681.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/755781/ft1_filtered_4FGL_J2104.0-3546_daily_bin1681.fits scfile=/scratch/kocevski/755781/ft2_4FGL_J2104.0-3546_daily_bin1681.fits outfile=/scratch/kocevski/755781/cmap_HighResolution_675043201_675302401_4FGL_J2104.0-3546_daily_bin1681.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=316.01 yref=-35.7678 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14278E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.3573       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12140E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    49.396       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10193E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .59085       1.0000         .10000E-03   10000.    
    10 'norm      '    .99701       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.0499       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14457E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.7778       1.0000         .10000E-03   10000.    
    17 'norm      '    7.0198       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.2331       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2078       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0074       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=   8835.213     FROM MIGRAD    STATUS=CONVERGED    558 CALLS     2969 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10017E-03    420.65        .12229E-04** at limit **
   2  norm          .10000E-03    5.1145        .12774E-07** at limit **
   3  Prefactor     .10000E-03    25.275       -.16514E-07** at limit **
   4  norm          .10000E-03    7.4186       -.11075E-06** at limit **
   5  Prefactor     8.3638        19.017       -.66881E-07   -.71625E-04
   6  Prefactor     .10000E-03    3.0834        .99799E-07** at limit **
   7  Prefactor     49.403        53.001        .12247E-06    .11688E-04
   8  Prefactor     .10000E-03    38.893        .62040E-07** at limit **
   9  norm          .71414        11.370        .13904E-06   -.37862E-04
  10  norm          .99724        1.7857        .51159E-06    .10856E-04
  11  Prefactor     9.0475        18.819        .91543E-06    .21743E-03
  12  Prefactor     .10350E-03    34.628       -.23852E-05** at limit **
  13  Prefactor     .10000E-03    6.3246        .12937E-06** at limit **
  14  Prefactor     .10000E-03    3.1714       -.49787E-07** at limit **
  15  Prefactor     .10000E-03    13.035       -.18011E-06** at limit **
  16  norm          5.7792        8.5663        .21377E-06   -.19050E-04
  17  norm          7.0201        4.2475        .12358E-05   -.15321E-03
  18  Prefactor     .10000E-03    2.3345       -.14766E-07** at limit **
  19  Prefactor     .10000E-03    2.5342       -.36813E-07** at limit **
  20  norm          .10000E-03    2.1278       -.43541E-08** at limit **
  21  norm          3.2338        3.8051        .32441E-06   -.11469E-04
  22  Normalizat    1.2078        .20098       -.75024E-06    .12906E-03
  23  Prefactor     1.0074        .99733E-01    .44693E-07    .12617E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100169
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.36377
  Prefactor  = 0.0001
  Prefactor  = 49.4028
  Prefactor  = 0.0001
  norm       = 0.714137
  norm       = 0.997244
  Prefactor  = 9.04747
  Prefactor  = 0.000103499
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.77924
  norm       = 7.02007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.2338
  Normalizat = 1.20777
  Prefactor  = 1.00737
 **********
 **   18 **HESSE 
 **********

 FCN=   8835.213     FROM HESSE     STATUS=OK           376 CALLS     3345 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10017E-03    444.37        .41018E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    5.1395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    25.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    7.4222        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.3638        19.018        .13867E-03   -1.5129    
   6  Prefactor     .10000E-03    10.464        .31854E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     49.403        52.998        .57058E-04   -1.4301    
   8  Prefactor     .10000E-03    38.919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .71414        123.74        .61088E-02   -1.5539    
  10  norm          .99724        1.7619        .16229E-03   -1.5508    
  11  Prefactor     9.0475        18.858        .13323E-03   -1.5106    
  12  Prefactor     .10350E-03    29.150        .12264       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.5659        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.1891        .16346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.7792        8.5642        .16709E-03   -1.5227    
  17  norm          7.0201        4.2634        .73024E-03   -1.5178    
  18  Prefactor     .10000E-03    2.3519        .14023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.5454        .14613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.1371        .13389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.2338        3.8092        .19116E-03   -1.5348    
  22  Normalizat    1.2078        .23501        .32617E-03   -.86363    
  23  Prefactor     1.0074        .11762        .18071E-03   -.92484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48285e-08
Minuit parameter uncertainties:
  1  0.0174858
  2  2.27853e-06
  3  7.86608e-06
  4  1.67708e-07
  5  19.0318
  6  1.61604e-05
  7  53.0487
  8  2.55839e-05
  9  18.839
  10  1.76195
  11  18.8701
  12  0.020207
  13  3.63213e-06
  14  2.71302e-06
  15  2.70377e-05
  16  8.56605
  17  4.26362
  18  5.59957e-07
  19  1.78578e-06
  20  6.72114e-07
  21  3.80948
  22  0.235219
  23  0.117651
Done.

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

Extracting fit parameters...

4FGL J2104.0-3546
   Spectrum: PowerLaw
274    Prefactor:  1.035e-04  2.021e-02  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.007e+00  1.177e-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.208e+00  2.352e-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: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/755781/likelihoodResults_675043201_675302401_4FGL_J2104.0-3546_daily_bin1681.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) = 8835.21292711
delta logL = -1.03125275928e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8835.2129271
delta logL = -1.03073871287e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96366E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3679       1.0000          .0000       10.000    
     3 'Normalizat'    1.2078       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0074       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=   8832.367     FROM MIGRAD    STATUS=CONVERGED    187 CALLS      368 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .78092E-02    .94287E-01    .39860E-05    .11785E-01
   2  Index         7.0818        2.9344        .40487E-02   -.69469E-04
   3  Normalizat    1.0355        .20858        .34822E-03    .22958E-03
   4  Prefactor     1.0571        .10488        .17671E-03   -.34374E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0078092
  Index      = 7.08176
  Normalizat = 1.03551
  Prefactor  = 1.05711
 **********
 **   18 **HESSE 
 **********

 FCN=   8832.367     FROM HESSE     STATUS=OK            25 CALLS      393 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .78092E-02    .15246        .15944E-06   -1.5726    
   2  Index         7.0818        3.5365        .16195E-03    .42943    
   3  Normalizat    1.0355        .23603        .13929E-04   -.91850    
   4  Prefactor     1.0571        .11814        .35341E-04   -.90849    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00719e-09
Minuit parameter uncertainties:
  1  0.0685664
  2  4.05223
  3  0.236274
  4  0.11817
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/755781': 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) = 8832.36666289
delta logL = 2.84625390386

Extracting fit parameters...

4FGL J2104.0-3546
   Spectrum: PowerLaw
274    Prefactor:  7.809e-03  6.857e-02  1.000e-04  1.000e+04 ( 1.000e-13)
275        Index:  7.082e+00  4.052e+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.057e+00  1.182e-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.036e+00  2.363e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.15
Ra Dec: 316.010 -35.768
Photon Index (Free Index): 7.08 +/- 4.05
Photon Flux (Free Index): 1.49e-07 +/- 2.56e-06
Energy Flux (Free Index): 1.78e-05 +/- 3.04e-04

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/755781/cmap_HighResolution_675043201_675302401_4FGL_J2104.0-3546_daily_bin1681.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.82e-03', comment='SUCCESS', energy_flux2='1.78e-05', dlogl='2.85e+00', photon_flux2='1.49e-07', job_status='DONE', time_completed='2022-05-27 01:11:24.211464', photon_index_error2='4.05', photon_index2='7.08', ts='-0.00', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='3.04e-04', EG='1.21', time_epoch_completed='1653639084.21', return_code='0', job_id='755781', GAL2='1.06', EG2='1.04', return_code2='0', photon_flux_error2='2.56e-06', ts2='6.15', photon_index='2.37' WHERE bin_id='1681' AND source_name='4FGL J2104.0-3546' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri May 27 01:11:24 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 755781: <4FGL_J2104.0-3546_daily_bin1681> in cluster <slac> Done

Job <4FGL_J2104.0-3546_daily_bin1681> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri May 27 00:55:18 2022
Job was executed on host(s) <bullet0124>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri May 27 00:55:57 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri May 27 00:55:57 2022
Terminated at Fri May 27 01:11:25 2022
Results reported at Fri May 27 01:11:25 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2104.0-3546_daily_bin1681 316.01 -35.7678 675043201 675302401 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 :                                   810.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             332.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            967 sec.

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

