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


Performing analysis on: 4FGL_J0534.5+2201s_weekly_bin229
RA = 83.6331, Dec = 22.0199
tmin = 377481601, tmax = 378086401
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='190859', job_status='RUN', time_executed='2021-07-08 21:13:02.727046', time_epoch_executed='1625803982.73' WHERE source_name='4FGL J0534.5+2201s' and cadence='weekly' and bin_id='229'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/190859

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

Retrieving the FT1 file...

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

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

Retrieving 96 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/190859/ft1_4FGL_J0534.5+2201s_weekly_bin229.fits


Retrieving the FT1 file...

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

Retrieving 100 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/190859/ft2_4FGL_J0534.5+2201s_weekly_bin229.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/190859/ft1_4FGL_J0534.5+2201s_weekly_bin229.fits outfile=/scratch/kocevski/190859/ft1_filteredMKT_4FGL_J0534.5+2201s_weekly_bin229.fits ra=83.6331 dec=22.0199 rad=12.0 tmin=377481601.0 tmax=378086401.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.65
user 7.32
sys 0.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/190859/ft1_filtered_4FGL_J0534.5+2201s_weekly_bin229.fits" evtable="EVENTS" scfile=/scratch/kocevski/190859/ft2_4FGL_J0534.5+2201s_weekly_bin229.fits sctable="SC_DATA" outfile=/scratch/kocevski/190859/ltcube_377481601_378086401_4FGL_J0534.5+2201s_weekly_bin229.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/190859/ft2_4FGL_J0534.5+2201s_weekly_bin229.fits
.....................!
real 25.69
user 25.30
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/190859/ft1_filtered_4FGL_J0534.5+2201s_weekly_bin229.fits evtable="EVENTS" scfile=/scratch/kocevski/190859/ft2_4FGL_J0534.5+2201s_weekly_bin229.fits sctable="SC_DATA" expcube=/scratch/kocevski/190859/ltcube_377481601_378086401_4FGL_J0534.5+2201s_weekly_bin229.fits outfile=/scratch/kocevski/190859/expmap_377481601_378086401_4FGL_J0534.5+2201s_weekly_bin229.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/190859/ltcube_377481601_378086401_4FGL_J0534.5+2201s_weekly_bin229.fits
.....................!
real 192.67
user 186.66
sys 5.18

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/190859/ft1_filtered_4FGL_J0534.5+2201s_weekly_bin229.fits scfile=/scratch/kocevski/190859/ft2_4FGL_J0534.5+2201s_weekly_bin229.fits outfile=/scratch/kocevski/190859/cmap_377481601_378086401_4FGL_J0534.5+2201s_weekly_bin229.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/190859/ft1_filtered_4FGL_J0534.5+2201s_weekly_bin229.fits scfile=/scratch/kocevski/190859/ft2_4FGL_J0534.5+2201s_weekly_bin229.fits outfile=/scratch/kocevski/190859/cmap_HighResolution_377481601_378086401_4FGL_J0534.5+2201s_weekly_bin229.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.42
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.319       1.0000         .10000E-03   10000.    
     2 'norm      '    10.162       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.1906       1.0000         .10000E-03   10000.    
     4 'norm      '    3.9787       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7754       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.7755       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3960       1.0000         .10000E-03   10000.    
    12 'norm      '    1.7205       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.3055       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.2218       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.6486       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .63802       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0154       1.0000          .0000       10.000    
    21 'norm      '    3.0876       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=   64001.78     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     1943 TOTAL
                     EDM=   .84E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.288        27.767       -.36486E-05   -.13399E-03
   2  norm          10.167        20.711        .75851E-06   -.35424E-05
   3  Prefactor     4.1906        3.9620       -.15884E-06   -.11169E-03
   4  norm          3.9788        3.4425       -.11870E-06   -.75945E-03
   5  Prefactor     1.7756        1.6977       -.86572E-07    .82079E-04
   6  Prefactor     .10000E-03    5.6156       -.15861E-07** at limit **
   7  Prefactor     .10000E-03    36.041        .15778E-06** at limit **
   8  norm          2.7756        1.4086        .25223E-08   -.66638E-03
   9  Prefactor     .10000E-03    9.9900        .77169E-08** at limit **
  10  norm          .10000E-03    3.4650       -.80790E-07** at limit **
  11  Prefactor     1.3960        .95022E-01   -.43576E-08   -.70389E-02
  12  norm          1.7204        1.6295        .23686E-06   -.26949E-02
  13  Prefactor     4.3055        .74908       -.68931E-07   -.35287E-02
  14  Prefactor     .10000E-03    7.5613       -.30062E-07** at limit **
  15  Prefactor     6.2220        3.4029       -.19465E-06   -.53642E-03
  16  Prefactor     4.6490        5.9330       -.23249E-06   -.34350E-03
  17  Prefactor     .10000E-03    89.938        .11575E-05** at limit **
  18  Prefactor     .10000E-03    42.151       -.52705E-06** at limit **
  19  Normalizat    .63801        .26536        .71984E-05   -.13069E-03
  20  Prefactor     1.0154        .29197E-01   -.54043E-06   -.97026E-03
  21  norm          3.0876        .43148       -.18806E-08   -.17012E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 16.2883
  norm       = 10.1674
  Prefactor  = 4.19061
  norm       = 3.97884
  Prefactor  = 1.77559
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.77563
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.39598
  norm       = 1.72036
  Prefactor  = 4.30549
  Prefactor  = 0.0001
  Prefactor  = 6.22202
  Prefactor  = 4.64897
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.63801
  Prefactor  = 1.01542
  norm       = 3.0876
 **********
 **   18 **HESSE 
 **********

 FCN=   64001.78     FROM HESSE     STATUS=OK           323 CALLS     2266 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.288        27.854        .99144E-04   -1.4901    
   2  norm          10.167        20.615        .12569E-03   -1.5070    
   3  Prefactor     4.1906        3.9609        .19687E-03   -1.5299    
   4  norm          3.9788        3.4269        .20221E-03   -1.5309    
   5  Prefactor     1.7756        1.7008        .31340E-03   -1.5441    
   6  Prefactor     .10000E-03    5.6206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    36.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.7756        1.4088        .20774E-03   -1.5375    
   9  Prefactor     .10000E-03    10.405        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.5872        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.3960        .10122        .14392E-04   -1.5472    
  12  norm          1.7204        1.7437        .28641E-03   -1.5446    
  13  Prefactor     4.3055        .77131        .66432E-04   -1.5293    
  14  Prefactor     .10000E-03    7.5827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.2220        3.3819        .16094E-03   -1.5209    
  16  Prefactor     4.6490        5.9691        .18666E-03   -1.5277    
  17  Prefactor     .10000E-03    90.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    42.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .63801        .25915        .14643E-02   -1.0639    
  20  Prefactor     1.0154        .28773E-01    .13652E-03   -.92217    
  21  norm          3.0876        .43072        .59646E-04   -1.5357    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77617e-09
