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


Performing analysis on: 4FGL_J0403.9-3605_daily_bin1723
RA = 60.975, Dec = -36.087
tmin = 685929601, tmax = 686188801
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='430590', job_status='RUN', time_executed='2022-09-30 00:06:41.693861', time_epoch_executed='1664521601.69' WHERE source_name='4FGL J0403.9-3605' and cadence='daily' and bin_id='1723'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/430590

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/430590/ft1_4FGL_J0403.9-3605_daily_bin1723.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/430590/ft2_4FGL_J0403.9-3605_daily_bin1723.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/430590/ft1_4FGL_J0403.9-3605_daily_bin1723.fits outfile=/scratch/kocevski/430590/ft1_filteredMKT_4FGL_J0403.9-3605_daily_bin1723.fits ra=60.975 dec=-36.087 rad=12.0 tmin=685929601.0 tmax=686188801.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.61
user 3.37
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/430590/ft2_4FGL_J0403.9-3605_daily_bin1723.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/430590/ft2_4FGL_J0403.9-3605_daily_bin1723.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/430590/ft1_filteredMKT_4FGL_J0403.9-3605_daily_bin1723.fits evtable="EVENTS" outfile="/scratch/kocevski/430590/ft1_filtered_4FGL_J0403.9-3605_daily_bin1723.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.32
sys 0.17

Number of photons that the gtmktime cut: 446

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/430590/ft1_filtered_4FGL_J0403.9-3605_daily_bin1723.fits" evtable="EVENTS" scfile=/scratch/kocevski/430590/ft2_4FGL_J0403.9-3605_daily_bin1723.fits sctable="SC_DATA" outfile=/scratch/kocevski/430590/ltcube_685929601_686188801_4FGL_J0403.9-3605_daily_bin1723.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/430590/ft2_4FGL_J0403.9-3605_daily_bin1723.fits
.....................!
real 15.86
user 15.44
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/430590/ft1_filtered_4FGL_J0403.9-3605_daily_bin1723.fits evtable="EVENTS" scfile=/scratch/kocevski/430590/ft2_4FGL_J0403.9-3605_daily_bin1723.fits sctable="SC_DATA" expcube=/scratch/kocevski/430590/ltcube_685929601_686188801_4FGL_J0403.9-3605_daily_bin1723.fits outfile=/scratch/kocevski/430590/expmap_685929601_686188801_4FGL_J0403.9-3605_daily_bin1723.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/430590/ltcube_685929601_686188801_4FGL_J0403.9-3605_daily_bin1723.fits
.....................!
real 191.09
user 185.50
sys 5.25

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 Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/FornaxA.fits is the correct path to the extended template.
Added 178 point sources and 1 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 J0403.9-3605 @ 60.975 -36.087

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/430590/ft1_filtered_4FGL_J0403.9-3605_daily_bin1723.fits scfile=/scratch/kocevski/430590/ft2_4FGL_J0403.9-3605_daily_bin1723.fits outfile=/scratch/kocevski/430590/cmap_685929601_686188801_4FGL_J0403.9-3605_daily_bin1723.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=60.975 yref=-36.087 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.66
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/430590/ft1_filtered_4FGL_J0403.9-3605_daily_bin1723.fits scfile=/scratch/kocevski/430590/ft2_4FGL_J0403.9-3605_daily_bin1723.fits outfile=/scratch/kocevski/430590/cmap_HighResolution_685929601_686188801_4FGL_J0403.9-3605_daily_bin1723.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=60.975 yref=-36.087 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.58
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/430590/ft1_filtered_4FGL_J0403.9-3605_daily_bin1723.fits evtable="EVENTS" scfile=/scratch/kocevski/430590/ft2_4FGL_J0403.9-3605_daily_bin1723.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/430590/Model_4FGL_J0403.9-3605_daily_bin1723.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/430590/ft1_filtered_4FGL_J0403.9-3605_daily_bin1723.fits.....................!
real 107.33
user 105.81
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/430590/ft1_filtered_4FGL_J0403.9-3605_daily_bin1723.fits', '/scratch/kocevski/430590/ft2_4FGL_J0403.9-3605_daily_bin1723.fits', expMap='/scratch/kocevski/430590/expmap_685929601_686188801_4FGL_J0403.9-3605_daily_bin1723.fits', expCube='/scratch/kocevski/430590/ltcube_685929601_686188801_4FGL_J0403.9-3605_daily_bin1723.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/430590/Model_4FGL_J0403.9-3605_daily_bin1723.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0403.9-3605'

