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


Performing analysis on: 4FGL_J0539.9-2839_daily_bin1424
RA = 84.9952, Dec = -28.6585
tmin = 608428801, tmax = 608688001
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='713112', job_status='RUN', time_executed='2021-08-23 14:53:00.508192', time_epoch_executed='1629755580.51' WHERE source_name='4FGL J0539.9-2839' and cadence='daily' and bin_id='1424'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/713112

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/713112/ft1_4FGL_J0539.9-2839_daily_bin1424.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/713112/ft2_4FGL_J0539.9-2839_daily_bin1424.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/713112/ft1_4FGL_J0539.9-2839_daily_bin1424.fits outfile=/scratch/kocevski/713112/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1424.fits ra=84.9952 dec=-28.6585 rad=12.0 tmin=608428801.0 tmax=608688001.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.89
user 4.77
sys 1.03

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/713112/ft2_4FGL_J0539.9-2839_daily_bin1424.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/713112/ft1_filteredMKT_4FGL_J0539.9-2839_daily_bin1424.fits evtable="EVENTS" outfile="/scratch/kocevski/713112/ft1_filtered_4FGL_J0539.9-2839_daily_bin1424.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 1.38
user 0.35
sys 0.94

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/713112/ft1_filtered_4FGL_J0539.9-2839_daily_bin1424.fits" evtable="EVENTS" scfile=/scratch/kocevski/713112/ft2_4FGL_J0539.9-2839_daily_bin1424.fits sctable="SC_DATA" outfile=/scratch/kocevski/713112/ltcube_608428801_608688001_4FGL_J0539.9-2839_daily_bin1424.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/713112/ft2_4FGL_J0539.9-2839_daily_bin1424.fits
.....................!
real 14.37
user 12.92
sys 1.19

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/713112/ft1_filtered_4FGL_J0539.9-2839_daily_bin1424.fits evtable="EVENTS" scfile=/scratch/kocevski/713112/ft2_4FGL_J0539.9-2839_daily_bin1424.fits sctable="SC_DATA" expcube=/scratch/kocevski/713112/ltcube_608428801_608688001_4FGL_J0539.9-2839_daily_bin1424.fits outfile=/scratch/kocevski/713112/expmap_608428801_608688001_4FGL_J0539.9-2839_daily_bin1424.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/713112/ltcube_608428801_608688001_4FGL_J0539.9-2839_daily_bin1424.fits
.....................!
real 193.20
user 186.10
sys 5.17

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/713112/ft1_filtered_4FGL_J0539.9-2839_daily_bin1424.fits scfile=/scratch/kocevski/713112/ft2_4FGL_J0539.9-2839_daily_bin1424.fits outfile=/scratch/kocevski/713112/cmap_608428801_608688001_4FGL_J0539.9-2839_daily_bin1424.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 1.33
user 0.39
sys 0.93

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/713112/ft1_filtered_4FGL_J0539.9-2839_daily_bin1424.fits scfile=/scratch/kocevski/713112/ft2_4FGL_J0539.9-2839_daily_bin1424.fits outfile=/scratch/kocevski/713112/cmap_HighResolution_608428801_608688001_4FGL_J0539.9-2839_daily_bin1424.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 1.33
user 0.38
sys 0.94

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/713112/ft1_filtered_4FGL_J0539.9-2839_daily_bin1424.fits evtable="EVENTS" scfile=/scratch/kocevski/713112/ft2_4FGL_J0539.9-2839_daily_bin1424.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/713112/Model_4FGL_J0539.9-2839_daily_bin1424.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/713112/ft1_filtered_4FGL_J0539.9-2839_daily_bin1424.fits.....................!
real 54.38
user 51.94
sys 2.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14185E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.6746       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.3752       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10675E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.2700       1.0000         .10000E-03   10000.    
     8 'norm      '    6.5007       1.0000         .10000E-03   10000.    
     9 'Prefactor '    44.373       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    20.257       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.2742       1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .35595       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    80.431       1.0000         .10000E-03   10000.    
    20 'Prefactor '    66.001       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14561E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .54291       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10195E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10316E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .82408       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0782       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=   3944.857     FROM MIGRAD    STATUS=CONVERGED    714 CALLS     3554 TOTAL
                     EDM=   .66E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    481.12        .31537E-05** at limit **
   2  norm          4.6822        6.7155       -.43610E-06    .10972E-03
   3  Prefactor     .10000E-03    16.189        .22471E-06** at limit **
   4  norm          1.3753        .40658        .20104E-07   -.19266E-03
   5  Prefactor     .10000E-03    59.136        .53412E-06** at limit **
   6  norm          .10000E-03    151.10        .20749E-05** at limit **
   7  Prefactor     2.2703        5.2419       -.52333E-06    .67244E-04
   8  norm          6.5014        3.8452        .19251E-06   -.10649E-04
   9  Prefactor     44.374        55.421        .54947E-06   -.23985E-05
  10  Prefactor     .10000E-03    2.8300        .94698E-07** at limit **
  11  Prefactor     .10000E-03    16.960        .59792E-06** at limit **
  12  Prefactor     .10000E-03    11.034       -.84703E-07** at limit **
  13  norm          20.258        9.2063        .16951E-06   -.16373E-04
  14  Prefactor     .10000E-03    15.152        .13919E-06** at limit **
  15  norm          2.2747        3.0207       -.75136E-07    .38694E-04
  16  norm          .10000E-03    25.872       -.16848E-06** at limit **
  17  Prefactor     .34984        16.322       -.15972E-05    .37716E-05
  18  Prefactor     .10000E-03    215.40       -.44245E-05** at limit **
  19  Prefactor     80.346        61.157       -.78020E-06    .38620E-05
  20  Prefactor     66.052        58.114        .27896E-05   -.18354E-04
  21  Prefactor     .10000E-03    465.73       -.11885E-04** at limit **
  22  norm          .58692        33.402        .91436E-05   -.15959E-04
  23  Prefactor     .10000E-03    42.684       -.67191E-06** at limit **
  24  Prefactor     .10000E-03    9.7169        .93338E-06** at limit **
  25  Prefactor     .10000E-03    35.409        .72981E-06** at limit **
  26  norm          .10000E-03    27.816       -.29622E-06** at limit **
  27  Normalizat    .82414        .30320       -.11395E-05   -.44091E-04
  28  Prefactor     1.0780        .20531       -.13598E-05   -.14207E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  norm       = 4.68217
  Prefactor  = 0.000100001
  norm       = 1.37525
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.27028
  norm       = 6.50142
  Prefactor  = 44.3736
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.2575
  Prefactor  = 0.0001
  norm       = 2.27472
  norm       = 0.0001
  Prefactor  = 0.349841
  Prefactor  = 0.0001
  Prefactor  = 80.3465
  Prefactor  = 66.0515
  Prefactor  = 0.0001
  norm       = 0.586921
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.824135
  Prefactor  = 1.07804
 **********
 **   18 **HESSE 
 **********

 FCN=   3944.857     FROM HESSE     STATUS=OK           515 CALLS     4069 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    481.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.6822        6.6961        .18095E-03   -1.5275    
   3  Prefactor     .10000E-03    16.678        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.3753        .40689        .20911E-04   -1.5473    
   5  Prefactor     .10000E-03    59.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    151.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.2703        5.1863        .20266E-03   -1.5407    
   8  norm          6.5014        3.8377        .86562E-04   -1.5198    
   9  Prefactor     44.374        55.717        .60186E-04   -1.4375    
  10  Prefactor     .10000E-03    2.8349        .10320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          20.258        9.2165        .88990E-04   -1.4807    
  14  Prefactor     .10000E-03    15.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.2747        2.9963        .11739E-03   -1.5406    
  16  norm          .10000E-03    26.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .34984        123.25        .42676E-02   -1.5590    
  18  Prefactor     .10000E-03    215.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     80.346        60.786        .22391E-03   -1.3913    
  20  Prefactor     66.052        58.943        .49401E-04   -1.4081    
  21  Prefactor     .10000E-03    472.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .58692        34.789        .30371E-02   -1.5555    
  23  Prefactor     .10000E-03    42.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    9.7814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    35.533        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    27.848        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .82414        .34510        .34749E-03   -.99180    
  28  Prefactor     1.0780        .23851        .22393E-03   -.90171    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19305e-08
