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


Performing analysis on: 4FGL_J0534.5+2201s_weekly_bin397
RA = 83.6331, Dec = 22.0199
tmin = 479088001, tmax = 479692801
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='192278', job_status='RUN', time_executed='2021-07-08 21:18:26.713702', time_epoch_executed='1625804306.71' WHERE source_name='4FGL J0534.5+2201s' and cadence='weekly' and bin_id='397'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/192278

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/192278/ft1_4FGL_J0534.5+2201s_weekly_bin397.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/192278/ft2_4FGL_J0534.5+2201s_weekly_bin397.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/192278/ft1_4FGL_J0534.5+2201s_weekly_bin397.fits outfile=/scratch/kocevski/192278/ft1_filteredMKT_4FGL_J0534.5+2201s_weekly_bin397.fits ra=83.6331 dec=22.0199 rad=12.0 tmin=479088001.0 tmax=479692801.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.52
user 7.19
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/192278/ft2_4FGL_J0534.5+2201s_weekly_bin397.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/192278/ft1_filteredMKT_4FGL_J0534.5+2201s_weekly_bin397.fits evtable="EVENTS" outfile="/scratch/kocevski/192278/ft1_filtered_4FGL_J0534.5+2201s_weekly_bin397.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.55
user 0.38
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/192278/ft1_filtered_4FGL_J0534.5+2201s_weekly_bin397.fits evtable="EVENTS" scfile=/scratch/kocevski/192278/ft2_4FGL_J0534.5+2201s_weekly_bin397.fits sctable="SC_DATA" expcube=/scratch/kocevski/192278/ltcube_479088001_479692801_4FGL_J0534.5+2201s_weekly_bin397.fits outfile=/scratch/kocevski/192278/expmap_479088001_479692801_4FGL_J0534.5+2201s_weekly_bin397.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/192278/ltcube_479088001_479692801_4FGL_J0534.5+2201s_weekly_bin397.fits
.....................!
real 190.88
user 186.06
sys 4.23

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/192278/ft1_filtered_4FGL_J0534.5+2201s_weekly_bin397.fits scfile=/scratch/kocevski/192278/ft2_4FGL_J0534.5+2201s_weekly_bin397.fits outfile=/scratch/kocevski/192278/cmap_479088001_479692801_4FGL_J0534.5+2201s_weekly_bin397.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.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/192278/ft1_filtered_4FGL_J0534.5+2201s_weekly_bin397.fits scfile=/scratch/kocevski/192278/ft2_4FGL_J0534.5+2201s_weekly_bin397.fits outfile=/scratch/kocevski/192278/cmap_HighResolution_479088001_479692801_4FGL_J0534.5+2201s_weekly_bin397.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.59
user 0.44
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/192278/ft1_filtered_4FGL_J0534.5+2201s_weekly_bin397.fits evtable="EVENTS" scfile=/scratch/kocevski/192278/ft2_4FGL_J0534.5+2201s_weekly_bin397.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/192278/Model_4FGL_J0534.5+2201s_weekly_bin397.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/192278/ft1_filtered_4FGL_J0534.5+2201s_weekly_bin397.fits.....................!
real 1464.16
user 1459.71
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/192278/ft1_filtered_4FGL_J0534.5+2201s_weekly_bin397.fits', '/scratch/kocevski/192278/ft2_4FGL_J0534.5+2201s_weekly_bin397.fits', expMap='/scratch/kocevski/192278/expmap_479088001_479692801_4FGL_J0534.5+2201s_weekly_bin397.fits', expCube='/scratch/kocevski/192278/ltcube_479088001_479692801_4FGL_J0534.5+2201s_weekly_bin397.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/192278/Model_4FGL_J0534.5+2201s_weekly_bin397.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/192278/ft1_filtered_4FGL_J0534.5+2201s_weekly_bin397.fits
Spacecraft file(s): /scratch/kocevski/192278/ft2_4FGL_J0534.5+2201s_weekly_bin397.fits
Exposure map: /scratch/kocevski/192278/expmap_479088001_479692801_4FGL_J0534.5+2201s_weekly_bin397.fits
Exposure cube: /scratch/kocevski/192278/ltcube_479088001_479692801_4FGL_J0534.5+2201s_weekly_bin397.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/192278/Model_4FGL_J0534.5+2201s_weekly_bin397.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) = 66480.9899309

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    24.305       1.0000         .10000E-03   10000.    
     2 'norm      '    6.1734       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.6711       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.424       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.9113       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.276       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1942       1.0000         .10000E-03   10000.    
    12 'norm      '    6.7741       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3779       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5631       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .71802E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .95593       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0318       1.0000          .0000       10.000    
    21 'norm      '    3.3768       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   66480.99     FROM MIGRAD    STATUS=CONVERGED    459 CALLS     2218 TOTAL
                     EDM=   .38E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          24.306        24.606         .0000       -.32390E-03
   2  norm          6.1749        15.692         .0000        .20827E-03
   3  Prefactor     .10000E-03    3.9640         .0000    ** at limit **
   4  norm          1.6721        3.3211         .0000        .67860E-01
   5  Prefactor     .10000E-03    1.3214         .0000    ** at limit **
   6  Prefactor     14.426        21.236         .0000       -.29390E-03
   7  Prefactor     .10000E-03    18.294         .0000    ** at limit **
   8  norm          6.9113        1.8186         .0000        .40257E-02
   9  Prefactor     16.277        11.768         .0000        .22185E-03
  10  norm          .10000E-03    1.3060         .0000    ** at limit **
  11  Prefactor     1.1942        .95853E-01     .0000       -.22645E-03
  12  norm          6.7739        2.3524         .0000       -.61614E-02
  13  Prefactor     2.3779        .67265         .0000        .63672E-02
  14  Prefactor     .10000E-03    8.9333         .0000    ** at limit **
  15  Prefactor     1.5637        2.8209         .0000        .91269E-01
  16  Prefactor     .10000E-03    1.1982         .0000    ** at limit **
  17  Prefactor     .10000E-03    6.5551         .0000    ** at limit **
  18  Prefactor     .10000E-03    66.053         .0000    ** at limit **
  19  Normalizat    .95577        .28796         .0000        .33014E-03
  20  Prefactor     1.0318        .30813E-01     .0000       -.28759E-03
  21  norm          3.3767        .40999         .0000        .16981E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 24.3064
  norm       = 6.17486
  Prefactor  = 0.0001
  norm       = 1.67211
  Prefactor  = 0.0001
  Prefactor  = 14.4257
  Prefactor  = 0.0001
  norm       = 6.91133
  Prefactor  = 16.277
  norm       = 0.0001
  Prefactor  = 1.19421
  norm       = 6.7739
  Prefactor  = 2.37791
  Prefactor  = 0.0001
  Prefactor  = 1.56372
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.955768
  Prefactor  = 1.03181
  norm       = 3.37666
 **********
 **   18 **HESSE 
 **********

 FCN=   66480.99     FROM HESSE     STATUS=OK           323 CALLS     2541 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          24.306        24.580        .81252E-04   -1.4722    
   2  norm          6.1749        15.660        .16157E-03   -1.5211    
   3  Prefactor     .10000E-03    4.0294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.6721        3.2970        .16305E-02   -1.5449    
   5  Prefactor     .10000E-03    1.3366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.426        21.175        .10546E-03   -1.4948    
   7  Prefactor     .10000E-03    18.316        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.9113        1.8175        .76304E-03   -1.5182    
   9  Prefactor     16.277        11.766        .99275E-04   -1.4901    
  10  norm          .10000E-03    1.3171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.1942        .10536        .14684E-04   -1.5489    
  12  norm          6.7739        2.5198        .15416E-03   -1.5187    
  13  Prefactor     2.3779        .68745        .77282E-04   -1.5400    
  14  Prefactor     .10000E-03    9.0203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.5637        2.7786        .17014E-02   -1.5458    
  16  Prefactor     .10000E-03    7.9687        .54111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.5571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    66.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .95577        .25065        .12081E-02   -.94527    
  20  Prefactor     1.0318        .28238E-01    .13576E-03   -.91677    
  21  norm          3.3767        .40878        .55496E-04   -1.5340    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79394e-08
