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


Performing analysis on: 4FGL_J0521.8-3848_daily_bin1710
RA = 80.4718, Dec = -38.8066
tmin = 682560001, tmax = 682819201
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='28551', job_status='RUN', time_executed='2022-09-16 11:43:09.979058', time_epoch_executed='1663353789.98' WHERE source_name='4FGL J0521.8-3848' and cadence='daily' and bin_id='1710'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/28551

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/28551/ft1_4FGL_J0521.8-3848_daily_bin1710.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/28551/ft2_4FGL_J0521.8-3848_daily_bin1710.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/28551/ft1_4FGL_J0521.8-3848_daily_bin1710.fits outfile=/scratch/kocevski/28551/ft1_filteredMKT_4FGL_J0521.8-3848_daily_bin1710.fits ra=80.4718 dec=-38.8066 rad=12.0 tmin=682560001.0 tmax=682819201.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.73
user 3.47
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/28551/ft2_4FGL_J0521.8-3848_daily_bin1710.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/28551/ft2_4FGL_J0521.8-3848_daily_bin1710.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/28551/ft1_filteredMKT_4FGL_J0521.8-3848_daily_bin1710.fits evtable="EVENTS" outfile="/scratch/kocevski/28551/ft1_filtered_4FGL_J0521.8-3848_daily_bin1710.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: 651

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/28551/ft1_filtered_4FGL_J0521.8-3848_daily_bin1710.fits" evtable="EVENTS" scfile=/scratch/kocevski/28551/ft2_4FGL_J0521.8-3848_daily_bin1710.fits sctable="SC_DATA" outfile=/scratch/kocevski/28551/ltcube_682560001_682819201_4FGL_J0521.8-3848_daily_bin1710.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/28551/ft2_4FGL_J0521.8-3848_daily_bin1710.fits
.....................!
real 14.73
user 14.17
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/28551/ft1_filtered_4FGL_J0521.8-3848_daily_bin1710.fits evtable="EVENTS" scfile=/scratch/kocevski/28551/ft2_4FGL_J0521.8-3848_daily_bin1710.fits sctable="SC_DATA" expcube=/scratch/kocevski/28551/ltcube_682560001_682819201_4FGL_J0521.8-3848_daily_bin1710.fits outfile=/scratch/kocevski/28551/expmap_682560001_682819201_4FGL_J0521.8-3848_daily_bin1710.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/28551/ltcube_682560001_682819201_4FGL_J0521.8-3848_daily_bin1710.fits
.....................!
real 191.76
user 186.61
sys 4.52

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 194 point sources and 0 extended sources

Setting source of interest to:
4FGL J0521.8-3848 @ 80.4718 -38.8066

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/28551/ft1_filtered_4FGL_J0521.8-3848_daily_bin1710.fits scfile=/scratch/kocevski/28551/ft2_4FGL_J0521.8-3848_daily_bin1710.fits outfile=/scratch/kocevski/28551/cmap_682560001_682819201_4FGL_J0521.8-3848_daily_bin1710.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=80.4718 yref=-38.8066 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/28551/ft1_filtered_4FGL_J0521.8-3848_daily_bin1710.fits scfile=/scratch/kocevski/28551/ft2_4FGL_J0521.8-3848_daily_bin1710.fits outfile=/scratch/kocevski/28551/cmap_HighResolution_682560001_682819201_4FGL_J0521.8-3848_daily_bin1710.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=80.4718 yref=-38.8066 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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/28551/ft1_filtered_4FGL_J0521.8-3848_daily_bin1710.fits evtable="EVENTS" scfile=/scratch/kocevski/28551/ft2_4FGL_J0521.8-3848_daily_bin1710.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/28551/Model_4FGL_J0521.8-3848_daily_bin1710.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/28551/ft1_filtered_4FGL_J0521.8-3848_daily_bin1710.fits.....................!
real 71.92
user 70.45
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/28551/ft1_filtered_4FGL_J0521.8-3848_daily_bin1710.fits', '/scratch/kocevski/28551/ft2_4FGL_J0521.8-3848_daily_bin1710.fits', expMap='/scratch/kocevski/28551/expmap_682560001_682819201_4FGL_J0521.8-3848_daily_bin1710.fits', expCube='/scratch/kocevski/28551/ltcube_682560001_682819201_4FGL_J0521.8-3848_daily_bin1710.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/28551/Model_4FGL_J0521.8-3848_daily_bin1710.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0521.8-3848'

