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 73 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 make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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


Performing analysis on: 4FGL_J0521.2+1637_daily_bin1686
RA = 80.3136, Dec = 16.631
tmin = 676339201, tmax = 676598401
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='509414', job_status='RUN', time_executed='2022-06-11 00:13:53.193113', time_epoch_executed='1654931633.19' WHERE source_name='4FGL J0521.2+1637' and cadence='daily' and bin_id='1686'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/509414

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/509414/ft1_4FGL_J0521.2+1637_daily_bin1686.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/509414/ft2_4FGL_J0521.2+1637_daily_bin1686.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/509414/ft1_4FGL_J0521.2+1637_daily_bin1686.fits outfile=/scratch/kocevski/509414/ft1_filteredMKT_4FGL_J0521.2+1637_daily_bin1686.fits ra=80.3136 dec=16.631 rad=12.0 tmin=676339201.0 tmax=676598401.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.81
user 2.59
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/509414/ft2_4FGL_J0521.2+1637_daily_bin1686.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/509414/ft1_filteredMKT_4FGL_J0521.2+1637_daily_bin1686.fits evtable="EVENTS" outfile="/scratch/kocevski/509414/ft1_filtered_4FGL_J0521.2+1637_daily_bin1686.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.53
user 0.33
sys 0.17