Minuit parameter uncertainties:
  1  24.5904
  2  15.6704
  3  2.15032e-07
  4  3.29734
  5  4.21824e-06
  6  21.1856
  7  3.54258e-05
  8  1.81749
  9  11.7677
  10  2.2121e-07
  11  0.105361
  12  2.5198
  13  0.687448
  14  4.2285e-05
  15  2.77886
  16  0.00028052
  17  6.486e-05
  18  0.000154149
  19  0.250961
  20  0.0282388
  21  0.408775
Done.

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

Extracting fit parameters...

4FGL J0534.5+2201s
   Spectrum: PowerLaw
259    Prefactor:  2.378e+00  6.874e-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:  1.032e+00  2.824e-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:  9.558e-01  2.510e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 25.43
Ra Dec: 83.633 22.020
Photon Index (Fixed Index): 3.80 +/- 0.00
Photon Flux (Fixed Index): 6.40e-07 +/- 1.84e-07
Energy Flux (Fixed Index): 9.93e-05 +/- 2.87e-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) = 66480.9730542
delta logL = 0.0164448110299

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 66480.8230569
delta logL = 0.166442079761

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7225       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4832       1.0000          .0000       10.000    
     3 'Normalizat'    .96840       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0298       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=   66480.82     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      226 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7225        .45840        .80008E-02    .94575E-02
   2  Index         3.4832        .18143        .14484       -.12029E-02
   3  Normalizat    .96834        .27150        .26882        .38842E-03
   4  Prefactor     1.0298        .29971E-01    .30737E-01   -.10075E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.72253
  Index      = 3.48319
  Normalizat = 0.968345
  Prefactor  = 1.02976
 **********
 **   18 **HESSE 
 **********

 FCN=   66480.82     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7225        .76181        .65223E-04   -1.5445    
   2  Index         3.4832        .38534        .76801E-02   -.30822    
   3  Normalizat    .96834        .24336        .12008E-02   -.94099    
   4  Prefactor     1.0298        .27777E-01    .13584E-03   -.91744    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00425e-10
