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


Performing analysis on: 4FGL_J0534.5+2201s_weekly_bin495
RA = 83.6331, Dec = 22.0199
tmin = 538358401, tmax = 538963201
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='194813', job_status='RUN', time_executed='2021-07-08 21:25:57.305428', time_epoch_executed='1625804757.31' WHERE source_name='4FGL J0534.5+2201s' and cadence='weekly' and bin_id='495'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/194813

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/194813/ft1_4FGL_J0534.5+2201s_weekly_bin495.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/194813/ft2_4FGL_J0534.5+2201s_weekly_bin495.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/194813/ft1_4FGL_J0534.5+2201s_weekly_bin495.fits outfile=/scratch/kocevski/194813/ft1_filteredMKT_4FGL_J0534.5+2201s_weekly_bin495.fits ra=83.6331 dec=22.0199 rad=12.0 tmin=538358401.0 tmax=538963201.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.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/194813/ft1_filtered_4FGL_J0534.5+2201s_weekly_bin495.fits" evtable="EVENTS" scfile=/scratch/kocevski/194813/ft2_4FGL_J0534.5+2201s_weekly_bin495.fits sctable="SC_DATA" outfile=/scratch/kocevski/194813/ltcube_538358401_538963201_4FGL_J0534.5+2201s_weekly_bin495.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/194813/ft2_4FGL_J0534.5+2201s_weekly_bin495.fits
.....................!
real 34.74
user 34.32
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/194813/ft1_filtered_4FGL_J0534.5+2201s_weekly_bin495.fits evtable="EVENTS" scfile=/scratch/kocevski/194813/ft2_4FGL_J0534.5+2201s_weekly_bin495.fits sctable="SC_DATA" expcube=/scratch/kocevski/194813/ltcube_538358401_538963201_4FGL_J0534.5+2201s_weekly_bin495.fits outfile=/scratch/kocevski/194813/expmap_538358401_538963201_4FGL_J0534.5+2201s_weekly_bin495.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/194813/ltcube_538358401_538963201_4FGL_J0534.5+2201s_weekly_bin495.fits
.....................!
real 190.90
user 185.38
sys 4.97

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/194813/ft1_filtered_4FGL_J0534.5+2201s_weekly_bin495.fits scfile=/scratch/kocevski/194813/ft2_4FGL_J0534.5+2201s_weekly_bin495.fits outfile=/scratch/kocevski/194813/cmap_538358401_538963201_4FGL_J0534.5+2201s_weekly_bin495.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.58
user 0.43
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/194813/ft1_filtered_4FGL_J0534.5+2201s_weekly_bin495.fits scfile=/scratch/kocevski/194813/ft2_4FGL_J0534.5+2201s_weekly_bin495.fits outfile=/scratch/kocevski/194813/cmap_HighResolution_538358401_538963201_4FGL_J0534.5+2201s_weekly_bin495.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.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.3577       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .13551E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .25672       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.191       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.0871       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.291       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3596       1.0000         .10000E-03   10000.    
    12 'norm      '    2.9740       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .85447       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.4550       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .20291E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.5323       1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.131       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4649       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .94400       1.0000          .0000       10.000    
    21 'norm      '    3.0183       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=   64678.24     FROM MIGRAD    STATUS=CONVERGED    462 CALLS     2316 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    46.269        .98402E-07** at limit **
   2  norm          3.3530        19.613        .10063E-05   -.17387E-04
   3  Prefactor     .10000E-03    1.8942        .58810E-07** at limit **
   4  norm          .10000E-03    .71256        .15521E-06** at limit **
   5  Prefactor     .26956        .81996        .16922E-06   -.40045E-03
   6  Prefactor     18.180        17.732        .92632E-07   -.18863E-04
   7  Prefactor     .10000E-03    8.0586        .60135E-08** at limit **
   8  norm          2.0870        1.2983        .82824E-07   -.76055E-03
   9  Prefactor     10.290        9.9295       -.37471E-06   -.16834E-03
  10  norm          .10000E-03    1.9359        .10496E-06** at limit **
  11  Prefactor     1.3597        .95902E-01   -.80163E-07   -.16218E-01
  12  norm          2.9737        1.8096        .45590E-06   -.15901E-02
  13  Prefactor     .85403        .65948        .92478E-06   -.21387E-02
  14  Prefactor     9.4618        11.850        .15894E-07    .80447E-04
  15  Prefactor     .10000E-03    .63737        .16485E-06** at limit **
  16  Prefactor     5.5315        5.8434        .10333E-06   -.14744E-03
  17  Prefactor     26.067        35.090       -.96779E-06   -.28091E-03
  18  Prefactor     .10000E-03    76.543        .35604E-06** at limit **
  19  Normalizat    1.4655        .24223       -.49172E-05   -.37784E-03
  20  Prefactor     .94397        .26730E-01    .29926E-06   -.19717E-02
  21  norm          3.0182        .41265        .18526E-07   -.39396E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 3.35301
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.26956
  Prefactor  = 18.1802
  Prefactor  = 0.0001
  norm       = 2.08704
  Prefactor  = 10.2904
  norm       = 0.0001
  Prefactor  = 1.35968
  norm       = 2.97368
  Prefactor  = 0.854027
  Prefactor  = 9.46175
  Prefactor  = 0.000100002
  Prefactor  = 5.53147
  Prefactor  = 26.0671
  Prefactor  = 0.0001
  Normalizat = 1.46551
  Prefactor  = 0.943965
  norm       = 3.01822
 **********
 **   18 **HESSE 
 **********

 FCN=   64678.24     FROM HESSE     STATUS=OK           331 CALLS     2647 TOTAL
                     EDM=   .39E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    46.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.3530        19.664        .22085E-03   -1.5342    
   3  Prefactor     .10000E-03    1.9039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.6370        .41263E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .26956        4.1771        .38449E-02   -1.5604    
   6  Prefactor     18.180        17.731        .93906E-04   -1.4855    
   7  Prefactor     .10000E-03    8.0618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.0870        1.2928        .22113E-03   -1.5419    
   9  Prefactor     10.290        9.9376        .12490E-03   -1.5066    
  10  norm          .10000E-03    1.9709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.3597        .96180E-01    .13446E-04   -1.5475    
  12  norm          2.9737        1.8335        .22936E-03   -1.5363    
  13  Prefactor     .85403        .66010        .12122E-03   -1.5523    
  14  Prefactor     9.4618        11.847        .13033E-03   -1.5093    
  15  Prefactor     .10000E-03    1.0311        .68019E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.5315        5.8316        .17082E-03   -1.5238    
  17  Prefactor     26.067        35.172        .78366E-04   -1.4686    
  18  Prefactor     .10000E-03    76.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.4655        .24787        .98771E-03   -.78752    
  20  Prefactor     .94397        .27717E-01    .13668E-03   -.94621    
  21  norm          3.0182        .41192        .58091E-04   -1.5360    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91319e-07
