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


Performing analysis on: 4FGL_J0535.3+0934_weekly_bin724
RA = 83.8408, Dec = 9.5824
tmin = 676857601, tmax = 677462401
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='361167', job_status='RUN', time_executed='2022-06-21 00:11:38.423959', time_epoch_executed='1655795498.42' WHERE source_name='4FGL J0535.3+0934' and cadence='weekly' and bin_id='724'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/361167

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/361167/ft1_4FGL_J0535.3+0934_weekly_bin724.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/361167/ft2_4FGL_J0535.3+0934_weekly_bin724.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/361167/ft1_4FGL_J0535.3+0934_weekly_bin724.fits outfile=/scratch/kocevski/361167/ft1_filteredMKT_4FGL_J0535.3+0934_weekly_bin724.fits ra=83.8408 dec=9.5824 rad=12.0 tmin=676857601.0 tmax=677462401.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 5.84
user 5.51
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/361167/ft2_4FGL_J0535.3+0934_weekly_bin724.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/361167/ft2_4FGL_J0535.3+0934_weekly_bin724.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/361167/ft1_filteredMKT_4FGL_J0535.3+0934_weekly_bin724.fits evtable="EVENTS" outfile="/scratch/kocevski/361167/ft1_filtered_4FGL_J0535.3+0934_weekly_bin724.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.54
user 0.38
sys 0.15

Number of photons that the gtmktime cut: 238

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/361167/ft1_filtered_4FGL_J0535.3+0934_weekly_bin724.fits" evtable="EVENTS" scfile=/scratch/kocevski/361167/ft2_4FGL_J0535.3+0934_weekly_bin724.fits sctable="SC_DATA" outfile=/scratch/kocevski/361167/ltcube_676857601_677462401_4FGL_J0535.3+0934_weekly_bin724.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/361167/ft2_4FGL_J0535.3+0934_weekly_bin724.fits
.....................!
real 33.19
user 32.70
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/361167/ft1_filtered_4FGL_J0535.3+0934_weekly_bin724.fits evtable="EVENTS" scfile=/scratch/kocevski/361167/ft2_4FGL_J0535.3+0934_weekly_bin724.fits sctable="SC_DATA" expcube=/scratch/kocevski/361167/ltcube_676857601_677462401_4FGL_J0535.3+0934_weekly_bin724.fits outfile=/scratch/kocevski/361167/expmap_676857601_677462401_4FGL_J0535.3+0934_weekly_bin724.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/361167/ltcube_676857601_677462401_4FGL_J0535.3+0934_weekly_bin724.fits
.....................!
real 191.47
user 185.33
sys 5.60

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 IC 443 in ROI with RadialGaussian spatial model.
Extended source Rosette in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/Rosette.fits is the correct path to the extended template.
Extended source Monoceros in ROI with RadialGaussian spatial model.
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.
Added 166 point sources and 4 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 J0535.3+0934 @ 83.8408 9.5824

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/361167/ft1_filtered_4FGL_J0535.3+0934_weekly_bin724.fits scfile=/scratch/kocevski/361167/ft2_4FGL_J0535.3+0934_weekly_bin724.fits outfile=/scratch/kocevski/361167/cmap_676857601_677462401_4FGL_J0535.3+0934_weekly_bin724.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.8408 yref=9.5824 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.63
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/361167/ft1_filtered_4FGL_J0535.3+0934_weekly_bin724.fits scfile=/scratch/kocevski/361167/ft2_4FGL_J0535.3+0934_weekly_bin724.fits outfile=/scratch/kocevski/361167/cmap_HighResolution_676857601_677462401_4FGL_J0535.3+0934_weekly_bin724.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.8408 yref=9.5824 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.59
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/361167/ft1_filtered_4FGL_J0535.3+0934_weekly_bin724.fits evtable="EVENTS" scfile=/scratch/kocevski/361167/ft2_4FGL_J0535.3+0934_weekly_bin724.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/361167/Model_4FGL_J0535.3+0934_weekly_bin724.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 Rosette
adding source S 147
Working on...
/scratch/kocevski/361167/ft1_filtered_4FGL_J0535.3+0934_weekly_bin724.fits......................!
real 82.22
user 80.65
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/361167/ft1_filtered_4FGL_J0535.3+0934_weekly_bin724.fits', '/scratch/kocevski/361167/ft2_4FGL_J0535.3+0934_weekly_bin724.fits', expMap='/scratch/kocevski/361167/expmap_676857601_677462401_4FGL_J0535.3+0934_weekly_bin724.fits', expCube='/scratch/kocevski/361167/ltcube_676857601_677462401_4FGL_J0535.3+0934_weekly_bin724.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/361167/Model_4FGL_J0535.3+0934_weekly_bin724.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0535.3+0934'

