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 129 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 modifiedDoDone.


Performing analysis on: 4FGL_J0539.6+1432_weekly_bin724
RA = 84.9052, Dec = 14.5443
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='361180', job_status='RUN', time_executed='2022-06-21 00:12:38.116510', time_epoch_executed='1655795558.12' WHERE source_name='4FGL J0539.6+1432' and cadence='weekly' and bin_id='724'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/361180

Creating custom pfile directory:
/scratch/kocevski/361180/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/361180/ft1_4FGL_J0539.6+1432_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/361180/ft2_4FGL_J0539.6+1432_weekly_bin724.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/361180/ft1_4FGL_J0539.6+1432_weekly_bin724.fits outfile=/scratch/kocevski/361180/ft1_filteredMKT_4FGL_J0539.6+1432_weekly_bin724.fits ra=84.9052 dec=14.5443 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.83
user 5.52
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/361180/ft2_4FGL_J0539.6+1432_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/361180/ft1_filteredMKT_4FGL_J0539.6+1432_weekly_bin724.fits evtable="EVENTS" outfile="/scratch/kocevski/361180/ft1_filtered_4FGL_J0539.6+1432_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.37
sys 0.17

Number of photons that the gtmktime cut: 124

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/361180/ft1_filtered_4FGL_J0539.6+1432_weekly_bin724.fits" evtable="EVENTS" scfile=/scratch/kocevski/361180/ft2_4FGL_J0539.6+1432_weekly_bin724.fits sctable="SC_DATA" outfile=/scratch/kocevski/361180/ltcube_676857601_677462401_4FGL_J0539.6+1432_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/361180/ft2_4FGL_J0539.6+1432_weekly_bin724.fits
.....................!
real 32.89
user 32.44
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/361180/ft1_filtered_4FGL_J0539.6+1432_weekly_bin724.fits evtable="EVENTS" scfile=/scratch/kocevski/361180/ft2_4FGL_J0539.6+1432_weekly_bin724.fits sctable="SC_DATA" expcube=/scratch/kocevski/361180/ltcube_676857601_677462401_4FGL_J0539.6+1432_weekly_bin724.fits outfile=/scratch/kocevski/361180/expmap_676857601_677462401_4FGL_J0539.6+1432_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/361180/ltcube_676857601_677462401_4FGL_J0539.6+1432_weekly_bin724.fits
.....................!
real 192.25
user 186.52
sys 5.32

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/361180/ft1_filtered_4FGL_J0539.6+1432_weekly_bin724.fits scfile=/scratch/kocevski/361180/ft2_4FGL_J0539.6+1432_weekly_bin724.fits outfile=/scratch/kocevski/361180/cmap_676857601_677462401_4FGL_J0539.6+1432_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=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.57
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/361180/ft1_filtered_4FGL_J0539.6+1432_weekly_bin724.fits scfile=/scratch/kocevski/361180/ft2_4FGL_J0539.6+1432_weekly_bin724.fits outfile=/scratch/kocevski/361180/cmap_HighResolution_676857601_677462401_4FGL_J0539.6+1432_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=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.59
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/361180/ft1_filtered_4FGL_J0539.6+1432_weekly_bin724.fits evtable="EVENTS" scfile=/scratch/kocevski/361180/ft2_4FGL_J0539.6+1432_weekly_bin724.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/361180/Model_4FGL_J0539.6+1432_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/361180/ft1_filtered_4FGL_J0539.6+1432_weekly_bin724.fits.....................!
real 47.36
user 46.02
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/361180/ft1_filtered_4FGL_J0539.6+1432_weekly_bin724.fits', '/scratch/kocevski/361180/ft2_4FGL_J0539.6+1432_weekly_bin724.fits', expMap='/scratch/kocevski/361180/expmap_676857601_677462401_4FGL_J0539.6+1432_weekly_bin724.fits', expCube='/scratch/kocevski/361180/ltcube_676857601_677462401_4FGL_J0539.6+1432_weekly_bin724.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/361180/Model_4FGL_J0539.6+1432_weekly_bin724.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/361180/ft1_filtered_4FGL_J0539.6+1432_weekly_bin724.fits
Spacecraft file(s): /scratch/kocevski/361180/ft2_4FGL_J0539.6+1432_weekly_bin724.fits
Exposure map: /scratch/kocevski/361180/expmap_676857601_677462401_4FGL_J0539.6+1432_weekly_bin724.fits
Exposure cube: /scratch/kocevski/361180/ltcube_676857601_677462401_4FGL_J0539.6+1432_weekly_bin724.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/361180/Model_4FGL_J0539.6+1432_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) = 1494.4837538

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    10.693       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.141       1.0000         .10000E-03   10000.    
     4 'norm      '    1.1123       1.0000         .10000E-03   10000.    
     5 'Prefactor '    55.809       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12141E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    9.5901       1.0000         .10000E-03   10000.    
    10 'norm      '    2.5188       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    64.831       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .17681E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    48.562       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .51930E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11027E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    11.014       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    21 'Prefactor '    .59783       1.0000          .0000       10.000    
    22 'norm      '    2.5912       1.0000         .10000E-03   10000.    
 **********
 **   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.

 FCN=   1493.883     FROM MIGRAD    STATUS=CONVERGED    488 CALLS     2405 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.633       -.94407E-08** at limit **
   2  norm          10.691        8.5896       -.59496E-07    .12855E-03
   3  Prefactor     16.140        12.608       -.10644E-05    .30434E-03
   4  norm          1.1117        43.573       -.78772E-05    .14714E-03
   5  Prefactor     55.819        32.083        .15105E-05    .59565E-03
   6  Prefactor     .10000E-03    854.73       -.20364E-03** at limit **
   7  norm          .10000E-03    9.6723       -.62514E-07** at limit **
   8  Prefactor     .10000E-03    76.021        .45253E-06** at limit **
   9  norm          9.5349        264.62       -.14414E-03    .13936E-04
  10  norm          2.5161        7.4019       -.13818E-04   -.15163E-03
  11  Prefactor     .10000E-03    1.0962       -.16540E-06** at limit **
  12  norm          .10000E-03    27.929       -.48657E-07** at limit **
  13  Prefactor     64.832        25.842        .49842E-06    .38524E-03
  14  Prefactor     .10001E-03    292.63        .56346E-04** at limit **
  15  Prefactor     48.796        1183.5        .33352E-03    .25803E-04
  16  Prefactor     .10000E-03    885.11       -.12339E-03** at limit **
  17  Prefactor     .10000E-03    334.63       -.13893E-04** at limit **
  18  norm          10.972        112.37       -.61617E-04    .23485E-04
  19  Prefactor     .10000E-03    162.51       -.11304E-04** at limit **
  20  Normalizat    .10000E-01    .19755       -.15176E-05** at limit **
  21  Prefactor     .59778        .10390        .50967E-05    .56791E-03
  22  norm          2.5912        3.3780       -.82962E-07    .23241E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 10.6906
  Prefactor  = 16.1403
  norm       = 1.11168
  Prefactor  = 55.8194
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.53493
  norm       = 2.51605
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 64.8323
  Prefactor  = 0.000100013
  Prefactor  = 48.7958
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 10.9725
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.597776
  norm       = 2.59123
 **********
 **   18 **HESSE 
 **********

 FCN=   1493.883     FROM HESSE     STATUS=OK           340 CALLS     2745 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.654        .12876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          10.691        8.5850        .97691E-04   -1.5054    
   3  Prefactor     16.140        12.587        .99691E-04   -1.4904    
   4  norm          1.1117        125.36        .41753E-02   -1.5497    
   5  Prefactor     55.819        31.690        .53696E-04   -1.4212    
   6  Prefactor     .10000E-03    851.07        .20629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    9.7000        .11741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    76.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          9.5349        264.55        .12941E-03   -1.5090    
  10  norm          2.5161        7.3589        .12797E-03   -1.5391    
  11  Prefactor     .10000E-03    1.7541        .74660E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    27.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     64.832        24.487        .49842E-04   -1.4096    
  14  Prefactor     .10001E-03    291.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     48.796        1173.1        .57543E-04   -1.4310    
  16  Prefactor     .10000E-03    883.78        .21139E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    334.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.972        114.16        .12072E-03   -1.5045    
  19  Prefactor     .10000E-03    162.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .10000E-01    .20541        .10244E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .59778        .10333        .12630E-03   -1.0768    
  22  norm          2.5912        3.3711        .79191E-04   -1.5386    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9302e-09
