aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  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 0 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 = 17017
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0539.6+1432_weekly_bin596
RA = 84.9052, Dec = 14.5443
tmin = 599443201, tmax = 600048001
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='231935', job_status='RUN', time_executed='2021-07-08 23:39:49.793357', time_epoch_executed='1625812789.79' WHERE source_name='4FGL J0539.6+1432' and cadence='weekly' and bin_id='596'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/231935

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/231935/ft1_4FGL_J0539.6+1432_weekly_bin596.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/231935/ft2_4FGL_J0539.6+1432_weekly_bin596.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/231935/ft1_4FGL_J0539.6+1432_weekly_bin596.fits outfile=/scratch/kocevski/231935/ft1_filteredMKT_4FGL_J0539.6+1432_weekly_bin596.fits ra=84.9052 dec=14.5443 rad=12.0 tmin=599443201.0 tmax=600048001.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.25
user 4.94
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/231935/ft2_4FGL_J0539.6+1432_weekly_bin596.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/231935/ft2_4FGL_J0539.6+1432_weekly_bin596.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/231935/ft1_filteredMKT_4FGL_J0539.6+1432_weekly_bin596.fits evtable="EVENTS" outfile="/scratch/kocevski/231935/ft1_filtered_4FGL_J0539.6+1432_weekly_bin596.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.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/231935/ft1_filtered_4FGL_J0539.6+1432_weekly_bin596.fits" evtable="EVENTS" scfile=/scratch/kocevski/231935/ft2_4FGL_J0539.6+1432_weekly_bin596.fits sctable="SC_DATA" outfile=/scratch/kocevski/231935/ltcube_599443201_600048001_4FGL_J0539.6+1432_weekly_bin596.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/231935/ft2_4FGL_J0539.6+1432_weekly_bin596.fits
.....................!
real 30.00
user 29.48
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/231935/ft1_filtered_4FGL_J0539.6+1432_weekly_bin596.fits evtable="EVENTS" scfile=/scratch/kocevski/231935/ft2_4FGL_J0539.6+1432_weekly_bin596.fits sctable="SC_DATA" expcube=/scratch/kocevski/231935/ltcube_599443201_600048001_4FGL_J0539.6+1432_weekly_bin596.fits outfile=/scratch/kocevski/231935/expmap_599443201_600048001_4FGL_J0539.6+1432_weekly_bin596.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/231935/ltcube_599443201_600048001_4FGL_J0539.6+1432_weekly_bin596.fits
.....................!
real 190.76
user 185.70
sys 4.49

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 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 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.
Added 171 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 J0539.6+1432 @ 84.9052 14.5443

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/231935/ft1_filtered_4FGL_J0539.6+1432_weekly_bin596.fits scfile=/scratch/kocevski/231935/ft2_4FGL_J0539.6+1432_weekly_bin596.fits outfile=/scratch/kocevski/231935/cmap_599443201_600048001_4FGL_J0539.6+1432_weekly_bin596.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=84.9052 yref=14.5443 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.58
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/231935/ft1_filtered_4FGL_J0539.6+1432_weekly_bin596.fits scfile=/scratch/kocevski/231935/ft2_4FGL_J0539.6+1432_weekly_bin596.fits outfile=/scratch/kocevski/231935/cmap_HighResolution_599443201_600048001_4FGL_J0539.6+1432_weekly_bin596.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=84.9052 yref=14.5443 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.58
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/231935/ft1_filtered_4FGL_J0539.6+1432_weekly_bin596.fits evtable="EVENTS" scfile=/scratch/kocevski/231935/ft2_4FGL_J0539.6+1432_weekly_bin596.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/231935/Model_4FGL_J0539.6+1432_weekly_bin596.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/231935/ft1_filtered_4FGL_J0539.6+1432_weekly_bin596.fits.....................!
real 53.20
user 51.69
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/231935/ft1_filtered_4FGL_J0539.6+1432_weekly_bin596.fits', '/scratch/kocevski/231935/ft2_4FGL_J0539.6+1432_weekly_bin596.fits', expMap='/scratch/kocevski/231935/expmap_599443201_600048001_4FGL_J0539.6+1432_weekly_bin596.fits', expCube='/scratch/kocevski/231935/ltcube_599443201_600048001_4FGL_J0539.6+1432_weekly_bin596.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/231935/Model_4FGL_J0539.6+1432_weekly_bin596.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0539.6+1432'

4FGL J0539.6+1432
   Spectrum: PowerLaw
