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


Performing analysis on: 4FGL_J0540.0-7552_daily_bin1720
RA = 85.0064, Dec = -75.8782
tmin = 685152001, tmax = 685411201
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='834428', job_status='RUN', time_executed='2022-09-21 00:29:15.137761', time_epoch_executed='1663745355.14' WHERE source_name='4FGL J0540.0-7552' and cadence='daily' and bin_id='1720'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/834428

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/834428/ft1_4FGL_J0540.0-7552_daily_bin1720.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/834428/ft2_4FGL_J0540.0-7552_daily_bin1720.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/834428/ft1_4FGL_J0540.0-7552_daily_bin1720.fits outfile=/scratch/kocevski/834428/ft1_filteredMKT_4FGL_J0540.0-7552_daily_bin1720.fits ra=85.0064 dec=-75.8782 rad=12.0 tmin=685152001.0 tmax=685411201.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.76
user 3.52
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/834428/ft2_4FGL_J0540.0-7552_daily_bin1720.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/834428/ft2_4FGL_J0540.0-7552_daily_bin1720.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/834428/ft1_filteredMKT_4FGL_J0540.0-7552_daily_bin1720.fits evtable="EVENTS" outfile="/scratch/kocevski/834428/ft1_filtered_4FGL_J0540.0-7552_daily_bin1720.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.54
user 0.38
sys 0.15

Number of photons that the gtmktime cut: 1111

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/834428/ft1_filtered_4FGL_J0540.0-7552_daily_bin1720.fits" evtable="EVENTS" scfile=/scratch/kocevski/834428/ft2_4FGL_J0540.0-7552_daily_bin1720.fits sctable="SC_DATA" outfile=/scratch/kocevski/834428/ltcube_685152001_685411201_4FGL_J0540.0-7552_daily_bin1720.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/834428/ft2_4FGL_J0540.0-7552_daily_bin1720.fits
.....................!
real 16.86
user 16.42
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/834428/ft1_filtered_4FGL_J0540.0-7552_daily_bin1720.fits evtable="EVENTS" scfile=/scratch/kocevski/834428/ft2_4FGL_J0540.0-7552_daily_bin1720.fits sctable="SC_DATA" expcube=/scratch/kocevski/834428/ltcube_685152001_685411201_4FGL_J0540.0-7552_daily_bin1720.fits outfile=/scratch/kocevski/834428/expmap_685152001_685411201_4FGL_J0540.0-7552_daily_bin1720.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/834428/ltcube_685152001_685411201_4FGL_J0540.0-7552_daily_bin1720.fits
.....................!
real 191.31
user 186.14
sys 4.63

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
Extended source LMC-FarWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-FarWest.fits is the correct path to the extended template.
Extended source LMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-Galaxy.fits is the correct path to the extended template.
Extended source LMC-30DorWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-30DorWest.fits is the correct path to the extended template.
Extended source LMC-North in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/LMC-North.fits is the correct path to the extended template.
Extended source SMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/SMC-Galaxy.fits is the correct path to the extended template.
Added 171 point sources and 5 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0540.0-7552 @ 85.0064 -75.8782

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/834428/ft1_filtered_4FGL_J0540.0-7552_daily_bin1720.fits scfile=/scratch/kocevski/834428/ft2_4FGL_J0540.0-7552_daily_bin1720.fits outfile=/scratch/kocevski/834428/cmap_685152001_685411201_4FGL_J0540.0-7552_daily_bin1720.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=85.0064 yref=-75.8782 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.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/834428/ft1_filtered_4FGL_J0540.0-7552_daily_bin1720.fits scfile=/scratch/kocevski/834428/ft2_4FGL_J0540.0-7552_daily_bin1720.fits outfile=/scratch/kocevski/834428/cmap_HighResolution_685152001_685411201_4FGL_J0540.0-7552_daily_bin1720.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=85.0064 yref=-75.8782 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.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/834428/ft1_filtered_4FGL_J0540.0-7552_daily_bin1720.fits evtable="EVENTS" scfile=/scratch/kocevski/834428/ft2_4FGL_J0540.0-7552_daily_bin1720.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/834428/Model_4FGL_J0540.0-7552_daily_bin1720.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
adding source LMC-30DorWest
adding source LMC-FarWest
adding source LMC-Galaxy
adding source LMC-North
adding source SMC-Galaxy
Working on...
/scratch/kocevski/834428/ft1_filtered_4FGL_J0540.0-7552_daily_bin1720.fits.....................!
real 9716.88
user 9693.01
sys 5.09

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/834428/ft1_filtered_4FGL_J0540.0-7552_daily_bin1720.fits', '/scratch/kocevski/834428/ft2_4FGL_J0540.0-7552_daily_bin1720.fits', expMap='/scratch/kocevski/834428/expmap_685152001_685411201_4FGL_J0540.0-7552_daily_bin1720.fits', expCube='/scratch/kocevski/834428/ltcube_685152001_685411201_4FGL_J0540.0-7552_daily_bin1720.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/834428/Model_4FGL_J0540.0-7552_daily_bin1720.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0540.0-7552'

