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 46 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 = 17252
number of fields = 31
RA_SUN column already exists. File wDone.


Performing anDone.


Performing analysis on: 4FGL_J0333.9+6537_weekly_bin715
RA = 53.4767, Dec = 65.6188
tmin = 671414401, tmax = 672019201
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='933850', job_status='RUN', time_executed='2022-04-19 02:22:53.724897', time_epoch_executed='1650360173.72' WHERE source_name='4FGL J0333.9+6537' and cadence='weekly' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/933850

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/933850/ft1_4FGL_J0333.9+6537_weekly_bin715.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/933850/ft2_4FGL_J0333.9+6537_weekly_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/933850/ft1_4FGL_J0333.9+6537_weekly_bin715.fits outfile=/scratch/kocevski/933850/ft1_filteredMKT_4FGL_J0333.9+6537_weekly_bin715.fits ra=53.4767 dec=65.6188 rad=12.0 tmin=671414401.0 tmax=672019201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 7.68
user 7.40
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/933850/ft2_4FGL_J0333.9+6537_weekly_bin715.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/933850/ft2_4FGL_J0333.9+6537_weekly_bin715.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/933850/ft1_filteredMKT_4FGL_J0333.9+6537_weekly_bin715.fits evtable="EVENTS" outfile="/scratch/kocevski/933850/ft1_filtered_4FGL_J0333.9+6537_weekly_bin715.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.56
user 0.39
sys 0.16

Number of photons that the gtmktime cut: 8431

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/933850/ft1_filtered_4FGL_J0333.9+6537_weekly_bin715.fits" evtable="EVENTS" scfile=/scratch/kocevski/933850/ft2_4FGL_J0333.9+6537_weekly_bin715.fits sctable="SC_DATA" outfile=/scratch/kocevski/933850/ltcube_671414401_672019201_4FGL_J0333.9+6537_weekly_bin715.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/933850/ft2_4FGL_J0333.9+6537_weekly_bin715.fits
.....................!
real 28.90
user 28.45
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/933850/ft1_filtered_4FGL_J0333.9+6537_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/933850/ft2_4FGL_J0333.9+6537_weekly_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/933850/ltcube_671414401_672019201_4FGL_J0333.9+6537_weekly_bin715.fits outfile=/scratch/kocevski/933850/expmap_671414401_672019201_4FGL_J0333.9+6537_weekly_bin715.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/933850/ltcube_671414401_672019201_4FGL_J0333.9+6537_weekly_bin715.fits
.....................!
real 193.54
user 187.40
sys 5.76

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 HB 3 in ROI with RadialDisk spatial model.
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Added 183 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 J0333.9+6537 @ 53.4767 65.6188

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/933850/ft1_filtered_4FGL_J0333.9+6537_weekly_bin715.fits scfile=/scratch/kocevski/933850/ft2_4FGL_J0333.9+6537_weekly_bin715.fits outfile=/scratch/kocevski/933850/cmap_671414401_672019201_4FGL_J0333.9+6537_weekly_bin715.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=53.4767 yref=65.6188 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.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/933850/ft1_filtered_4FGL_J0333.9+6537_weekly_bin715.fits scfile=/scratch/kocevski/933850/ft2_4FGL_J0333.9+6537_weekly_bin715.fits outfile=/scratch/kocevski/933850/cmap_HighResolution_671414401_672019201_4FGL_J0333.9+6537_weekly_bin715.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=53.4767 yref=65.6188 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.60
user 0.43
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/933850/ft1_filtered_4FGL_J0333.9+6537_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/933850/ft2_4FGL_J0333.9+6537_weekly_bin715.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/933850/Model_4FGL_J0333.9+6537_weekly_bin715.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 G150.3+4.5
adding source GAL_V02
adding source HB 3
adding source W 3
Working on...
/scratch/kocevski/933850/ft1_filtered_4FGL_J0333.9+6537_weekly_bin715.fits.....................!
real 1114.74
user 1110.11
sys 2.06

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/933850/ft1_filtered_4FGL_J0333.9+6537_weekly_bin715.fits', '/scratch/kocevski/933850/ft2_4FGL_J0333.9+6537_weekly_bin715.fits', expMap='/scratch/kocevski/933850/expmap_671414401_672019201_4FGL_J0333.9+6537_weekly_bin715.fits', expCube='/scratch/kocevski/933850/ltcube_671414401_672019201_4FGL_J0333.9+6537_weekly_bin715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/933850/Model_4FGL_J0333.9+6537_weekly_bin715.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0333.9+6537'

4FGL J0333.9+6537
   Spectrum: PowerLaw