Minuit parameter uncertainties:
  1  0.761819
  2  0.385761
  3  0.243635
  4  0.0277776
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/192278': 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) = 66480.8230569
delta logL = 0.166442111644

Extracting fit parameters...

4FGL J0534.5+2201s
   Spectrum: PowerLaw
259    Prefactor:  1.723e+00  7.618e-01  1.000e-04  1.000e+04 ( 1.000e-07)
260        Index:  3.483e+00  3.858e-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:  1.030e+00  2.778e-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:  9.683e-01  2.436e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 29.19
Ra Dec: 83.633 22.020
Photon Index (Free Index): 3.48 +/- 0.39
Photon Flux (Free Index): 6.49e-07 +/- 1.37e-07
Energy Flux (Free Index): 1.09e-04 +/- 2.70e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.003e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.113e+00 [aplpy.core]
Saving /scratch/kocevski/192278/cmap_HighResolution_479088001_479692801_4FGL_J0534.5+2201s_weekly_bin397.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.40e-07', energy_flux2='1.09e-04', photon_flux_error='1.84e-07', dlogl='1.66e-01', energy_flux='9.93e-05', photon_flux2='6.49e-07', job_status='DONE', time_completed='2021-07-08 22:30:15.460874', photon_index_error2='0.39', photon_index2='3.48', ts='25.43', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='2.70e-05', EG='0.96', time_epoch_completed='1625808615.46', return_code='0', job_id='192278', GAL2='1.03', EG2='0.97', return_code2='0', energy_flux_error='2.87e-05', photon_flux_error2='1.37e-07', ts2='29.19', photon_index='3.80' WHERE bin_id='397' AND source_name='4FGL J0534.5+2201s' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Thu Jul  8 22:30:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 192278: <4FGL_J0534.5+2201s_weekly_bin397> in cluster <slac> Done

Job <4FGL_J0534.5+2201s_weekly_bin397> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Thu Jul  8 21:16:02 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jul  8 21:18:10 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:18:10 2021
Terminated at Thu Jul  8 22:30:16 2021
Results reported at Thu Jul  8 22:30:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0534.5+2201s_weekly_bin397 83.6331 22.0199 479088001 479692801 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 :                                   4294.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             464.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   4326 sec.
    Turnaround time :                            4454 sec.

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

