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/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 6 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 = 17189
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0534.5+2201s_weekly_bin524
RA = 83.6331, Dec = 22.0199
tmin = 555897601, tmax = 556502401
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='194859', job_status='RUN', time_executed='2021-07-08 21:26:57.974360', time_epoch_executed='1625804817.97' WHERE source_name='4FGL J0534.5+2201s' and cadence='weekly' and bin_id='524'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/194859

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/194859/ft1_4FGL_J0534.5+2201s_weekly_bin524.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/194859/ft2_4FGL_J0534.5+2201s_weekly_bin524.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/194859/ft1_4FGL_J0534.5+2201s_weekly_bin524.fits outfile=/scratch/kocevski/194859/ft1_filteredMKT_4FGL_J0534.5+2201s_weekly_bin524.fits ra=83.6331 dec=22.0199 rad=12.0 tmin=555897601.0 tmax=556502401.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 7.98
user 7.61
sys 0.33

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/194859/ft2_4FGL_J0534.5+2201s_weekly_bin524.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/194859/ft2_4FGL_J0534.5+2201s_weekly_bin524.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/194859/ft1_filteredMKT_4FGL_J0534.5+2201s_weekly_bin524.fits evtable="EVENTS" outfile="/scratch/kocevski/194859/ft1_filtered_4FGL_J0534.5+2201s_weekly_bin524.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.63
user 0.41
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/194859/ft1_filtered_4FGL_J0534.5+2201s_weekly_bin524.fits" evtable="EVENTS" scfile=/scratch/kocevski/194859/ft2_4FGL_J0534.5+2201s_weekly_bin524.fits sctable="SC_DATA" outfile=/scratch/kocevski/194859/ltcube_555897601_556502401_4FGL_J0534.5+2201s_weekly_bin524.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/194859/ft2_4FGL_J0534.5+2201s_weekly_bin524.fits
.....................!
real 27.11
user 26.66
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/194859/ft1_filtered_4FGL_J0534.5+2201s_weekly_bin524.fits evtable="EVENTS" scfile=/scratch/kocevski/194859/ft2_4FGL_J0534.5+2201s_weekly_bin524.fits sctable="SC_DATA" expcube=/scratch/kocevski/194859/ltcube_555897601_556502401_4FGL_J0534.5+2201s_weekly_bin524.fits outfile=/scratch/kocevski/194859/expmap_555897601_556502401_4FGL_J0534.5+2201s_weekly_bin524.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/194859/ltcube_555897601_556502401_4FGL_J0534.5+2201s_weekly_bin524.fits
.....................!
real 191.37
user 185.34
sys 5.49

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 Monoceros in ROI with RadialGaussian spatial model.
Added 168 point sources and 3 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 J0534.5+2201s @ 83.6331 22.0199

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/194859/ft1_filtered_4FGL_J0534.5+2201s_weekly_bin524.fits scfile=/scratch/kocevski/194859/ft2_4FGL_J0534.5+2201s_weekly_bin524.fits outfile=/scratch/kocevski/194859/cmap_555897601_556502401_4FGL_J0534.5+2201s_weekly_bin524.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=83.6331 yref=22.0199 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.59
user 0.43
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/194859/ft1_filtered_4FGL_J0534.5+2201s_weekly_bin524.fits scfile=/scratch/kocevski/194859/ft2_4FGL_J0534.5+2201s_weekly_bin524.fits outfile=/scratch/kocevski/194859/cmap_HighResolution_555897601_556502401_4FGL_J0534.5+2201s_weekly_bin524.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=83.6331 yref=22.0199 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.60
user 0.42
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/194859/ft1_filtered_4FGL_J0534.5+2201s_weekly_bin524.fits evtable="EVENTS" scfile=/scratch/kocevski/194859/ft2_4FGL_J0534.5+2201s_weekly_bin524.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/194859/Model_4FGL_J0534.5+2201s_weekly_bin524.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 S 147
Working on...
/scratch/kocevski/194859/ft1_filtered_4FGL_J0534.5+2201s_weekly_bin524.fits.....................!
real 1501.43
user 1496.37
sys 1.77

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/194859/ft1_filtered_4FGL_J0534.5+2201s_weekly_bin524.fits', '/scratch/kocevski/194859/ft2_4FGL_J0534.5+2201s_weekly_bin524.fits', expMap='/scratch/kocevski/194859/expmap_555897601_556502401_4FGL_J0534.5+2201s_weekly_bin524.fits', expCube='/scratch/kocevski/194859/ltcube_555897601_556502401_4FGL_J0534.5+2201s_weekly_bin524.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/194859/Model_4FGL_J0534.5+2201s_weekly_bin524.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0534.5+2201s'

4FGL J0534.5+2201s
   Spectrum: PowerLaw