4FGL J0535.3+0934
   Spectrum: PowerLaw
257    Prefactor:  3.878e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
258        Index:  2.624e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  1.059e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/361167/ft1_filtered_4FGL_J0535.3+0934_weekly_bin724.fits
Spacecraft file(s): /scratch/kocevski/361167/ft2_4FGL_J0535.3+0934_weekly_bin724.fits
Exposure map: /scratch/kocevski/361167/expmap_676857601_677462401_4FGL_J0535.3+0934_weekly_bin724.fits
Exposure cube: /scratch/kocevski/361167/ltcube_676857601_677462401_4FGL_J0535.3+0934_weekly_bin724.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/361167/Model_4FGL_J0535.3+0934_weekly_bin724.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) = 2901.84140242

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.039       1.0000         .10000E-03   10000.    
     2 'Prefactor '    70.141       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13208E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.2231       1.0000         .10000E-03   10000.    
     6 'norm      '    9.7264       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.7648       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    46.197       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .22947E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11305E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .95224E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .17172E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .12255E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .24401E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .28647E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11501E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .17213E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    27.156       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .92555       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .71602       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5860E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2901.800     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2449 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.047        5.3055       -.45580E-06    .41277E-04
   2  Prefactor     70.417        92.871       -.68206E-05    .59373E-04
   3  Prefactor     .10000E-03    74.640        .75495E-05** at limit **
   4  Prefactor     .10000E-03    8.6185       -.14881E-06** at limit **
   5  norm          1.2223        1.7387        .12025E-05    .44603E-03
   6  norm          9.7271        9.0053       -.66230E-06    .16565E-03
   7  Prefactor     6.7763        11.498       -.10265E-05    .41699E-04
   8  norm          .10000E-03    10.514       -.49271E-06** at limit **
   9  Prefactor     46.184        29.271       -.39648E-05    .81773E-04
  10  Prefactor     .10007E-03    6954.2       -.31023E-04** at limit **
  11  Prefactor     .10000E-03    56.973       -.13583E-05** at limit **
  12  Prefactor     .29499        22.091       -.59524E-05    .29403E-03
  13  norm          .10000E-03    539.79       -.64368E-05** at limit **
  14  norm          .10000E-03    3.9946       -.68707E-06** at limit **
  15  Prefactor     .10000E-03    219.38       -.65296E-06** at limit **
  16  Prefactor     .10000E-03    922.59       -.35200E-05** at limit **
  17  Prefactor     .10000E-03    1021.2       -.10453E-05** at limit **
  18  Prefactor     .10000E-03    535.74       -.29788E-05** at limit **
  19  norm          .10000E-03    189.52        .15946E-05** at limit **
  20  norm          27.201        21.497       -.27281E-05    .15859E-03
  21  Normalizat    .92322        .65507        .58229E-05    .24158E-03
  22  Prefactor     .71579        .11461        .31749E-05    .76702E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.0466
  Prefactor  = 70.4166
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.22234
  norm       = 9.72707
  Prefactor  = 6.77632
  norm       = 0.0001
  Prefactor  = 46.1839
  Prefactor  = 0.000100073
  Prefactor  = 0.0001
  Prefactor  = 0.294987
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 27.201
  Normalizat = 0.923215
  Prefactor  = 0.715794
 **********
 **   18 **HESSE 
 **********

 FCN=   2901.800     FROM HESSE     STATUS=OK           340 CALLS     2789 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.047        5.3220        .83900E-04   -1.5074    
   2  Prefactor     70.417        94.132        .23965E-03   -1.4028    
   3  Prefactor     .10000E-03    73.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.6243        .15446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.2223        1.6564        .64435E-04   -1.5487    
   6  norm          9.7271        9.0381        .12849E-03   -1.5084    
   7  Prefactor     6.7763        11.508        .15427E-03   -1.5187    
   8  norm          .10000E-03    10.538        .17058E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     46.184        29.037        .58991E-04   -1.4348    
  10  Prefactor     .10007E-03    6952.8        .18274E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    57.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .29499        346.47        .41205E-02   -1.5599    
  13  norm          .10000E-03    548.20        .20361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    46.972        .20668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    219.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    924.27        .19878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1021.2        .20668E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    536.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    189.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          27.201        21.817        .76876E-04   -1.4664    
  21  Normalizat    .92322        .68032        .65290E-03   -.95649    
  22  Prefactor     .71579        .12037        .14381E-03   -1.0291    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.74029e-09