Minuit parameter uncertainties:
  1  3.26456e-06
  2  8.58597
  3  12.5889
  4  23.6605
  5  31.6994
  6  0.00332858
  7  1.86024e-05
  8  1.25778e-05
  9  100.944
  10  7.36153
  11  2.19163e-05
  12  1.8759e-05
  13  24.4905
  14  0.00384926
  15  489.694
  16  0.000977263
  17  0.00230992
  18  70.9592
  19  2.94472e-05
  20  2.15922e-06
  21  0.103361
  22  3.37134
Done.

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

Extracting fit parameters...

4FGL J0539.6+1432
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  2.310e-03  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:  5.978e-01  1.034e-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:  1.000e-02  2.159e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/361180/likelihoodResults_676857601_677462401_4FGL_J0539.6+1432_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) = 1493.8829529
delta logL = -2.24050768338e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1493.882934
delta logL = -3.50857703779e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26030E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5238       1.0000          .0000       10.000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59778       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=   1493.883     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      271 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6361.3        .21449E-02** at limit **
   2  Index         2.5205        7.5676        .50000       -.29098E-05
   3  Normalizat    .10000E-01    .18612        .10244E-01** at limit **
   4  Prefactor     .59777        .78499E-01    .12630E-03   -.41633E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.5205
  Normalizat = 0.01
  Prefactor  = 0.597774
 **********
 **   18 **HESSE 
 **********

 FCN=   1493.883     FROM HESSE     STATUS=OK            29 CALLS      300 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    280.21        .42897E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5205        6.2591        .50000       -.51887    
   3  Normalizat    .10000E-01    .18981        .20487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .59777        .79250E-01    .50518E-05   -1.0768    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23157e-11
