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


Performing analysis on: 4FGL_J0539.9-2839_daily_bin1601
RA = 84.9952, Dec = -28.6585
tmin = 654307201, tmax = 654566401
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='540831', job_status='RUN', time_executed='2021-09-29 00:13:05.644565', time_epoch_executed='1632899585.64' WHERE source_name='4FGL J0539.9-2839' and cadence='daily' and bin_id='1601'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/540831

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/540831/ft1_4FGL_J0539.9-2839_daily_bin1601.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/540831/ft2_4FGL_J0539.9-2839_daily_bin1601.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/540831/ft1_4FGL_J0539.9-2839_daily_bin1601.fits outfile=/scratch/kocevski/540831/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1601.fits ra=84.9952 dec=-28.6585 rad=12.0 tmin=654307201.0 tmax=654566401.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 4.22
user 4.00
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/540831/ft2_4FGL_J0539.9-2839_daily_bin1601.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/540831/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1601.fits evtable="EVENTS" outfile="/scratch/kocevski/540831/ft1_filtered_4FGL_J0539.9-2839_daily_bin1601.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/540831/ft1_filtered_4FGL_J0539.9-2839_daily_bin1601.fits" evtable="EVENTS" scfile=/scratch/kocevski/540831/ft2_4FGL_J0539.9-2839_daily_bin1601.fits sctable="SC_DATA" outfile=/scratch/kocevski/540831/ltcube_654307201_654566401_4FGL_J0539.9-2839_daily_bin1601.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/540831/ft2_4FGL_J0539.9-2839_daily_bin1601.fits
.....................!
real 11.94
user 11.58
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/540831/ft1_filtered_4FGL_J0539.9-2839_daily_bin1601.fits evtable="EVENTS" scfile=/scratch/kocevski/540831/ft2_4FGL_J0539.9-2839_daily_bin1601.fits sctable="SC_DATA" expcube=/scratch/kocevski/540831/ltcube_654307201_654566401_4FGL_J0539.9-2839_daily_bin1601.fits outfile=/scratch/kocevski/540831/expmap_654307201_654566401_4FGL_J0539.9-2839_daily_bin1601.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/540831/ltcube_654307201_654566401_4FGL_J0539.9-2839_daily_bin1601.fits
.....................!
real 191.76
user 186.49
sys 4.72

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/540831/ft1_filtered_4FGL_J0539.9-2839_daily_bin1601.fits scfile=/scratch/kocevski/540831/ft2_4FGL_J0539.9-2839_daily_bin1601.fits outfile=/scratch/kocevski/540831/cmap_654307201_654566401_4FGL_J0539.9-2839_daily_bin1601.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/540831/ft1_filtered_4FGL_J0539.9-2839_daily_bin1601.fits scfile=/scratch/kocevski/540831/ft2_4FGL_J0539.9-2839_daily_bin1601.fits outfile=/scratch/kocevski/540831/cmap_HighResolution_654307201_654566401_4FGL_J0539.9-2839_daily_bin1601.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/540831/ft1_filtered_4FGL_J0539.9-2839_daily_bin1601.fits evtable="EVENTS" scfile=/scratch/kocevski/540831/ft2_4FGL_J0539.9-2839_daily_bin1601.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/540831/Model_4FGL_J0539.9-2839_daily_bin1601.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/540831/ft1_filtered_4FGL_J0539.9-2839_daily_bin1601.fits.....................!
real 71.64
user 70.21
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10308E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.3543       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.3721       1.0000         .10000E-03   10000.    
     5 'Prefactor '    39.594       1.0000         .10000E-03   10000.    
     6 'norm      '    .10296E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.5424       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7523       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    11.066       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.200       1.0000         .10000E-03   10000.    
    15 'norm      '    .99857       1.0000         .10000E-03   10000.    
    16 'norm      '    .62436E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .34835E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.2324       1.0000         .10000E-03   10000.    
    24 'Prefactor '    6.6118       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .18992E-02   1.0000         .10000E-03   10000.    
    26 'norm      '    57.727       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3335       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .77226       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=   5631.456     FROM MIGRAD    STATUS=CONVERGED    705 CALLS     3519 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    113.22       -.35274E-05** at limit **
   2  norm          3.3562        4.3853       -.12276E-05    .32944E-03
   3  Prefactor     .10000E-03    3.3195       -.27428E-06** at limit **
   4  norm          2.3722        .41452       -.14416E-07    .12251E-02
   5  Prefactor     39.638        101.61       -.79147E-05   -.47807E-04
   6  norm          .10000E-03    131.10        .33983E-05** at limit **
   7  Prefactor     .10000E-03    1.6653       -.61278E-06** at limit **
   8  norm          5.5428        3.1055       -.16964E-06    .55374E-03
   9  Prefactor     .10000E-03    14.074       -.20907E-06** at limit **
  10  Prefactor     1.7526        4.0455       -.19194E-05    .26129E-03
  11  Prefactor     .10000E-03    9.6336       -.26695E-07** at limit **
  12  Prefactor     .10000E-03    17.069       -.11359E-05** at limit **
  13  norm          11.066        6.3061        .20819E-06    .35394E-03
  14  Prefactor     15.202        22.079        .15498E-06    .23521E-04
  15  norm          .99936        2.1348       -.23407E-05    .40227E-05
  16  norm          .10002E-03    10.767       -.56075E-05** at limit **
  17  Prefactor     .10000E-03    5.1883       -.14810E-06** at limit **
  18  Prefactor     .10000E-03    28.375       -.13295E-05** at limit **
  19  Prefactor     .10000E-03    49.026        .37140E-05** at limit **
  20  Prefactor     .10000E-03    30.307       -.12492E-06** at limit **
  21  Prefactor     .10001E-03    66.988       -.61290E-05** at limit **
  22  norm          .10001E-03    8.5981        .69635E-06** at limit **
  23  Prefactor     1.2359        87.984       -.17996E-04    .46365E-04
  24  Prefactor     6.6098        8.4456       -.41835E-06   -.34888E-04
  25  Prefactor     .10003E-03    247.67       -.54946E-04** at limit **
  26  norm          57.724        39.758       -.86700E-06    .14638E-03
  27  Normalizat    1.3330        .24304        .35885E-05    .32044E-03
  28  Prefactor     .77249        .16893        .92444E-06    .83790E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  norm       = 3.35617
  Prefactor  = 0.0001
  norm       = 2.37216
  Prefactor  = 39.6377
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 5.54284
  Prefactor  = 0.0001
  Prefactor  = 1.7526
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.0662
  Prefactor  = 15.2015
  norm       = 0.999355
  norm       = 0.000100022
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 0.00010001
  Prefactor  = 1.23588
  Prefactor  = 6.60978
  Prefactor  = 0.000100029
  norm       = 57.7242
  Normalizat = 1.33299
  Prefactor  = 0.772493
 **********
 **   18 **HESSE 
 **********

 FCN=   5631.456     FROM HESSE     STATUS=OK           515 CALLS     4034 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    113.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.3562        4.3753        .17089E-03   -1.5342    
   3  Prefactor     .10000E-03    3.3509        .13352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.3722        .41510        .19351E-04   -1.5400    
   5  Prefactor     39.638        101.95        .63700E-04   -1.4448    
   6  norm          .10000E-03    131.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1.6675        .94444E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.5428        3.0982        .93084E-04   -1.5237    
   9  Prefactor     .10000E-03    14.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.7526        3.9999        .22090E-03   -1.5443    
  11  Prefactor     .10000E-03    9.6683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.066        6.2929        .12043E-03   -1.5043    
  14  Prefactor     15.202        22.061        .10273E-03   -1.4928    
  15  norm          .99936        2.1139        .15311E-03   -1.5508    
  16  norm          .10002E-03    58.975        .43069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.2331        .16681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    28.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    49.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    30.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    67.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10001E-03    20.896        .37179E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.2359        86.694        .40487E-03   -1.5486    
  24  Prefactor     6.6098        7.7124        .15606E-03   -1.5194    
  25  Prefactor     .10003E-03    248.36        .76598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          57.724        39.589        .52801E-04   -1.4187    
  27  Normalizat    1.3330        .27900        .28022E-03   -.82587    
  28  Prefactor     .77249        .19668        .25924E-03   -1.0075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.07866e-09
