/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 78 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 = 7394
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0539.9-2839_daily_bin1406
RA = 84.9952, Dec = -28.6585
tmin = 603763201, tmax = 604022401
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='711848', job_status='RUN', time_executed='2021-08-23 14:48:26.976358', time_epoch_executed='1629755306.98' WHERE source_name='4FGL J0539.9-2839' and cadence='daily' and bin_id='1406'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/711848

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/711848/ft1_4FGL_J0539.9-2839_daily_bin1406.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/711848/ft2_4FGL_J0539.9-2839_daily_bin1406.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/711848/ft1_4FGL_J0539.9-2839_daily_bin1406.fits outfile=/scratch/kocevski/711848/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1406.fits ra=84.9952 dec=-28.6585 rad=12.0 tmin=603763201.0 tmax=604022401.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 9.27
user 3.96
sys 5.09

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/711848/ft2_4FGL_J0539.9-2839_daily_bin1406.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/711848/ft2_4FGL_J0539.9-2839_daily_bin1406.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/711848/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1406.fits evtable="EVENTS" outfile="/scratch/kocevski/711848/ft1_filtered_4FGL_J0539.9-2839_daily_bin1406.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 5.49
user 0.32
sys 5.05

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/711848/ft1_filtered_4FGL_J0539.9-2839_daily_bin1406.fits" evtable="EVENTS" scfile=/scratch/kocevski/711848/ft2_4FGL_J0539.9-2839_daily_bin1406.fits sctable="SC_DATA" outfile=/scratch/kocevski/711848/ltcube_603763201_604022401_4FGL_J0539.9-2839_daily_bin1406.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/711848/ft2_4FGL_J0539.9-2839_daily_bin1406.fits
.....................!
real 17.37
user 11.39
sys 5.84

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/711848/ft1_filtered_4FGL_J0539.9-2839_daily_bin1406.fits evtable="EVENTS" scfile=/scratch/kocevski/711848/ft2_4FGL_J0539.9-2839_daily_bin1406.fits sctable="SC_DATA" expcube=/scratch/kocevski/711848/ltcube_603763201_604022401_4FGL_J0539.9-2839_daily_bin1406.fits outfile=/scratch/kocevski/711848/expmap_603763201_604022401_4FGL_J0539.9-2839_daily_bin1406.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/711848/ltcube_603763201_604022401_4FGL_J0539.9-2839_daily_bin1406.fits
.....................!
real 198.79
user 187.21
sys 10.64

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
Added 171 point sources and 0 extended sources