Minuit parameter uncertainties:
  1  7.56745e-06
  2  16.2478
  3  2.83932e-06
  4  5.26992e-06
  5  2.12202
  6  17.7361
  7  6.54049e-07
  8  1.29277
  9  9.93919
  10  2.26611e-06
  11  0.09618
  12  1.8335
  13  0.660103
  14  11.8501
  15  9.39087e-05
  16  5.8322
  17  35.1999
  18  0.000302682
  19  0.248073
  20  0.0277174
  21  0.411916
Done.

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

Extracting fit parameters...

4FGL J0534.5+2201s
   Spectrum: PowerLaw
259    Prefactor:  8.540e-01  6.601e-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.440e-01  2.772e-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.466e+00  2.481e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.09
Ra Dec: 83.633 22.020
Photon Index (Fixed Index): 3.80 +/- 0.00
Photon Flux (Fixed Index): 2.30e-07 +/- 1.77e-07
Energy Flux (Fixed Index): 3.57e-05 +/- 2.75e-05

TS (Fixed Index): 3.09
Ra Dec: 83.633 22.020
Photon Flux Upper Limit: 4.45e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.69e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/194813/likelihoodResults_538358401_538963201_4FGL_J0534.5+2201s_weekly_bin495.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 64678.027283
delta logL = 0.215158192841

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 64678.0169225
delta logL = 0.225518765292

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .43818       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1187       1.0000          .0000       10.000    
     3 'Normalizat'    1.4717       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94236       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   64678.02     FROM MIGRAD    STATUS=FAILED       102 CALLS      274 TOTAL
                     EDM=   .61E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .43771        .55869        .75552E-03    .68199E-01
   2  Index         3.1173        .93466        .11281E-01   -.23912E-02
   3  Normalizat    1.4714        .24342        .98574E-03    .28694E-04
   4  Prefactor     .94240        .27087E-01    .13673E-03    .26739E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   64678.02     FROM SIMPLEX   STATUS=UNCHANGED     73 CALLS      347 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .43771        .55869        .38383E-04   -1.5576    
   2  Index         3.1173        .93466        .82070E-03   -.38606    
   3  Normalizat    1.4714        .24342        .25513E-03   -.78585    
   4  Prefactor     .94240        .27087E-01    .30040E-04   -.94675    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   64678.02     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      387 TOTAL
                     EDM=   .97E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .43771        .49541        .15110E-03    .27521E-02
   2  Index         3.1173        .83480        .22561E-02   -.95863E-04
   3  Normalizat    1.4714        .24120        .39430E-04   -.46133E-06
   4  Prefactor     .94240        .27011E-01    .54694E-05   -.66515E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.437707
  Index      = 3.11727
  Normalizat = 1.4714
  Prefactor  = 0.942399
 **********
 **   18 **HESSE 
 **********

 FCN=   64678.02     FROM HESSE     STATUS=OK            27 CALLS      414 TOTAL
                     EDM=   .85E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .43771        .48519        .30221E-04   -1.5576    
   2  Index         3.1173        .81851        .45122E-03   -.38606    
   3  Normalizat    1.4714        .24090        .78859E-05   -.78585    
   4  Prefactor     .94240        .27001E-01    .54694E-05   -.94675    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.49768e-13
