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 225 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_J0521.2+1637_daily_bin1745
RA = 80.3136, Dec = 16.631
tmin = 691632001, tmax = 691891201
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='637596', job_status='RUN', time_executed='2022-12-05 00:09:50.992220', time_epoch_executed='1670227790.99' WHERE source_name='4FGL J0521.2+1637' and cadence='daily' and bin_id='1745'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/637596

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/637596/ft1_4FGL_J0521.2+1637_daily_bin1745.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/637596/ft2_4FGL_J0521.2+1637_daily_bin1745.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/637596/ft1_4FGL_J0521.2+1637_daily_bin1745.fits outfile=/scratch/kocevski/637596/ft1_filteredMKT_4FGL_J0521.2+1637_daily_bin1745.fits ra=80.3136 dec=16.631 rad=12.0 tmin=691632001.0 tmax=691891201.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.37
user 2.14
sys 0.19

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

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

Number of photons that the gtmktime cut: 313

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/637596/ft1_filtered_4FGL_J0521.2+1637_daily_bin1745.fits" evtable="EVENTS" scfile=/scratch/kocevski/637596/ft2_4FGL_J0521.2+1637_daily_bin1745.fits sctable="SC_DATA" outfile=/scratch/kocevski/637596/ltcube_691632001_691891201_4FGL_J0521.2+1637_daily_bin1745.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/637596/ft2_4FGL_J0521.2+1637_daily_bin1745.fits
.....................!
real 12.65
user 12.13
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/637596/ft1_filtered_4FGL_J0521.2+1637_daily_bin1745.fits evtable="EVENTS" scfile=/scratch/kocevski/637596/ft2_4FGL_J0521.2+1637_daily_bin1745.fits sctable="SC_DATA" expcube=/scratch/kocevski/637596/ltcube_691632001_691891201_4FGL_J0521.2+1637_daily_bin1745.fits outfile=/scratch/kocevski/637596/expmap_691632001_691891201_4FGL_J0521.2+1637_daily_bin1745.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/637596/ltcube_691632001_691891201_4FGL_J0521.2+1637_daily_bin1745.fits
.....................!
real 192.36
user 186.07
sys 5.29

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/637596/ft1_filtered_4FGL_J0521.2+1637_daily_bin1745.fits scfile=/scratch/kocevski/637596/ft2_4FGL_J0521.2+1637_daily_bin1745.fits outfile=/scratch/kocevski/637596/cmap_691632001_691891201_4FGL_J0521.2+1637_daily_bin1745.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.73
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/637596/ft1_filtered_4FGL_J0521.2+1637_daily_bin1745.fits scfile=/scratch/kocevski/637596/ft2_4FGL_J0521.2+1637_daily_bin1745.fits outfile=/scratch/kocevski/637596/cmap_HighResolution_691632001_691891201_4FGL_J0521.2+1637_daily_bin1745.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.55
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/637596/ft1_filtered_4FGL_J0521.2+1637_daily_bin1745.fits', '/scratch/kocevski/637596/ft2_4FGL_J0521.2+1637_daily_bin1745.fits', expMap='/scratch/kocevski/637596/expmap_691632001_691891201_4FGL_J0521.2+1637_daily_bin1745.fits', expCube='/scratch/kocevski/637596/ltcube_691632001_691891201_4FGL_J0521.2+1637_daily_bin1745.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/637596/Model_4FGL_J0521.2+1637_daily_bin1745.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/637596/ft1_filtered_4FGL_J0521.2+1637_daily_bin1745.fits
Spacecraft file(s): /scratch/kocevski/637596/ft2_4FGL_J0521.2+1637_daily_bin1745.fits
Exposure map: /scratch/kocevski/637596/expmap_691632001_691891201_4FGL_J0521.2+1637_daily_bin1745.fits
Exposure cube: /scratch/kocevski/637596/ltcube_691632001_691891201_4FGL_J0521.2+1637_daily_bin1745.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/637596/Model_4FGL_J0521.2+1637_daily_bin1745.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 3625.38882459

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10658E-07   1.0000          .0000       .10000E+07
     2 'norm      '    .94479       1.0000          .0000       .10000E+07
     3 'Prefactor '    .13413E-03   1.0000          .0000       .10000E+07
     4 'Prefactor '    56.586       1.0000          .0000       .10000E+07
     5 'Prefactor '    37.622       1.0000          .0000       .10000E+07
     6 'norm      '    .44594       1.0000          .0000       .10000E+07
     7 'Prefactor '    3.0011       1.0000          .0000       .10000E+07
     8 'norm      '    .65723E-03   1.0000          .0000       .10000E+07
     9 'Prefactor '    15.534       1.0000          .0000       .10000E+07
    10 'Prefactor '    .78527E-02   1.0000          .0000       .10000E+07
    11 'norm      '    8.4178       1.0000          .0000       .10000E+07
    12 'norm      '    15.980       1.0000          .0000       .10000E+07
    13 'norm      '    2.6866       1.0000          .0000       .10000E+07
    14 'Prefactor '    .58178       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .25234       1.0000          .0000       .10000E+07
    16 'Prefactor '    .19208E-02   1.0000          .0000       .10000E+07
    17 'Prefactor '    .27025E-03   1.0000          .0000       .10000E+07
    18 'Prefactor '    .55407E-05   1.0000          .0000       .10000E+07
    19 'Prefactor '    20.492       1.0000          .0000       .10000E+07
    20 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0054       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=   3625.370     FROM MIGRAD    STATUS=CONVERGED    172 CALLS     1763 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm           .0000        8.1091        .29641E-06** at limit **
   2  norm          .85139        5.4035       -.12448E-06    .43752E-01
   3  Prefactor     .41389E-06    34.131        .93352E-06** at limit **
   4  Prefactor     54.991        20.296       -.11076E-06   -.19081E-01
   5  Prefactor     37.676        7.3511       -.49228E-10   -.62489E-01
   6  norm          .48056        17.041        .14442E-05   -.50557E-03
   7  Prefactor     2.8631        9.0011        .16647E-06    .43049E-03
   8  norm          .39413E-08    30.831        .11201E-06** at limit **
   9  Prefactor     15.575        14.714        .89367E-07    .12163E-02
  10  Prefactor     .20987E-05    199.73       -.11943E-05** at limit **
  11  norm          8.4033        10.380       -.14980E-07   -.17597E-02
  12  norm          16.018        18.875        .28892E-06   -.17507E-02
  13  norm          2.6857        2.3884        .28933E-08   -.39430E-03
  14  Prefactor     .57788        .45117        .63460E-06   -.23191E-03
  15  Prefactor     .31826        18.971       -.63197E-06    .29650E-03
  16  Prefactor     .49988E-06    36.031        .84138E-06** at limit **
  17  Prefactor     .99631E-06    146.21       -.57109E-06** at limit **
  18  Prefactor      .0000        8.1403        .29590E-07** at limit **
  19  Prefactor     20.520        1.6518       -.25833E-07   -.74332E-02
  20  Normalizat    .10000E-01    .34427       -.94419E-05** at limit **
  21  Prefactor     1.0056        .77033E-01   -.23904E-05    .66447E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0
  norm       = 0.851393
  Prefactor  = 4.13891e-07
  Prefactor  = 54.9912
  Prefactor  = 37.6764
  norm       = 0.480558
  Prefactor  = 2.8631
  norm       = 3.94129e-09
  Prefactor  = 15.5748
  Prefactor  = 2.09871e-06
  norm       = 8.40333
  norm       = 16.0177
  norm       = 2.68566
  Prefactor  = 0.577881
  Prefactor  = 0.318258
  Prefactor  = 4.99878e-07
  Prefactor  = 9.96314e-07
  Prefactor  = 0
  Prefactor  = 20.5197
  Normalizat = 0.01
  Prefactor  = 1.00562
 **********
 **   18 **HESSE 
 **********

 FCN=   3625.370     FROM HESSE     STATUS=OK           369 CALLS     2132 TOTAL
                     EDM=   .82E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm           .0000        8.1448        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .85139        10508.        .42711E-03   -1.5690    
   3  Prefactor     .41389E-06    36.492        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     54.991        68.888        .13295E-03   -1.5560    
   5  Prefactor     37.676        35.009        .16305E-03   -1.5585    
   6  norm          .48056        17.530        .84346E-03   -1.5694    
   7  Prefactor     2.8631        9.2236        .58568E-03   -1.5674    
   8  norm          .39413E-08    30.880        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.575        14.763        .25385E-03   -1.5629    
  10  Prefactor     .20987E-05    220.08        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.4033        29.961        .34528E-03   -1.5650    
  12  norm          16.018        18.878        .25028E-03   -1.5628    
  13  norm          2.6857        2.4020        .62136E-03   -1.5675    
  14  Prefactor     .57788        .44926        .60882E-02   -1.5556    
  15  Prefactor     .31826        3.7970        .57210E-02   -1.5697    
  16  Prefactor     .49988E-06    39.562        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .99631E-06    147.03        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor      .0000        8.1569        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.520        43.427        .22097E-03   -1.5617    
  20  Normalizat    .10000E-01    .30222        .32094       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.0056        .83477E-01    .29798E-01   -.92542    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.24232e-05