259    Prefactor:  2.345e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-07)
260        Index:  3.802e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  5.062e+01  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/194859/ft1_filtered_4FGL_J0534.5+2201s_weekly_bin524.fits
Spacecraft file(s): /scratch/kocevski/194859/ft2_4FGL_J0534.5+2201s_weekly_bin524.fits
Exposure map: /scratch/kocevski/194859/expmap_555897601_556502401_4FGL_J0534.5+2201s_weekly_bin524.fits
Exposure cube: /scratch/kocevski/194859/ltcube_555897601_556502401_4FGL_J0534.5+2201s_weekly_bin524.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/194859/Model_4FGL_J0534.5+2201s_weekly_bin524.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) = 69235.2686247

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    45.434       1.0000         .10000E-03   10000.    
     2 'norm      '    14.133       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.364       1.0000         .10000E-03   10000.    
     4 'norm      '    .59410       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .40161       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.0468       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .51236       1.0000         .10000E-03   10000.    
    10 'norm      '    .10419E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1940       1.0000         .10000E-03   10000.    
    12 'norm      '    7.0099       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6940       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.4344       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    171.95       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2611       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95253       1.0000          .0000       10.000    
    21 'norm      '    2.5437       1.0000         .10000E-03   10000.    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   69235.23     FROM MIGRAD    STATUS=CONVERGED    482 CALLS     2946 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          45.436        37.413        .23151E-05    .31585E-04
   2  norm          14.127        24.044       -.55979E-05   -.96627E-04
   3  Prefactor     10.364        5.3465        .65752E-06    .15834E-03
   4  norm          .60598        .26950       -.10494E-06   -.31053E-03
   5  Prefactor     .40135        .92466       -.37136E-07   -.51302E-04
   6  Prefactor     .10000E-03    11.436       -.99316E-06** at limit **
   7  Prefactor     .10000E-03    5.3388       -.74710E-05** at limit **
   8  norm          3.0469        1.5451       -.21511E-07   -.41589E-03
   9  Prefactor     .48466        2.9680        .11275E-05   -.80442E-03
  10  norm          .10000E-03    .64439       -.16409E-06** at limit **
  11  Prefactor     1.1940        .93072E-01   -.26274E-08   -.13435E-01
  12  norm          7.0101        2.3424        .11102E-08   -.35011E-03
  13  Prefactor     1.6943        .65349       -.32089E-07   -.27928E-02
  14  Prefactor     .10000E-03    4.6459        .80427E-06** at limit **
  15  Prefactor     .10009E-03    .61910        .69364E-06** at limit **
  16  Prefactor     2.4351        5.3649        .10221E-05    .13913E-04
  17  Prefactor     .10000E-03    61.301       -.17562E-05** at limit **
  18  Prefactor     171.95        165.60        .22698E-05    .78344E-05
  19  Normalizat    1.2607        .24702       -.12801E-06   -.29247E-03
  20  Prefactor     .95255        .26572E-01    .11589E-07   -.15696E-02
  21  norm          2.5437        .40811       -.23038E-07   -.24132E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 45.436
  norm       = 14.1269
  Prefactor  = 10.3641
  norm       = 0.605976
  Prefactor  = 0.401352
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.04686
  Prefactor  = 0.484664
  norm       = 0.0001
  Prefactor  = 1.19404
  norm       = 7.01008
  Prefactor  = 1.69429
  Prefactor  = 0.0001
  Prefactor  = 0.000100088
  Prefactor  = 2.43514
  Prefactor  = 0.0001
  Prefactor  = 171.951
  Normalizat = 1.26075
  Prefactor  = 0.952552
  norm       = 2.54373
 **********
 **   18 **HESSE 
 **********

 FCN=   69235.23     FROM HESSE     STATUS=OK           335 CALLS     3281 TOTAL
                     EDM=   .59E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          45.436        37.392        .59482E-04   -1.4359    
   2  norm          14.127        24.031        .10654E-03   -1.4956    
   3  Prefactor     10.364        5.3315        .12446E-03   -1.5064    
   4  norm          .60598        2.0723        .23298E-02   -1.5552    
   5  Prefactor     .40135        1.2881        .36804E-02   -1.5581    
   6  Prefactor     .10000E-03    11.489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.3618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.0469        1.5400        .22395E-03   -1.5359    
   9  Prefactor     .48466        2.9573        .16033       -1.5569    
  10  norm          .10000E-03    3.9346        .40075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.1940        .10118        .14185E-04   -1.5489    
  12  norm          7.0101        2.5238        .15152E-03   -1.5178    
  13  Prefactor     1.6943        .66045        .90146E-04   -1.5448    
  14  Prefactor     .10000E-03    4.6596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10009E-03    5.4025        .36824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.4351        5.4157        .13113E-02   -1.5396    
  17  Prefactor     .10000E-03    61.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     171.95        165.91        .30770E-04   -1.3078    
  19  Normalizat    1.2607        .23471        .10366E-02   -.84746    
  20  Prefactor     .95255        .26842E-01    .13699E-03   -.94328    
  21  norm          2.5437        .40739        .63033E-04   -1.5389    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.90509e-07
