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


Performing analysis on: 4FGL_J0539.9-2839_daily_bin1147
RA = 84.9952, Dec = -28.6585
tmin = 536630401, tmax = 536889601
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='711478', job_status='RUN', time_executed='2021-08-23 14:46:11.797254', time_epoch_executed='1629755171.8' WHERE source_name='4FGL J0539.9-2839' and cadence='daily' and bin_id='1147'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/711478

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/711478/ft1_4FGL_J0539.9-2839_daily_bin1147.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/711478/ft2_4FGL_J0539.9-2839_daily_bin1147.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/711478/ft1_4FGL_J0539.9-2839_daily_bin1147.fits outfile=/scratch/kocevski/711478/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1147.fits ra=84.9952 dec=-28.6585 rad=12.0 tmin=536630401.0 tmax=536889601.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 3.59
user 3.32
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/711478/ft2_4FGL_J0539.9-2839_daily_bin1147.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/711478/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1147.fits evtable="EVENTS" outfile="/scratch/kocevski/711478/ft1_filtered_4FGL_J0539.9-2839_daily_bin1147.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.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/711478/ft1_filtered_4FGL_J0539.9-2839_daily_bin1147.fits" evtable="EVENTS" scfile=/scratch/kocevski/711478/ft2_4FGL_J0539.9-2839_daily_bin1147.fits sctable="SC_DATA" outfile=/scratch/kocevski/711478/ltcube_536630401_536889601_4FGL_J0539.9-2839_daily_bin1147.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/711478/ft2_4FGL_J0539.9-2839_daily_bin1147.fits
.....................!
real 15.54
user 15.01
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/711478/ft1_filtered_4FGL_J0539.9-2839_daily_bin1147.fits evtable="EVENTS" scfile=/scratch/kocevski/711478/ft2_4FGL_J0539.9-2839_daily_bin1147.fits sctable="SC_DATA" expcube=/scratch/kocevski/711478/ltcube_536630401_536889601_4FGL_J0539.9-2839_daily_bin1147.fits outfile=/scratch/kocevski/711478/expmap_536630401_536889601_4FGL_J0539.9-2839_daily_bin1147.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/711478/ltcube_536630401_536889601_4FGL_J0539.9-2839_daily_bin1147.fits
.....................!
real 193.51
user 187.59
sys 5.16

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/711478/ft1_filtered_4FGL_J0539.9-2839_daily_bin1147.fits scfile=/scratch/kocevski/711478/ft2_4FGL_J0539.9-2839_daily_bin1147.fits outfile=/scratch/kocevski/711478/cmap_536630401_536889601_4FGL_J0539.9-2839_daily_bin1147.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 0.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/711478/ft1_filtered_4FGL_J0539.9-2839_daily_bin1147.fits scfile=/scratch/kocevski/711478/ft2_4FGL_J0539.9-2839_daily_bin1147.fits outfile=/scratch/kocevski/711478/cmap_HighResolution_536630401_536889601_4FGL_J0539.9-2839_daily_bin1147.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 0.58
user 0.39
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/711478/ft1_filtered_4FGL_J0539.9-2839_daily_bin1147.fits evtable="EVENTS" scfile=/scratch/kocevski/711478/ft2_4FGL_J0539.9-2839_daily_bin1147.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/711478/Model_4FGL_J0539.9-2839_daily_bin1147.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/711478/ft1_filtered_4FGL_J0539.9-2839_daily_bin1147.fits.....................!
real 83.22
user 81.63
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/711478/ft1_filtered_4FGL_J0539.9-2839_daily_bin1147.fits', '/scratch/kocevski/711478/ft2_4FGL_J0539.9-2839_daily_bin1147.fits', expMap='/scratch/kocevski/711478/expmap_536630401_536889601_4FGL_J0539.9-2839_daily_bin1147.fits', expCube='/scratch/kocevski/711478/ltcube_536630401_536889601_4FGL_J0539.9-2839_daily_bin1147.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/711478/Model_4FGL_J0539.9-2839_daily_bin1147.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/711478/ft1_filtered_4FGL_J0539.9-2839_daily_bin1147.fits
Spacecraft file(s): /scratch/kocevski/711478/ft2_4FGL_J0539.9-2839_daily_bin1147.fits
Exposure map: /scratch/kocevski/711478/expmap_536630401_536889601_4FGL_J0539.9-2839_daily_bin1147.fits
Exposure cube: /scratch/kocevski/711478/ltcube_536630401_536889601_4FGL_J0539.9-2839_daily_bin1147.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/711478/Model_4FGL_J0539.9-2839_daily_bin1147.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) = 6626.18272169

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    35.900       1.0000         .10000E-03   10000.    
     2 'norm      '    5.5149       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .52682       1.0000         .10000E-03   10000.    
     4 'norm      '    .47154       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    44.480       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    20.660       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.9496       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.9327       1.0000         .10000E-03   10000.    
    13 'norm      '    .79364       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .63425       1.0000         .10000E-03   10000.    
    16 'norm      '    13.423       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.2235       1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.899       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    7.6916       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .51092       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .39009E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10725E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    21.072       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0601       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .78793       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=   6626.119     FROM MIGRAD    STATUS=CONVERGED    686 CALLS     3491 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          35.885        120.79       -.21335E-04   -.26265E-05
   2  norm          5.5123        4.2760       -.73651E-06   -.59961E-04
   3  Prefactor     .52522        1.1564        .54911E-06   -.36637E-02
   4  norm          .47153        .17983        .37073E-08    .21119E-03
   5  Prefactor     .10000E-03    21.079        .47895E-05** at limit **
   6  norm          44.435        68.965       -.55794E-04   -.26285E-04
   7  Prefactor     .10000E-03    1.4378        .10016E-07** at limit **
   8  norm          20.663        3.7034       -.43015E-07    .27660E-03
   9  Prefactor     .10000E-03    11.039        .52964E-05** at limit **
  10  Prefactor     1.9493        3.9319       -.40328E-07   -.15017E-02
  11  Prefactor     .10000E-03    5.0747       -.21977E-06** at limit **
  12  Prefactor     5.9555        8.3109        .54699E-06    .10309E-03
  13  norm          .77652        5.2240       -.75875E-06    .96117E-04
  14  Prefactor     .10000E-03    9.1867       -.17465E-05** at limit **
  15  norm          .63434        1.4341        .13425E-06    .58878E-05
  16  norm          13.424        12.829       -.39607E-06   -.96736E-06
  17  Prefactor     4.2225        5.2579        .10110E-05    .19641E-04
  18  Prefactor     19.889        33.756       -.12551E-04   -.93608E-05
  19  Prefactor     .10000E-03    9.4989       -.13412E-05** at limit **
  20  Prefactor     .10000E-03    13.523        .74464E-06** at limit **
  21  Prefactor     .10000E-03    14.884       -.52732E-05** at limit **
  22  norm          7.6797        5.4152        .19858E-05    .46119E-03
  23  Prefactor     .52489        6.8127        .42126E-07   -.70383E-04
  24  Prefactor     .10003E-03    5.1576       -.89588E-06** at limit **
  25  Prefactor     .10000E-03    51.916        .66992E-06** at limit **
  26  norm          21.066        22.443       -.32034E-05    .12690E-05
  27  Normalizat    1.0605        .18996       -.65600E-06    .18116E-03
  28  Prefactor     .78775        .13877        .15746E-05    .89461E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 35.8851
  norm       = 5.51233
  Prefactor  = 0.52522
  norm       = 0.471534
  Prefactor  = 0.0001
  norm       = 44.4352
  Prefactor  = 0.0001
  norm       = 20.6628
  Prefactor  = 0.0001
  Prefactor  = 1.94933
  Prefactor  = 0.0001
  Prefactor  = 5.95548
  norm       = 0.776518
  Prefactor  = 0.0001
  norm       = 0.634339
  norm       = 13.4237
  Prefactor  = 4.22252
  Prefactor  = 19.8889
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.67965
  Prefactor  = 0.524887
  Prefactor  = 0.000100025
  Prefactor  = 0.0001
  norm       = 21.0656
  Normalizat = 1.06045
  Prefactor  = 0.787748
 **********
 **   18 **HESSE 
 **********

 FCN=   6626.119     FROM HESSE     STATUS=OK           531 CALLS     4022 TOTAL
                     EDM=   .76E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          35.885        120.89        .66887E-04   -1.4509    
   2  norm          5.5123        4.3203        .13821E-03   -1.5238    
   3  Prefactor     .52522        5.3136        .17817E-02   -1.5563    
   4  norm          .47153        .18028        .20670E-04   -1.5571    
   5  Prefactor     .10000E-03    21.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          44.435        68.835        .30057E-03   -1.4374    
   7  Prefactor     .10000E-03    1.4489        .95247E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          20.663        3.6792        .61969E-04   -1.4799    
   9  Prefactor     .10000E-03    11.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.9493        4.0483        .11465E-02   -1.5429    
  11  Prefactor     .10000E-03    5.0872        .17905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     5.9555        9.1136        .16486E-03   -1.5220    
  13  norm          .77652        11.265        .27069E-02   -1.5532    
  14  Prefactor     .10000E-03    9.1886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .63434        1.3225        .13696E-02   -1.5549    
  16  norm          13.424        12.831        .10933E-03   -1.4975    
  17  Prefactor     4.2225        5.2447        .19608E-03   -1.5297    
  18  Prefactor     19.889        33.711        .89787E-04   -1.4816    
  19  Prefactor     .10000E-03    9.5067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          7.6797        5.1260        .14453E-03   -1.5154    
  23  Prefactor     .52489        24.730        .40912E-02   -1.5563    
  24  Prefactor     .10003E-03    11.164        .33625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    53.329        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          21.066        22.444        .87255E-04   -1.4790    
  27  Normalizat    1.0605        .22221        .26669E-03   -.91032    
  28  Prefactor     .78775        .16395        .23139E-03   -1.0018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.61158e-08