Minuit parameter uncertainties:
  1  0.000969743
  2  4.37568
  3  1.05007e-05
  4  0.415103
  5  102.4
  6  0.000803239
  7  1.53969e-05
  8  3.09832
  9  2.5814e-05
  10  4.00055
  11  2.1172e-06
  12  3.54067e-05
  13  6.2933
  14  22.0728
  15  2.11404
  16  0.00230128
  17  2.29059e-05
  18  0.000177762
  19  0.000534074
  20  1.36681e-05
  21  0.00118448
  22  0.00091284
  23  20.7325
  24  7.71353
  25  0.00534858
  26  39.6071
  27  0.279317
  28  0.196853
Done.

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

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  9.994e-01  2.114e+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.725e-01  1.969e-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.333e+00  2.793e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/540831/likelihoodResults_654307201_654566401_4FGL_J0539.9-2839_daily_bin1601.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) = 5631.19484776
delta logL = 0.261273614381

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5631.19153292
delta logL = 0.264588460774

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1019       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7924       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3475       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76274       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=   5631.192     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      212 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1022        1.9219        .26047E-01   -.13792E-02
   2  alpha         1.7920        .73824        .43457       -.57084E-04
   3  Normalizat    1.3475        .22492        .63045E-01    .70173E-05
   4  Prefactor     .76273        .16348        .43230E-01    .14427E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.10222
  alpha      = 1.79195
  Normalizat = 1.34754
  Prefactor  = 0.762729
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1022        1.9530        .13217E-02   -1.5498    
   2  alpha         1.7920        1.0631        .22884E-01   -.28715    
   3  Normalizat    1.3475        .26297        .27885E-03   -.82158    
   4  Prefactor     .76273        .19112        .26058E-03   -1.0112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80821e-09
