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 0 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 = 17051
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0534.5+2201s_weekly_bin176
RA = 83.6331, Dec = 22.0199
tmin = 345427201, tmax = 346032001
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='190768', job_status='RUN', time_executed='2021-07-08 21:11:54.124368', time_epoch_executed='1625803914.12' WHERE source_name='4FGL J0534.5+2201s' and cadence='weekly' and bin_id='176'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/190768

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/190768/ft1_4FGL_J0534.5+2201s_weekly_bin176.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/190768/ft2_4FGL_J0534.5+2201s_weekly_bin176.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/190768/ft1_4FGL_J0534.5+2201s_weekly_bin176.fits outfile=/scratch/kocevski/190768/ft1_filteredMKT_4FGL_J0534.5+2201s_weekly_bin176.fits ra=83.6331 dec=22.0199 rad=12.0 tmin=345427201.0 tmax=346032001.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.15
user 6.84
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/190768/ft2_4FGL_J0534.5+2201s_weekly_bin176.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/190768/ft1_filteredMKT_4FGL_J0534.5+2201s_weekly_bin176.fits evtable="EVENTS" outfile="/scratch/kocevski/190768/ft1_filtered_4FGL_J0534.5+2201s_weekly_bin176.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.56
user 0.40
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/190768/ft1_filtered_4FGL_J0534.5+2201s_weekly_bin176.fits evtable="EVENTS" scfile=/scratch/kocevski/190768/ft2_4FGL_J0534.5+2201s_weekly_bin176.fits sctable="SC_DATA" expcube=/scratch/kocevski/190768/ltcube_345427201_346032001_4FGL_J0534.5+2201s_weekly_bin176.fits outfile=/scratch/kocevski/190768/expmap_345427201_346032001_4FGL_J0534.5+2201s_weekly_bin176.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/190768/ltcube_345427201_346032001_4FGL_J0534.5+2201s_weekly_bin176.fits
.....................!
real 191.85
user 185.17
sys 5.95

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/190768/ft1_filtered_4FGL_J0534.5+2201s_weekly_bin176.fits scfile=/scratch/kocevski/190768/ft2_4FGL_J0534.5+2201s_weekly_bin176.fits outfile=/scratch/kocevski/190768/cmap_345427201_346032001_4FGL_J0534.5+2201s_weekly_bin176.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.62
user 0.43
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/190768/ft1_filtered_4FGL_J0534.5+2201s_weekly_bin176.fits scfile=/scratch/kocevski/190768/ft2_4FGL_J0534.5+2201s_weekly_bin176.fits outfile=/scratch/kocevski/190768/cmap_HighResolution_345427201_346032001_4FGL_J0534.5+2201s_weekly_bin176.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.61
user 0.43
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    28.312       1.0000         .10000E-03   10000.    
     2 'norm      '    24.617       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.8524       1.0000         .10000E-03   10000.    
     4 'norm      '    .10270E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7655       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.727       1.0000         .10000E-03   10000.    
     8 'norm      '    1.8861       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.667       1.0000         .10000E-03   10000.    
    10 'norm      '    19.189       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3522       1.0000         .10000E-03   10000.    
    12 'norm      '    4.4194       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.8136       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.9090       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14994E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0081       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0205       1.0000          .0000       10.000    
    21 'norm      '    3.0946       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=   70098.91     FROM MIGRAD    STATUS=CONVERGED    463 CALLS     2283 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          28.313        24.292         .0000        .16399E-03
   2  norm          24.616        19.924         .0000       -.15663E-03
   3  Prefactor     4.8528        5.9251         .0000        .86105E-02
   4  norm          .10000E-03    .61582         .0000    ** at limit **
   5  Prefactor     2.7653        2.6892         .0000        .12491E-02
   6  Prefactor     .10000E-03    16.394         .0000    ** at limit **
   7  Prefactor     37.730        40.627         .0000       -.47278E-03
   8  norm          1.8861        1.3634         .0000        .28499E-02
   9  Prefactor     11.666        11.292         .0000       -.41006E-04
  10  norm          19.189        5.5566         .0000       -.65715E-03
  11  Prefactor     1.3523        .10299         .0000        .11694E-02
  12  norm          4.4178        2.5855         .0000        .29774E-02
  13  Prefactor     1.8133        .71811         .0000        .94968E-02
  14  Prefactor     .10000E-03    2.8378         .0000    ** at limit **
  15  Prefactor     4.9093        4.0298         .0000        .12122E-02
  16  Prefactor     .10000E-03    3.7039         .0000    ** at limit **
  17  Prefactor     .10000E-03    13.085         .0000    ** at limit **
  18  Prefactor     .10000E-03    209.66         .0000    ** at limit **
  19  Normalizat    1.0082        .30449         .0000        .29848E-03
  20  Prefactor     1.0205        .30704E-01     .0000       -.46169E-03
  21  norm          3.0942        .40735         .0000        .60907E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 28.3132
  norm       = 24.6164
  Prefactor  = 4.85284
  norm       = 0.000100004
  Prefactor  = 2.76533
  Prefactor  = 0.000100001
  Prefactor  = 37.7299
  norm       = 1.88612
  Prefactor  = 11.6661
  norm       = 19.1885
  Prefactor  = 1.3523
  norm       = 4.41781
  Prefactor  = 1.81329
  Prefactor  = 0.0001
  Prefactor  = 4.9093
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Normalizat = 1.0082
  Prefactor  = 1.02048
  norm       = 3.0942
 **********
 **   18 **HESSE 
 **********

 FCN=   70098.91     FROM HESSE     STATUS=OK           331 CALLS     2614 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          28.313        24.282        .75293E-04   -1.4643    
   2  norm          24.616        19.892        .80736E-04   -1.4715    
   3  Prefactor     4.8528        5.8897        .91307E-03   -1.5267    
   4  norm          .10000E-03    .80781        .76904E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.7653        2.6741        .24474E-03   -1.5375    
   6  Prefactor     .10000E-03    16.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     37.730        40.413        .65252E-04   -1.4479    
   8  norm          1.8861        1.3569        .25421E-03   -1.5433    
   9  Prefactor     11.666        11.283        .11728E-03   -1.5025    
  10  norm          19.189        5.5196        .91433E-04   -1.4832    
  11  Prefactor     1.3523        .11341        .14465E-04   -1.5475    
  12  norm          4.4178        2.8234        .19156E-03   -1.5288    
  13  Prefactor     1.8133        .71627        .94692E-04   -1.5439    
  14  Prefactor     .10000E-03    2.8390        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.9093        3.9737        .18154E-03   -1.5265    
  16  Prefactor     .10000E-03    3.7920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    210.00        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0082        .26166        .12325E-02   -.92756    
  20  Prefactor     1.0205        .28068E-01    .13941E-03   -.92050    
  21  norm          3.0942        .40681        .59164E-04   -1.5356    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78418e-09
