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


Performing analysis on: 4FGL_J0328.4-4736_daily_bin1711
RA = 52.101, Dec = -47.6158
tmin = 682819201, tmax = 683078401
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='12762', job_status='RUN', time_executed='2022-09-16 10:46:40.961476', time_epoch_executed='1663350400.96' WHERE source_name='4FGL J0328.4-4736' and cadence='daily' and bin_id='1711'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/12762

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/12762/ft1_4FGL_J0328.4-4736_daily_bin1711.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/12762/ft2_4FGL_J0328.4-4736_daily_bin1711.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/12762/ft1_4FGL_J0328.4-4736_daily_bin1711.fits outfile=/scratch/kocevski/12762/ft1_filteredMKT_4FGL_J0328.4-4736_daily_bin1711.fits ra=52.101 dec=-47.6158 rad=12.0 tmin=682819201.0 tmax=683078401.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 4.58
user 4.31
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/12762/ft2_4FGL_J0328.4-4736_daily_bin1711.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/12762/ft2_4FGL_J0328.4-4736_daily_bin1711.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/12762/ft1_filteredMKT_4FGL_J0328.4-4736_daily_bin1711.fits evtable="EVENTS" outfile="/scratch/kocevski/12762/ft1_filtered_4FGL_J0328.4-4736_daily_bin1711.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.34
sys 0.15

Number of photons that the gtmktime cut: 500

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/12762/ft1_filtered_4FGL_J0328.4-4736_daily_bin1711.fits" evtable="EVENTS" scfile=/scratch/kocevski/12762/ft2_4FGL_J0328.4-4736_daily_bin1711.fits sctable="SC_DATA" outfile=/scratch/kocevski/12762/ltcube_682819201_683078401_4FGL_J0328.4-4736_daily_bin1711.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/12762/ft2_4FGL_J0328.4-4736_daily_bin1711.fits
.....................!
real 11.93
user 11.48
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/12762/ft1_filtered_4FGL_J0328.4-4736_daily_bin1711.fits evtable="EVENTS" scfile=/scratch/kocevski/12762/ft2_4FGL_J0328.4-4736_daily_bin1711.fits sctable="SC_DATA" expcube=/scratch/kocevski/12762/ltcube_682819201_683078401_4FGL_J0328.4-4736_daily_bin1711.fits outfile=/scratch/kocevski/12762/expmap_682819201_683078401_4FGL_J0328.4-4736_daily_bin1711.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/12762/ltcube_682819201_683078401_4FGL_J0328.4-4736_daily_bin1711.fits
.....................!
real 192.33
user 186.66
sys 5.17

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 186 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 J0328.4-4736 @ 52.101 -47.6158

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/12762/ft1_filtered_4FGL_J0328.4-4736_daily_bin1711.fits scfile=/scratch/kocevski/12762/ft2_4FGL_J0328.4-4736_daily_bin1711.fits outfile=/scratch/kocevski/12762/cmap_682819201_683078401_4FGL_J0328.4-4736_daily_bin1711.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=52.101 yref=-47.6158 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.36
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/12762/ft1_filtered_4FGL_J0328.4-4736_daily_bin1711.fits scfile=/scratch/kocevski/12762/ft2_4FGL_J0328.4-4736_daily_bin1711.fits outfile=/scratch/kocevski/12762/cmap_HighResolution_682819201_683078401_4FGL_J0328.4-4736_daily_bin1711.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=52.101 yref=-47.6158 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.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/12762/ft1_filtered_4FGL_J0328.4-4736_daily_bin1711.fits evtable="EVENTS" scfile=/scratch/kocevski/12762/ft2_4FGL_J0328.4-4736_daily_bin1711.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/12762/Model_4FGL_J0328.4-4736_daily_bin1711.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/12762/ft1_filtered_4FGL_J0328.4-4736_daily_bin1711.fits....................!
real 114.13
user 112.39
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/12762/ft1_filtered_4FGL_J0328.4-4736_daily_bin1711.fits', '/scratch/kocevski/12762/ft2_4FGL_J0328.4-4736_daily_bin1711.fits', expMap='/scratch/kocevski/12762/expmap_682819201_683078401_4FGL_J0328.4-4736_daily_bin1711.fits', expCube='/scratch/kocevski/12762/ltcube_682819201_683078401_4FGL_J0328.4-4736_daily_bin1711.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/12762/Model_4FGL_J0328.4-4736_daily_bin1711.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0328.4-4736'

4FGL J0328.4-4736
   Spectrum: PowerLaw
