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 170 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J2104.0-3546_daily_bin1750
RA = 316.01, Dec = -35.7678
tmin = 692928001, tmax = 693187201
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='24774', job_status='RUN', time_executed='2022-12-20 01:43:22.022693', time_epoch_executed='1671529402.02' WHERE source_name='4FGL J2104.0-3546' and cadence='daily' and bin_id='1750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/24774

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/24774/ft1_4FGL_J2104.0-3546_daily_bin1750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/24774/ft2_4FGL_J2104.0-3546_daily_bin1750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/24774/ft1_4FGL_J2104.0-3546_daily_bin1750.fits outfile=/scratch/kocevski/24774/ft1_filteredMKT_4FGL_J2104.0-3546_daily_bin1750.fits ra=316.01 dec=-35.7678 rad=12.0 tmin=692928001.0 tmax=693187201.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.55
user 3.30
sys 0.23

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

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

Number of photons that the gtmktime cut: 653

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/24774/ft1_filtered_4FGL_J2104.0-3546_daily_bin1750.fits" evtable="EVENTS" scfile=/scratch/kocevski/24774/ft2_4FGL_J2104.0-3546_daily_bin1750.fits sctable="SC_DATA" outfile=/scratch/kocevski/24774/ltcube_692928001_693187201_4FGL_J2104.0-3546_daily_bin1750.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/24774/ft2_4FGL_J2104.0-3546_daily_bin1750.fits
.....................!
real 11.88
user 11.48
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/24774/ft1_filtered_4FGL_J2104.0-3546_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/24774/ft2_4FGL_J2104.0-3546_daily_bin1750.fits sctable="SC_DATA" expcube=/scratch/kocevski/24774/ltcube_692928001_693187201_4FGL_J2104.0-3546_daily_bin1750.fits outfile=/scratch/kocevski/24774/expmap_692928001_693187201_4FGL_J2104.0-3546_daily_bin1750.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/24774/ltcube_692928001_693187201_4FGL_J2104.0-3546_daily_bin1750.fits
.....................!
real 191.03
user 185.50
sys 5.07

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

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/24774/ft1_filtered_4FGL_J2104.0-3546_daily_bin1750.fits scfile=/scratch/kocevski/24774/ft2_4FGL_J2104.0-3546_daily_bin1750.fits outfile=/scratch/kocevski/24774/cmap_HighResolution_692928001_693187201_4FGL_J2104.0-3546_daily_bin1750.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/24774/ft1_filtered_4FGL_J2104.0-3546_daily_bin1750.fits evtable="EVENTS" scfile=/scratch/kocevski/24774/ft2_4FGL_J2104.0-3546_daily_bin1750.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/24774/Model_4FGL_J2104.0-3546_daily_bin1750.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/24774/ft1_filtered_4FGL_J2104.0-3546_daily_bin1750.fits.....................!
real 60.37
user 58.54
sys 1.38

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/24774/ft1_filtered_4FGL_J2104.0-3546_daily_bin1750.fits', '/scratch/kocevski/24774/ft2_4FGL_J2104.0-3546_daily_bin1750.fits', expMap='/scratch/kocevski/24774/expmap_692928001_693187201_4FGL_J2104.0-3546_daily_bin1750.fits', expCube='/scratch/kocevski/24774/ltcube_692928001_693187201_4FGL_J2104.0-3546_daily_bin1750.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/24774/Model_4FGL_J2104.0-3546_daily_bin1750.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  0.000e+00  1.000e+06 ( 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/24774/ft1_filtered_4FGL_J2104.0-3546_daily_bin1750.fits
Spacecraft file(s): /scratch/kocevski/24774/ft2_4FGL_J2104.0-3546_daily_bin1750.fits
Exposure map: /scratch/kocevski/24774/expmap_692928001_693187201_4FGL_J2104.0-3546_daily_bin1750.fits
Exposure cube: /scratch/kocevski/24774/ltcube_692928001_693187201_4FGL_J2104.0-3546_daily_bin1750.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/24774/Model_4FGL_J2104.0-3546_daily_bin1750.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) = 7131.84192368

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.481       1.0000          .0000       .10000E+07
     2 'Prefactor '    .89299E-01   1.0000          .0000       .10000E+07
     3 'norm      '    .16127E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    8.4541       1.0000          .0000       .10000E+07
     5 'Prefactor '    12.811       1.0000          .0000       .10000E+07
     6 'norm      '    2.3519       1.0000          .0000       .10000E+07
     7 'norm      '    .57771E-05   1.0000          .0000       .10000E+07
     8 'Prefactor '    13.483       1.0000          .0000       .10000E+07
     9 'Prefactor '    25.341       1.0000          .0000       .10000E+07
    10 'Prefactor '    .11843E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    10.563       1.0000          .0000       .10000E+07
    12 'Prefactor '    .31375E-03   1.0000          .0000       .10000E+07
    13 'norm      '    .77242E-03   1.0000          .0000       .10000E+07
    14 'norm      '    .38916E-05   1.0000          .0000       .10000E+07
    15 'Prefactor '    .35322E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    12.299       1.0000          .0000       .10000E+07
    17 'norm      '    .16110E-05   1.0000          .0000       .10000E+07
    18 'norm      '    .18947E-04   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.2127       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0619       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5190E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7131.742     FROM MIGRAD    STATUS=CONVERGED    147 CALLS     1202 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.543        9.9204       -.83260E-09    .66356E-01
   2  Prefactor     .52347E-07    38.984       -.23648E-06** at limit **
   3  norm          .12934E-07    19.549        .53915E-06** at limit **
   4  Prefactor     8.4361        7.6392       -.33902E-07   -.61241E-03
   5  Prefactor     11.321        71.406       -.27820E-05    .20047E-03
   6  norm          2.5262        7.2663       -.32326E-07   -.82729E-02
   7  norm           .0000        1.0638        .11825E-06** at limit **
   8  Prefactor     13.930        13.618       -.78670E-07    .65299E-01
   9  Prefactor     24.210        33.032        .42808E-06   -.61724E-02
  10  Prefactor      .0000        2.2889        .11218E-06** at limit **
  11  Prefactor     10.562        3.2337       -.43739E-07   -.34645E-02
  12  Prefactor     .16653E-09    11.944       -.46235E-06** at limit **
  13  norm           .0000        3.0535        .24650E-06** at limit **
  14  norm           .0000        1.2017        .48203E-07** at limit **
  15  Prefactor     .11102E-09    4.8825        .21914E-06** at limit **
  16  Prefactor     12.503        9.0856        .20953E-06    .30568E-01
  17  norm          .55511E-10    4.3919        .52005E-06** at limit **
  18  norm           .0000        1.4266       -.55156E-07** at limit **
  19  Normalizat    1.2129        .26877        .80597E-05    .35873E-04
  20  Prefactor     1.0620        .13501       -.11880E-05    .46509E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.5433
  Prefactor  = 5.2347e-08
  norm       = 1.29341e-08
  Prefactor  = 8.43608
  Prefactor  = 11.3212
  norm       = 2.52616
  norm       = 0
  Prefactor  = 13.9296
  Prefactor  = 24.2095
  Prefactor  = 0
  Prefactor  = 10.562
  Prefactor  = 1.66533e-10
  norm       = 0
  norm       = 0
  Prefactor  = 1.11022e-10
  Prefactor  = 12.5034
  norm       = 5.55112e-11
  norm       = 0
  Normalizat = 1.2129
  Prefactor  = 1.06203
 **********
 **   18 **HESSE 
 **********

 FCN=   7131.742     FROM HESSE     STATUS=OK           329 CALLS     1531 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.543        15.867        .30924E-03   -1.5643    
   2  Prefactor     .52347E-07    43.246        .14226E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .12934E-07    19.567        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.4361        7.6837        .34453E-03   -1.5650    
   5  Prefactor     11.321        71.583        .27960E-03   -1.5641    
   6  norm          2.5262        32.614        .66810E-03   -1.5676    
   7  norm           .0000        1.0595        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.930        20.134        .27252E-03   -1.5633    
   9  Prefactor     24.210        33.054        .19869E-03   -1.5610    
  10  Prefactor      .0000        2.2868        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     10.562        9.3507        .30804E-03   -1.5643    
  12  Prefactor     .16653E-09    11.949        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm           .0000        3.0534        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        1.2011        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .11102E-09    4.8745        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.503        9.2918        .28538E-03   -1.5637    
  17  norm          .55511E-10    4.3849        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        1.4249        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2129        .23612        .78464E-01   -.86205    
  20  Prefactor     1.0620        .11806        .39260E-01   -.90690    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58152e-07
