aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 227 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 = 17272
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0521.2+1637_weekly_bin618
RA = 80.3136, Dec = 16.631
tmin = 612748801, tmax = 613353601
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='953989', job_status='RUN', time_executed='2021-07-08 06:29:45.577988', time_epoch_executed='1625750985.58' WHERE source_name='4FGL J0521.2+1637' and cadence='weekly' and bin_id='618'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/953989

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/953989/ft1_4FGL_J0521.2+1637_weekly_bin618.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/953989/ft2_4FGL_J0521.2+1637_weekly_bin618.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/953989/ft1_4FGL_J0521.2+1637_weekly_bin618.fits outfile=/scratch/kocevski/953989/ft1_filteredMKT_4FGL_J0521.2+1637_weekly_bin618.fits ra=80.3136 dec=16.631 rad=12.0 tmin=612748801.0 tmax=613353601.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 6.64
user 5.78
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/953989/ft1_filtered_4FGL_J0521.2+1637_weekly_bin618.fits evtable="EVENTS" scfile=/scratch/kocevski/953989/ft2_4FGL_J0521.2+1637_weekly_bin618.fits sctable="SC_DATA" expcube=/scratch/kocevski/953989/ltcube_612748801_613353601_4FGL_J0521.2+1637_weekly_bin618.fits outfile=/scratch/kocevski/953989/expmap_612748801_613353601_4FGL_J0521.2+1637_weekly_bin618.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/953989/ltcube_612748801_613353601_4FGL_J0521.2+1637_weekly_bin618.fits
.....................!
real 194.17
user 185.23
sys 4.38

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/953989/ft1_filtered_4FGL_J0521.2+1637_weekly_bin618.fits scfile=/scratch/kocevski/953989/ft2_4FGL_J0521.2+1637_weekly_bin618.fits outfile=/scratch/kocevski/953989/cmap_612748801_613353601_4FGL_J0521.2+1637_weekly_bin618.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.69
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/953989/ft1_filtered_4FGL_J0521.2+1637_weekly_bin618.fits scfile=/scratch/kocevski/953989/ft2_4FGL_J0521.2+1637_weekly_bin618.fits outfile=/scratch/kocevski/953989/cmap_HighResolution_612748801_613353601_4FGL_J0521.2+1637_weekly_bin618.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.67
user 0.42
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/953989/ft1_filtered_4FGL_J0521.2+1637_weekly_bin618.fits', '/scratch/kocevski/953989/ft2_4FGL_J0521.2+1637_weekly_bin618.fits', expMap='/scratch/kocevski/953989/expmap_612748801_613353601_4FGL_J0521.2+1637_weekly_bin618.fits', expCube='/scratch/kocevski/953989/ltcube_612748801_613353601_4FGL_J0521.2+1637_weekly_bin618.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/953989/Model_4FGL_J0521.2+1637_weekly_bin618.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/953989/ft1_filtered_4FGL_J0521.2+1637_weekly_bin618.fits
Spacecraft file(s): /scratch/kocevski/953989/ft2_4FGL_J0521.2+1637_weekly_bin618.fits
Exposure map: /scratch/kocevski/953989/expmap_612748801_613353601_4FGL_J0521.2+1637_weekly_bin618.fits
Exposure cube: /scratch/kocevski/953989/ltcube_612748801_613353601_4FGL_J0521.2+1637_weekly_bin618.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/953989/Model_4FGL_J0521.2+1637_weekly_bin618.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) = 2497.40886776

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.949       1.0000         .10000E-03   10000.    
     2 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    222.12       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.716       1.0000         .10000E-03   10000.    
     8 'norm      '    10000.       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13319E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    11 'Prefactor '    146.38       1.0000         .10000E-03   10000.    
    12 'norm      '    .13761E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10342E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .13365E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .93598       1.0000         .10000E-03   10000.    
    17 'norm      '    .10751E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.5933       1.0000         .10000E-03   10000.    
    19 'Prefactor '    142.87       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .44151E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .18410       1.0000         .10000E-03   10000.    
    22 'Prefactor '    24.263       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87717       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.

 FCN=   2497.305     FROM MIGRAD    STATUS=CONVERGED    605 CALLS     3757 TOTAL
                     EDM=   .24E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.949        27.517        .38386E-07    .24973E-05
   2  norm         10000.0        5001.9        .30394E-05** at limit **
   3  Prefactor     .10000E-03    64.060       -.67806E-08** at limit **
   4  Prefactor     .10000E-03    56.005       -.24754E-07** at limit **
   5  Prefactor     222.05        360.17       -.15711E-07   -.14005E-05
   6  norm          .10000E-03    4.6932       -.22813E-07** at limit **
   7  Prefactor     29.720        31.318        .36361E-07    .81335E-05
   8  norm         10000.0        647.76       -.21003E-06** at limit **
   9  Prefactor     .10000E-03    157.11       -.43855E-06** at limit **
  10  Prefactor    10000.0        1326.0       -.34102E-06** at limit **
  11  Prefactor     145.96        7818.3       -.25498E-05   -.38732E-06
  12  norm          .10000E-03    282.46       -.20304E-06** at limit **
  13  Prefactor     .10001E-03    1109.9        .16005E-05** at limit **
  14  norm          .10000E-03    68.711        .13945E-05** at limit **
  15  norm          .10000E-03    2.1169       -.60615E-06** at limit **
  16  Prefactor     .93588        .66564        .59478E-07    .35577E-04
  17  norm          .10000E-03    69.129       -.25756E-06** at limit **
  18  Prefactor     7.5943        9.5809        .19056E-06   -.52930E-05
  19  Prefactor     142.54        133.35       -.12986E-05    .24627E-04
  20  Prefactor     .10000E-03    647.31       -.12547E-04** at limit **
  21  Prefactor     .10001E-03    6511.8        .39562E-04** at limit **
  22  Prefactor     24.240        34.898       -.25694E-05   -.16055E-04
  23  Prefactor     .10000E-03    7.5923       -.41011E-08** at limit **
  24  Normalizat    .10000E-01    .14409       -.10825E-05** at limit **
  25  Prefactor     .87725        .82800E-01   -.19010E-06    .11847E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 25.9492
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 222.054
  norm       = 0.0001
  Prefactor  = 29.7197
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 145.956
  norm       = 0.0001
  Prefactor  = 0.000100007
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.935878
  norm       = 0.0001
  Prefactor  = 7.59426
  Prefactor  = 142.537
  Prefactor  = 0.000100002
  Prefactor  = 0.000100008
  Prefactor  = 24.2404
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.877251
 **********
 **   18 **HESSE 
 **********

 FCN=   2497.305     FROM HESSE     STATUS=OK           415 CALLS     4172 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.949        27.515        .78641E-04   -1.4689    
   2  norm         10000.0        5001.9        .19848E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    64.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    56.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     222.05        360.14        .13571E-03   -1.2717    
   6  norm          .10000E-03    4.6957        .10574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     29.720        31.317        .73497E-04   -1.4617    
   8  norm         10000.0        647.77        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    157.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor    10000.0        1326.1        .21109E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     145.96        7819.7        .16653E-03   -1.3286    
  12  norm          .10000E-03    282.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    1107.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    69.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.0919        .70363E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .93588        .65680        .30202E-04   -1.5514    
  17  norm          .10000E-03    70.329        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.5943        9.5546        .14553E-03   -1.5157    
  19  Prefactor     142.54        131.64        .16853E-03   -1.3314    
  20  Prefactor     .10000E-03    631.96        .19369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    6605.7        .39619E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     24.240        35.664        .81322E-04   -1.4723    
  23  Prefactor     .10000E-03    7.5987        .13448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .10000E-01    .14525        .11562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .87725        .82749E-01    .13083E-03   -.96941    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.99587e-11