Minuit parameter uncertainties:
  1  0.485196
  2  0.822826
  3  0.24109
  4  0.0270011
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/194813': 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) = 64678.0169192
delta logL = 0.225522024899

Extracting fit parameters...

4FGL J0534.5+2201s
   Spectrum: PowerLaw
259    Prefactor:  4.377e-01  4.852e-01  1.000e-04  1.000e+04 ( 1.000e-07)
260        Index:  3.117e+00  8.228e-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.424e-01  2.700e-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.471e+00  2.411e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.06
Ra Dec: 83.633 22.020
Photon Index (Free Index): 3.12 +/- 0.82
Photon Flux (Free Index): 2.48e-07 +/- 1.33e-07
Energy Flux (Free Index): 4.69e-05 +/- 2.95e-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/194813/cmap_HighResolution_538358401_538963201_4FGL_J0534.5+2201s_weekly_bin495.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.69e-02', comment='SUCCESS', photon_flux='2.30e-07', energy_flux2='4.69e-05', photon_flux_error='1.77e-07', dlogl='2.26e-01', energy_flux='3.57e-05', photon_flux2='2.48e-07', job_status='DONE', time_completed='2021-07-08 22:49:49.500054', photon_index_error2='0.82', photon_index2='3.12', ts='3.09', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='4.45e-07', energy_flux_error2='2.95e-05', EG='1.47', time_epoch_completed='1625809789.5', return_code='0', job_id='194813', GAL2='0.94', EG2='1.47', return_code2='0', energy_flux_error='2.75e-05', photon_flux_error2='1.33e-07', ts2='4.06', photon_index='3.80' WHERE bin_id='495' AND source_name='4FGL J0534.5+2201s' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Thu Jul  8 22:49:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 194813: <4FGL_J0534.5+2201s_weekly_bin495> in cluster <slac> Done

Job <4FGL_J0534.5+2201s_weekly_bin495> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Thu Jul  8 21:25:32 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jul  8 21:25:45 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:25:45 2021
Terminated at Thu Jul  8 22:49:50 2021
Results reported at Thu Jul  8 22:49:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0534.5+2201s_weekly_bin495 83.6331 22.0199 538358401 538963201 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 :                                   5004.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             451.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   5045 sec.
    Turnaround time :                            5058 sec.

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