342    Prefactor:  1.000e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
343        Index:  1.975e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
344        Scale:  3.569e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/933850/ft1_filtered_4FGL_J0333.9+6537_weekly_bin715.fits
Spacecraft file(s): /scratch/kocevski/933850/ft2_4FGL_J0333.9+6537_weekly_bin715.fits
Exposure map: /scratch/kocevski/933850/expmap_671414401_672019201_4FGL_J0333.9+6537_weekly_bin715.fits
Exposure cube: /scratch/kocevski/933850/ltcube_671414401_672019201_4FGL_J0333.9+6537_weekly_bin715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/933850/Model_4FGL_J0333.9+6537_weekly_bin715.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) = 78687.4022597

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.585       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.7641       1.0000         .10000E-03   10000.    
     3 'norm      '    .10777E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.1133       1.0000         .10000E-03   10000.    
     5 'norm      '    3.3311       1.0000         .10000E-03   10000.    
     6 'norm      '    1.8220       1.0000         .10000E-03   10000.    
     7 'norm      '    2.6521       1.0000         .10000E-03   10000.    
     8 'Prefactor '    19.717       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.7453       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.810       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.7468       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    11.183       1.0000         .10000E-03   10000.    
    16 'norm      '    14.447       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.305       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2068       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97710       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   78687.37     FROM MIGRAD    STATUS=CONVERGED    415 CALLS     2049 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.563        26.911       -.38240E-04   -.80592E-04
   2  Prefactor     1.7641        .54103       -.41170E-07   -.71166E-03
   3  norm          .10000E-03    3.6772        .73970E-06** at limit **
   4  Prefactor     9.1130        2.3535        .11692E-05   -.36857E-02
   5  norm          3.3311        .34132       -.17823E-07   -.22276E-03
   6  norm          1.8213        2.9326       -.59627E-06   -.46430E-02
   7  norm          2.6531        1.8489        .17549E-06   -.81673E-02
   8  Prefactor     19.697        19.762       -.16453E-04   -.94757E-04
   9  Prefactor     2.7461        2.0910       -.48786E-07   -.70890E-02
  10  Prefactor     .10000E-03    .46404        .20742E-06** at limit **
  11  Prefactor     15.810        12.806       -.41153E-06   -.17449E-04
  12  Prefactor     .10000E-03    32.251        .36877E-05** at limit **
  13  Prefactor     1.7469        3.6627       -.61604E-06   -.25538E-03
  14  Prefactor     .10000E-03    6.8381        .76031E-09** at limit **
  15  norm          11.183        6.5455       -.98282E-07    .10922E-05
  16  norm          14.449        13.152       -.41143E-06    .10738E-04
  17  Prefactor     10.305        6.9513       -.21274E-06    .10126E-04
  18  Prefactor     .10000E-03    16.636       -.80142E-06** at limit **
  19  Normalizat    1.2069        .16811        .36221E-05    .18455E-03
  20  Prefactor     .97709        .19423E-01    .19059E-06   -.57486E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.5633
  Prefactor  = 1.76406
  norm       = 0.000100002
  Prefactor  = 9.11304
  norm       = 3.33106
  norm       = 1.82134
  norm       = 2.65308
  Prefactor  = 19.6965
  Prefactor  = 2.74613
  Prefactor  = 0.0001
  Prefactor  = 15.8098
  Prefactor  = 0.0001
  Prefactor  = 1.74687
  Prefactor  = 0.0001
  norm       = 11.1829
  norm       = 14.4494
  Prefactor  = 10.3045
  Prefactor  = 0.0001
  Normalizat = 1.20687
  Prefactor  = 0.977091
 **********
 **   18 **HESSE 
 **********

 FCN=   78687.37     FROM HESSE     STATUS=OK           299 CALLS     2348 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.563        26.904        .12315E-03   -1.5058    
   2  Prefactor     1.7641        .53873        .11011E-03   -1.5442    
   3  norm          .10000E-03    3.7088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.1130        2.3686        .66382E-03   -1.5104    
   5  norm          3.3311        .34126        .50282E-04   -1.5343    
   6  norm          1.8213        3.5958        .15467E-02   -1.5438    
   7  norm          2.6531        2.1937        .12516E-02   -1.5382    
   8  Prefactor     19.697        19.802        .90200E-04   -1.4820    
   9  Prefactor     2.7461        2.4450        .12285E-02   -1.5377    
  10  Prefactor     .10000E-03    .46768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.810        12.813        .10073E-03   -1.4913    
  12  Prefactor     .10000E-03    32.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.7469        3.6537        .31730E-03   -1.5444    
  14  Prefactor     .10000E-03    6.8472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          11.183        6.5398        .11980E-03   -1.5039    
  16  norm          14.449        13.144        .10538E-03   -1.4948    
  17  Prefactor     10.305        6.9522        .12482E-03   -1.5066    
  18  Prefactor     .10000E-03    16.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2069        .16716        .91435E-03   -.86391    
  20  Prefactor     .97709        .19783E-01    .12025E-03   -.93497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91134e-08