Minuit parameter uncertainties:
  1  27.8762
  2  20.6291
  3  3.96117
  4  3.42705
  5  1.70083
  6  1.40573e-06
  7  1.25689e-06
  8  1.4088
  9  1.40867e-06
  10  5.49475e-06
  11  0.101218
  12  1.74371
  13  0.771313
  14  2.32685e-06
  15  3.38199
  16  5.96991
  17  0.000102701
  18  5.35585e-05
  19  0.259642
  20  0.0287736
  21  0.430725
Done.

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

Extracting fit parameters...

4FGL J0534.5+2201s
   Spectrum: PowerLaw
259    Prefactor:  4.305e+00  7.713e-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.015e+00  2.877e-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:  6.380e-01  2.596e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 64.04
Ra Dec: 83.633 22.020
Photon Index (Fixed Index): 3.80 +/- 0.00
Photon Flux (Fixed Index): 1.16e-06 +/- 2.07e-07
Energy Flux (Fixed Index): 1.80e-04 +/- 3.22e-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) = 64001.752836
delta logL = 0.0228073736434

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 64001.6330034
delta logL = 0.142639966391

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4903       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5969       1.0000          .0000       10.000    
     3 'Normalizat'    .65006       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0133       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=   64001.63     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      224 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4899        .56572        .54107E-02    .49240E-02
   2  Index         3.5968        .11463        .13438       -.11699E-02
   3  Normalizat    .64998        .34095        .32760        .47740E-03
   4  Prefactor     1.0134        .37100E-01    .30908E-01   -.11415E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.48992
  Index      = 3.59678
  Normalizat = 0.64998
  Prefactor  = 1.01336
 **********
 **   18 **HESSE 
 **********

 FCN=   64001.63     FROM HESSE     STATUS=OK            33 CALLS      257 TOTAL
                     EDM=   .81E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4899        1.1412        .59448E-04   -1.5334    
   2  Index         3.5968        .29080        .51599E-02   -.28446    
   3  Normalizat    .64998        .24971        .14524E-02   -1.0590    
   4  Prefactor     1.0134        .28094E-01    .13660E-03   -.92286    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.09071e-08
Minuit parameter uncertainties:
  1  1.14125
  2  0.290983
  3  0.25015
  4  0.0280942
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/190859': 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) = 64001.6330032
delta logL = 0.142640176055

Extracting fit parameters...

4FGL J0534.5+2201s
   Spectrum: PowerLaw
259    Prefactor:  3.490e+00  1.141e+00  1.000e-04  1.000e+04 ( 1.000e-07)
260        Index:  3.597e+00  2.910e-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.013e+00  2.809e-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:  6.500e-01  2.501e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 75.00
Ra Dec: 83.633 22.020
Photon Index (Free Index): 3.60 +/- 0.29
Photon Flux (Free Index): 1.16e-06 +/- 1.61e-07
Energy Flux (Free Index): 1.89e-04 +/- 3.04e-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/190859/cmap_HighResolution_377481601_378086401_4FGL_J0534.5+2201s_weekly_bin229.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.16e-06', energy_flux2='1.89e-04', photon_flux_error='2.07e-07', dlogl='1.43e-01', energy_flux='1.80e-04', photon_flux2='1.16e-06', job_status='DONE', time_completed='2021-07-08 22:19:08.271575', photon_index_error2='0.29', photon_index2='3.60', ts='64.04', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='3.04e-05', EG='0.64', time_epoch_completed='1625807948.27', return_code='0', job_id='190859', GAL2='1.01', EG2='0.65', return_code2='0', energy_flux_error='3.22e-05', photon_flux_error2='1.61e-07', ts2='75.00', photon_index='3.80' WHERE bin_id='229' AND source_name='4FGL J0534.5+2201s' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Thu Jul  8 22:19:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0142>
Subject: Job 190859: <4FGL_J0534.5+2201s_weekly_bin229> in cluster <slac> Done

Job <4FGL_J0534.5+2201s_weekly_bin229> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Jul  8 21:11:04 2021
Job was executed on host(s) <bullet0142>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jul  8 21:12:49 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:12:49 2021
Terminated at Thu Jul  8 22:19:09 2021
Results reported at Thu Jul  8 22:19:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0534.5+2201s_weekly_bin229 83.6331 22.0199 377481601 378086401 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 :                                   3908.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             464.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   3979 sec.
    Turnaround time :                            4085 sec.

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