Setting source of interest to:
4FGL J0539.9-2839 @ 84.9952 -28.6585

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/711848/ft1_filtered_4FGL_J0539.9-2839_daily_bin1406.fits scfile=/scratch/kocevski/711848/ft2_4FGL_J0539.9-2839_daily_bin1406.fits outfile=/scratch/kocevski/711848/cmap_603763201_604022401_4FGL_J0539.9-2839_daily_bin1406.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.9952 yref=-28.6585 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 5.40
user 0.38
sys 4.93

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/711848/ft1_filtered_4FGL_J0539.9-2839_daily_bin1406.fits scfile=/scratch/kocevski/711848/ft2_4FGL_J0539.9-2839_daily_bin1406.fits outfile=/scratch/kocevski/711848/cmap_HighResolution_603763201_604022401_4FGL_J0539.9-2839_daily_bin1406.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.9952 yref=-28.6585 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 5.34
user 0.39
sys 4.90

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/711848/ft1_filtered_4FGL_J0539.9-2839_daily_bin1406.fits evtable="EVENTS" scfile=/scratch/kocevski/711848/ft2_4FGL_J0539.9-2839_daily_bin1406.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/711848/Model_4FGL_J0539.9-2839_daily_bin1406.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
Working on...
/scratch/kocevski/711848/ft1_filtered_4FGL_J0539.9-2839_daily_bin1406.fits.....................!
real 72.69
user 62.75
sys 7.61

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/711848/ft1_filtered_4FGL_J0539.9-2839_daily_bin1406.fits', '/scratch/kocevski/711848/ft2_4FGL_J0539.9-2839_daily_bin1406.fits', expMap='/scratch/kocevski/711848/expmap_603763201_604022401_4FGL_J0539.9-2839_daily_bin1406.fits', expCube='/scratch/kocevski/711848/ltcube_603763201_604022401_4FGL_J0539.9-2839_daily_bin1406.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/711848/Model_4FGL_J0539.9-2839_daily_bin1406.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0539.9-2839'

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  2.014e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
259        alpha:  2.677e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
260         beta:  1.119e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
261           Eb:  3.935e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/711848/ft1_filtered_4FGL_J0539.9-2839_daily_bin1406.fits
Spacecraft file(s): /scratch/kocevski/711848/ft2_4FGL_J0539.9-2839_daily_bin1406.fits
Exposure map: /scratch/kocevski/711848/expmap_603763201_604022401_4FGL_J0539.9-2839_daily_bin1406.fits
Exposure cube: /scratch/kocevski/711848/ltcube_603763201_604022401_4FGL_J0539.9-2839_daily_bin1406.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/711848/Model_4FGL_J0539.9-2839_daily_bin1406.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) = 5110.49946076

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    144.86       1.0000         .10000E-03   10000.    
     2 'norm      '    5.8233       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.959       1.0000         .10000E-03   10000.    
     4 'norm      '    .74649       1.0000         .10000E-03   10000.    
     5 'Prefactor '    157.14       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.4848       1.0000         .10000E-03   10000.    
     8 'norm      '    3.4066       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.4920       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.4463       1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.879       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .17730E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.050       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    53.525       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10143E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    16.190       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .57804       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2404       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5660E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5110.497     FROM MIGRAD    STATUS=CONVERGED    697 CALLS     3558 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          144.86        190.34       -.38481E-05   -.53192E-06
   2  norm          5.8238        5.2466       -.26503E-06   -.25664E-03
   3  Prefactor     15.960        8.9283        .15911E-06   -.36241E-04
   4  norm          .74649        .26916       -.15415E-07   -.35605E-04
   5  Prefactor     157.10        138.22       -.33841E-04   -.24269E-04
   6  norm          .10000E-03    71.676        .64614E-06** at limit **
   7  Prefactor     1.4884        6.0266        .18955E-05   -.60508E-03
   8  norm          3.4071        3.3898        .92544E-06   -.35552E-03
   9  Prefactor     .10000E-03    19.441       -.46289E-05** at limit **
  10  Prefactor     4.4892        7.8528       -.31822E-06   -.27307E-03
  11  Prefactor     .10000E-03    11.740       -.11282E-06** at limit **
  12  Prefactor     .10000E-03    14.254        .50329E-05** at limit **
  13  norm          8.4460        6.8515       -.83318E-06   -.44087E-03
  14  Prefactor     26.878        29.839       -.11894E-06   -.14208E-04
  15  norm          .10000E-03    1.4998       -.56096E-07** at limit **
  16  norm          .10008E-03    8.0896       -.38054E-06** at limit **
  17  Prefactor     27.049        11.510       -.25453E-07    .57677E-06
  18  Prefactor     .10000E-03    39.970       -.11578E-05** at limit **
  19  Prefactor     53.525        52.780       -.63086E-06   -.33314E-05
  20  Prefactor     .10000E-03    8.5754       -.35333E-07** at limit **
  21  Prefactor     .10000E-03    12.942       -.49716E-05** at limit **
  22  norm          .10000E-03    9.2648        .11880E-07** at limit **
  23  Prefactor     .10000E-03    22.104        .38691E-05** at limit **
  24  Prefactor     .10000E-03    3.4278       -.18918E-06** at limit **
  25  Prefactor     .10000E-03    11.652        .19573E-05** at limit **
  26  norm          16.187        26.936        .11872E-06   -.10634E-04
  27  Normalizat    .57785        .26242        .40360E-05   -.67456E-04
  28  Prefactor     1.2405        .18704       -.53372E-06   -.92530E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 144.86
  norm       = 5.82384
  Prefactor  = 15.96
  norm       = 0.746488
  Prefactor  = 157.096
  norm       = 0.0001
  Prefactor  = 1.48841
  norm       = 3.40715
  Prefactor  = 0.0001
  Prefactor  = 4.48924
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.44603
  Prefactor  = 26.8778
  norm       = 0.0001
  norm       = 0.000100083
  Prefactor  = 27.0488
  Prefactor  = 0.0001
  Prefactor  = 53.5251
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 16.1866
  Normalizat = 0.577849
  Prefactor  = 1.24048
 **********
 **   18 **HESSE 
 **********

 FCN=   5110.497     FROM HESSE     STATUS=OK           529 CALLS     4087 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          144.86        190.34        .16739E-03   -1.3295    
   2  norm          5.8238        5.2433        .14379E-03   -1.5225    
   3  Prefactor     15.960        8.9411        .10026E-03   -1.4909    
   4  norm          .74649        .26828        .21406E-04   -1.5535    
   5  Prefactor     157.10        135.17        .16081E-03   -1.3195    
   6  norm          .10000E-03    71.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.4884        5.7232        .28789E-03   -1.5464    
   8  norm          3.4071        3.3293        .11395E-03   -1.5339    
   9  Prefactor     .10000E-03    19.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.4892        7.7433        .18997E-03   -1.5284    
  11  Prefactor     .10000E-03    11.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.4460        6.8451        .13794E-03   -1.5127    
  14  Prefactor     26.878        29.821        .77271E-04   -1.4671    
  15  norm          .10000E-03    1.5476        .17062E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10008E-03    9.8950        .74287E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     27.049        11.506        .77027E-04   -1.4667    
  18  Prefactor     .10000E-03    39.980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     53.525        52.760        .54823E-04   -1.4243    
  20  Prefactor     .10000E-03    8.5783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    9.5452        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    22.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    3.4414        .12923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    11.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          16.187        26.967        .99541E-04   -1.4903    
  27  Normalizat    .57785        .28332        .38647E-03   -1.0893    
  28  Prefactor     1.2405        .20492        .21028E-03   -.85095    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.16663e-10