Minuit parameter uncertainties:
  1  0.00128501
  2  6.69714
  3  0.000218186
  4  0.406887
  5  9.18846e-05
  6  0.000416145
  7  5.18731
  8  3.83787
  9  55.7822
  10  6.07312e-06
  11  5.0788e-05
  12  1.42046e-06
  13  9.21719
  14  1.42111e-05
  15  2.9965
  16  2.14483e-05
  17  13.1582
  18  0.000657611
  19  60.8331
  20  58.9954
  21  0.000311675
  22  9.04205
  23  2.15817e-05
  24  1.52252e-05
  25  6.27423e-05
  26  2.1984e-05
  27  0.346022
  28  0.238743
Done.

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

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  2.275e+00  2.996e+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:  1.078e+00  2.387e-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:  8.241e-01  3.460e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/713112/likelihoodResults_608428801_608688001_4FGL_J0539.9-2839_daily_bin1424.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) = 3944.85651243
delta logL = 0.000123716739381

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3944.85650665
delta logL = 0.000129493800614

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2697       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6954       1.0000          .0000       5.0000    
     3 'Normalizat'    .82352       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0783       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=   3944.857     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      222 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2680        193.79        .68151E-02    .29034E-03
   2  alpha         2.6946        3.0988        .41312       -.20405E-05
   3  Normalizat    .82361        .21534        .78518E-01    .11199E-04
   4  Prefactor     1.0783        .17668        .38474E-01   -.45474E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.26796
  alpha      = 2.69464
  Normalizat = 0.823613
  Prefactor  = 1.0783
 **********
 **   18 **HESSE 
 **********

 FCN=   3944.857     FROM HESSE     STATUS=OK            33 CALLS      255 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2680        3.0064        .11711E-03   -1.5407    
   2  alpha         2.6946        1.0711        .24461E-01    .77936E-01
   3  Normalizat    .82361        .31371        .34759E-03   -.99199    
   4  Prefactor     1.0783        .22668        .22391E-03   -.90163    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42381e-11