4FGL J0521.8-3848
   Spectrum: PowerLaw
282    Prefactor:  1.199e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
283        Index:  2.594e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  7.225e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/28551/ft1_filtered_4FGL_J0521.8-3848_daily_bin1710.fits
Spacecraft file(s): /scratch/kocevski/28551/ft2_4FGL_J0521.8-3848_daily_bin1710.fits
Exposure map: /scratch/kocevski/28551/expmap_682560001_682819201_4FGL_J0521.8-3848_daily_bin1710.fits
Exposure cube: /scratch/kocevski/28551/ltcube_682560001_682819201_4FGL_J0521.8-3848_daily_bin1710.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/28551/Model_4FGL_J0521.8-3848_daily_bin1710.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) = 7011.27660192

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18773E-01   1.0000          .0000       .10000E+07
     2 'norm      '    .12379E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    1.7195       1.0000          .0000       .10000E+07
     4 'norm      '    49.283       1.0000          .0000       .10000E+07
     5 'norm      '    2.1540       1.0000          .0000       .10000E+07
     6 'Prefactor '    .87585E-06   1.0000          .0000       .10000E+07
     7 'Prefactor '    .51724       1.0000          .0000       .10000E+07
     8 'norm      '    2.9940       1.0000          .0000       .10000E+07
     9 'Prefactor '    .92812       1.0000          .0000       .10000E+07
    10 'Prefactor '    .38147E-02   1.0000          .0000       .10000E+07
    11 'Prefactor '    7.5729       1.0000          .0000       .10000E+07
    12 'Prefactor '    .58675E-07   1.0000          .0000       .10000E+07
    13 'norm      '    5.5571       1.0000          .0000       .10000E+07
    14 'Prefactor '    .13113E-02   1.0000          .0000       .10000E+07
    15 'norm      '    2.1443       1.0000          .0000       .10000E+07
    16 'norm      '    .63904E-06   1.0000          .0000       .10000E+07
    17 'Prefactor '    .30564E-05   1.0000          .0000       .10000E+07
    18 'Prefactor '    .96212E-02   1.0000          .0000       .10000E+07
    19 'norm      '    .85278E-03   1.0000          .0000       .10000E+07
    20 'Prefactor '    .19919E-01   1.0000          .0000       .10000E+07
    21 'norm      '    8.1279       1.0000          .0000       .10000E+07
    22 'norm      '    .11641E-06   1.0000          .0000       .10000E+07
    23 'norm      '    .67824E-06   1.0000          .0000       .10000E+07
    24 'Prefactor '    .43252E-02   1.0000          .0000       .10000E+07
    25 'Normalizat'    .95699       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .87315       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7010.357     FROM MIGRAD    STATUS=CONVERGED    204 CALLS     1809 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    26.104       -.58402E-06** at limit **
   2  norm           .0000        .20791       -.62698E-07** at limit **
   3  Prefactor     1.7351        3.4568       -.14530E-06   -.11019E-03
   4  norm          49.250        2.1162       -.95663E-08   -.73117E-01
   5  norm          2.1536        1.5333       -.62695E-07    .97257E-03
   6  Prefactor      .0000        3.2653       -.50166E-06** at limit **
   7  Prefactor     .22093E-07    154.31        .82916E-07** at limit **
   8  norm          3.1792        5.4715        .34183E-06   -.51417E-03
   9  Prefactor     .11102E-08    234.76       -.68334E-05** at limit **
  10  Prefactor     .16653E-09    16.242        .48824E-06** at limit **
  11  Prefactor     7.5689        2.5692       -.62600E-07   -.16453E-02
  12  Prefactor      .0000        2.4588       -.12580E-06** at limit **
  13  norm          5.5553        2.3945        .33980E-07    .45229E-03
  14  Prefactor     .88818E-09    14.092       -.30515E-06** at limit **
  15  norm          2.1422        3.0378        .23498E-06    .16493E-02
  16  norm           .0000        1.6993       -.84162E-07** at limit **
  17  Prefactor      .0000        5.1092       -.47748E-06** at limit **
  18  Prefactor     .17764E-08    44.340       -.24545E-05** at limit **
  19  norm          .12212E-08    13.245       -.79850E-06** at limit **
  20  Prefactor      .0000        22.415       -.31067E-06** at limit **
  21  norm          8.1272        1.3872        .19237E-07    .67689E-03
  22  norm           .0000        .62777       -.58913E-07** at limit **
  23  norm           .0000        3.9185       -.30139E-06** at limit **
  24  Prefactor      .0000        9.3649        .69084E-07** at limit **
  25  Normalizat    .95775        .20484       -.33262E-05    .15642E-03
  26  Prefactor     .87287        .16601       -.19802E-05    .88835E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  norm       = 0
  Prefactor  = 1.73506
  norm       = 49.2505
  norm       = 2.15362
  Prefactor  = 0
  Prefactor  = 2.20934e-08
  norm       = 3.17922
  Prefactor  = 1.11022e-09
  Prefactor  = 1.66533e-10
  Prefactor  = 7.56886
  Prefactor  = 0
  norm       = 5.55526
  Prefactor  = 8.88178e-10
  norm       = 2.14224
  norm       = 0
  Prefactor  = 0
  Prefactor  = 1.77636e-09
  norm       = 1.22125e-09
  Prefactor  = 0
  norm       = 8.12721
  norm       = 0
  norm       = 0
  Prefactor  = 0
  Normalizat = 0.957751
  Prefactor  = 0.87287
 **********
 **   18 **HESSE 
 **********

 FCN=   7010.357     FROM HESSE     STATUS=OK           516 CALLS     2325 TOTAL
                     EDM=   .47E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    3.9995        .10322E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        .20555        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.7351        3.7749        .80086E-03   -1.5682    
   4  norm          49.250        15.598        .14246E-03   -1.5568    
   5  norm          2.1536        1.5527        .70170E-03   -1.5679    
   6  Prefactor      .0000        3.2535        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .22093E-07    24.509        .96048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.1792        7.0990        .58641E-03   -1.5672    
   9  Prefactor     .11102E-08    233.92        .43835E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .16653E-09    16.283        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.5689        2.5708        .36419E-03   -1.5653    
  12  Prefactor      .0000        2.4622        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          5.5553        2.4036        .42595E-03   -1.5661    
  14  Prefactor     .88818E-09    14.122        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.1422        3.0673        .70349E-03   -1.5679    
  16  norm           .0000        1.6990        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor      .0000        5.1090        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .17764E-08    43.864        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .12212E-08    12.855        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor      .0000        22.100        .17042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.1272        1.3859        .35143E-03   -1.5651    
  22  norm           .0000        .62567        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm           .0000        3.9178        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor      .0000        9.3320        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .95775        .18192        .45626E-01   -.94460    
  26  Prefactor     .87287        .14563        .44662E-01   -.97096    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.68495e-07
