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


Performing analysis on: 4FGL_J0521.2+1637_daily_bin1744
RA = 80.3136, Dec = 16.631
tmin = 691372801, tmax = 691632001
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='566187', job_status='RUN', time_executed='2022-12-02 00:11:26.310256', time_epoch_executed='1669968686.31' WHERE source_name='4FGL J0521.2+1637' and cadence='daily' and bin_id='1744'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/566187

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/566187/ft1_4FGL_J0521.2+1637_daily_bin1744.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/566187/ft2_4FGL_J0521.2+1637_daily_bin1744.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/566187/ft1_4FGL_J0521.2+1637_daily_bin1744.fits outfile=/scratch/kocevski/566187/ft1_filteredMKT_4FGL_J0521.2+1637_daily_bin1744.fits ra=80.3136 dec=16.631 rad=12.0 tmin=691372801.0 tmax=691632001.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 2.52
user 2.30
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/566187/ft2_4FGL_J0521.2+1637_daily_bin1744.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/566187/ft2_4FGL_J0521.2+1637_daily_bin1744.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/566187/ft1_filteredMKT_4FGL_J0521.2+1637_daily_bin1744.fits evtable="EVENTS" outfile="/scratch/kocevski/566187/ft1_filtered_4FGL_J0521.2+1637_daily_bin1744.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.33
sys 0.16

Number of photons that the gtmktime cut: 75

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/566187/ft1_filtered_4FGL_J0521.2+1637_daily_bin1744.fits" evtable="EVENTS" scfile=/scratch/kocevski/566187/ft2_4FGL_J0521.2+1637_daily_bin1744.fits sctable="SC_DATA" outfile=/scratch/kocevski/566187/ltcube_691372801_691632001_4FGL_J0521.2+1637_daily_bin1744.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/566187/ft2_4FGL_J0521.2+1637_daily_bin1744.fits
.....................!
real 12.47
user 12.12
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/566187/ft1_filtered_4FGL_J0521.2+1637_daily_bin1744.fits evtable="EVENTS" scfile=/scratch/kocevski/566187/ft2_4FGL_J0521.2+1637_daily_bin1744.fits sctable="SC_DATA" expcube=/scratch/kocevski/566187/ltcube_691372801_691632001_4FGL_J0521.2+1637_daily_bin1744.fits outfile=/scratch/kocevski/566187/expmap_691372801_691632001_4FGL_J0521.2+1637_daily_bin1744.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/566187/ltcube_691372801_691632001_4FGL_J0521.2+1637_daily_bin1744.fits
.....................!
real 193.51
user 187.66
sys 5.35

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 S 147 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/S147.fits is the correct path to the extended template.
Extended source IC 443 in ROI with RadialGaussian spatial model.
Extended source Rosette in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_8years/Templates/Rosette.fits is the correct path to the extended template.
Extended source Monoceros in ROI with RadialGaussian spatial model.
Added 169 point sources and 4 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 J0521.2+1637 @ 80.3136 16.631

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/566187/ft1_filtered_4FGL_J0521.2+1637_daily_bin1744.fits scfile=/scratch/kocevski/566187/ft2_4FGL_J0521.2+1637_daily_bin1744.fits outfile=/scratch/kocevski/566187/cmap_691372801_691632001_4FGL_J0521.2+1637_daily_bin1744.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.3136 yref=16.631 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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/566187/ft1_filtered_4FGL_J0521.2+1637_daily_bin1744.fits scfile=/scratch/kocevski/566187/ft2_4FGL_J0521.2+1637_daily_bin1744.fits outfile=/scratch/kocevski/566187/cmap_HighResolution_691372801_691632001_4FGL_J0521.2+1637_daily_bin1744.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.3136 yref=16.631 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.54
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/566187/ft1_filtered_4FGL_J0521.2+1637_daily_bin1744.fits evtable="EVENTS" scfile=/scratch/kocevski/566187/ft2_4FGL_J0521.2+1637_daily_bin1744.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/566187/Model_4FGL_J0521.2+1637_daily_bin1744.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 IC 443
adding source Monoceros
adding source Rosette
adding source S 147
Working on...
/scratch/kocevski/566187/ft1_filtered_4FGL_J0521.2+1637_daily_bin1744.fits.........................!
real 34.33
user 32.99
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/566187/ft1_filtered_4FGL_J0521.2+1637_daily_bin1744.fits', '/scratch/kocevski/566187/ft2_4FGL_J0521.2+1637_daily_bin1744.fits', expMap='/scratch/kocevski/566187/expmap_691372801_691632001_4FGL_J0521.2+1637_daily_bin1744.fits', expCube='/scratch/kocevski/566187/ltcube_691372801_691632001_4FGL_J0521.2+1637_daily_bin1744.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/566187/Model_4FGL_J0521.2+1637_daily_bin1744.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0521.2+1637'

4FGL J0521.2+1637
   Spectrum: PowerLaw