269    Prefactor:  3.763e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
270        Index:  2.389e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  9.405e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/12762/ft1_filtered_4FGL_J0328.4-4736_daily_bin1711.fits
Spacecraft file(s): /scratch/kocevski/12762/ft2_4FGL_J0328.4-4736_daily_bin1711.fits
Exposure map: /scratch/kocevski/12762/expmap_682819201_683078401_4FGL_J0328.4-4736_daily_bin1711.fits
Exposure cube: /scratch/kocevski/12762/ltcube_682819201_683078401_4FGL_J0328.4-4736_daily_bin1711.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/12762/Model_4FGL_J0328.4-4736_daily_bin1711.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) = 5416.16869704

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9155       1.0000          .0000       .10000E+07
     2 'Prefactor '    12.586       1.0000          .0000       .10000E+07
     3 'Prefactor '    13.571       1.0000          .0000       .10000E+07
     4 'norm      '    .15894       1.0000          .0000       .10000E+07
     5 'Prefactor '    11.251       1.0000          .0000       .10000E+07
     6 'Prefactor '    .55157E-03   1.0000          .0000       .10000E+07
     7 'Prefactor '    .28375E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .31780E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    .60953E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    63.675       1.0000          .0000       .10000E+07
    11 'Prefactor '    6.9503       1.0000          .0000       .10000E+07
    12 'norm      '    5.3566       1.0000          .0000       .10000E+07
    13 'norm      '    1.8204       1.0000          .0000       .10000E+07
    14 'Prefactor '    33.247       1.0000          .0000       .10000E+07
    15 'Prefactor '    .13940E-02   1.0000          .0000       .10000E+07
    16 'norm      '    15.498       1.0000          .0000       .10000E+07
    17 'Prefactor '    .58384E-01   1.0000          .0000       .10000E+07
    18 'Prefactor '    .52853E-02   1.0000          .0000       .10000E+07
    19 'norm      '    .66641E-06   1.0000          .0000       .10000E+07
    20 'Prefactor '    .43601E-01   1.0000          .0000       .10000E+07
    21 'Normalizat'    1.2612       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .56484       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5416.166     FROM MIGRAD    STATUS=CONVERGED    190 CALLS     1892 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3786        57.400       -.19846E-06    .65468E-01
   2  Prefactor     14.769        64.095        .69263E-07    .50372E-01
   3  Prefactor     13.607        12.476        .25348E-07   -.42034E-01
   4  norm          .16387        2.0296        .57099E-07** at limit **
   5  Prefactor     11.234        6.0716        .25722E-07    .56958E-02
   6  Prefactor     .27756E-09    3.4149       -.76510E-07** at limit **
   7  Prefactor      .0000        6.3155        .13554E-06** at limit **
   8  Prefactor      .0000        3.1712        .18264E-07** at limit **
   9  Prefactor     .33307E-09    5.8613       -.35407E-07** at limit **
  10  Prefactor     63.655        3.7829       -.15338E-07   -.24451E-01
  11  Prefactor     6.9329        10.474        .97168E-07   -.24109E-01
  12  norm          5.3579        3.4030        .37562E-07    .81640E-02
  13  norm          1.8188        .84826       -.23403E-07   -.20525E-01
  14  Prefactor     32.989        26.270       -.15341E-06   -.14865    
  15  Prefactor     .61062E-09    7.8008        .10669E-06** at limit **
  16  norm          15.502        8.7358        .25874E-07   -.21054E-03
  17  Prefactor     .15544E-03    400.29       -.98980E-06** at limit **
  18  Prefactor     .11879E-07    23.432       -.24889E-06** at limit **
  19  norm           .0000        1.7552       -.34770E-08** at limit **
  20  Prefactor     .61062E-09    42.785       -.11631E-06** at limit **
  21  Normalizat    1.2621        .19890        .96213E-06    .59186E-03
  22  Prefactor     .56422        .21188        .55793E-06    .36383E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.37856
  Prefactor  = 14.7692
  Prefactor  = 13.6072
  norm       = 0.163872
  Prefactor  = 11.2344
  Prefactor  = 2.77556e-10
  Prefactor  = 0
  Prefactor  = 0
  Prefactor  = 3.33067e-10
  Prefactor  = 63.6547
  Prefactor  = 6.93289
  norm       = 5.35786
  norm       = 1.8188
  Prefactor  = 32.9891
  Prefactor  = 6.10623e-10
  norm       = 15.5021
  Prefactor  = 0.00015544
  Prefactor  = 1.18794e-08
  norm       = 0
  Prefactor  = 6.10623e-10
  Normalizat = 1.2621
  Prefactor  = 0.564217
 **********
 **   18 **HESSE 
 **********

 FCN=   5416.166     FROM HESSE     STATUS=OK           398 CALLS     2290 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3786        73.844        .31798E-03   -1.5650    
   2  Prefactor     14.769        75.495        .28210E-03   -1.5631    
   3  Prefactor     13.607        12.571        .27164E-03   -1.5634    
   4  norm          .16387        .85128        .23263E-02   -1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.234        6.0878        .29843E-03   -1.5641    
   6  Prefactor     .27756E-09    3.4164        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor      .0000        6.3195        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor      .0000        3.1656        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .33307E-09    5.8598        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     63.655        42.459        .12533E-03   -1.5548    
  11  Prefactor     6.9329        21.603        .38031E-03   -1.5655    
  12  norm          5.3579        3.4098        .43399E-03   -1.5662    
  13  norm          1.8188        .85442        .77364E-03   -1.5681    
  14  Prefactor     32.989        45.903        .17345E-03   -1.5593    
  15  Prefactor     .61062E-09    7.8088        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          15.502        8.7417        .25415E-03   -1.5629    
  17  Prefactor     .15544E-03    9.3761        .12588E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .11879E-07    23.432        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        1.7539        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .61062E-09    42.617        .15805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.2621        .17997        .33539E-01   -.84705    
  22  Prefactor     .56422        .18866        .71478E-01   -1.0911    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71918e-06