Minuit parameter uncertainties:
  1  2.71508e-05
  2  9.28571e-07
  3  3.77488
  4  15.5985
  5  1.55274
  6  1.68602e-05
  7  0.00147232
  8  7.09904
  9  0.00100932
  10  0.000100344
  11  2.57081
  12  2.59768e-06
  13  2.40355
  14  0.000222817
  15  3.06732
  16  5.84394e-06
  17  2.19776e-05
  18  0.000560824
  19  0.000248094
  20  3.70389e-05
  21  1.38585
  22  9.43545e-07
  23  8.7427e-06
  24  2.85672e-05
  25  0.182039
  26  0.145693
Done.

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

Extracting fit parameters...

4FGL J0521.8-3848
   Spectrum: PowerLaw
282    Prefactor:  0.000e+00  2.598e-06  0.000e+00  1.000e+06 ( 1.000e-12)
283        Index:  2.594e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
284        Scale:  7.225e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
635    Prefactor:  8.729e-01  1.457e-01  0.000e+00  1.000e+01 ( 1.000e+00)
636        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
637        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
634   Normalization:  9.578e-01  1.820e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 80.472 -38.807
Photon Flux Upper Limit: 7.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/28551/likelihoodResults_682560001_682819201_4FGL_J0521.8-3848_daily_bin1710.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) = 7010.35962927
delta logL = -0.00223512425237

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7010.35739446
delta logL = -3.11464646074e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30692E-06   1.0000          .0000       .10000E+07
     2 'Index     '    1.3439       1.0000          .0000       10.000    
     3 'Normalizat'    .95767       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87296       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6380E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7010.317     FROM MIGRAD    STATUS=CONVERGED     74 CALLS      278 TOTAL
                     EDM=   .32E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .22789E-02    .19650       -.11769E-06** at limit **
   2  Index         6.3911        8.1290        .30813E-03    .22237E-05
   3  Normalizat    .94221        .20372       -.47802E-05    .67470E-04
   4  Prefactor     .88095        .16755        .32156E-05    .75611E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0022789
  Index      = 6.39114
  Normalizat = 0.942212
  Prefactor  = 0.88095
 **********
 **   18 **HESSE 
 **********

 FCN=   7010.317     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      315 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .22789E-02    .58261E-01    .22330E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.3911        2.5658        .31885        .28195    
   3  Normalizat    .94221        .15706E-01    .45634E-01   -.94992    
   4  Prefactor     .88095        .13282E-01    .44659E-01   -.96810    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.56054e-09