Minuit parameter uncertainties:
  1  26.9349
  2  0.538733
  3  0.000167778
  4  2.36859
  5  0.341263
  6  3.59624
  7  2.19378
  8  19.8083
  9  2.44506
  10  1.39947e-05
  11  12.8156
  12  0.000166453
  13  3.6542
  14  1.50257e-05
  15  6.54017
  16  13.1463
  17  6.95273
  18  4.32757e-05
  19  0.16Done.

MINUIT Return Done.

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

Extracting fit parameters...

4FGL J0333.9+6537
   Spectrum: PowerLaw
342    Prefactor:  1.000e-04  1.399e-05  1.000e-04  1.000e+04 ( 1.000e-13)
343        Index:  1.975e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
344        Scale:  3.569e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
618    Prefactor:  9.771e-01  1.978e-02  0.000e+00  1.000e+01 ( 1.000e+00)
619        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
620        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  1.207e+00  1.672e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 53.477 65.619
Photon Flux Upper Limit: 2.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.18e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/933850/likelihoodResults_671414401_672019201_4FGL_J0333.9+6537_weekly_bin715.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) = 78687.3752859
delta logL = -0.0101951603428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 78687.3650909
delta logL = -1.90077116713e-07

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   78687.37     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      211 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .20952        .90712E-02** at limit **
   2  Index         1.9736        2.4780        .50000        .10696E-04
   3  Normalizat    1.2069        .32514E-02    .20498        .31042E-03
   4  Prefactor     .97709        .39163E-03    .27209E-01   -.20330E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.97362
  Normalizat = 1.20687
  Prefactor  = 0.977091
 **********
 **   18 **HESSE 
 **********

 FCN=   78687.37     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      244 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9736        8.5712        .50000       -.65011    
   3  Normalizat    1.2069        .22868E-01    .91435E-03   -.86391    
   4  Prefactor     .97709        .27806E-02    .12025E-03   -.93497    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.62889e-09
Minuit parameter uncertainties:
  1  9.67764e-06
  2  18.5712
  3  0.0228681
  4  0.00278058
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/933850': 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) = 78687.3650907
delta logL = 5.93718141317e-09

Extracting fit parameters...

4FGL J0333.9+6537
   Spectrum: PowerLaw
342    Prefactor:  1.000e-04  9.678e-06  1.000e-04  1.000e+04 ( 1.000e-13)
343        Index:  1.974e+00  1.857e+01  0.000e+00  1.000e+01 (-1.000e+00)
344        Scale:  3.569e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
618    Prefactor:  9.771e-01  2.781e-03  0.000e+00  1.000e+01 ( 1.000e+00)
619        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
620        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  1.207e+00  2.287e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 53.477 65.619

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/933850/cmap_HighResolution_671414401_672019201_4FGL_J0333.9+6537_weekly_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.18e-03', job_status='DONE', photon_flux_upper_limit='2.92e-08', time_completed='2022-04-19 03:51:49.653934', job_id='933850', GAL2='0.98', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1650365509.65', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='5.94e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.98' WHERE bin_id='715' AND source_name='4FGL J0333.9+6537' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 19 03:51:49 PDT 2022

----------------------------------------
Sender: LSF System <lsf@bullet0004>
Subject: Job 930150: <4FGL_J0333.9+6537_weekly_bin715> in cluster <slac> Done

Job <4FGL_J0333.9+6537_weekly_bin715> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Apr 19 00:05:45 2022
Job was executed on host(s) <bullet0004>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:10:11 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:10:11 2022
Terminated at Tue Apr 19 03:41:20 2022
Results reported at Tue Apr 19 03:41:20 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0333.9+6537_weekly_bin715 53.4767 65.6188 671414401 672019201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0333.9+6537 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   5392.00 sec.
    Max Memory :                                 1264 MB
    Average Memory :                             456.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   5468 sec.
    Turnaround time :                            12935 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 933850: <4FGL_J0333.9+6537_weekly_bin715> in cluster <slac> Done

Job <4FGL_J0333.9+6537_weekly_bin715> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Apr 19 00:16:38 2022
Job was executed on host(s) <bullet0166>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:21:59 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:21:59 2022
Terminated at Tue Apr 19 03:51:50 2022
Results reported at Tue Apr 19 03:51:50 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0333.9+6537_weekly_bin715 53.4767 65.6188 671414401 672019201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0333.9+6537 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   5328.00 sec.
    Max Memory :                                 1264 MB
    Average Memory :                             461.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   39 MB
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   5391 sec.
    Turnaround time :                            12912 sec.

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