Minuit parameter uncertainties:
  1  49.7485
  2  66.7847
  3  12.5713
  4  0.746997
  5  6.0878
  6  5.95502e-05
  7  1.31131e-05
  8  1.08189e-05
  9  8.74744e-05
  10  42.4596
  11  21.6032
  12  3.40975
  13  0.854418
  14  45.9032
  15  0.000140256
  16  8.74176
  17  0.0763528
  18  0.00105445
  19  3.26731e-06
  20  0.000323084
  21  0.180062
  22  0.188868
Done.

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

Extracting fit parameters...

4FGL J0328.4-4736
   Spectrum: PowerLaw
269    Prefactor:  6.933e+00  2.160e+01  0.000e+00  1.000e+06 ( 1.000e-13)
270        Index:  2.389e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
271        Scale:  9.405e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  5.642e-01  1.889e-01  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  1.262e+00  1.801e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 52.101 -47.616
Photon Flux Upper Limit: 9.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/12762/likelihoodResults_682819201_683078401_4FGL_J0328.4-4736_daily_bin1711.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) = 5414.65296422
delta logL = 1.51321432375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5414.61051104
delta logL = 1.55566750416

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0651       1.0000          .0000       .10000E+07
     2 'Index     '    4.6407       1.0000          .0000       10.000    
     3 'Normalizat'    1.1378       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65170       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+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=   5414.611     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      264 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0654        19.345        .44903E-05    .51994E-01
   2  Index         4.6409        3.7538        .37795E-02    .59548E-03
   3  Normalizat    1.1378        .18633        .21336E-03    .56226E-03
   4  Prefactor     .65164        .19529        .29628E-03    .29254E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.06538
  Index      = 4.64087
  Normalizat = 1.13785
  Prefactor  = 0.651644
 **********
 **   18 **HESSE 
 **********

 FCN=   5414.611     FROM HESSE     STATUS=OK            23 CALLS      287 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0654        3.5302        .17961E-06   -1.5687    
   2  Index         4.6409        1.6200        .15118E-03   -.71889E-01
   3  Normalizat    1.1378        .20957        .42672E-04   -.88546    
   4  Prefactor     .65164        .21891        .11851E-04   -1.0545    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31073e-09
Minuit parameter uncertainties:
  1  3.53019
  2  1.64997
  3  0.20972
  4  0.219198
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/12762': 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) = 5414.61051044
delta logL = 1.55566810987

Extracting fit parameters...

4FGL J0328.4-4736
   Spectrum: PowerLaw
269    Prefactor:  1.065e+00  3.530e+00  0.000e+00  1.000e+06 ( 1.000e-13)
270        Index:  4.641e+00  1.650e+00  0.000e+00  1.000e+01 (-1.000e+00)
271        Scale:  9.405e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  6.516e-01  2.192e-01  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  1.138e+00  2.097e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.53
Ra Dec: 52.101 -47.616
Photon Index (Free Index): 4.64 +/- 1.65
Photon Flux (Free Index): 9.68e-08 +/- 6.16e-08
Energy Flux (Free Index): 1.33e-05 +/- 8.82e-06

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/12762/cmap_HighResolution_682819201_683078401_4FGL_J0328.4-4736_daily_bin1711.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.04e-03', comment='SUCCESS', energy_flux2='1.33e-05', dlogl='1.56e+00', photon_flux2='9.68e-08', job_status='DONE', time_completed='2022-09-16 10:57:23.771966', photon_index_error2='1.65', photon_index2='4.64', ts='0.12', fit_tolerance='1e-08', GAL='0.56', photon_index_error='0.00', photon_flux_upper_limit='9.11e-08', energy_flux_error2='8.82e-06', EG='1.26', time_epoch_completed='1663351043.77', return_code='0', job_id='12762', GAL2='0.65', EG2='1.14', return_code2='0', photon_flux_error2='6.16e-08', ts2='3.53', photon_index='2.39' WHERE bin_id='1711' AND source_name='4FGL J0328.4-4736' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 10:57:23 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0193>
Subject: Job 12762: <4FGL_J0328.4-4736_daily_bin1711> in cluster <slac> Done

Job <4FGL_J0328.4-4736_daily_bin1711> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Sep 16 10:45:29 2022
Job was executed on host(s) <bullet0193>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 10:46:22 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 10:46:22 2022
Terminated at Fri Sep 16 10:57:25 2022
Results reported at Fri Sep 16 10:57:25 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0328.4-4736_daily_bin1711 52.101 -47.6158 682819201 683078401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0328.4-4736 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   644.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             365.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   662 sec.
    Turnaround time :                            716 sec.

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