Minuit parameter uncertainties:
  1  3.00659
  2  1.10721
  3  0.314402
  4  0.226887
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/713112': 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) = 3944.85650613
delta logL = 0.000130016172534

Extracting fit parameters...

4FGL J0539.9-2839
   Spectrum: LogParabola
258         norm:  2.268e+00  3.007e+00  1.000e-04  1.000e+04 ( 1.000e-11)
259        alpha:  2.695e+00  1.107e+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:  1.078e+00  2.269e-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:  8.236e-01  3.144e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.88
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/713112/cmap_HighResolution_608428801_608688001_4FGL_J0539.9-2839_daily_bin1424.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.75e-05', job_status='DONE', photon_flux_upper_limit='2.02e-07', time_completed='2021-08-23 15:03:37.365613', job_id='713112', GAL2='1.08', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1629756217.37', return_code2='0', ts='0.88', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='1.30e-04', ts2='0.88', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1424' AND source_name='4FGL J0539.9-2839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 15:03:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 713112: <4FGL_J0539.9-2839_daily_bin1424> in cluster <slac> Done

Job <4FGL_J0539.9-2839_daily_bin1424> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 23 14:50:18 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 23 14:50:19 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:50:19 2021
Terminated at Mon Aug 23 15:03:38 2021
Results reported at Mon Aug 23 15:03:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0539.9-2839_daily_bin1424 84.9952 -28.6585 608428801 608688001 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 :                                   644.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             286.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            800 sec.

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

