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


Performing analysis on: 4FGL_J0534.5+2200_daily_bin1686
RA = 83.6367, Dec = 22.0149
tmin = 676339201, tmax = 676598401
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='509515', job_status='RUN', time_executed='2022-06-11 00:15:41.487007', time_epoch_executed='1654931741.49' WHERE source_name='4FGL J0534.5+2200' and cadence='daily' and bin_id='1686'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/509515

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/509515/ft1_4FGL_J0534.5+2200_daily_bin1686.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/509515/ft2_4FGL_J0534.5+2200_daily_bin1686.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/509515/ft1_4FGL_J0534.5+2200_daily_bin1686.fits outfile=/scratch/kocevski/509515/ft1_filteredMKT_4FGL_J0534.5+2200_daily_bin1686.fits ra=83.6367 dec=22.0149 rad=12.0 tmin=676339201.0 tmax=676598401.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 2.86
user 2.60
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/509515/ft2_4FGL_J0534.5+2200_daily_bin1686.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/509515/ft2_4FGL_J0534.5+2200_daily_bin1686.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/509515/ft1_filteredMKT_4FGL_J0534.5+2200_daily_bin1686.fits evtable="EVENTS" outfile="/scratch/kocevski/509515/ft1_filtered_4FGL_J0534.5+2200_daily_bin1686.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.66
user 0.38
sys 0.17

Number of photons that the gtmktime cut: 91

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/509515/ft1_filtered_4FGL_J0534.5+2200_daily_bin1686.fits" evtable="EVENTS" scfile=/scratch/kocevski/509515/ft2_4FGL_J0534.5+2200_daily_bin1686.fits sctable="SC_DATA" outfile=/scratch/kocevski/509515/ltcube_676339201_676598401_4FGL_J0534.5+2200_daily_bin1686.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/509515/ft2_4FGL_J0534.5+2200_daily_bin1686.fits
.....................!
real 15.55
user 15.20
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/509515/ft1_filtered_4FGL_J0534.5+2200_daily_bin1686.fits evtable="EVENTS" scfile=/scratch/kocevski/509515/ft2_4FGL_J0534.5+2200_daily_bin1686.fits sctable="SC_DATA" expcube=/scratch/kocevski/509515/ltcube_676339201_676598401_4FGL_J0534.5+2200_daily_bin1686.fits outfile=/scratch/kocevski/509515/expmap_676339201_676598401_4FGL_J0534.5+2200_daily_bin1686.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/509515/ltcube_676339201_676598401_4FGL_J0534.5+2200_daily_bin1686.fits
.....................!
real 193.23
user 187.99
sys 4.85

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+2200 @ 83.6367 22.0149

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/509515/ft1_filtered_4FGL_J0534.5+2200_daily_bin1686.fits scfile=/scratch/kocevski/509515/ft2_4FGL_J0534.5+2200_daily_bin1686.fits outfile=/scratch/kocevski/509515/cmap_676339201_676598401_4FGL_J0534.5+2200_daily_bin1686.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.6367 yref=22.0149 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.57
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/509515/ft1_filtered_4FGL_J0534.5+2200_daily_bin1686.fits scfile=/scratch/kocevski/509515/ft2_4FGL_J0534.5+2200_daily_bin1686.fits outfile=/scratch/kocevski/509515/cmap_HighResolution_676339201_676598401_4FGL_J0534.5+2200_daily_bin1686.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.6367 yref=22.0149 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.64
user 0.42
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/509515/ft1_filtered_4FGL_J0534.5+2200_daily_bin1686.fits evtable="EVENTS" scfile=/scratch/kocevski/509515/ft2_4FGL_J0534.5+2200_daily_bin1686.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/509515/Model_4FGL_J0534.5+2200_daily_bin1686.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/509515/ft1_filtered_4FGL_J0534.5+2200_daily_bin1686.fits.......................!
real 36.77
user 35.03
sys 1.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/509515/ft1_filtered_4FGL_J0534.5+2200_daily_bin1686.fits', '/scratch/kocevski/509515/ft2_4FGL_J0534.5+2200_daily_bin1686.fits', expMap='/scratch/kocevski/509515/expmap_676339201_676598401_4FGL_J0534.5+2200_daily_bin1686.fits', expCube='/scratch/kocevski/509515/ltcube_676339201_676598401_4FGL_J0534.5+2200_daily_bin1686.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/509515/Model_4FGL_J0534.5+2200_daily_bin1686.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0534.5+2200'

4FGL J0534.5+2200
   Spectrum: PLSuperExpCutoff2