Minuit parameter uncertainties:
  1  2.58946e-05
  2  189.502
  3  0.00777274
  4  68.8885
  5  35.0096
  6  5.80499
  7  9.22366
  8  0.000697222
  9  14.7629
  10  0.0429846
  11  29.9611
  12  18.8776
  13  2.40198
  14  0.449263
  15  2.19857
  16  0.0088939
  17  0.0242073
  18  2.25183e-05
  19  43.428
  20  1.36467e-06
  21  0.0834873
Done.

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

Extracting fit parameters...

4FGL J0521.2+1637
   Spectrum: PowerLaw
242    Prefactor:  2.099e-06  4.298e-02  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:  1.006e+00  8.349e-02  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.365e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/637596/likelihoodResults_691632001_691891201_4FGL_J0521.2+1637_daily_bin1745.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) = 3625.37257916
delta logL = -0.00218629952087

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3625.37039294
delta logL = -7.64216565585e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32129E-05   1.0000          .0000       .10000E+07
     2 'Index     '    1.9246       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0056       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.

 FCN=   3625.370     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      275 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .80602E-07    44.029        .42118E-03** at limit **
   2  Index         1.4214        7.7147        .50000       -.72760E-09
   3  Normalizat    .10000E-01    .65944E-04    .32094    ** at limit **
   4  Prefactor     1.0056        .11036E-02    .29798E-01    .48928E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.06022e-08
  Index      = 1.42138
  Normalizat = 0.01
  Prefactor  = 1.00562
 **********
 **   18 **HESSE 
 **********

 FCN=   3625.370     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      306 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .80602E-07    217.62        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.4214        5.3844        .50000       -.79766    
   3  Normalizat    .10000E-01    .46481E-03    .18441E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0056        .24551E-02    .13170E-03   -.92542    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.51501e-10