281    Prefactor:  1.737e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.545e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  8.434e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/231935/ft1_filtered_4FGL_J0539.6+1432_weekly_bin596.fits
Spacecraft file(s): /scratch/kocevski/231935/ft2_4FGL_J0539.6+1432_weekly_bin596.fits
Exposure map: /scratch/kocevski/231935/expmap_599443201_600048001_4FGL_J0539.6+1432_weekly_bin596.fits
Exposure cube: /scratch/kocevski/231935/ltcube_599443201_600048001_4FGL_J0539.6+1432_weekly_bin596.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/231935/Model_4FGL_J0539.6+1432_weekly_bin596.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1723.90526329

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1719.8519058

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    84.282       1.0000         .10000E-03   10000.    
     2 'norm      '    9.4426       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    11.102       1.0000         .10000E-03   10000.    
     5 'Prefactor '    34.399       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1646       1.0000         .10000E-03   10000.    
     7 'norm      '    10.969       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .40901E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .70650E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5169       1.0000         .10000E-03   10000.    
    12 'norm      '    9.7229       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .73897E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .53755       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.9554       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .37139E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    .38309E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.7669       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .44168       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .74505       1.0000          .0000       10.000    
    22 'norm      '    3.4642       1.0000         .10000E-03   10000.    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1719.839     FROM MIGRAD    STATUS=CONVERGED    172 CALLS      509 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     83.992        10.137       -.32516E-05   -.21050E-01
   2  norm          9.4977        8.2534       -.20664E-05   -.55019E-04
   3  Prefactor     .10000E-03    31.695        .39751E-04** at limit **
   4  norm          11.108        18.190       -.26066E-04   -.76541E-03
   5  Prefactor     34.752        28.867       -.11623E-04    .51012E-03
   6  Prefactor     .10018E-03    188.87        .96790E-04** at limit **
   7  norm          11.588        16.835        .50644E-05   -.15179E-03
   8  Prefactor     .10006E-03    1.8426       -.77784E-05** at limit **
   9  norm          .10000E-03    29.848       -.19843E-04** at limit **
  10  norm          .10000E-03    1.5037       -.13128E-05** at limit **
  11  Prefactor     1.4506        1.4257       -.89205E-05   -.35823E-02
  12  norm          12.099        51.031        .60347E-04   -.18776E-02
  13  Prefactor     .10000E-03    3.9330       -.32092E-05** at limit **
  14  Prefactor     .10019E-03    80.389        .36744E-04** at limit **
  15  Prefactor     .10005E-03    124.77       -.22359E-04** at limit **
  16  Prefactor     10.509        1055.9        .25811E-03    .19228E-04
  17  Prefactor     .10000E-03    16.659       -.94909E-05** at limit **
  18  norm          .10000E-03    38.123       -.20273E-04** at limit **
  19  Prefactor     1.7669        1.0470         .0000         .0000    
  20  Normalizat    .44799        .81683        .14050E-03   -.19479E-04
  21  Prefactor     .74343        .16628        .10104E-04   -.14572E-03
  22  norm          3.4642        1.0108       -.12342E-33    .18741E-31
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 83.9916
  norm       = 9.4977
  Prefactor  = 0.0001
  norm       = 11.1085
  Prefactor  = 34.7522
  Prefactor  = 0.000100178
  norm       = 11.5875
  Prefactor  = 0.000100061
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.4506
  norm       = 12.0988
  Prefactor  = 0.0001
  Prefactor  = 0.000100186
  Prefactor  = 0.000100052
  Prefactor  = 10.5086
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.76693
  Normalizat = 0.447987
  Prefactor  = 0.743433
  norm       = 3.46418
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1719.839     FROM HESSE     STATUS=FAILED        87 CALLS      596 TOTAL
                     EDM=   .76E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     83.992        39.413        .10939E-02   -1.3872    
   2  norm          9.4977        8.1625        .32604E-02   -1.5092    
   3  Prefactor     .10000E-03    9.1986        .68080E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          11.108        17.232        .30060E-02   -1.5041    
   5  Prefactor     34.752        26.769        .17081E-02   -1.4528    
   6  Prefactor     .10018E-03    187.78        .69985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.588        15.816        .30241E-02   -1.5027    
   8  Prefactor     .10006E-03    95.635        .10627E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    29.526        .93704E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.4960        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.4506        .63316        .48033E-02   -1.5467    
  12  norm          12.099        22.992        .32129E-02   -1.5012    
  13  Prefactor     .10000E-03    3.9304        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10019E-03    80.243        .93860E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10005E-03    124.21        .11423E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.509        990.23        .74178E-02   -1.5060    
  17  Prefactor     .10000E-03    16.521        .97925E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    38.114        .92129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     572.94        571.01         .0000       -1.5442    
  20  Normalizat    .44799        .77247        .14050E-03   -1.1489    
  21  Prefactor     .74343        1.0935        .10104E-04   -1.0185    
  22  norm          3.4642        1.0108       -.12342E-33   -1.5336    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.56228e-10