Minuit parameter uncertainties:
  1  5.32221
  2  94.332
  3  0.000321543
  4  2.60107e-06
  5  1.65647
  6  9.03933
  7  11.5115
  8  6.64283e-06
  9  29.0456
  10  0.0365785
  11  8.44987e-05
  12  20.3347
  13  0.00112456
  14  7.17287e-05
  15  6.95825e-05
  16  0.00332942
  17  0.001698
  18  0.000200942
  19  0.000268285
  20  21.8235
  21  0.686811
  22  0.120417
Done.

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

Extracting fit parameters...

4FGL J0535.3+0934
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  6.958e-05  1.000e-04  1.000e+04 ( 1.000e-13)
258        Index:  2.624e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
259        Scale:  1.059e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
567    Prefactor:  7.158e-01  1.204e-01  0.000e+00  1.000e+01 ( 1.000e+00)
568        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
569        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
566   Normalization:  9.232e-01  6.868e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 83.841 9.582
Photon Flux Upper Limit: 1.40e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.09e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/361167/likelihoodResults_676857601_677462401_4FGL_J0535.3+0934_weekly_bin724.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) = 2901.79981147
delta logL = -2.15576046685e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2901.79978978
delta logL = 1.32303284772e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.6770       1.0000          .0000       10.000    
     3 'Normalizat'    .92320       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71580       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5860E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2901.800     FROM MIGRAD    STATUS=CONVERGED     69 CALLS      267 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .62096        .11729    ** at limit **
   2  Index         3.7236        6.3578        .50000       -.91109E-06
   3  Normalizat    .92320        .16760E-02    .14695       -.38185E-05
   4  Prefactor     .71579        .33047E-03    .32544E-01   -.51495E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 3.72355
  Normalizat = 0.923202
  Prefactor  = 0.715794
 **********
 **   18 **HESSE 
 **********

 FCN=   2901.800     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      302 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    184.31        .79008E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.7236        6.0357        .50000       -.25815    
   3  Normalizat    .92320        .91532E-02    .65303E-03   -.95650    
   4  Prefactor     .71579        .18155E-02    .14381E-03   -1.0291    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.16332e-09
Minuit parameter uncertainties:
  1  0.000790929
  2  184.548
  3  0.00915319
  4  0.00181548
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/361167': 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): 102
logL (Free Index) = 2901.79978977
delta logL = 1.41327291203e-07

Extracting fit parameters...

4FGL J0535.3+0934
   Spectrum: PowerLaw
257    Prefactor:  1.000e-04  7.909e-04  1.000e-04  1.000e+04 ( 1.000e-13)
258        Index:  3.724e+00  1.845e+02  0.000e+00  1.000e+01 (-1.000e+00)
259        Scale:  1.059e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
567    Prefactor:  7.158e-01  1.815e-03  0.000e+00  1.000e+01 ( 1.000e+00)
568        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
569        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
566   Normalization:  9.232e-01  9.153e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 83.841 9.582

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/361167/cmap_HighResolution_676857601_677462401_4FGL_J0535.3+0934_weekly_bin724.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-01', job_status='DONE', photon_flux_upper_limit='1.40e-06', time_completed='2022-06-21 00:20:43.862635', job_id='361167', GAL2='0.72', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1655796043.86', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='1.41e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='724' AND source_name='4FGL J0535.3+0934' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun 21 00:20:43 PDT 2022

UCCESS', return_code='0', GAL='0.72', dlogl='1.41e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.62' WHERE bin_id='724' AND source_name='4FGL J0535.3+0934' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun 21 00:19:34 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 361103: <4FGL_J0535.3+0934_weekly_bin724> in cluster <slac> Done

Job <4FGL_J0535.3+0934_weekly_bin724> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Jun 21 00:05:26 2022
Job was executed on host(s) <bullet0162>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jun 21 00:09:44 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jun 21 00:09:44 2022
Terminated at Tue Jun 21 00:19:35 2022
Results reported at Tue Jun 21 00:19:35 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0535.3+0934_weekly_bin724 83.8408 9.5824 676857601 677462401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0535.3+0934 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   560.00 sec.
    Max Memory :                                 621 MB
    Average Memory :                             297.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   590 sec.
    Turnaround time :                            849 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 361167: <4FGL_J0535.3+0934_weekly_bin724> in cluster <slac> Done

Job <4FGL_J0535.3+0934_weekly_bin724> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Jun 21 00:05:29 2022
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jun 21 00:10:12 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jun 21 00:10:12 2022
Terminated at Tue Jun 21 00:20:44 2022
Results reported at Tue Jun 21 00:20:44 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0535.3+0934_weekly_bin724 83.8408 9.5824 676857601 677462401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0535.3+0934 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   546.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             303.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   632 sec.
    Turnaround time :                            915 sec.

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

