aklog: Couldn't determine realm of user:aklog: No credentials cache found  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 18 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 = 74146
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0534.5+2201s_monthly_bin168
RA = 83.6331, Dec = 22.0199
tmin = 672451201, tmax = 675043201
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='617722', job_status='RUN', time_executed='2022-05-24 02:13:35.536998', time_epoch_executed='1653383615.54' WHERE source_name='4FGL J0534.5+2201s' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/617722

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/617722/ft1_4FGL_J0534.5+2201s_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/617722/ft2_4FGL_J0534.5+2201s_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/617722/ft1_4FGL_J0534.5+2201s_monthly_bin168.fits outfile=/scratch/kocevski/617722/ft1_filteredMKT_4FGL_J0534.5+2201s_monthly_bin168.fits ra=83.6331 dec=22.0199 rad=12.0 tmin=672451201.0 tmax=675043201.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 28.92
user 28.06
sys 0.76

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

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

Number of photons that the gtmktime cut: 27382

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/617722/ft1_filtered_4FGL_J0534.5+2201s_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/617722/ft2_4FGL_J0534.5+2201s_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/617722/ltcube_672451201_675043201_4FGL_J0534.5+2201s_monthly_bin168.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/617722/ft2_4FGL_J0534.5+2201s_monthly_bin168.fits
.....................!
real 142.46
user 141.63
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/617722/ft1_filtered_4FGL_J0534.5+2201s_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/617722/ft2_4FGL_J0534.5+2201s_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/617722/ltcube_672451201_675043201_4FGL_J0534.5+2201s_monthly_bin168.fits outfile=/scratch/kocevski/617722/expmap_672451201_675043201_4FGL_J0534.5+2201s_monthly_bin168.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/617722/ltcube_672451201_675043201_4FGL_J0534.5+2201s_monthly_bin168.fits
.....................!
real 193.40
user 187.69
sys 5.14

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/617722/ft1_filtered_4FGL_J0534.5+2201s_monthly_bin168.fits scfile=/scratch/kocevski/617722/ft2_4FGL_J0534.5+2201s_monthly_bin168.fits outfile=/scratch/kocevski/617722/cmap_672451201_675043201_4FGL_J0534.5+2201s_monthly_bin168.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.83
user 0.65
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/617722/ft1_filtered_4FGL_J0534.5+2201s_monthly_bin168.fits scfile=/scratch/kocevski/617722/ft2_4FGL_J0534.5+2201s_monthly_bin168.fits outfile=/scratch/kocevski/617722/cmap_HighResolution_672451201_675043201_4FGL_J0534.5+2201s_monthly_bin168.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.84
user 0.65
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.148       1.0000         .10000E-03   10000.    
     2 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.9061       1.0000         .10000E-03   10000.    
     4 'norm      '    1.0511       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3432       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    26.437       1.0000         .10000E-03   10000.    
     8 'norm      '    3.6340       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10864E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1397       1.0000         .10000E-03   10000.    
    12 'norm      '    6.4649       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2909       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .50766       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11990E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3767       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97758       1.0000          .0000       10.000    
    21 'norm      '    2.5861       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=   268740.7     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2012 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.147        14.572       -.44927E-06   -.18689E-04
   2  norm          .10000E-03    2.9197       -.59613E-07** at limit **
   3  Prefactor     2.9061        1.7686        .12890E-06   -.31647E-02
   4  norm          1.0512        .83148       -.65072E-07   -.25233E-02
   5  Prefactor     3.3431        1.2508       -.16937E-07   -.95873E-04
   6  Prefactor     .10000E-03    22.240       -.12019E-04** at limit **
   7  Prefactor     26.438        17.302        .30440E-06    .76301E-04
   8  norm          3.6340        .50208        .18307E-06   -.25770E-01
   9  Prefactor     .10000E-03    .84491       -.69739E-07** at limit **
  10  norm          .10000E-03    .21043        .22980E-07** at limit **
  11  Prefactor     1.1397        .46619E-01   -.74357E-10    .54337E-02
  12  norm          6.4650        1.1699       -.51456E-08    .17740E-03
  13  Prefactor     2.2910        .33223        .33215E-08   -.37370E-02
  14  Prefactor     .10000E-03    1.6324        .55532E-07** at limit **
  15  Prefactor     .50827        .61523       -.13928E-06   -.18715E-02
  16  Prefactor     .10000E-03    1.4627        .11053E-06** at limit **
  17  Prefactor     .10000E-03    13.956       -.84943E-05** at limit **
  18  Prefactor     .10000E-03    17.273        .18921E-04** at limit **
  19  Normalizat    1.3766        .13477       -.12895E-06    .31238E-03
  20  Prefactor     .97759        .13712E-01    .48709E-08    .29956E-02
  21  norm          2.5862        .17955       -.77885E-09   -.31278E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 25.147
  norm       = 0.0001
  Prefactor  = 2.90614
  norm       = 1.05119
  Prefactor  = 3.3431
  Prefactor  = 0.0001
  Prefactor  = 26.4375
  norm       = 3.63396
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.13971
  norm       = 6.46496
  Prefactor  = 2.29101
  Prefactor  = 0.0001
  Prefactor  = 0.508268
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Normalizat = 1.37665
  Prefactor  = 0.977586
  norm       = 2.58617
 **********
 **   18 **HESSE 
 **********

 FCN=   268740.7     FROM HESSE     STATUS=OK           331 CALLS     2343 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.147        14.569        .79880E-04   -1.4705    
   2  norm          .10000E-03    2.9287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.9061        1.8235        .11917E-02   -1.5367    
   4  norm          1.0512        1.0036        .40204E-02   -1.5503    
   5  Prefactor     3.3431        1.2474        .22135E-03   -1.5342    
   6  Prefactor     .10000E-03    22.790        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     26.438        17.239        .77913E-04   -1.4679    
   8  norm          3.6340        .82347        .10596E-02   -1.5327    
   9  Prefactor     .10000E-03    .84931        .17344       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .93720        .45174E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.1397        .51845E-01    .14898E-04   -1.5494    
  12  norm          6.4650        1.2702        .15785E-04   -1.5199    
  13  Prefactor     2.2910        .34504        .80895E-04   -1.5405    
  14  Prefactor     .10000E-03    1.6476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .50827        1.2135        .42116E-02   -1.5565    
  16  Prefactor     .10000E-03    1.5284        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3766        .13014        .10672E-02   -.81306    
  20  Prefactor     .97759        .13858E-01    .13757E-03   -.93480    
  21  norm          2.5862        .17922        .55871E-04   -1.5386    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.08777e-06