4FGL J0540.0-7552
   Spectrum: LogParabola
274         norm:  8.467e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
275        alpha:  2.167e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
276         beta:  2.198e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
277           Eb:  9.031e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/834428/ft1_filtered_4FGL_J0540.0-7552_daily_bin1720.fits
Spacecraft file(s): /scratch/kocevski/834428/ft2_4FGL_J0540.0-7552_daily_bin1720.fits
Exposure map: /scratch/kocevski/834428/expmap_685152001_685411201_4FGL_J0540.0-7552_daily_bin1720.fits
Exposure cube: /scratch/kocevski/834428/ltcube_685152001_685411201_4FGL_J0540.0-7552_daily_bin1720.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/834428/Model_4FGL_J0540.0-7552_daily_bin1720.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) = 11651.1054838

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3623       1.0000          .0000       .10000E+07
     2 'Prefactor '    101.89       1.0000          .0000       .10000E+07
     3 'Prefactor '    .12955E-01   1.0000          .0000       .10000E+07
     4 'Prefactor '    38.360       1.0000          .0000       .10000E+07
     5 'Prefactor '    .32764E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    21.535       1.0000          .0000       .10000E+07
     7 'Prefactor '    4.9402       1.0000          .0000       .10000E+07
     8 'Prefactor '    .37252       1.0000          .0000       .10000E+07
     9 'Prefactor '    .80758E-01   1.0000          .0000       .10000E+07
    10 'norm      '    22.948       1.0000          .0000       .10000E+07
    11 'norm      '    .36159E-01   1.0000          .0000       .10000E+07
    12 'Prefactor '    4.0175       1.0000          .0000       .10000E+07
    13 'norm      '    .23333E-05   1.0000          .0000       .10000E+07
    14 'norm      '    .77505E-05   1.0000          .0000       .10000E+07
    15 'norm      '    .87689E-01   1.0000          .0000       .10000E+07
    16 'Prefactor '    36.368       1.0000          .0000       .10000E+07
    17 'norm      '    36.287       1.0000          .0000       .10000E+07
    18 'Normalizat'    .99412       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .99989       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5730E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11651.01     FROM MIGRAD    STATUS=CONVERGED    149 CALLS     1444 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4276        5.1578       -.42624E-06    .35404E-02
   2  Prefactor     103.59        37.325       -.27012E-06   -.49169E-02
   3  Prefactor     .55511E-10    11.916        .13105E-05** at limit **
   4  Prefactor     39.046        22.413        .49723E-06    .71273E-01
   5  Prefactor     .27100E-05    98.762        .24895E-05** at limit **
   6  Prefactor     21.912        21.161        .43516E-06    .69612E-02
   7  Prefactor     4.9244        7.2202       -.43704E-06   -.38930E-03
   8  Prefactor     .35961        1.2321       -.21980E-06   -.30231E-02
   9  Prefactor     .55511E-10    22.122        .60490E-06** at limit **
  10  norm          23.682        18.736        .31250E-06   -.10203    
  11  norm          .45631E-01    57.624       -.91753E-07** at limit **
  12  Prefactor     4.0171        5.6130        .11087E-06    .46561E-03
  13  norm           .0000        1.4512        .36454E-06** at limit **
  14  norm           .0000        1.9514       -.11447E-06** at limit **
  15  norm          .18853        23.627       -.18301E-05** at limit **
  16  Prefactor     35.404        28.317        .21517E-06    .37131E-01
  17  norm          36.421        14.639       -.10946E-06   -.10118E-01
  18  Normalizat    .99173        .22493       -.31059E-05   -.18843E-04
  19  Prefactor     1.0002        .91080E-01    .27679E-05   -.11112E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.42763
  Prefactor  = 103.593
  Prefactor  = 5.55112e-11
  Prefactor  = 39.0462
  Prefactor  = 2.71e-06
  Prefactor  = 21.9115
  Prefactor  = 4.92436
  Prefactor  = 0.359615
  Prefactor  = 5.55112e-11
  norm       = 23.6821
  norm       = 0.0456312
  Prefactor  = 4.01708
  norm       = 0
  norm       = 0
  norm       = 0.188535
  Prefactor  = 35.4036
  norm       = 36.4213
  Normalizat = 0.991728
  Prefactor  = 1.00016
 **********
 **   18 **HESSE 
 **********

 FCN=   11651.01     FROM HESSE     STATUS=OK           332 CALLS     1776 TOTAL
                     EDM=   .69E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4276        5.1683        .36941E-03   -1.5653    
   2  Prefactor     103.59        47.694        .99074E-04   -1.5504    
   3  Prefactor     .55511E-10    11.926        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     39.046        26.850        .16148E-03   -1.5583    
   5  Prefactor     .27100E-05    100.10        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     21.912        22.887        .21555E-03   -1.5614    
   7  Prefactor     4.9244        7.2552        .45226E-03   -1.5664    
   8  Prefactor     .35961        12.502        .12068E-01   -1.5696    
   9  Prefactor     .55511E-10    22.032        .14478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          23.682        30.942        .20880E-03   -1.5611    
  11  norm          .45631E-01    2.6685        .11523E-01   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.0171        5.6222        .50288E-03   -1.5668    
  13  norm           .0000        1.4488        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm           .0000        1.9517        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .18853        1.5281        .90780E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     35.404        48.901        .16584E-03   -1.5589    
  17  norm          36.421        15.142        .16603E-03   -1.5587    
  18  Normalizat    .99173        .19762        .90769E-01   -.93308    
  19  Prefactor     1.0002        .78464E-01    .46266E-01   -.92724    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.89366e-07