Minuit parameter uncertainties:
  1  0.0230452
  2  2.70681
  3  0.0157063
  4  0.0132823
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/28551': 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): 102
logL (Free Index) = 7010.31707024
delta logL = 0.0403239046409

Extracting fit parameters...

4FGL J0521.8-3848
   Spectrum: PowerLaw
282    Prefactor:  2.279e-03  2.305e-02  0.000e+00  1.000e+06 ( 1.000e-12)
283        Index:  6.391e+00  2.707e+00  0.000e+00  1.000e+01 (-1.000e+00)
284        Scale:  7.225e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
635    Prefactor:  8.809e-01  1.328e-02  0.000e+00  1.000e+01 ( 1.000e+00)
636        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
637        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
634   Normalization:  9.422e-01  1.571e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 80.472 -38.807

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/28551/cmap_HighResolution_682560001_682819201_4FGL_J0521.8-3848_daily_bin1710.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.98e-03', job_status='DONE', photon_flux_upper_limit='7.64e-08', time_completed='2022-09-16 11:55:01.073596', job_id='28551', GAL2='0.88', fit_tolerance='1e-08', EG2='0.94', EG='0.96', time_epoch_completed='1663354501.07', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='4.03e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.59' WHERE bin_id='1710' AND source_name='4FGL J0521.8-3848' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 11:55:01 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 28551: <4FGL_J0521.8-3848_daily_bin1710> in cluster <slac> Done

Job <4FGL_J0521.8-3848_daily_bin1710> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Sep 16 11:40:20 2022
Job was executed on host(s) <bullet0070>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 11:41:39 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 11:41:39 2022
Terminated at Fri Sep 16 11:55:01 2022
Results reported at Fri Sep 16 11:55:01 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0521.8-3848_daily_bin1710 80.4718 -38.8066 682560001 682819201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0521.8-3848 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   712.10 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             324.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   802 sec.
    Turnaround time :                            881 sec.

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