250    Prefactor:  1.416e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-10)
251       Index1:  1.883e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  1.573e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
253    Expfactor:  4.435e+00  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
254       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/509515/ft1_filtered_4FGL_J0534.5+2200_daily_bin1686.fits
Spacecraft file(s): /scratch/kocevski/509515/ft2_4FGL_J0534.5+2200_daily_bin1686.fits
Exposure map: /scratch/kocevski/509515/expmap_676339201_676598401_4FGL_J0534.5+2200_daily_bin1686.fits
Exposure cube: /scratch/kocevski/509515/ltcube_676339201_676598401_4FGL_J0534.5+2200_daily_bin1686.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/509515/Model_4FGL_J0534.5+2200_daily_bin1686.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) = 1097.35119577

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .13432E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    274.55       1.0000         .10000E-03   10000.    
     3 'Prefactor '    96.342       1.0000         .10000E-03   10000.    
     4 'norm      '    2.1393       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4637.5       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    27.441       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10661E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .47816E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12287E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    279.38       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11586E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    97.694       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10569E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
    20 'Prefactor '    .78968       1.0000          .0000       10.000    
    21 'norm      '    2.5112       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=   1097.207     FROM MIGRAD    STATUS=CONVERGED    412 CALLS     2213 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1817.7        .10359E-05** at limit **
   2  norm          274.57        304.09       -.33904E-05   -.25170E-05
   3  Prefactor     96.292        62.360        .64700E-06   -.32689E-04
   4  norm          2.1503        155.57        .30177E-05   -.22070E-05
   5  Prefactor     .10000E-03    8.6441       -.45914E-07** at limit **
   6  Prefactor     4638.8        3777.3       -.26486E-04   -.14509E-06
   7  Prefactor     .10000E-03    171.93        .27849E-06** at limit **
   8  norm          .10000E-03    41.406        .11907E-06** at limit **
   9  Prefactor     .10000E-03    586.46       -.32238E-06** at limit **
  10  norm          27.469        36.428       -.65687E-06   -.15963E-04
  11  Prefactor     .10000E-03    14.442        .39159E-06** at limit **
  12  norm          .10000E-03    291.13        .21513E-06** at limit **
  13  Prefactor     .10005E-03    6652.0        .37302E-04** at limit **
  14  Prefactor     279.49        291.78       -.10079E-04    .12913E-05
  15  Prefactor     .10000E-03    145.93        .15606E-05** at limit **
  16  Prefactor     97.767        150.96       -.94851E-05   -.56059E-05
  17  Prefactor     .10000E-03    388.04        .49334E-06** at limit **
  18  Prefactor     .10000E-03    1020.5       -.11644E-05** at limit **
  19  Normalizat    .10000E-01    .38538        .27528E-05** at limit **
  20  Prefactor     .78970        .13489       -.21171E-05   -.63716E-04
  21  norm          2.5105        2.9258        .16164E-06   -.11884E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  norm       = 274.565
  Prefactor  = 96.2923
  norm       = 2.1503
  Prefactor  = 0.0001
  Prefactor  = 4638.8
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 27.4687
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100048
  Prefactor  = 279.491
  Prefactor  = 0.000100005
  Prefactor  = 97.767
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Normalizat = 0.01
  Prefactor  = 0.789696
  norm       = 2.51046
 **********
 **   18 **HESSE 
 **********

 FCN=   1097.207     FROM HESSE     STATUS=OK           307 CALLS     2520 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1812.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          274.57        304.95        .12240E-03   -1.2379    
   3  Prefactor     96.292        62.162        .40951E-04   -1.3742    
   4  norm          2.1503        154.90        .28181E-03   -1.5415    
   5  Prefactor     .10000E-03    8.6443        .95136E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4638.8        3778.6        .40106E-04   -.72303E-01
   7  Prefactor     .10000E-03    171.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    41.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    586.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          27.469        36.529        .76477E-04   -1.4659    
  11  Prefactor     .10000E-03    14.535        .12306E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    291.09        .21179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10005E-03    6677.6        .18169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     279.49        290.52        .12136E-03   -1.2349    
  15  Prefactor     .10000E-03    150.63        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     97.767        150.88        .20335E-03   -1.3727    
  17  Prefactor     .10000E-03    387.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1018.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .10000E-01    .40957        .12618E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .78970        .13607        .13739E-03   -1.0011    
  21  norm          2.5105        2.9129        .57847E-04   -1.5391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08585e-10
Minuit parameter uncertainties:
  1  0.00484342
  2  306.745
  3  62.2043
  4  36.5985
  5  9.83437e-07
  6  4287.67
  7  0.000385206
  8  9.24263e-06
  9  0.000820485
  10  36.5588
  11  7.36559e-05
  12  0.000330449
  13  0.0270196
  14  292.045
  15  0.00171561
  16  151.476
  17  0.000866444
  18  0.00416356
  19  1.28073e-05
  20  0.136127
  21  2.91309