Minuit parameter uncertainties:
  1  37.4113
  2  24.0472
  3  5.33172
  4  2.0725
  5  1.28816
  6  1.85982e-05
  7  0.000118183
  8  1.54003
  9  2.39434
  10  5.26892e-06
  11  0.101179
  12  2.52383
  13  0.660455
  14  6.75938e-06
  15  0.00138168
  16  5.4168
  17  9.26598e-05
  18  166.364
  19  0.234903
  20  0.0268429
  21  0.407394
Done.

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

Extracting fit parameters...

4FGL J0534.5+2201s
   Spectrum: PowerLaw
259    Prefactor:  1.694e+00  6.605e-01  1.000e-04  1.000e+04 ( 1.000e-07)
260        Index:  3.802e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
261        Scale:  5.062e+01  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  9.526e-01  2.684e-02  0.000e+00  1.000e+01 ( 1.000e+00)
575        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
576        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
573   Normalization:  1.261e+00  2.349e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.25
Ra Dec: 83.633 22.020
Photon Index (Fixed Index): 3.80 +/- 0.00
Photon Flux (Fixed Index): 4.56e-07 +/- 1.77e-07
Energy Flux (Fixed Index): 7.07e-05 +/- 2.75e-05

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) = 69235.2326714
delta logL = 0.001516983888

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 69235.213214
delta logL = 0.0209743750893

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0773       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0076       1.0000          .0000       10.000    
     3 'Normalizat'    1.2567       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95331       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5890E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   69235.21     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      215 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0828        .65560        .71639E-02    .86740E-02
   2  Index         4.0097        .21839        .20569       -.89626E-03
   3  Normalizat    1.2563        .23323        .23245        .23318E-03
   4  Prefactor     .95335        .25917E-01    .30992E-01   -.46591E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.08277
  Index      = 4.00966
  Normalizat = 1.25625
  Prefactor  = 0.953346
 **********
 **   18 **HESSE 
 **********

 FCN=   69235.21     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0828        1.3372        .10004E-03   -1.5419    
   2  Index         4.0097        .63215        .10553E-01   -.19939    
   3  Normalizat    1.2563        .22879        .10383E-02   -.84882    
   4  Prefactor     .95335        .26099E-01    .13696E-03   -.94301    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17646e-07
Minuit parameter uncertainties:
  1  1.33723
  2  0.633915
  3  0.228972
  4  0.0260994
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/194859': 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) = 69235.2132091
delta logL = 0.0209792819078

Extracting fit parameters...

4FGL J0534.5+2201s
   Spectrum: PowerLaw
259    Prefactor:  2.083e+00  1.337e+00  1.000e-04  1.000e+04 ( 1.000e-07)
260        Index:  4.010e+00  6.339e-01  0.000e+00  1.000e+01 (-1.000e+00)
261        Scale:  5.062e+01  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  9.533e-01  2.610e-02  0.000e+00  1.000e+01 ( 1.000e+00)
575        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
576        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
573   Normalization:  1.256e+00  2.290e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.27
Ra Dec: 83.633 22.020
Photon Index (Free Index): 4.01 +/- 0.63
Photon Flux (Free Index): 4.53e-07 +/- 1.34e-07
Energy Flux (Free Index): 6.77e-05 +/- 2.28e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/194859/cmap_HighResolution_555897601_556502401_4FGL_J0534.5+2201s_weekly_bin524.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.56e-07', energy_flux2='6.77e-05', photon_flux_error='1.77e-07', dlogl='2.10e-02', energy_flux='7.07e-05', photon_flux2='4.53e-07', job_status='DONE', time_completed='2021-07-08 22:50:35.533194', photon_index_error2='0.63', photon_index2='4.01', ts='13.25', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='2.28e-05', EG='1.26', time_epoch_completed='1625809835.53', return_code='0', job_id='194859', GAL2='0.95', EG2='1.26', return_code2='0', energy_flux_error='2.75e-05', photon_flux_error2='1.34e-07', ts2='15.27', photon_index='3.80' WHERE bin_id='524' AND source_name='4FGL J0534.5+2201s' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Thu Jul  8 22:50:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 194859: <4FGL_J0534.5+2201s_weekly_bin524> in cluster <slac> Done

Job <4FGL_J0534.5+2201s_weekly_bin524> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Thu Jul  8 21:25:34 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jul  8 21:26:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jul  8 21:26:42 2021
Terminated at Thu Jul  8 22:50:36 2021
Results reported at Thu Jul  8 22:50:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0534.5+2201s_weekly_bin524 83.6331 22.0199 555897601 556502401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0534.5+2201s fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   4998.00 sec.
    Max Memory :                                 1263 MB
    Average Memory :                             460.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   5034 sec.
    Turnaround time :                            5102 sec.

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