Minuit parameter uncertainties:
  1  1.95312
  2  1.10148
  3  0.263232
  4  0.191283
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/540831': 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) = 5631.19153267
delta logL = 0.26458870952

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  1.102e+00  1.953e+00  1.000e-04  1.000e+04 ( 1.000e-11)
259        alpha:  1.792e+00  1.101e+00  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.627e-01  1.913e-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.348e+00  2.632e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.28
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/540831/cmap_HighResolution_654307201_654566401_4FGL_J0539.9-2839_daily_bin1601.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.14e-05', job_status='DONE', photon_flux_upper_limit='1.33e-07', time_completed='2021-09-29 00:25:12.577927', job_id='540831', GAL2='0.76', fit_tolerance='1e-08', EG2='1.35', EG='1.33', time_epoch_completed='1632900312.58', return_code2='0', ts='0.28', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='2.65e-01', ts2='0.81', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1601' AND source_name='4FGL J0539.9-2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 29 00:25:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 540831: <4FGL_J0539.9-2839_daily_bin1601> in cluster <slac> Done

Job <4FGL_J0539.9-2839_daily_bin1601> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Sep 29 00:10:20 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 29 00:10:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 29 00:10:22 2021
Terminated at Wed Sep 29 00:25:13 2021
Results reported at Wed Sep 29 00:25:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0539.9-2839_daily_bin1601 84.9952 -28.6585 654307201 654566401 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 :                                   729.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             330.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            893 sec.

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