Done.

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

Extracting fit parameters...

4FGL J0534.5+2200
   Spectrum: PLSuperExpCutoff2
250    Prefactor:  1.000e-04  7.366e-05  1.000e-04  1.000e+04 ( 1.000e-10)
251       Index1:  1.883e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
252        Scale:  1.573e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
253    Expfactor:  4.435e+00  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
254       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  7.897e-01  1.361e-01  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.000e-02  1.281e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 83.637 22.015
Photon Flux Upper Limit: 7.26e-05 ph cm-2 s-1
Energy Flux Upper Limit: 2.86e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/509515/likelihoodResults_676339201_676598401_4FGL_J0534.5+2200_daily_bin1686.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): 102
logL (Free Index) = 1097.20777639
delta logL = -0.000336690591894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1097.20743992
delta logL = -2.173046596e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Index1    '    1.8933       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78962       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.

 FCN=   1097.207     FROM MIGRAD    STATUS=CONVERGED    185 CALLS      345 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .60670E-01    7.4112        .33473E-01   -.17043E-03
   2  Index1        3.2660        1.2671        .50000        .83849E-06
   3  Normalizat    .10000E-01    .25888E-02    .12618E-01** at limit **
   4  Prefactor     .78897        .90452E-02    .13739E-03    .27699E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.06067
  Index1     = 3.26602
  Normalizat = 0.01
  Prefactor  = 0.788975
 **********
 **   18 **HESSE 
 **********

 FCN=   1097.207     FROM HESSE     STATUS=OK            31 CALLS      376 TOTAL
                     EDM=   .67E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .60670E-01    23.301        .99981E-03   -1.5757    
   2  Index1        3.2660        6.3700        .50234E-02   -.35415    
   3  Normalizat    .10000E-01    .40926        .25237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .78897        .11708        .54958E-05   -1.0014    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.74977e-11
Minuit parameter uncertainties:
  1  2.3769
  2  7.87632
  3  4.1983e-06
  4  0.117115
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/509515': 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) = 1097.20708936
delta logL = 0.000350338946646

Extracting fit parameters...

4FGL J0534.5+2200
   Spectrum: PLSuperExpCutoff2
250    Prefactor:  6.067e-02  2.377e+00  1.000e-04  1.000e+04 ( 1.000e-10)
251       Index1:  3.266e+00  7.876e+00  0.000e+00  1.000e+01 (-1.000e+00)
252        Scale:  1.573e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed
253    Expfactor:  4.435e+00  0.000e+00 -1.000e+00  1.000e+02 ( 1.000e-03) fixed
254       Index2:  6.667e-01  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
574    Prefactor:  7.890e-01  1.171e-01  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.000e-02  4.198e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 83.637 22.015

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/509515/cmap_HighResolution_676339201_676598401_4FGL_J0534.5+2200_daily_bin1686.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.86e-02', job_status='DONE', photon_flux_upper_limit='7.26e-05', time_completed='2022-06-11 00:22:07.115680', job_id='509515', GAL2='0.79', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1654932127.12', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='3.50e-04', ts2='0.00', photon_index_error='0.00', photon_index='1.88' WHERE bin_id='1686' AND source_name='4FGL J0534.5+2200' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jun 11 00:22:07 PDT 2022

------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 509451: <4FGL_J0534.5+2200_daily_bin1686> in cluster <slac> Done

Job <4FGL_J0534.5+2200_daily_bin1686> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Jun 11 00:05:32 2022
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jun 11 00:12:42 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jun 11 00:12:42 2022
Terminated at Sat Jun 11 00:21:42 2022
Results reported at Sat Jun 11 00:21:42 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0534.5+2200_daily_bin1686 83.6367 22.0149 676339201 676598401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0534.5+2200 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   382.00 sec.
    Max Memory :                                 618 MB
    Average Memory :                             241.05 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   539 sec.
    Turnaround time :                            970 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 509515: <4FGL_J0534.5+2200_daily_bin1686> in cluster <slac> Done

Job <4FGL_J0534.5+2200_daily_bin1686> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Jun 11 00:05:36 2022
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jun 11 00:13:09 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jun 11 00:13:09 2022
Terminated at Sat Jun 11 00:22:07 2022
Results reported at Sat Jun 11 00:22:07 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0534.5+2200_daily_bin1686 83.6367 22.0149 676339201 676598401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0534.5+2200 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   387.62 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   538 sec.
    Turnaround time :                            991 sec.

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