Minuit parameter uncertainties:
  1  24.2902
  2  19.8971
  3  5.89043
  4  0.000114394
  5  2.67418
  6  0.000296153
  7  40.4421
  8  1.35692
  9  11.2853
  10  5.51973
  11  0.113405
  12  2.82346
  13  0.716278
  14  2.01882e-05
  15  3.9739
  16  1.987e-06
  17  5.69796e-05
  18  0.00181247
  19  0.26199
  20  0.0280688
  21  0.406809
Done.

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

Extracting fit parameters...

4FGL J0534.5+2201s
   Spectrum: PowerLaw
259    Prefactor:  1.813e+00  7.163e-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.020e+00  2.807e-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.008e+00  2.620e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.95
Ra Dec: 83.633 22.020
Photon Index (Fixed Index): 3.80 +/- 0.00
Photon Flux (Fixed Index): 4.88e-07 +/- 1.92e-07
Energy Flux (Fixed Index): 7.57e-05 +/- 2.99e-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) = 70098.1414927
delta logL = 0.768385705334

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 70098.1173124
delta logL = 0.792566072123

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.2049       1.0000         .10000E-03   10000.    
     2 'Index     '    5.0672       1.0000          .0000       10.000    
     3 'Normalizat'    .98035       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0246       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   70098.12     FROM MIGRAD    STATUS=CONVERGED     70 CALLS      249 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.2231        1.8607         .0000        .11044    
   2  Index         5.0706        .25060         .0000       -.90991E-03
   3  Normalizat    .98030        .28143         .0000        .34590E-03
   4  Prefactor     1.0247        .30324E-01     .0000       -.24197E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.22311
  Index      = 5.07064
  Normalizat = 0.980299
  Prefactor  = 1.02465
 **********
 **   18 **HESSE 
 **********

 FCN=   70098.12     FROM HESSE     STATUS=OK            33 CALLS      282 TOTAL
                     EDM=   .36E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.2231        4.4182        .80580E-03   -1.5209    
   2  Index         5.0706        .77733        .12239E-01    .14129E-01
   3  Normalizat    .98030        .24941        .12484E-02   -.93693    
   4  Prefactor     1.0247        .27650E-01    .13922E-03   -.91912    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57834e-07
Minuit parameter uncertainties:
  1  4.41847
  2  0.780497
  3  0.249704
  4  0.0276506
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/190768': 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) = 70098.1173074
delta logL = 0.79257100058

Extracting fit parameters...

4FGL J0534.5+2201s
   Spectrum: PowerLaw
259    Prefactor:  6.223e+00  4.418e+00  1.000e-04  1.000e+04 ( 1.000e-07)
260        Index:  5.071e+00  7.805e-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.025e+00  2.765e-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.803e-01  2.497e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.66
Ra Dec: 83.633 22.020
Photon Index (Free Index): 5.07 +/- 0.78
Photon Flux (Free Index): 4.87e-07 +/- 1.41e-07
Energy Flux (Free Index): 6.44e-05 +/- 2.00e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.002e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.113e+00 [aplpy.core]
Saving /scratch/kocevski/190768/cmap_HighResolution_345427201_346032001_4FGL_J0534.5+2201s_weekly_bin176.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.88e-07', energy_flux2='6.44e-05', photon_flux_error='1.92e-07', dlogl='7.93e-01', energy_flux='7.57e-05', photon_flux2='4.87e-07', job_status='DONE', time_completed='2021-07-08 22:28:15.617430', photon_index_error2='0.78', photon_index2='5.07', ts='12.95', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='2.00e-05', EG='1.01', time_epoch_completed='1625808495.62', return_code='0', job_id='190768', GAL2='1.02', EG2='0.98', return_code2='0', energy_flux_error='2.99e-05', photon_flux_error2='1.41e-07', ts2='16.66', photon_index='3.80' WHERE bin_id='176' AND source_name='4FGL J0534.5+2201s' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Thu Jul  8 22:28:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0010>
Subject: Job 190768: <4FGL_J0534.5+2201s_weekly_bin176> in cluster <slac> Done

Job <4FGL_J0534.5+2201s_weekly_bin176> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Jul  8 21:10:53 2021
Job was executed on host(s) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jul  8 21:11:43 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:11:43 2021
Terminated at Thu Jul  8 22:28:16 2021
Results reported at Thu Jul  8 22:28:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0534.5+2201s_weekly_bin176 83.6331 22.0199 345427201 346032001 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 :                                   4490.00 sec.
    Max Memory :                                 1262 MB
    Average Memory :                             465.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   4593 sec.
    Turnaround time :                            4643 sec.

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