Minuit parameter uncertainties:
  1  14.5715
  2  5.94829e-07
  3  1.82353
  4  1.00357
  5  1.24737
  6  0.000130795
  7  17.2422
  8  0.823473
  9  6.03551e-06
  10  7.25296e-06
  11  0.051845
  12  1.27019
  13  0.345039
  14  1.38174e-06
  15  1.21357
  16  2.7555e-07
  17  0.000135483
  18  0.000442814
  19  0.130175
  20  0.0138585
  21  0.179221
Done.

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

Extracting fit parameters...

4FGL J0534.5+2201s
   Spectrum: PowerLaw
259    Prefactor:  2.291e+00  3.450e-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.776e-01  1.386e-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.377e+00  1.302e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 90.93
Ra Dec: 83.633 22.020
Photon Index (Fixed Index): 3.80 +/- 0.00
Photon Flux (Fixed Index): 6.16e-07 +/- 9.25e-08
Energy Flux (Fixed Index): 9.57e-05 +/- 1.44e-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) = 268740.445022
delta logL = 0.280200480425

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 268740.437959
delta logL = 0.2872629427

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.0711       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0981       1.0000          .0000       10.000    
     3 'Normalizat'    1.3687       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97899       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=   268740.4     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      230 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.0722        .36877        .57866E-02    .25511E-01
   2  Index         4.0983        .86873E-01    .20491       -.35417E-02
   3  Normalizat    1.3685        .12772        .23944        .10101E-02
   4  Prefactor     .97901        .13501E-01    .31116E-01   -.39241E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.0722
  Index      = 4.09835
  Normalizat = 1.3685
  Prefactor  = 0.979007
 **********
 **   18 **HESSE 
 **********

 FCN=   268740.4     FROM HESSE     STATUS=OK            33 CALLS      263 TOTAL
                     EDM=   .61E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.0722        .82970        .93809E-04   -1.5357    
   2  Index         4.0983        .27028        .84121E-02   -.18132    
   3  Normalizat    1.3685        .12611        .10701E-02   -.81544    
   4  Prefactor     .97901        .13659E-01    .13750E-03   -.93433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.09081e-07
Minuit parameter uncertainties:
  1  0.8297
  2  0.27042
  3  0.126142
  4  0.013659
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/617722': 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) = 268740.437958
delta logL = 0.287264049519

Extracting fit parameters...

4FGL J0534.5+2201s
   Spectrum: PowerLaw
259    Prefactor:  3.072e+00  8.297e-01  1.000e-04  1.000e+04 ( 1.000e-07)
260        Index:  4.098e+00  2.704e-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.790e-01  1.366e-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.368e+00  1.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 103.95
Ra Dec: 83.633 22.020
Photon Index (Free Index): 4.10 +/- 0.27
Photon Flux (Free Index): 6.11e-07 +/- 7.09e-08
Energy Flux (Free Index): 9.01e-05 +/- 1.19e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -3.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  3.330e+00 [aplpy.core]
Saving /scratch/kocevski/617722/cmap_HighResolution_672451201_675043201_4FGL_J0534.5+2201s_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.16e-07', energy_flux2='9.01e-05', photon_flux_error='9.25e-08', dlogl='2.87e-01', energy_flux='9.57e-05', photon_flux2='6.11e-07', job_status='DONE', time_completed='2022-05-24 06:35:19.876007', photon_index_error2='0.27', photon_index2='4.10', ts='90.93', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.19e-05', EG='1.38', time_epoch_completed='1653399319.88', return_code='0', job_id='617722', GAL2='0.98', EG2='1.37', return_code2='0', energy_flux_error='1.44e-05', photon_flux_error2='7.09e-08', ts2='103.95', photon_index='3.80' WHERE bin_id='168' AND source_name='4FGL J0534.5+2201s' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 06:35:19 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 617722: <4FGL_J0534.5+2201s_monthly_bin168> in cluster <slac> Done

Job <4FGL_J0534.5+2201s_monthly_bin168> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue May 24 02:10:29 2022
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 02:13:09 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 02:13:09 2022
Terminated at Tue May 24 06:35:21 2022
Results reported at Tue May 24 06:35:21 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0534.5+2201s_monthly_bin168 83.6331 22.0199 672451201 675043201 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 :                                   15639.00 sec.
    Max Memory :                                 709 MB
    Average Memory :                             660.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   15732 sec.
    Turnaround time :                            15892 sec.

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