4FGL J0403.9-3605
   Spectrum: LogParabola
280         norm:  1.306e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-10)
281        alpha:  2.393e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  1.376e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  3.485e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/430590/ft1_filtered_4FGL_J0403.9-3605_daily_bin1723.fits
Spacecraft file(s): /scratch/kocevski/430590/ft2_4FGL_J0403.9-3605_daily_bin1723.fits
Exposure map: /scratch/kocevski/430590/expmap_685929601_686188801_4FGL_J0403.9-3605_daily_bin1723.fits
Exposure cube: /scratch/kocevski/430590/ltcube_685929601_686188801_4FGL_J0403.9-3605_daily_bin1723.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/430590/Model_4FGL_J0403.9-3605_daily_bin1723.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) = 4991.17454674

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10186E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .17474E-05   1.0000          .0000       .10000E+07
     3 'norm      '    5.6226       1.0000          .0000       .10000E+07
     4 'norm      '    1.0286       1.0000          .0000       .10000E+07
     5 'Prefactor '    .11962E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    .42964E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    .19929E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    .16002E-05   1.0000          .0000       .10000E+07
     9 'norm      '    2.1380       1.0000          .0000       .10000E+07
    10 'Prefactor '    131.66       1.0000          .0000       .10000E+07
    11 'norm      '    6.2045       1.0000          .0000       .10000E+07
    12 'Prefactor '    .46859E-04   1.0000          .0000       .10000E+07
    13 'norm      '    .40554       1.0000          .0000       .10000E+07
    14 'norm      '    27.507       1.0000          .0000       .10000E+07
    15 'Prefactor '    37.775       1.0000          .0000       .10000E+07
    16 'Prefactor '    .50063E-04   1.0000          .0000       .10000E+07
    17 'Prefactor '    .27835E-04   1.0000          .0000       .10000E+07
    18 'norm      '    .84021       1.0000          .0000       .10000E+07
    19 'Prefactor '    .27397E-02   1.0000          .0000       .10000E+07
    20 'norm      '    17.163       1.0000          .0000       .10000E+07
    21 'norm      '    3.8346       1.0000          .0000       .10000E+07
    22 'Prefactor '    .32467E-02   1.0000          .0000       .10000E+07
    23 'Normalizat'    1.1271       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0148       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4991.139     FROM MIGRAD    STATUS=CONVERGED    201 CALLS     2021 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27756E-09    14.786        .95717E-07** at limit **
   2  Prefactor     .26950E-03    60.616        .10304E-05** at limit **
   3  norm          5.6160        4.1744        .83254E-08   -.19361E-03
   4  norm          1.0319        .90384        .38767E-08   -.31082E-03
   5  Prefactor     .52325E-06    40.431       -.10500E-06** at limit **
   6  Prefactor     .14155E-07    15.906       -.70269E-08** at limit **
   7  Prefactor      .0000        1.4848        .28318E-10** at limit **
   8  Prefactor     .49960E-09    7.0873       -.28974E-07** at limit **
   9  norm          2.1345        1.1019        .26412E-08   -.17158E-02
  10  Prefactor     145.22        141.44       -.43595E-06   -.14033E-01
  11  norm          6.3577        6.8664        .13161E-07    .43450E-03
  12  Prefactor     .11102E-09    7.1420       -.14432E-07** at limit **
  13  norm          .40499        .32781        .17921E-09   -.68906E-02
  14  norm          27.524        12.508       -.40112E-07   -.46690E-02
  15  Prefactor     40.691        42.065        .89388E-07    .14059    
  16  Prefactor     .14988E-08    10.656       -.11846E-06** at limit **
  17  Prefactor     .50728E-03    82.550        .14376E-05** at limit **
  18  norm          .84201        .57471       -.38325E-07   -.25898E-01
  19  Prefactor     .61617E-08    12.407       -.11067E-06** at limit **
  20  norm          16.840        13.327        .70081E-07    .28604E-03
  21  norm          3.8456        2.1245       -.49703E-08   -.29426E-03
  22  Prefactor     .41078E-07    22.092        .12248E-06** at limit **
  23  Normalizat    1.1218        .25427       -.16103E-05   -.30961E-03
  24  Prefactor     1.0165        .26740        .42513E-06   -.23068E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.77556e-10
  Prefactor  = 0.000269501
  norm       = 5.61598
  norm       = 1.0319
  Prefactor  = 5.23248e-07
  Prefactor  = 1.41553e-08
  Prefactor  = 0
  Prefactor  = 4.996e-10
  norm       = 2.13448
  Prefactor  = 145.221
  norm       = 6.35768
  Prefactor  = 1.11022e-10
  norm       = 0.404991
  norm       = 27.5236
  Prefactor  = 40.6914
  Prefactor  = 1.4988e-09
  Prefactor  = 0.000507283
  norm       = 0.842006
  Prefactor  = 6.16174e-09
  norm       = 16.8398
  norm       = 3.84559
  Prefactor  = 4.10783e-08
  Normalizat = 1.12185
  Prefactor  = 1.01648
 **********
 **   18 **HESSE 
 **********

 FCN=   4991.139     FROM HESSE     STATUS=OK           455 CALLS     2476 TOTAL
                     EDM=   .41E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27756E-09    14.830        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .26950E-03    98.741        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.6160        4.1868        .42342E-03   -1.5661    
   4  norm          1.0319        .92181        .12551E-02   -1.5688    
   5  Prefactor     .52325E-06    40.575        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .14155E-07    15.916        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        1.4834        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .49960E-09    7.1022        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.1345        1.1065        .70466E-03   -1.5679    
  10  Prefactor     145.22        141.55        .87158E-04   -1.5467    
  11  norm          6.3577        6.8857        .40278E-03   -1.5658    
  12  Prefactor     .11102E-09    7.1687        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .40499        .32935        .77779E-03   -1.5695    
  14  norm          27.524        12.590        .19070E-03   -1.5603    
  15  Prefactor     40.691        45.185        .16272E-03   -1.5580    
  16  Prefactor     .14988E-08    10.674        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .50728E-03    15.554        .60159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .84201        .60092        .49985E-03   -1.5690    
  19  Prefactor     .61617E-08    12.016        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          16.840        13.459        .24149E-03   -1.5626    
  21  norm          3.8456        2.1275        .51515E-03   -1.5669    
  22  Prefactor     .41078E-07    22.104        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1218        .21125        .57260E-01   -.89053    
  24  Prefactor     1.0165        .22168        .65290E-01   -.92182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.14636e-06
