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


Performing analysis on: 4FGL_J0534.5+2201s_monthly_bin170
RA = 83.6331, Dec = 22.0199
tmin = 677635201, tmax = 680227201
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='87350', job_status='RUN', time_executed='2022-07-23 00:52:13.008321', time_epoch_executed='1658562733.01' WHERE source_name='4FGL J0534.5+2201s' and cadence='monthly' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/87350

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/87350/ft1_4FGL_J0534.5+2201s_monthly_bin170.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/87350/ft2_4FGL_J0534.5+2201s_monthly_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/87350/ft1_4FGL_J0534.5+2201s_monthly_bin170.fits outfile=/scratch/kocevski/87350/ft1_filteredMKT_4FGL_J0534.5+2201s_monthly_bin170.fits ra=83.6331 dec=22.0199 rad=12.0 tmin=677635201.0 tmax=680227201.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 32.24
user 31.38
sys 0.78

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/87350/ft2_4FGL_J0534.5+2201s_monthly_bin170.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/87350/ft1_filteredMKT_4FGL_J0534.5+2201s_monthly_bin170.fits evtable="EVENTS" outfile="/scratch/kocevski/87350/ft1_filtered_4FGL_J0534.5+2201s_monthly_bin170.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.89
user 0.67
sys 0.19

Number of photons that the gtmktime cut: 28844

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/87350/ft1_filtered_4FGL_J0534.5+2201s_monthly_bin170.fits" evtable="EVENTS" scfile=/scratch/kocevski/87350/ft2_4FGL_J0534.5+2201s_monthly_bin170.fits sctable="SC_DATA" outfile=/scratch/kocevski/87350/ltcube_677635201_680227201_4FGL_J0534.5+2201s_monthly_bin170.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/87350/ft2_4FGL_J0534.5+2201s_monthly_bin170.fits
.....................!
real 115.37
user 114.68
sys 0.45

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/87350/ft1_filtered_4FGL_J0534.5+2201s_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/87350/ft2_4FGL_J0534.5+2201s_monthly_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/87350/ltcube_677635201_680227201_4FGL_J0534.5+2201s_monthly_bin170.fits outfile=/scratch/kocevski/87350/expmap_677635201_680227201_4FGL_J0534.5+2201s_monthly_bin170.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/87350/ltcube_677635201_680227201_4FGL_J0534.5+2201s_monthly_bin170.fits
.....................!
real 192.53
user 187.74
sys 4.41

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/87350/ft1_filtered_4FGL_J0534.5+2201s_monthly_bin170.fits scfile=/scratch/kocevski/87350/ft2_4FGL_J0534.5+2201s_monthly_bin170.fits outfile=/scratch/kocevski/87350/cmap_677635201_680227201_4FGL_J0534.5+2201s_monthly_bin170.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.84
user 0.66
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/87350/ft1_filtered_4FGL_J0534.5+2201s_monthly_bin170.fits scfile=/scratch/kocevski/87350/ft2_4FGL_J0534.5+2201s_monthly_bin170.fits outfile=/scratch/kocevski/87350/cmap_HighResolution_677635201_680227201_4FGL_J0534.5+2201s_monthly_bin170.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.85
user 0.66
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.8347       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.6774       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.0199       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0154       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.2816       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .51740       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1888       1.0000         .10000E-03   10000.    
    12 'norm      '    7.1336       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.1772       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10977E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7686       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10803E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2349       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0164       1.0000          .0000       10.000    
    21 'norm      '    3.0436       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=   281877.5     FROM MIGRAD    STATUS=CONVERGED    471 CALLS     1964 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    7.5203         .0000    ** at limit **
   2  norm          2.8349        6.7380         .0000        .48813E-03
   3  Prefactor     .10000E-03    .54232         .0000    ** at limit **
   4  norm          1.6802        1.0391         .0000        .88566E-03
   5  Prefactor     2.0199        .99010         .0000        .10938    
   6  Prefactor     1.0143        2.6340         .0000        .45809E-02
   7  Prefactor     .10000E-03    5.3057         .0000    ** at limit **
   8  norm          4.2816        .79644         .0000        .46677E-02
   9  Prefactor     .10000E-03    1.9495         .0000    ** at limit **
  10  norm          .51513        .67264         .0000        .11737E-01
  11  Prefactor     1.1888        .49264E-01     .0000        .47361E-01
  12  norm          7.1336        1.2513         .0000        .68169E-02
  13  Prefactor     5.1772        .36453         .0000        .17966E-01
  14  Prefactor     .10000E-03    1.7545         .0000    ** at limit **
  15  Prefactor     .10000E-03    .20309         .0000    ** at limit **
  16  Prefactor     1.7690        2.3429         .0000        .10832    
  17  Prefactor     .10000E-03    8.2304         .0000    ** at limit **
  18  Prefactor     .10000E-03    89.211         .0000    ** at limit **
  19  Normalizat    1.2348        .13411         .0000        .10719E-02
  20  Prefactor     1.0164        .14192E-01     .0000        .10263E-02
  21  norm          3.0435        .21006         .0000        .80062E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 2.83491
  Prefactor  = 0.0001
  norm       = 1.68015
  Prefactor  = 2.01991
  Prefactor  = 1.01426
  Prefactor  = 0.0001
  norm       = 4.28164
  Prefactor  = 0.0001
  norm       = 0.515135
  Prefactor  = 1.18881
  norm       = 7.1336
  Prefactor  = 5.17722
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 1.769
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.2348
  Prefactor  = 1.01645
  norm       = 3.04353
 **********
 **   18 **HESSE 
 **********

 FCN=   281877.5     FROM HESSE     STATUS=OK           341 CALLS     2305 TOTAL
                     EDM=   .14E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.5933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.8349        6.7377        .24153E-03   -1.5371    
   3  Prefactor     .10000E-03    .54886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.6802        1.0380        .32533E-04   -1.5449    
   5  Prefactor     2.0199        .98971        .14559E-02   -1.5424    
   6  Prefactor     1.0143        2.6200        .21195       -1.5507    
   7  Prefactor     .10000E-03    5.3188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.2816        .79591        .19471E-03   -1.5294    
   9  Prefactor     .10000E-03    1.9611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .51513        1.7459        .46017E-02   -1.5564    
  11  Prefactor     1.1888        .55275E-01    .15723E-04   -1.5490    
  12  norm          7.1336        1.3633        .15019E-03   -1.5174    
  13  Prefactor     5.1772        .38489        .61814E-04   -1.5253    
  14  Prefactor     .10000E-03    1.7697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .27904        .70817E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.7690        2.3342        .15746E-02   -1.5442    
  17  Prefactor     .10000E-03    8.2598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    89.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2348        .12769        .11336E-02   -.85534    
  20  Prefactor     1.0164        .14105E-01    .14076E-03   -.92183    
  21  norm          3.0435        .20964        .61533E-04   -1.5359    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43885e-06