Minuit parameter uncertainties:
  1  0.00154787
  2  4.43577
  3  1.12816e-07
  4  0.079265
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/361180': 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) = 1493.88293051
delta logL = -1.65789515449e-08

Extracting fit parameters...

4FGL J0539.6+1432
   Spectrum: PowerLaw
281    Prefactor:  1.000e-04  1.548e-03  1.000e-04  1.000e+04 ( 1.000e-12)
282        Index:  2.520e+00  4.436e+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:  5.978e-01  7.926e-02  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:  1.000e-02  1.128e-07  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/361180/cmap_HighResolution_676857601_677462401_4FGL_J0539.6+1432_weekly_bin724.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.04e-01', job_status='DONE', photon_flux_upper_limit='7.74e-06', time_completed='2022-06-21 00:20:15.875526', job_id='361180', GAL2='0.60', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1655796015.88', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.60', dlogl='-1.66e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.55' WHERE bin_id='724' AND source_name='4FGL J0539.6+1432' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jun 21 00:20:15 PDT 2022

-----------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 361115: <4FGL_J0539.6+1432_weekly_bin724> in cluster <slac> Done

Job <4FGL_J0539.6+1432_weekly_bin724> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Jun 21 00:05:27 2022
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jun 21 00:09:49 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:49 2022
Terminated at Tue Jun 21 00:17:54 2022
Results reported at Tue Jun 21 00:17:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0539.6+1432_weekly_bin724 84.9052 14.5443 676857601 677462401 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 :                                   466.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             322.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   486 sec.
    Turnaround time :                            747 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 361180: <4FGL_J0539.6+1432_weekly_bin724> in cluster <slac> Done

Job <4FGL_J0539.6+1432_weekly_bin724> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Jun 21 00:05:30 2022
Job was executed on host(s) <bullet0227>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jun 21 00:10:20 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:20 2022
Terminated at Tue Jun 21 00:20:16 2022
Results reported at Tue Jun 21 00:20:16 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0539.6+1432_weekly_bin724 84.9052 14.5443 676857601 677462401 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 :                                   459.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             272.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   596 sec.
    Turnaround time :                            886 sec.

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