Minuit parameter uncertainties:
  1  0.000122356
  2  0.326262
  3  4.18685
  4  0.921815
  5  0.00921537
  6  0.000949482
  7  2.63746e-06
  8  0.000120657
  9  1.10653
  10  141.556
  11  6.88573
  12  6.19091e-05
  13  0.329348
  14  12.5904
  15  45.1856
  16  0.000250925
  17  0.177656
  18  0.600918
  19  0.000545095
  20  13.4588
  21  2.12746
  22  0.00190572
  23  0.21141
  24  0.221879
Done.

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

Extracting fit parameters...

4FGL J0403.9-3605
   Spectrum: LogParabola
280         norm:  4.050e-01  3.293e-01  0.000e+00  1.000e+06 ( 1.000e-10)
281        alpha:  2.393e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  1.376e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  3.485e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  1.016e+00  2.219e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
569   Normalization:  1.122e+00  2.114e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.59
Ra Dec: 60.975 -36.087
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 5.21e-08 +/- 4.23e-08
Energy Flux (Fixed Index): 1.44e-05 +/- 1.17e-05

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) = 4990.83897096
delta logL = 0.300444495098

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4990.81007459
delta logL = 0.329340869652

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26021       1.0000          .0000       .10000E+07
     2 'alpha     '    1.6398       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1535       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99436       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4990.810     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      215 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .26022        .23111        .68325E-03    .18249E-03
   2  alpha         1.6395        .52729        .39540       -.31601E-04
   3  Normalizat    1.1535        .20608        .56616E-01    .58760E-05
   4  Prefactor     .99441        .22511        .46197E-01    .10260E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.260218
  alpha      = 1.63954
  Normalizat = 1.15348
  Prefactor  = 0.994407
 **********
 **   18 **HESSE 
 **********

 FCN=   4990.810     FROM HESSE     STATUS=OK            35 CALLS      250 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .26022        .34382        .29479E-04   -1.5698    
   2  alpha         1.6395        .89001        .14836E-01   -.35137    
   3  Normalizat    1.1535        .24457        .25036E-03   -.88053    
   4  Prefactor     .99441        .26614        .29141E-03   -.92916    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80841e-12
