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


Performing analysis on: 4FGL_J0524.6-2819_daily_bin943
RA = 81.1732, Dec = -28.3288
tmin = 483753601, tmax = 484012801
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='261401', job_status='RUN', time_executed='2021-08-22 13:22:11.226573', time_epoch_executed='1629663731.23' WHERE source_name='4FGL J0524.6-2819' and cadence='daily' and bin_id='943'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261401

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261401/ft1_4FGL_J0524.6-2819_daily_bin943.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261401/ft2_4FGL_J0524.6-2819_daily_bin943.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261401/ft1_4FGL_J0524.6-2819_daily_bin943.fits outfile=/scratch/kocevski/261401/ft1_filteredMKT_4FGL_J0524.6-2819_daily_bin943.fits ra=81.1732 dec=-28.3288 rad=12.0 tmin=483753601.0 tmax=484012801.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 10.40
user 5.23
sys 5.05

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/261401/ft2_4FGL_J0524.6-2819_daily_bin943.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/261401/ft2_4FGL_J0524.6-2819_daily_bin943.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/261401/ft1_filteredMKT_4FGL_J0524.6-2819_daily_bin943.fits evtable="EVENTS" outfile="/scratch/kocevski/261401/ft1_filtered_4FGL_J0524.6-2819_daily_bin943.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.24
user 0.34
sys 4.87

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261401/ft1_filtered_4FGL_J0524.6-2819_daily_bin943.fits" evtable="EVENTS" scfile=/scratch/kocevski/261401/ft2_4FGL_J0524.6-2819_daily_bin943.fits sctable="SC_DATA" outfile=/scratch/kocevski/261401/ltcube_483753601_484012801_4FGL_J0524.6-2819_daily_bin943.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/261401/ft2_4FGL_J0524.6-2819_daily_bin943.fits
.....................!
real 16.81
user 11.04
sys 5.72

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261401/ft1_filtered_4FGL_J0524.6-2819_daily_bin943.fits evtable="EVENTS" scfile=/scratch/kocevski/261401/ft2_4FGL_J0524.6-2819_daily_bin943.fits sctable="SC_DATA" expcube=/scratch/kocevski/261401/ltcube_483753601_484012801_4FGL_J0524.6-2819_daily_bin943.fits outfile=/scratch/kocevski/261401/expmap_483753601_484012801_4FGL_J0524.6-2819_daily_bin943.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/261401/ltcube_483753601_484012801_4FGL_J0524.6-2819_daily_bin943.fits
.....................!
real 196.09
user 185.06
sys 10.63

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