Minuit parameter uncertainties:
  1  5.16832
  2  47.6944
  3  4.18009e-05
  4  26.8496
  5  0.0329415
  6  22.8871
  7  7.25526
  8  4.24077
  9  7.15837e-05
  10  30.9418
  11  0.697899
  12  5.62218
  13  9.70289e-06
  14  1.12104e-06
  15  1.07351
  16  48.9013
  17  15.1422
  18  0.197763
  19  0.0784725
Done.

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

Extracting fit parameters...

4FGL J0540.0-7552
   Spectrum: LogParabola
274         norm:  2.368e+01  3.094e+01  0.000e+00  1.000e+06 ( 1.000e-13)
275        alpha:  2.167e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
276         beta:  2.198e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
277           Eb:  9.031e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  1.000e+00  7.847e-02  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  9.917e-01  1.978e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.85
Ra Dec: 85.006 -75.878
Photon Flux Upper Limit: 6.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.93e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/834428/likelihoodResults_685152001_685411201_4FGL_J0540.0-7552_daily_bin1720.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) = 11650.9710854
delta logL = 0.0405591553936

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11650.968735
delta logL = 0.0429094667343

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.683       1.0000          .0000       .10000E+07
     2 'alpha     '    2.4469       1.0000          .0000       5.0000    
     3 'Normalizat'    .98802       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0006       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5730E+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=   11650.97     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      270 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.682        30.931        .85925E-05    .20815E-02
   2  alpha         2.4470        .97511        .30122E-01    .50260E-04
   3  Normalizat    .98797        .21452        .40265E-03   -.63754E-04
   4  Prefactor     1.0006        .88553E-01    .16423E-03   -.18967E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 21.6822
  alpha      = 2.44703
  Normalizat = 0.987972
  Prefactor  = 1.00062
 **********
 **   18 **HESSE 
 **********

 FCN=   11650.97     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.682        29.573        .17185E-05   -1.5615    
   2  alpha         2.4470        .93463        .12049E-02   -.21189E-01
   3  Normalizat    .98797        .21455        .16106E-04   -.93434    
   4  Prefactor     1.0006        .88582E-01    .32847E-04   -.92709    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67956e-10