242    Prefactor:  4.819e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  2.231e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  2.276e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/566187/ft1_filtered_4FGL_J0521.2+1637_daily_bin1744.fits
Spacecraft file(s): /scratch/kocevski/566187/ft2_4FGL_J0521.2+1637_daily_bin1744.fits
Exposure map: /scratch/kocevski/566187/expmap_691372801_691632001_4FGL_J0521.2+1637_daily_bin1744.fits
Exposure cube: /scratch/kocevski/566187/ltcube_691372801_691632001_4FGL_J0521.2+1637_daily_bin1744.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/566187/Model_4FGL_J0521.2+1637_daily_bin1744.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 922.640592806

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 919.025215547

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3630       1.0000          .0000       .10000E+07
     2 'norm      '    6.4812       1.0000          .0000       .10000E+07
     3 'Prefactor '    116.09       1.0000          .0000       .10000E+07
     4 'Prefactor '    75.300       1.0000          .0000       .10000E+07
     5 'Prefactor '    135.98       1.0000          .0000       .10000E+07
     6 'norm      '    11.699       1.0000          .0000       .10000E+07
     7 'Prefactor '    17.080       1.0000          .0000       .10000E+07
     8 'norm      '    .42746       1.0000          .0000       .10000E+07
     9 'Prefactor '    .43042E-04   1.0000          .0000       .10000E+07
    10 'Prefactor '    1.0236       1.0000          .0000       .10000E+07
    11 'norm      '    .13616       1.0000          .0000       .10000E+07
    12 'norm      '    .25722E-01   1.0000          .0000       .10000E+07
    13 'norm      '    4.4068       1.0000          .0000       .10000E+07
    14 'Prefactor '    .29372       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .18201E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .87630       1.0000          .0000       .10000E+07
    17 'Prefactor '    9.4516       1.0000          .0000       .10000E+07
    18 'Prefactor '    18.664       1.0000          .0000       .10000E+07
    19 'Prefactor '    96.140       1.0000          .0000       .10000E+07
    20 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    21 'Prefactor '    .73345       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5910E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   918.9295     FROM MIGRAD    STATUS=CONVERGED    282 CALLS      492 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1112        114.45       -.35689E-05   -.96728E-03
   2  norm          6.4812        1.0030         .0000         .0000    
   3  Prefactor     225.40        277.99       -.55435E-05    .15857E-04
   4  Prefactor     .81435E-06    562.64       -.45184E-05** at limit **
   5  Prefactor     133.06        164.95        .60534E-06   -.37347E-03
   6  norm          12.234        16.147       -.87700E-06    .24710E-02
   7  Prefactor     16.528        35.913        .15318E-06    .24265E-03
   8  norm          .12546E-07    145.94        .24355E-05** at limit **
   9  Prefactor     .26645E-08    34.804       -.13896E-05** at limit **
  10  Prefactor     .47740E-08    498.72        .16659E-05** at limit **
  11  norm          .23315E-08    188.19        .69401E-06** at limit **
  12  norm          .11102E-09    22.745        .23123E-06** at limit **
  13  norm          4.3095        6.5353       -.29569E-06    .47523E-03
  14  Prefactor     .29650        .72178        .67436E-06   -.93822E-04
  15  Prefactor      .0000        5.7484       -.20320E-07** at limit **
  16  Prefactor     .12768E-08    129.66       -.12562E-06** at limit **
  17  Prefactor     25.113        212.10        .11007E-04   -.83078E-04
  18  Prefactor     18.702        28.385        .64363E-06   -.13926E-02
  19  Prefactor     96.865        74.440       -.76809E-06    .13358E-02
  20  Normalizat    .10000E-01    .46359        .34130E-05** at limit **
  21  Prefactor     .72811        .13821       -.39648E-05    .11297E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.11122
  norm       = 6.48117
  Prefactor  = 225.396
  Prefactor  = 8.14349e-07
  Prefactor  = 133.056
  norm       = 12.2337
  Prefactor  = 16.5283
  norm       = 1.25455e-08
  Prefactor  = 2.66454e-09
  Prefactor  = 4.77396e-09
  norm       = 2.33147e-09
  norm       = 1.11022e-10
  norm       = 4.30945
  Prefactor  = 0.296498
  Prefactor  = 0
  Prefactor  = 1.27676e-09
  Prefactor  = 25.1133
  Prefactor  = 18.7023
  Prefactor  = 96.8649
  Normalizat = 0.01
  Prefactor  = 0.728112
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   918.9295     FROM HESSE     STATUS=FAILED        15 CALLS      507 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1112        92.971        .66638E-03   -1.5673    
   2  norm          37335.        37329.         .0000       -1.5657    
   3  Prefactor     225.40        1.3934       -.55435E-05   -1.5408    
   4  Prefactor     .81435E-06    .33205E-02   -.45184E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     133.06        .98919        .60534E-06   -1.5477    
   6  norm          12.234        1.0235       -.87700E-06   -1.5638    
   7  Prefactor     16.528        .98413        .15318E-06   -1.5627    
   8  norm          .12546E-07    .18650        .24355E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .26645E-08    .44347E-01   -.13896E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .47740E-08    .40249        .16659E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .23315E-08    .42542        .69401E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .11102E-09    .69604        .23123E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.3095        .99540       -.29569E-06   -1.5666    
  14  Prefactor     .29650        .56604        .67436E-06   -1.5599    
  15  Prefactor      .0000        .44347E-01   -.20320E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .12768E-08    .56199E-01   -.12562E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     25.113        1.6323        .11007E-04   -1.5608    
  18  Prefactor     18.702        1.0014        .64363E-06   -1.5621    
  19  Prefactor     96.865        1.0038       -.76809E-06   -1.5511    
  20  Normalizat    .10000E-01    .25729        .34130E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .72811        1.0795       -.39648E-05   -1.0244    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.16176e-09