Setting source of interest to:
4FGL J0524.6-2819 @ 81.1732 -28.3288

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/261401/ft1_filtered_4FGL_J0524.6-2819_daily_bin943.fits scfile=/scratch/kocevski/261401/ft2_4FGL_J0524.6-2819_daily_bin943.fits outfile=/scratch/kocevski/261401/cmap_483753601_484012801_4FGL_J0524.6-2819_daily_bin943.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=81.1732 yref=-28.3288 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.37
user 0.38
sys 4.96

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261401/ft1_filtered_4FGL_J0524.6-2819_daily_bin943.fits scfile=/scratch/kocevski/261401/ft2_4FGL_J0524.6-2819_daily_bin943.fits outfile=/scratch/kocevski/261401/cmap_HighResolution_483753601_484012801_4FGL_J0524.6-2819_daily_bin943.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=81.1732 yref=-28.3288 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.42
user 0.38
sys 4.98

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261401/ft1_filtered_4FGL_J0524.6-2819_daily_bin943.fits evtable="EVENTS" scfile=/scratch/kocevski/261401/ft2_4FGL_J0524.6-2819_daily_bin943.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261401/Model_4FGL_J0524.6-2819_daily_bin943.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/261401/ft1_filtered_4FGL_J0524.6-2819_daily_bin943.fits.....................!
real 66.77
user 59.26
sys 7.37

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/261401/ft1_filtered_4FGL_J0524.6-2819_daily_bin943.fits', '/scratch/kocevski/261401/ft2_4FGL_J0524.6-2819_daily_bin943.fits', expMap='/scratch/kocevski/261401/expmap_483753601_484012801_4FGL_J0524.6-2819_daily_bin943.fits', expCube='/scratch/kocevski/261401/ltcube_483753601_484012801_4FGL_J0524.6-2819_daily_bin943.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/261401/Model_4FGL_J0524.6-2819_daily_bin943.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0524.6-2819'

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  3.247e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.573e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  7.597e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/261401/ft1_filtered_4FGL_J0524.6-2819_daily_bin943.fits
Spacecraft file(s): /scratch/kocevski/261401/ft2_4FGL_J0524.6-2819_daily_bin943.fits
Exposure map: /scratch/kocevski/261401/expmap_483753601_484012801_4FGL_J0524.6-2819_daily_bin943.fits
Exposure cube: /scratch/kocevski/261401/ltcube_483753601_484012801_4FGL_J0524.6-2819_daily_bin943.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/261401/Model_4FGL_J0524.6-2819_daily_bin943.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) = 4983.68677023

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    122.22       1.0000         .10000E-03   10000.    
     2 'Prefactor '    138.58       1.0000         .10000E-03   10000.    
     3 'norm      '    2.3968       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10375E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.2176       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.665       1.0000         .10000E-03   10000.    
     8 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10445E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.2803       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.607       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.4698       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    50.334       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.6936       1.0000         .10000E-03   10000.    
    17 'norm      '    5.1335       1.0000         .10000E-03   10000.    
    18 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    43.059       1.0000         .10000E-03   10000.    
    21 'Prefactor '    79.194       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .49578       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2692       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4983.269     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     3081 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          122.21        152.38       -.13043E-04    .26883E-05
   2  Prefactor     138.68        78.676        .52008E-04   -.92981E-05
   3  norm          2.3970        3.8849        .58212E-06   -.52096E-03
   4  Prefactor     .10000E-03    4.4678        .18430E-06** at limit **
   5  norm          1.2174        .31196       -.53804E-06    .28897E-02
   6  Prefactor     .10000E-03    23.874       -.91250E-05** at limit **
   7  Prefactor     10.647        38.096       -.98094E-05   -.46643E-05
   8  norm          .10000E-03    37.900        .19243E-05** at limit **
   9  Prefactor     .10000E-03    3.9156        .12528E-06** at limit **
  10  norm          3.2801        2.3399        .34297E-06    .31602E-04
  11  Prefactor     14.494        38.953        .15850E-04    .34580E-05
  12  Prefactor     .10000E-03    6.2675       -.15373E-07** at limit **
  13  Prefactor     6.4689        10.301       -.10962E-05   -.10665E-02
  14  Prefactor     .10000E-03    6.4265        .46272E-06** at limit **
  15  norm          50.332        9.7533        .53095E-06    .12501E-03
  16  Prefactor     9.6960        18.004       -.32113E-05   -.55213E-06
  17  norm          5.1341        2.5406        .19895E-07    .96109E-05
  18  norm          .10000E-03    14.843        .31673E-05** at limit **
  19  Prefactor     .10000E-03    2.7282        .80124E-08** at limit **
  20  Prefactor     43.057        54.543       -.27860E-05    .48628E-05
  21  Prefactor     79.256        43.468        .57782E-05    .27698E-04
  22  Prefactor     .10000E-03    16.989       -.11994E-04** at limit **
  23  Prefactor     .10000E-03    19.622        .16067E-04** at limit **
  24  Normalizat    .49553        .25846       -.15784E-04   -.61917E-04
  25  Prefactor     1.2695        .20168        .34005E-05   -.26898E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 122.209
  Prefactor  = 138.678
  norm       = 2.39697
  Prefactor  = 0.0001
  norm       = 1.21743
  Prefactor  = 0.0001
  Prefactor  = 10.6472
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.2801
  Prefactor  = 14.4941
  Prefactor  = 0.0001
  Prefactor  = 6.46889
  Prefactor  = 0.0001
  norm       = 50.3318
  Prefactor  = 9.69599
  norm       = 5.13412
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.0566
  Prefactor  = 79.2563
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.495525
  Prefactor  = 1.26946
 **********
 **   18 **HESSE 
 **********

 FCN=   4983.269     FROM HESSE     STATUS=OK           419 CALLS     3500 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          122.21        152.37        .18202E-03   -1.3492    
   2  Prefactor     138.68        78.457        .17108E-03   -1.3347    
   3  norm          2.3970        3.8709        .16270E-03   -1.5398    
   4  Prefactor     .10000E-03    4.6020        .29109E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.2174        .31199        .18381E-04   -1.5487    
   6  Prefactor     .10000E-03    23.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.647        38.041        .12269E-03   -1.5055    
   8  norm          .10000E-03    37.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.0291        .27216E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.2801        2.3313        .86489E-04   -1.5346    
  11  Prefactor     14.494        38.954        .10480E-03   -1.4946    
  12  Prefactor     .10000E-03    6.4650        .34490E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.4689        10.318        .78892E-03   -1.5199    
  14  Prefactor     .10000E-03    6.4287        .17473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          50.332        9.7341        .56526E-04   -1.4288    
  16  Prefactor     9.6960        17.989        .12871E-03   -1.5085    
  17  norm          5.1341        2.5370        .74601E-04   -1.5255    
  18  norm          .10000E-03    14.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    2.7329        .11387E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     43.057        54.556        .61094E-04   -1.4395    
  21  Prefactor     79.256        43.446        .45128E-04   -1.3925    
  22  Prefactor     .10000E-03    17.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    19.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .49553        .28413        .39097E-03   -1.1262    
  25  Prefactor     1.2695        .22648        .22064E-03   -.84220    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37598e-09