Minuit parameter uncertainties:
  1  15.8673
  2  0.00300866
  3  0.00100517
  4  7.68372
  5  56.9363
  6  18.1538
  7  1.91983e-06
  8  20.134
  9  33.0542
  10  1.60844e-06
  11  9.35068
  12  9.13754e-05
  13  6.92952e-06
  14  9.76228e-07
  15  4.43786e-05
  16  9.2918
  17  3.39805e-05
  18  1.92425e-07
  19  0.236332
  20  0.118091
Done.

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

Extracting fit parameters...

4FGL J2104.0-3546
   Spectrum: PowerLaw
274    Prefactor:  2.421e+01  3.305e+01  0.000e+00  1.000e+06 ( 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.062e+00  1.181e-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.213e+00  2.363e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.65
Ra Dec: 316.010 -35.768
Photon Flux Upper Limit: 1.60e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.23e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/24774/likelihoodResults_692928001_693187201_4FGL_J2104.0-3546_daily_bin1750.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) = 7130.89229103
delta logL = 0.849850226296

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7130.86099315
delta logL = 0.881148110662

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1489       1.0000          .0000       .10000E+07
     2 'Index     '    3.8231       1.0000          .0000       10.000    
     3 'Normalizat'    1.1295       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0854       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7130.861     FROM MIGRAD    STATUS=FAILED        80 CALLS      324 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1511        125.28        .13019E-04    .61140E-01
   2  Index         3.8234        6.8216        .47165E-02    .16925E-02
   3  Normalizat    1.1296        .26262        .35786E-03    .12089E-02
   4  Prefactor     1.0854        .13332        .18398E-03    .21199E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7130.861     FROM SIMPLEX   STATUS=UNCHANGED     87 CALLS      411 TOTAL
                     EDM=   .82E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1511        125.28        .22735E-04    .61140E-01
   2  Index         3.8234        6.8216        .10097E-02    .16925E-02
   3  Normalizat    1.1296        .26262        .31928E-03    .12089E-02
   4  Prefactor     1.0854        .13332        .15478E-03    .21199E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7130.861     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      442 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1529        16.295        .52075E-06    .24404E-02
   2  Index         3.8232        1.6257        .18866E-03    .49594E-04
   3  Normalizat    1.1296        .27420        .71573E-04   -.43840E-05
   4  Prefactor     1.0854        .13629        .36795E-04    .37324E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.15286
  Index      = 3.82321
  Normalizat = 1.12962
  Prefactor  = 1.08538
 **********
 **   18 **HESSE 
 **********

 FCN=   7130.861     FROM HESSE     STATUS=OK            23 CALLS      465 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1529        15.653        .37342E-06   -1.5663    
   2  Index         3.8232        1.5640        .75464E-05   -.23759    
   3  Normalizat    1.1296        .27407        .14315E-04   -.88807    
   4  Prefactor     1.0854        .13619        .73591E-05   -.89935    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.22259e-11