Minuit parameter uncertainties:
  1  29.573
  2  0.957911
  3  0.214742
  4  0.0885947
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/834428': 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) = 11650.968735
delta logL = 0.0429095090767

Extracting fit parameters...

4FGL J0540.0-7552
   Spectrum: LogParabola
274         norm:  2.168e+01  2.957e+01  0.000e+00  1.000e+06 ( 1.000e-13)
275        alpha:  2.447e+00  9.579e-01  0.000e+00  5.000e+00 ( 1.000e+00)
276         beta:  2.198e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
277           Eb:  9.031e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
552    Prefactor:  1.001e+00  8.859e-02  0.000e+00  1.000e+01 ( 1.000e+00)
553        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
554        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
551   Normalization:  9.880e-01  2.147e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.85
Ra Dec: 85.006 -75.878

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/834428/cmap_HighResolution_685152001_685411201_4FGL_J0540.0-7552_daily_bin1720.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.93e-05', job_status='DONE', photon_flux_upper_limit='6.38e-08', time_completed='2022-09-21 03:23:38.184547', job_id='834428', GAL2='1.00', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1663755818.18', return_code2='0', ts='0.85', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='4.29e-02', ts2='0.94', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1720' AND source_name='4FGL J0540.0-7552' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 21 03:23:38 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 834427: <4FGL_J0540.0-7552_daily_bin1720> in cluster <slac> Done

Job <4FGL_J0540.0-7552_daily_bin1720> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Wed Sep 21 00:05:33 2022
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 21 00:25:32 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 21 00:25:32 2022
Terminated at Wed Sep 21 03:20:01 2022
Results reported at Wed Sep 21 03:20:01 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0540.0-7552_daily_bin1720 85.0064 -75.8782 685152001 685411201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0540.0-7552 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   10264.00 sec.
    Max Memory :                                 1103 MB
    Average Memory :                             592.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10469 sec.
    Turnaround time :                            11668 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 834428: <4FGL_J0540.0-7552_daily_bin1720> in cluster <slac> Done

Job <4FGL_J0540.0-7552_daily_bin1720> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep 21 00:05:33 2022
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 21 00:25:32 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 21 00:25:32 2022
Terminated at Wed Sep 21 03:23:39 2022
Results reported at Wed Sep 21 03:23:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0540.0-7552_daily_bin1720 85.0064 -75.8782 685152001 685411201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0540.0-7552 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   10452.00 sec.
    Max Memory :                                 628 MB
    Average Memory :                             589.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10686 sec.
    Turnaround time :                            11886 sec.

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