Minuit parameter uncertainties:
  1  34.0155
  2  1.00301
  3  1.39336
  4  0.000104001
  5  0.98919
  6  1.02354
  7  0.984129
  8  9.66487e-05
  9  2.16312e-05
  10  8.7542e-05
  11  6.31478e-05
  12  1.55376e-05
  13  0.995401
  14  0.566053
  15  8.90823e-07
  16  1.69187e-05
  17  1.63232
  18  1.00138
  19  1.00378
  20  3.74598e-07
  21  1.11322
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 918.929511125

Extracting fit parameters...

4FGL J0521.2+1637
   Spectrum: PowerLaw
242    Prefactor:  4.774e-09  8.754e-05  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  2.231e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  2.276e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  7.281e-01  1.113e+00  0.000e+00  1.000e+01 ( 1.000e+00)
573        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
574        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
571   Normalization:  1.000e-02  3.746e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 80.314 16.631
Photon Flux Upper Limit: 2.58e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.97e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/566187/likelihoodResults_691372801_691632001_4FGL_J0521.2+1637_daily_bin1744.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) = 918.930467979
delta logL = -0.000956854144761

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 918.929511875
delta logL = -7.50315734876e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   918.9295     FROM MIGRAD    STATUS=CONVERGED     44 CALLS      233 TOTAL
                     EDM=   .55E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11102E-09    1123.0       -.62429E-05** at limit **
   2  Index         .96070        8.3115       -.30036E-03   -.10559E-12
   3  Normalizat    .10000E-01    .45550        .11702E-05** at limit **
   4  Prefactor     .72811        .11361        .10566E-05    .21958E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.11022e-10
  Index      = 0.960699
  Normalizat = 0.01
  Prefactor  = 0.728112
 **********
 **   18 **HESSE 
 **********

 FCN=   918.9295     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      270 TOTAL
                     EDM=   .67E-15    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11102E-09    17.242        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .96070        5.4909        .51000       -.94051    
   3  Normalizat    .10000E-01    .12842E-04    .28854       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .72811        .62953E-03    .29310E-01   -1.0244    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.69099e-16
Minuit parameter uncertainties:
  1  8.03846e-05
  2  276241
  3  3.44644e-11
  4  0.000629534
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/566187': 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) = 918.929511125
delta logL = 1.64845914696e-11

Extracting fit parameters...

4FGL J0521.2+1637
   Spectrum: PowerLaw
242    Prefactor:  1.110e-10  8.038e-05  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  9.607e-01  2.762e+05  0.000e+00  1.000e+01 (-1.000e+00)
244        Scale:  2.276e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
572    Prefactor:  7.281e-01  6.295e-04  0.000e+00  1.000e+01 ( 1.000e+00)
573        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
574        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
571   Normalization:  1.000e-02  3.446e-11  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 80.314 16.631

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/566187/cmap_HighResolution_691372801_691632001_4FGL_J0521.2+1637_daily_bin1744.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.97e-01', job_status='DONE', photon_flux_upper_limit='2.58e-06', time_completed='2022-12-02 00:17:11.068032', job_id='566187', GAL2='0.73', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1669969031.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.73', dlogl='1.65e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1744' AND source_name='4FGL J0521.2+1637' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec  2 00:17:11 PST 2022

CESS', return_code='101', GAL='0.73', dlogl='1.65e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1744' AND source_name='4FGL J0521.2+1637' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec  2 00:16:47 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 566084: <4FGL_J0521.2+1637_daily_bin1744> in cluster <slac> Done

Job <4FGL_J0521.2+1637_daily_bin1744> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Dec  2 00:06:21 2022
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec  2 00:06:47 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec  2 00:06:47 2022
Terminated at Fri Dec  2 00:16:48 2022
Results reported at Fri Dec  2 00:16:48 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0521.2+1637_daily_bin1744 80.3136 16.631 691372801 691632001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0521.2+1637 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   350.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   600 sec.
    Turnaround time :                            627 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0096>
Subject: Job 566187: <4FGL_J0521.2+1637_daily_bin1744> in cluster <slac> Done

Job <4FGL_J0521.2+1637_daily_bin1744> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Dec  2 00:06:26 2022
Job was executed on host(s) <bullet0096>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec  2 00:06:58 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec  2 00:06:58 2022
Terminated at Fri Dec  2 00:17:11 2022
Results reported at Fri Dec  2 00:17:11 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0521.2+1637_daily_bin1744 80.3136 16.631 691372801 691632001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0521.2+1637 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   347.31 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             249.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   613 sec.
    Turnaround time :                            645 sec.

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