Minuit parameter uncertainties:
  1  0.343823
  2  0.912849
  3  0.244812
  4  0.266489
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/430590': 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) = 4990.81007449
delta logL = 0.329340972027

Extracting fit parameters...

4FGL J0403.9-3605
   Spectrum: LogParabola
280         norm:  2.602e-01  3.438e-01  0.000e+00  1.000e+06 ( 1.000e-10)
281        alpha:  1.640e+00  9.128e-01  0.000e+00  5.000e+00 ( 1.000e+00)
282         beta:  1.376e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  3.485e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  9.944e-01  2.665e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
569   Normalization:  1.153e+00  2.448e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.26
Ra Dec: 60.975 -36.087
Photon Index (Free Index): 1.64 +/- 0.91
Photon Flux (Free Index): 2.61e-08 +/- 3.55e-08
Energy Flux (Free Index): 1.72e-05 +/- 1.68e-05

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/430590/cmap_HighResolution_685929601_686188801_4FGL_J0403.9-3605_daily_bin1723.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.21e-08', energy_flux2='1.72e-05', photon_flux_error='4.23e-08', dlogl='3.29e-01', energy_flux='1.44e-05', photon_flux2='2.61e-08', job_status='DONE', time_completed='2022-09-30 00:16:25.122898', photon_index_error2='0.91', photon_index2='1.64', ts='4.59', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.68e-05', EG='1.12', time_epoch_completed='1664522185.12', return_code='0', job_id='430590', GAL2='0.99', EG2='1.15', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='3.55e-08', ts2='5.26', photon_index='2.39' WHERE bin_id='1723' AND source_name='4FGL J0403.9-3605' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 30 00:16:25 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0253>
Subject: Job 430555: <4FGL_J0403.9-3605_daily_bin1723> in cluster <slac> Done

Job <4FGL_J0403.9-3605_daily_bin1723> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 30 00:05:27 2022
Job was executed on host(s) <bullet0253>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 30 00:06:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 30 00:06:18 2022
Terminated at Fri Sep 30 00:16:07 2022
Results reported at Fri Sep 30 00:16:07 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0403.9-3605_daily_bin1723 60.975 -36.087 685929601 686188801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0403.9-3605 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   581.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             392.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   589 sec.
    Turnaround time :                            640 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 430590: <4FGL_J0403.9-3605_daily_bin1723> in cluster <slac> Done

Job <4FGL_J0403.9-3605_daily_bin1723> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 30 00:05:29 2022
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 30 00:06:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 30 00:06:25 2022
Terminated at Fri Sep 30 00:16:25 2022
Results reported at Fri Sep 30 00:16:25 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0403.9-3605_daily_bin1723 60.975 -36.087 685929601 686188801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0403.9-3605 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   585.43 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             379.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   600 sec.
    Turnaround time :                            656 sec.

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