Minuit parameter uncertainties:
  1  152.858
  2  78.5165
  3  3.87129
  4  5.16698e-05
  5  0.311994
  6  6.08582e-05
  7  38.1276
  8  5.27664e-05
  9  6.26386e-05
  10  2.33135
  11  39.0225
  12  7.34621e-05
  13  10.321
  14  2.73002e-06
  15  9.73441
  16  17.9988
  17  2.53702
  18  2.49197e-05
  19  5.37804e-06
  20  54.6192
  21  43.463
  22  3.48159e-05
  23  1.48082e-05
  24  0.28496
  25  0.226658
Done.

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

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  1.449e+01  3.902e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.573e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  7.597e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  1.269e+00  2.267e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  4.955e-01  2.850e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.18
Ra Dec: 81.173 -28.329
Photon Flux Upper Limit: 1.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/261401/likelihoodResults_483753601_484012801_4FGL_J0524.6-2819_daily_bin943.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) = 4983.12460265
delta logL = 0.144249488462

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4983.1191198
delta logL = 0.149732332315

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.7356       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4297       1.0000          .0000       10.000    
     3 'Normalizat'    .47086       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2834       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4983.119     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      307 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7347        37.343        .14418E-03   -.24988E-03
   2  Index         3.4292        2.3380        .83855E-02   -.73848E-04
   3  Normalizat    .47125        .26043        .40044E-03   -.18295E-03
   4  Prefactor     1.2831        .22353        .21960E-03   -.23378E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.73466
  Index      = 3.42918
  Normalizat = 0.47125
  Prefactor  = 1.28311
 **********
 **   18 **HESSE 
 **********

 FCN=   4983.119     FROM HESSE     STATUS=OK            25 CALLS      332 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7347        23.439        .57671E-05   -1.5152    
   2  Index         3.4292        1.6489        .33542E-03   -.31958    
   3  Normalizat    .47125        .26068        .16018E-04   -1.1377    
   4  Prefactor     1.2831        .22366        .43919E-04   -.83811    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3023e-10
Minuit parameter uncertainties:
  1  23.4673
  2  1.68402
  3  0.261358
  4  0.223829
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261401': 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) = 4983.1191186
delta logL = 0.149733538286

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  7.735e+00  2.347e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  3.429e+00  1.684e+00  0.000e+00  1.000e+01 (-1.000e+00)
258        Scale:  7.597e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  1.283e+00  2.238e-01  0.000e+00  1.000e+01 ( 1.000e+00)
563        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
564        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
561   Normalization:  4.712e-01  2.614e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.18
Ra Dec: 81.173 -28.329

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/261401/cmap_HighResolution_483753601_484012801_4FGL_J0524.6-2819_daily_bin943.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.86e-03', job_status='DONE', photon_flux_upper_limit='1.26e-07', time_completed='2021-08-22 13:34:24.215305', job_id='261401', GAL2='1.28', fit_tolerance='1e-08', EG2='0.47', EG='0.50', time_epoch_completed='1629664464.22', return_code2='0', ts='0.18', comment='SUCCESS', return_code='0', GAL='1.27', dlogl='1.50e-01', ts2='0.51', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='943' AND source_name='4FGL J0524.6-2819' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 13:34:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 261401: <4FGL_J0524.6-2819_daily_bin943> in cluster <slac> Done

Job <4FGL_J0524.6-2819_daily_bin943> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 22 13:20:34 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 22 13:20:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 22 13:20:35 2021
Terminated at Sun Aug 22 13:34:25 2021
Results reported at Sun Aug 22 13:34:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0524.6-2819_daily_bin943 81.1732 -28.3288 483753601 484012801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0524.6-2819 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   804.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            831 sec.

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