Minuit parameter uncertainties:
  1  15.6534
  2  1.59231
  3  0.274421
  4  0.13623
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/24774': 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) = 7130.86099187
delta logL = 0.881149388073

Extracting fit parameters...

4FGL J2104.0-3546
   Spectrum: PowerLaw
274    Prefactor:  5.153e+00  1.565e+01  0.000e+00  1.000e+06 ( 1.000e-13)
275        Index:  3.823e+00  1.592e+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.085e+00  1.362e-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.130e+00  2.744e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.51
Ra Dec: 316.010 -35.768
Photon Index (Free Index): 3.82 +/- 1.59
Photon Flux (Free Index): 1.18e-07 +/- 8.82e-08
Energy Flux (Free Index): 1.83e-05 +/- 1.38e-05

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/24774/cmap_HighResolution_692928001_693187201_4FGL_J2104.0-3546_daily_bin1750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.23e-02', comment='SUCCESS', energy_flux2='1.83e-05', dlogl='8.81e-01', photon_flux2='1.18e-07', job_status='DONE', time_completed='2022-12-20 01:52:19.007786', photon_index_error2='1.59', photon_index2='3.82', ts='0.65', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.60e-07', energy_flux_error2='1.38e-05', EG='1.21', time_epoch_completed='1671529939.01', return_code='0', job_id='24774', GAL2='1.09', EG2='1.13', return_code2='0', photon_flux_error2='8.82e-08', ts2='2.51', photon_index='2.37' WHERE bin_id='1750' AND source_name='4FGL J2104.0-3546' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec 20 01:52:19 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 24774: <4FGL_J2104.0-3546_daily_bin1750> in cluster <slac> Done

Job <4FGL_J2104.0-3546_daily_bin1750> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Dec 20 01:40:22 2022
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec 20 01:40:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec 20 01:40:23 2022
Terminated at Tue Dec 20 01:52:19 2022
Results reported at Tue Dec 20 01:52:19 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2104.0-3546_daily_bin1750 316.01 -35.7678 692928001 693187201 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 :                                   538.48 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   716 sec.
    Turnaround time :                            717 sec.

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