Minuit parameter uncertainties:
  1  121.731
  2  4.32054
  3  3.3412
  4  0.180276
  5  1.0513e-05
  6  68.9582
  7  2.70535e-07
  8  3.67926
  9  7.88944e-06
  10  4.04883
  11  1.58999e-07
  12  9.11577
  13  5.91619
  14  2.48861e-06
  15  1.32252
  16  12.8334
  17  5.24528
  18  33.7434
  19  1.50294e-05
  20  3.51734e-06
  21  1.02199e-05
  22  5.12632
  23  7.20818
  24  0.00106018
  25  0.000130901
  26  22.4534
  27  0.222407
  28  0.164054
Done.

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

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  6.343e-01  1.323e+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

GAL_V02
   Spectrum: PowerLaw
563    Prefactor:  7.877e-01  1.641e-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:  1.060e+00  2.224e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.31
Ra Dec: 84.995 -28.659
Photon Flux Upper Limit: 8.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.08e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/711478/likelihoodResults_536630401_536889601_4FGL_J0539.9-2839_daily_bin1147.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) = 6625.21009161
delta logL = 0.908917806618

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6625.19990921
delta logL = 0.919100207219

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .77267       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2247       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0788       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77199       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.

 FCN=   6625.200     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      212 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .77329        .83236        .12338E-01   -.40006E-03
   2  alpha         1.2250        .44227        .41732       -.49034E-04
   3  Normalizat    1.0786        .17596        .59807E-01    .13241E-03
   4  Prefactor     .77213        .13414        .43352E-01   -.22520E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.773288
  alpha      = 1.22499
  Normalizat = 1.0786
  Prefactor  = 0.772128
 **********
 **   18 **HESSE 
 **********

 FCN=   6625.200     FROM HESSE     STATUS=OK            35 CALLS      247 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .77329        1.0543        .71974E-03   -1.5532    
   2  alpha         1.2250        .68339        .15781E-01   -.53519    
   3  Normalizat    1.0786        .20430        .26450E-03   -.90442    
   4  Prefactor     .77213        .15581        .23320E-03   -1.0076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.49717e-09