Number of photons that the gtmktime cut: 169

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/509414/ft1_filtered_4FGL_J0521.2+1637_daily_bin1686.fits" evtable="EVENTS" scfile=/scratch/kocevski/509414/ft2_4FGL_J0521.2+1637_daily_bin1686.fits sctable="SC_DATA" outfile=/scratch/kocevski/509414/ltcube_676339201_676598401_4FGL_J0521.2+1637_daily_bin1686.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/509414/ft2_4FGL_J0521.2+1637_daily_bin1686.fits
.....................!
real 14.99
user 14.62
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/509414/ft1_filtered_4FGL_J0521.2+1637_daily_bin1686.fits evtable="EVENTS" scfile=/scratch/kocevski/509414/ft2_4FGL_J0521.2+1637_daily_bin1686.fits sctable="SC_DATA" expcube=/scratch/kocevski/509414/ltcube_676339201_676598401_4FGL_J0521.2+1637_daily_bin1686.fits outfile=/scratch/kocevski/509414/expmap_676339201_676598401_4FGL_J0521.2+1637_daily_bin1686.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/509414/ltcube_676339201_676598401_4FGL_J0521.2+1637_daily_bin1686.fits
.....................!
real 192.55
user 186.50
sys 5.44

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_archive_v18/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_archive_v18/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/509414/ft1_filtered_4FGL_J0521.2+1637_daily_bin1686.fits scfile=/scratch/kocevski/509414/ft2_4FGL_J0521.2+1637_daily_bin1686.fits outfile=/scratch/kocevski/509414/cmap_676339201_676598401_4FGL_J0521.2+1637_daily_bin1686.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/509414/ft1_filtered_4FGL_J0521.2+1637_daily_bin1686.fits scfile=/scratch/kocevski/509414/ft2_4FGL_J0521.2+1637_daily_bin1686.fits outfile=/scratch/kocevski/509414/cmap_HighResolution_676339201_676598401_4FGL_J0521.2+1637_daily_bin1686.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.56
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/509414/ft1_filtered_4FGL_J0521.2+1637_daily_bin1686.fits evtable="EVENTS" scfile=/scratch/kocevski/509414/ft2_4FGL_J0521.2+1637_daily_bin1686.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/509414/Model_4FGL_J0521.2+1637_daily_bin1686.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/509414/ft1_filtered_4FGL_J0521.2+1637_daily_bin1686.fits......................!
real 58.75
user 57.22
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/509414/ft1_filtered_4FGL_J0521.2+1637_daily_bin1686.fits', '/scratch/kocevski/509414/ft2_4FGL_J0521.2+1637_daily_bin1686.fits', expMap='/scratch/kocevski/509414/expmap_676339201_676598401_4FGL_J0521.2+1637_daily_bin1686.fits', expCube='/scratch/kocevski/509414/ltcube_676339201_676598401_4FGL_J0521.2+1637_daily_bin1686.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/509414/Model_4FGL_J0521.2+1637_daily_bin1686.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  1.000e-04  1.000e+04 ( 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/509414/ft1_filtered_4FGL_J0521.2+1637_daily_bin1686.fits
Spacecraft file(s): /scratch/kocevski/509414/ft2_4FGL_J0521.2+1637_daily_bin1686.fits
Exposure map: /scratch/kocevski/509414/expmap_676339201_676598401_4FGL_J0521.2+1637_daily_bin1686.fits
Exposure cube: /scratch/kocevski/509414/ltcube_676339201_676598401_4FGL_J0521.2+1637_daily_bin1686.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/509414/Model_4FGL_J0521.2+1637_daily_bin1686.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) = 2050.04264409

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.7107       1.0000         .10000E-03   10000.    
     2 'norm      '    229.83       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10158E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11332E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    47.528       1.0000         .10000E-03   10000.    
     6 'norm      '    15.432       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10653E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.7743       1.0000         .10000E-03   10000.    
    15 'norm      '    1.2249       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11118E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    223.35       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    24.680       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10013E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0831       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=   2050.013     FROM MIGRAD    STATUS=CONVERGED    113 CALLS     2414 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.7208        7.4279       -.35410E-06    .10561E-03
   2  norm          229.79        9.8235       -.50023E-05    .12099E-01
   3  Prefactor     .10945E-03    11.383       -.67185E-05** at limit **
   4  Prefactor     .10016E-03    36.715       -.43227E-04** at limit **
   5  Prefactor     47.531        1.1314        .37215E-06    .11302E-04
   6  norm          15.435        10.401        .21644E-04    .63031E-02
   7  Prefactor     .10000E-03    5.8614        .43587E-06** at limit **
   8  norm          .10477E-03    38.575        .37262E-04** at limit **
   9  Prefactor     .10000E-03    8.0764       -.11518E-06** at limit **
  10  Prefactor     .27240E-02    111.24       -.15387E-03    .15118E-02
  11  Prefactor     .10027E-03    69.052        .71656E-04** at limit **
  12  norm          .10079E-03    37.727       -.36506E-04** at limit **
  13  Prefactor     .12405E-03    284.63       -.21171E-03** at limit **
  14  norm          9.7905        1.8648       -.59128E-06    .34373E-03
  15  norm          1.2263        3.8744       -.10798E-05    .27061E-04
  16  Prefactor     .10000E-03    7.5447       -.10529E-05** at limit **
  17  norm          .20604E-03    121.81       -.29890E-04** at limit **
  18  Prefactor     .11755E-03    59.546        .58310E-04** at limit **
  19  Prefactor     .10587E-03    33.702        .36133E-05** at limit **
  20  Prefactor     .10020E-03    37.409       -.48755E-04** at limit **
  21  Prefactor     223.35        1.1245        .26126E-06   -.61673E-03
  22  Prefactor     .10009E-03    34.347        .16609E-04** at limit **
  23  Prefactor     24.641        9.3054       -.14032E-04    .33031E-02
  24  Normalizat    .10000E-01    6.2158        .40638E-04** at limit **
  25  Prefactor     1.0832        .11362       -.15317E-05    .36387E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.72075
  norm       = 229.791
  Prefactor  = 0.000109451
  Prefactor  = 0.000100156
  Prefactor  = 47.5312
  norm       = 15.435
  Prefactor  = 0.0001
  norm       = 0.00010477
  Prefactor  = 0.0001
  Prefactor  = 0.00272404
  Prefactor  = 0.000100273
  norm       = 0.000100788
  Prefactor  = 0.000124047
  norm       = 9.79048
  norm       = 1.22629
  Prefactor  = 0.0001
  norm       = 0.00020604
  Prefactor  = 0.000117554
  Prefactor  = 0.000105867
  Prefactor  = 0.000100202
  Prefactor  = 223.348
  Prefactor  = 0.000100093
  Prefactor  = 24.6415
  Normalizat = 0.01
  Prefactor  = 1.08316
 **********
 **   18 **HESSE 
 **********

 FCN=   2050.013     FROM HESSE     STATUS=OK           467 CALLS     2881 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.7208        7.9359        .36103E-02   -1.5152    
   2  norm          229.79        371.35        .66734E-03   -1.2664    
   3  Prefactor     .10945E-03    320.53        .10376E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10016E-03    89.764        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     47.531        51.712        .14541E-02   -1.4328    
   6  norm          15.435        10.732        .25489E-02   -1.4922    
   7  Prefactor     .10000E-03    5.8490        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10477E-03    50.592        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.0778        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .27240E-02    1600.6        .90712E-02   -1.5698    
  11  Prefactor     .10027E-03    161.74        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10079E-03    39.065        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .12405E-03    582.20        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.7905        33.374        .32044E-02   -1.5082    
  15  norm          1.2263        3.9460        .10175E-01   -1.5486    
  16  Prefactor     .10000E-03    7.5329        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .20604E-03    253.06        .90712E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .11755E-03    132.86        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10587E-03    62.286        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10020E-03    86.571        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     223.35        262.64        .67673E-03   -1.2708    
  22  Prefactor     .10009E-03    34.307        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     24.641        175.87        .20158E-02   -1.4715    
  24  Normalizat    .10000E-01    .81031        .50000       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.0832        .13879        .38268E-01   -.90006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25253e-05