Minuit parameter uncertainties:
  1  191.155
  2  5.24374
  3  8.94182
  4  0.268282
  5  135.436
  6  1.86714e-05
  7  5.72531
  8  3.32947
  9  1.54625e-05
  10  7.74505
  11  2.40766e-06
  12  3.84331e-05
  13  6.84575
  14  29.8371
  15  7.03326e-06
  16  0.00180795
  17  11.5072
  18  1.81468e-05
  19  52.8058
  20  5.05044e-06
  21  3.83825e-06
  22  2.80509e-05
  23  3.60379e-05
  24  3.7688e-06
  25  9.92108e-06
  26  26.9871
  27  0.284029
  28  0.20505
Done.

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

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  1.000e-04  7.033e-06  1.000e-04  1.000e+04 ( 1.000e-11)
259        alpha:  2.677e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
260         beta:  1.119e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
261           Eb:  3.935e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
563    Prefactor:  1.240e+00  2.050e-01  0.000e+00  1.000e+01 ( 1.000e+00)
564        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
565        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
562   Normalization:  5.778e-01  2.840e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 84.995 -28.659
Photon Flux Upper Limit: 1.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.41e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/711848/likelihoodResults_603763201_604022401_4FGL_J0539.9-2839_daily_bin1406.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): 0
logL (Free Index) = 5110.50002186
delta logL = -0.00306602309865

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5110.49695648
delta logL = -6.41656697553e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6787       1.0000          .0000       5.0000    
     3 'Normalizat'    .57806       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2404       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5660E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5110.497     FROM MIGRAD    STATUS=FAILED        83 CALLS      229 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10004E-03    1.5692        .17063E-03** at limit **
   2  alpha         2.7048        3.4128        .16514       -.27418E-05
   3  Normalizat    .57785        .25528        .38647E-03   -.18900E-03
   4  Prefactor     1.2405        .19880        .21028E-03   -.15664E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5110.497     FROM SIMPLEX   STATUS=UNCHANGED    117 CALLS      346 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10004E-03    1.5692        .11744E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7048        3.4128        .81993E-03    .82026E-01
   3  Normalizat    .57785        .25528        .19644E-03   -1.0893    
   4  Prefactor     1.2405        .19880        .92338E-04   -.85095    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5110.497     FROM MIGRAD    STATUS=CONVERGED     27 CALLS      373 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.5505        .34125E-04** at limit **
   2  alpha         2.7311        2.8759        .66056E-02   -.24439E-07
   3  Normalizat    .57785        .25539        .15459E-04    .19121E-04
   4  Prefactor     1.2405        .19889        .42057E-04    .14111E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.73114
  Normalizat = 0.577851
  Prefactor  = 1.24047
 **********
 **   18 **HESSE 
 **********

 FCN=   5110.497     FROM HESSE     STATUS=OK            23 CALLS      396 TOTAL
                     EDM=   .54E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.5505        .68251E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7311        2.9508        .13211E-02    .92587E-01
   3  Normalizat    .57785        .25532        .30917E-05   -1.0893    
   4  Prefactor     1.2405        .19886        .84113E-05   -.85095    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.3738e-12
Minuit parameter uncertainties:
  1  3.13828e-06
  2  155.467
  3  0.25584
  4  0.198977
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/711848': 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) = 5110.49695578
delta logL = 6.14018063061e-08

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  1.000e-04  3.138e-06  1.000e-04  1.000e+04 ( 1.000e-11)
259        alpha:  2.731e+00  1.555e+02  0.000e+00  5.000e+00 ( 1.000e+00)
260         beta:  1.119e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
261           Eb:  3.935e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
563    Prefactor:  1.240e+00  1.990e-01  0.000e+00  1.000e+01 ( 1.000e+00)
564        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
565        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
562   Normalization:  5.779e-01  2.558e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 84.995 -28.659

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/711848/cmap_HighResolution_603763201_604022401_4FGL_J0539.9-2839_daily_bin1406.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.41e-05', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-08-23 15:01:14.296090', job_id='711848', GAL2='1.24', fit_tolerance='1e-08', EG2='0.58', EG='0.58', time_epoch_completed='1629756074.3', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='6.14e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1406' AND source_name='4FGL J0539.9-2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 15:01:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 711848: <4FGL_J0539.9-2839_daily_bin1406> in cluster <slac> Done

Job <4FGL_J0539.9-2839_daily_bin1406> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Aug 23 14:45:41 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 23 14:45:42 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 23 14:45:42 2021
Terminated at Mon Aug 23 15:01:16 2021
Results reported at Mon Aug 23 15:01:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0539.9-2839_daily_bin1406 84.9952 -28.6585 603763201 604022401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0539.9-2839 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   839.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             265.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            935 sec.

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