Minuit parameter uncertainties:
  1  1.05428
  2  0.695451
  3  0.204451
  4  0.155899
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/711478': 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) = 6625.19990858
delta logL = 0.919100832385

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  7.733e-01  1.054e+00  1.000e-04  1.000e+04 ( 1.000e-11)
259        alpha:  1.225e+00  6.955e-01  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:  7.721e-01  1.559e-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:  1.079e+00  2.045e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.16
Ra Dec: 84.995 -28.659
Photon Index (Free Index): 1.22 +/- 0.70
Photon Flux (Free Index): 1.02e-08 +/- 1.20e-08
Energy Flux (Free Index): 2.00e-05 +/- 2.92e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/711478/cmap_HighResolution_536630401_536889601_4FGL_J0539.9-2839_daily_bin1147.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.08e-05', comment='SUCCESS', energy_flux2='2.00e-05', dlogl='9.19e-01', photon_flux2='1.02e-08', job_status='DONE', time_completed='2021-08-23 15:00:10.416062', photon_index_error2='0.70', photon_index2='1.22', ts='0.31', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='8.87e-08', energy_flux_error2='2.92e-05', EG='1.06', time_epoch_completed='1629756010.42', return_code='0', job_id='711478', GAL2='0.77', EG2='1.08', return_code2='0', photon_flux_error2='1.20e-08', ts2='2.16', photon_index='2.68' WHERE bin_id='1147' AND source_name='4FGL J0539.9-2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 15:00:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 711478: <4FGL_J0539.9-2839_daily_bin1147> in cluster <slac> Done

Job <4FGL_J0539.9-2839_daily_bin1147> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Aug 23 14:45:16 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 23 14:45:17 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:17 2021
Terminated at Mon Aug 23 15:00:11 2021
Results reported at Mon Aug 23 15:00:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0539.9-2839_daily_bin1147 84.9952 -28.6585 536630401 536889601 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 :                                   837.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            895 sec.

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