Minuit parameter uncertainties:
  1  7.93695
  2  375.26
  3  0.110675
  4  0.00748357
  5  51.761
  6  10.7335
  7  1.16303e-05
  8  0.0310966
  9  3.38817e-05
  10  4.2169
  11  0.0133258
  12  0.0111027
  13  0.239003
  14  33.4377
  15  3.94681
  16  6.43937e-06
  17  0.329026
  18  0.0968032
  19  0.0382727
  20  0.00837957
  21  264.042
  22  0.0035663
  23  132.218
  24  2.02938e-05
  25  0.13884
Done.

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

Extracting fit parameters...

4FGL J0521.2+1637
   Spectrum: PowerLaw
242    Prefactor:  1.003e-04  1.333e-02  1.000e-04  1.000e+04 ( 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:  1.083e+00  1.388e-01  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  2.029e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 80.314 16.631
Photon Flux Upper Limit: 8.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.27e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/509414/likelihoodResults_676339201_676598401_4FGL_J0521.2+1637_daily_bin1686.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) = 2050.0135153
delta logL = -3.1084487091e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2050.01348648
delta logL = -2.26429256145e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19296E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4411       1.0000          .0000       10.000    
     3 'Normalizat'    .10009E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0832       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5910E+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=   2050.013     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      287 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10278E-03    71.808        .18142E-01** at limit **
   2  Index         2.3660        8.8139        .50000        .26844E-05
   3  Normalizat    .10000E-01    .28900E-02    .17960E-01** at limit **
   4  Prefactor     1.0832        .32684E-02    .14080E-03    .19379E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102784
  Index      = 2.36597
  Normalizat = 0.01
  Prefactor  = 1.08316
 **********
 **   18 **HESSE 
 **********

 FCN=   2050.013     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      316 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10278E-03    355.42        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3660        6.3464        .50000       -.55484    
   3  Normalizat    .10000E-01    .14612E-01    .35920E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0832        .73225E-02    .56318E-05   -.90006    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.55048e-10
Minuit parameter uncertainties:
  1  0.0632961
  2  398.138
  3  1.64805e-06
  4  0.00732246
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/509414': 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) = 2050.01348429
delta logL = -8.12660800875e-08

Extracting fit parameters...

4FGL J0521.2+1637
   Spectrum: PowerLaw
242    Prefactor:  1.028e-04  6.330e-02  1.000e-04  1.000e+04 ( 1.000e-14)
243        Index:  2.366e+00  3.981e+02  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:  1.083e+00  7.322e-03  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  1.648e-06  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/509414/cmap_HighResolution_676339201_676598401_4FGL_J0521.2+1637_daily_bin1686.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.27e-02', job_status='DONE', photon_flux_upper_limit='8.21e-07', time_completed='2022-06-11 00:21:32.757845', job_id='509414', GAL2='1.08', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1654932092.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='-8.13e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1686' AND source_name='4FGL J0521.2+1637' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jun 11 00:21:32 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0283>
Subject: Job 509415: <4FGL_J0521.2+1637_daily_bin1686> in cluster <slac> Done

Job <4FGL_J0521.2+1637_daily_bin1686> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Jun 11 00:05:30 2022
Job was executed on host(s) <bullet0283>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jun 11 00:12:28 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jun 11 00:12:28 2022
Terminated at Sat Jun 11 00:21:02 2022
Results reported at Sat Jun 11 00:21:02 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0521.2+1637_daily_bin1686 80.3136 16.631 676339201 676598401 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 :                                   456.00 sec.
    Max Memory :                                 618 MB
    Average Memory :                             285.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   515 sec.
    Turnaround time :                            932 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 509414: <4FGL_J0521.2+1637_daily_bin1686> in cluster <slac> Done

Job <4FGL_J0521.2+1637_daily_bin1686> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Jun 11 00:05:30 2022
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jun 11 00:12:28 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jun 11 00:12:28 2022
Terminated at Sat Jun 11 00:21:33 2022
Results reported at Sat Jun 11 00:21:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0521.2+1637_daily_bin1686 80.3136 16.631 676339201 676598401 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 :                                   461.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             297.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   545 sec.
    Turnaround time :                            963 sec.

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