Minuit parameter uncertainties:
  1  4.85291e-06
  2  6.73949
  3  9.27199e-07
  4  1.03801
  5  0.98972
  6  2.62033
  7  5.8537e-05
  8  0.795913
  9  2.11783e-05
  10  1.74604
  11  0.0552754
  12  1.36326
  13  0.384892
  14  2.67778e-05
  15  6.8625e-05
  16  2.33433
  17  1.55965e-05
  18  8.14609e-05
  19  0.12772
  20  0.0141049
  21  0.209635
Done.

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

Extracting fit parameters...

4FGL J0534.5+2201s
   Spectrum: PowerLaw
259    Prefactor:  5.177e+00  3.849e-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.016e+00  1.410e-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.235e+00  1.277e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 413.26
Ra Dec: 83.633 22.020
Photon Index (Fixed Index): 3.80 +/- 0.00
Photon Flux (Fixed Index): 1.39e-06 +/- 1.03e-07
Energy Flux (Fixed Index): 2.16e-04 +/- 1.60e-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) = 281877.380858
delta logL = 0.154178574448

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 281877.380347
delta logL = 0.154689599469

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7213       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9004       1.0000          .0000       10.000    
     3 'Normalizat'    1.2280       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0176       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=   281877.4     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      233 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7214        .36639        .41981E-02    .14624E-01
   2  Index         3.9004        .53610E-01    .12068       -.51498E-02
   3  Normalizat    1.2280        .12850        .25411        .12063E-02
   4  Prefactor     1.0176        .13970E-01    .31841E-01   -.41014E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.72141
  Index      = 3.90043
  Normalizat = 1.228
  Prefactor  = 1.01758
 **********
 **   18 **HESSE 
 **********

 FCN=   281877.4     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7214        .84561        .65111E-04   -1.5230    
   2  Index         3.9004        .14073        .48734E-02   -.22173    
   3  Normalizat    1.2280        .12373        .11364E-02   -.85742    
   4  Prefactor     1.0176        .13828E-01    .14072E-03   -.92146    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.97555e-10
Minuit parameter uncertainties:
  1  0.845615
  2  0.140746
  3  0.123756
  4  0.0138285
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/87350': 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) = 281877.380347
delta logL = 0.154689603951

Extracting fit parameters...

4FGL J0534.5+2201s
   Spectrum: PowerLaw
259    Prefactor:  5.721e+00  8.456e-01  1.000e-04  1.000e+04 ( 1.000e-07)
260        Index:  3.900e+00  1.407e-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.018e+00  1.383e-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.228e+00  1.238e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 476.12
Ra Dec: 83.633 22.020
Photon Index (Free Index): 3.90 +/- 0.14
Photon Flux (Free Index): 1.39e-06 +/- 7.86e-08
Energy Flux (Free Index): 2.12e-04 +/- 1.38e-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/87350/cmap_HighResolution_677635201_680227201_4FGL_J0534.5+2201s_monthly_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.39e-06', energy_flux2='2.12e-04', photon_flux_error='1.03e-07', dlogl='1.55e-01', energy_flux='2.16e-04', photon_flux2='1.39e-06', job_status='DONE', time_completed='2022-07-23 05:25:23.515010', photon_index_error2='0.14', photon_index2='3.90', ts='413.26', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.38e-05', EG='1.23', time_epoch_completed='1658579123.52', return_code='0', job_id='87350', GAL2='1.02', EG2='1.23', return_code2='0', energy_flux_error='1.60e-05', photon_flux_error2='7.86e-08', ts2='476.12', photon_index='3.80' WHERE bin_id='170' AND source_name='4FGL J0534.5+2201s' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Jul 23 05:25:23 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 87350: <4FGL_J0534.5+2201s_monthly_bin170> in cluster <slac> Done

Job <4FGL_J0534.5+2201s_monthly_bin170> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Jul 23 00:50:35 2022
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 23 00:50:36 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 23 00:50:36 2022
Terminated at Sat Jul 23 05:25:25 2022
Results reported at Sat Jul 23 05:25:25 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0534.5+2201s_monthly_bin170 83.6331 22.0199 677635201 680227201 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 :                                   16363.00 sec.
    Max Memory :                                 742 MB
    Average Memory :                             669.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   16488 sec.
    Turnaround time :                            16490 sec.

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