Minuit parameter uncertainties:
  1  39.4255
  2  8.16344
  3  6.50717e-05
  4  17.2395
  5  26.7779
  6  0.0115954
  7  15.8214
  8  0.00482753
  9  0.000110296
  10  2.2012e-06
  11  0.63316
  12  23.0088
  13  3.77163e-06
  14  0.00774388
  15  0.00508179
  16  207.662
  17  5.45586e-05
  18  2.65332e-05
  19  1.04701
  20  0.792119
  21  1.12796
  22  1.01081
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1719.83949698

Extracting fit parameters...

4FGL J0539.6+1432
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  5.456e-05  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.545e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
283        Scale:  8.434e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
583    Prefactor:  7.434e-01  1.128e+00  0.000e+00  1.000e+01 ( 1.000e+00)
584        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
585        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  4.480e-01  7.921e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 84.905 14.544
Photon Flux Upper Limit: 1.22e-06 ph cm-2 s-1
Energy Flux Upper Limit: 9.49e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/231935/likelihoodResults_599443201_600048001_4FGL_J0539.6+1432_weekly_bin596.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) = 1719.83978316
delta logL = -0.000286183937988

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1719.83950188
delta logL = -4.9018210575e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.7818       1.0000          .0000       10.000    
     3 'Normalizat'    .44794       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74343       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+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=   1719.840     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      275 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    9.1589        .10229E-02** at limit **
   2  Index         3.7609        6.8606        .50000        .32707E-04
   3  Normalizat    .44799        .74962        .10093E-02   -.30411E-05
   4  Prefactor     .74343        .14762        .14667E-03   -.15038E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Index      = 3.76092
  Normalizat = 0.447986
  Prefactor  = 0.743434
 **********
 **   18 **HESSE 
 **********

 FCN=   1719.840     FROM HESSE     STATUS=OK            29 CALLS      304 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    6.5144        .20458E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.7609        6.7588        .50000       -.25043    
   3  Normalizat    .44799        .74913        .40374E-04   -1.1489    
   4  Prefactor     .74343        .14752        .58667E-05   -1.0185    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44342e-09
Minuit parameter uncertainties:
  1  0.000426978
  2  4.87849
  3  0.766981
  4  0.1476
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/231935': 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) = 1719.83950172
delta logL = -4.74038915854e-06

Extracting fit parameters...

4FGL J0539.6+1432
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  4.270e-04  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  3.761e+00  4.878e+00  0.000e+00  1.000e+01 (-1.000e+00)
283        Scale:  8.434e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
583    Prefactor:  7.434e-01  1.476e-01  0.000e+00  1.000e+01 ( 1.000e+00)
584        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
585        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  4.480e-01  7.670e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 84.905 14.544

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/231935/cmap_HighResolution_599443201_600048001_4FGL_J0539.6+1432_weekly_bin596.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.49e-02', job_status='DONE', photon_flux_upper_limit='1.22e-06', time_completed='2021-07-08 23:46:55.772560', job_id='231935', GAL2='0.74', fit_tolerance='1e-08', EG2='0.45', EG='0.45', time_epoch_completed='1625813215.77', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.74', dlogl='-4.74e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='596' AND source_name='4FGL J0539.6+1432' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Thu Jul  8 23:46:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0006>
Subject: Job 231935: <4FGL_J0539.6+1432_weekly_bin596> in cluster <slac> Done

Job <4FGL_J0539.6+1432_weekly_bin596> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Jul  8 23:36:47 2021
Job was executed on host(s) <bullet0006>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jul  8 23:39:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jul  8 23:39:21 2021
Terminated at Thu Jul  8 23:46:56 2021
Results reported at Thu Jul  8 23:46:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0539.6+1432_weekly_bin596 84.9052 14.5443 599443201 600048001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0539.6+1432 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   412.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             319.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   458 sec.
    Turnaround time :                            609 sec.

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