Minuit parameter uncertainties:
  1  0.00837655
  2  14459.6
  3  9.5169e-07
  4  0.00245508
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/637596': 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) = 3625.37039286
delta logL = 3.88808985008e-09

Extracting fit parameters...

4FGL J0521.2+1637
   Spectrum: PowerLaw
242    Prefactor:  8.060e-08  8.377e-03  0.000e+00  1.000e+06 ( 1.000e-14)
243        Index:  1.421e+00  1.446e+04  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.006e+00  2.455e-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  9.517e-07  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/637596/cmap_HighResolution_691632001_691891201_4FGL_J0521.2+1637_daily_bin1745.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.55e-02', job_status='DONE', photon_flux_upper_limit='4.65e-07', time_completed='2022-12-05 00:18:28.279302', job_id='637596', GAL2='1.01', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1670228308.28', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='3.89e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1745' AND source_name='4FGL J0521.2+1637' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 00:18:28 PST 2022

UCCESS', return_code='0', GAL='1.01', dlogl='3.89e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='1745' AND source_name='4FGL J0521.2+1637' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Dec  5 00:15:47 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 637595: <4FGL_J0521.2+1637_daily_bin1745> in cluster <slac> Done

Job <4FGL_J0521.2+1637_daily_bin1745> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Dec  5 00:05:28 2022
Job was executed on host(s) <bullet0228>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec  5 00:05:47 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec  5 00:05:47 2022
Terminated at Mon Dec  5 00:15:47 2022
Results reported at Mon Dec  5 00:15:47 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0521.2+1637_daily_bin1745 80.3136 16.631 691632001 691891201 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 :                                   525.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             362.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   600 sec.
    Turnaround time :                            619 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 637596: <4FGL_J0521.2+1637_daily_bin1745> in cluster <slac> Done

Job <4FGL_J0521.2+1637_daily_bin1745> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Dec  5 00:05:28 2022
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Dec  5 00:05:47 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Dec  5 00:05:47 2022
Terminated at Mon Dec  5 00:18:29 2022
Results reported at Mon Dec  5 00:18:29 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0521.2+1637_daily_bin1745 80.3136 16.631 691632001 691891201 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 :                                   518.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            781 sec.

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