Minuit parameter uncertainties:
  1  27.5281
  2  0.0913353
  3  6.85071e-06
  4  2.5497e-06
  5  363.828
  6  7.57134e-07
  7  31.3342
  8  0.000310247
  9  4.06826e-05
  10  0.00126548
  11  2363.48
  12  0.000139546
  13  0.00573182
  14  0.000214121
  15  7.52304e-06
  16  0.656802
  17  0.000131333
  18  9.5565
  19  131.915
  20  0.00223915
  21  0.0109575
  22  35.6956
  23  4.5331e-07
  24  1.3477e-06
  25  0.0827613
Done.

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

Extracting fit parameters...

4FGL J0521.2+1637
   Spectrum: PowerLaw
242    Prefactor:  1.460e+02  2.363e+03  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:  8.773e-01  8.276e-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.348e-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: 5.99e-06 ph cm-2 s-1
Energy Flux Upper Limit: 4.57e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/953989/likelihoodResults_612748801_613353601_4FGL_J0521.2+1637_weekly_bin618.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) = 2496.89746636
delta logL = 0.407317051782

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2496.87267728
delta logL = 0.43210613655

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    90.443       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7751       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86934       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=   2496.873     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      252 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     90.443        6426.9        .10563E-02    .13251E-03
   2  Index         3.7749        3.7603        .11770        .68109E-04
   3  Normalizat    .10000E-01    .40472E-01    .26254    ** at limit **
   4  Prefactor     .86932        .41699E-01    .29619E-01    .25079E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 90.4426
  Index      = 3.77494
  Normalizat = 0.01
  Prefactor  = 0.869318
 **********
 **   18 **HESSE 
 **********

 FCN=   2496.873     FROM HESSE     STATUS=OK            27 CALLS      279 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     90.443        6518.1        .42253E-04   -1.3803    
   2  Index         3.7749        6.8627        .40538E-02   -.24753    
   3  Normalizat    .10000E-01    .14059        .11390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .86932        .76108E-01    .13090E-03   -.97222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66869e-08
Minuit parameter uncertainties:
  1  1303.85
  2  5.73185
  3  4.52822e-07
  4  0.0761175
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/953989': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2496.87267705
delta logL = 0.432106359917

Extracting fit parameters...

4FGL J0521.2+1637
   Spectrum: PowerLaw
242    Prefactor:  9.044e+01  1.304e+03  1.000e-04  1.000e+04 ( 1.000e-14)
243        Index:  3.775e+00  5.732e+00  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:  8.693e-01  7.612e-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  4.528e-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/953989/cmap_HighResolution_612748801_613353601_4FGL_J0521.2+1637_weekly_bin618.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.57e-01', job_status='DONE', photon_flux_upper_limit='5.99e-06', time_completed='2021-07-08 06:39:52.471910', job_id='953989', GAL2='0.87', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1625751592.47', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='4.32e-01', ts2='0.88', photon_index_error='0.00', photon_index='2.23' WHERE bin_id='618' AND source_name='4FGL J0521.2+1637' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Thu Jul  8 06:39:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 953989: <4FGL_J0521.2+1637_weekly_bin618> in cluster <slac> Done

Job <4FGL_J0521.2+1637_weekly_bin618> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Jul  8 06:23:30 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jul  8 06:24:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jul  8 06:24:09 2021
Terminated at Thu Jul  8 06:39:54 2021
Results reported at Thu Jul  8 06:39:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0521.2+1637_weekly_bin618 80.3136 16.631 612748801 613353601 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 :                                   576.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             257.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            984 sec.

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

