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


Performing analysis on: 4FGL_J0524.6-2819_daily_bin544
RA = 81.1732, Dec = -28.3288
tmin = 380332801, tmax = 380592001
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='258353', job_status='RUN', time_executed='2021-08-22 13:13:07.239760', time_epoch_executed='1629663187.24' WHERE source_name='4FGL J0524.6-2819' and cadence='daily' and bin_id='544'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/258353

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/258353/ft1_4FGL_J0524.6-2819_daily_bin544.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/258353/ft2_4FGL_J0524.6-2819_daily_bin544.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/258353/ft1_4FGL_J0524.6-2819_daily_bin544.fits outfile=/scratch/kocevski/258353/ft1_filteredMKT_4FGL_J0524.6-2819_daily_bin544.fits ra=81.1732 dec=-28.3288 rad=12.0 tmin=380332801.0 tmax=380592001.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 11.68
user 3.28
sys 8.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/258353/ft1_filtered_4FGL_J0524.6-2819_daily_bin544.fits" evtable="EVENTS" scfile=/scratch/kocevski/258353/ft2_4FGL_J0524.6-2819_daily_bin544.fits sctable="SC_DATA" outfile=/scratch/kocevski/258353/ltcube_380332801_380592001_4FGL_J0524.6-2819_daily_bin544.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/258353/ft2_4FGL_J0524.6-2819_daily_bin544.fits
.....................!
real 21.38
user 11.86
sys 9.44

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/258353/ft1_filtered_4FGL_J0524.6-2819_daily_bin544.fits evtable="EVENTS" scfile=/scratch/kocevski/258353/ft2_4FGL_J0524.6-2819_daily_bin544.fits sctable="SC_DATA" expcube=/scratch/kocevski/258353/ltcube_380332801_380592001_4FGL_J0524.6-2819_daily_bin544.fits outfile=/scratch/kocevski/258353/expmap_380332801_380592001_4FGL_J0524.6-2819_daily_bin544.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/258353/ltcube_380332801_380592001_4FGL_J0524.6-2819_daily_bin544.fits
.....................!
real 201.24
user 185.43
sys 14.88

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/258353/ft1_filtered_4FGL_J0524.6-2819_daily_bin544.fits scfile=/scratch/kocevski/258353/ft2_4FGL_J0524.6-2819_daily_bin544.fits outfile=/scratch/kocevski/258353/cmap_380332801_380592001_4FGL_J0524.6-2819_daily_bin544.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 8.38
user 0.38
sys 7.96

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/258353/ft1_filtered_4FGL_J0524.6-2819_daily_bin544.fits scfile=/scratch/kocevski/258353/ft2_4FGL_J0524.6-2819_daily_bin544.fits outfile=/scratch/kocevski/258353/cmap_HighResolution_380332801_380592001_4FGL_J0524.6-2819_daily_bin544.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 8.62
user 0.38
sys 8.20

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/258353/ft1_filtered_4FGL_J0524.6-2819_daily_bin544.fits evtable="EVENTS" scfile=/scratch/kocevski/258353/ft2_4FGL_J0524.6-2819_daily_bin544.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/258353/Model_4FGL_J0524.6-2819_daily_bin544.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/258353/ft1_filtered_4FGL_J0524.6-2819_daily_bin544.fits.....................!
real 71.02
user 58.74
sys 11.76

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/258353/ft1_filtered_4FGL_J0524.6-2819_daily_bin544.fits', '/scratch/kocevski/258353/ft2_4FGL_J0524.6-2819_daily_bin544.fits', expMap='/scratch/kocevski/258353/expmap_380332801_380592001_4FGL_J0524.6-2819_daily_bin544.fits', expCube='/scratch/kocevski/258353/ltcube_380332801_380592001_4FGL_J0524.6-2819_daily_bin544.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/258353/Model_4FGL_J0524.6-2819_daily_bin544.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/258353/ft1_filtered_4FGL_J0524.6-2819_daily_bin544.fits
Spacecraft file(s): /scratch/kocevski/258353/ft2_4FGL_J0524.6-2819_daily_bin544.fits
Exposure map: /scratch/kocevski/258353/expmap_380332801_380592001_4FGL_J0524.6-2819_daily_bin544.fits
Exposure cube: /scratch/kocevski/258353/ltcube_380332801_380592001_4FGL_J0524.6-2819_daily_bin544.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/258353/Model_4FGL_J0524.6-2819_daily_bin544.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) = 4743.54546253

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.568       1.0000         .10000E-03   10000.    
     5 'norm      '    1.2846       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    69.261       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .53916E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .30250E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    46.596       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.0045       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.9348       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.0987       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.9181       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.3016       1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.807       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .19493E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0113       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .74868       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=   4743.539     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2922 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    72.974        .10327E-03** at limit **
   2  Prefactor     .10000E-03    33.550       -.20364E-04** at limit **
   3  norm          .10000E-03    3.9233       -.38459E-07** at limit **
   4  Prefactor     17.568        9.0217       -.24267E-05    .38934E-04
   5  norm          1.2846        .31040       -.57138E-07    .10490E-02
   6  Prefactor     .10000E-03    32.596       -.17273E-04** at limit **
   7  Prefactor     69.266        46.965        .22147E-05    .26023E-04
   8  norm          .10000E-03    38.873       -.66322E-05** at limit **
   9  Prefactor     .10002E-03    2.0266       -.34979E-07** at limit **
  10  norm          .10000E-03    1.2919       -.21835E-06** at limit **
  11  Prefactor     46.596        42.823       -.71715E-06    .24167E-04
  12  Prefactor     1.0056        4.8926       -.20342E-05   -.86541E-03
  13  Prefactor     9.9276        15.145        .35226E-08    .67972E-04
  14  Prefactor     .10000E-03    3.0937       -.14257E-07** at limit **
  15  norm          .10000E-03    1.6237        .42978E-07** at limit **
  16  Prefactor     .10000E-03    10.958       -.56328E-07** at limit **
  17  norm          7.0987        3.2768       -.20259E-06    .13389E-03
  18  norm          .10000E-03    4.2881       -.82801E-07** at limit **
  19  Prefactor     3.9184        6.7841        .44063E-06   -.19131E-03
  20  Prefactor     .10000E-03    28.867        .24777E-04** at limit **
  21  Prefactor     3.2837        93.599       -.33878E-04    .14666E-04
  22  Prefactor     19.771        30.405       -.16547E-04    .58037E-03
  23  Prefactor     .10005E-03    119.78       -.11828E-03** at limit **
  24  Normalizat    1.0112        .23500        .45961E-05    .28094E-03
  25  Prefactor     .74868        .17628        .34966E-06    .44513E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.5683
  norm       = 1.2846
  Prefactor  = 0.0001
  Prefactor  = 69.266
  norm       = 0.0001
  Prefactor  = 0.000100015
  norm       = 0.0001
  Prefactor  = 46.5962
  Prefactor  = 1.00559
  Prefactor  = 9.92761
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.09872
  norm       = 0.0001
  Prefactor  = 3.91843
  Prefactor  = 0.0001
  Prefactor  = 3.2837
  Prefactor  = 19.7708
  Prefactor  = 0.000100053
  Normalizat = 1.01122
  Prefactor  = 0.748678
 **********
 **   18 **HESSE 
 **********

 FCN=   4743.539     FROM HESSE     STATUS=OK           425 CALLS     3347 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    73.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    33.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.0162        .26600E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.568        9.0831        .95557E-04   -1.4869    
   5  norm          1.2846        .31100        .17984E-04   -1.5481    
   6  Prefactor     .10000E-03    32.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     69.266        46.963        .48232E-04   -1.4042    
   8  norm          .10000E-03    38.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10002E-03    3.7364        .34883E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    8.0410        .14632E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     46.596        42.898        .58739E-04   -1.4342    
  12  Prefactor     1.0056        4.6595        .28641E-03   -1.5507    
  13  Prefactor     9.9276        14.885        .12713E-03   -1.5078    
  14  Prefactor     .10000E-03    3.0945        .11831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.6304        .85673E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.0987        3.2879        .78420E-04   -1.5175    
  18  norm          .10000E-03    4.2939        .13929E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.9184        6.7722        .20382E-03   -1.5312    
  20  Prefactor     .10000E-03    28.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.2837        93.912        .22281E-03   -1.5346    
  22  Prefactor     19.771        30.072        .89995E-04   -1.4818    
  23  Prefactor     .10005E-03    118.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0112        .27368        .26925E-03   -.92655    
  25  Prefactor     .74868        .20493        .24524E-03   -1.0165    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66718e-09
Minuit parameter uncertainties:
  1  3.5388e-06
  2  2.94414e-05
  3  2.00569e-06
  4  9.08383
  5  0.310998
  6  2.54848e-05
  7  46.9878
  8  4.48717e-05
  9  0.000480095
  10  9.26727e-05
  11  42.9267
  12  4.32957
  13  14.8905
  14  1.64525e-06
  15  2.77059e-06
  16  9.46971e-06
  17  3.28796
  18  5.04366e-06
  19  6.7735
  20  7.19204e-06
  21  35.182
  22  30.0945
  23  0.00502906
  24  0.274057
  25  0.205135
Done.

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

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  4.660e+01  4.293e+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:  7.487e-01  2.051e-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:  1.011e+00  2.741e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.82
Ra Dec: 81.173 -28.329
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 5.47e-08 +/- 5.03e-08
Energy Flux (Fixed Index): 1.47e-05 +/- 1.36e-05

TS (Fixed Index): 2.82
Ra Dec: 81.173 -28.329
Photon Flux Upper Limit: 1.75e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.37e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/258353/likelihoodResults_380332801_380592001_4FGL_J0524.6-2819_daily_bin544.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) = 4743.3406748
delta logL = 0.19837442572

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4743.34008263
delta logL = 0.198966591389

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    63.231       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0817       1.0000          .0000       10.000    
     3 'Normalizat'    1.0309       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73623       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=   4743.340     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      293 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     63.232        57.289        .50464E-04    .55825E-04
   2  Index         2.0817        .71715        .96145E-02    .21287E-04
   3  Normalizat    1.0308        .25456        .26712E-03    .34048E-04
   4  Prefactor     .73625        .20185        .24701E-03    .39627E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 63.232
  Index      = 2.08166
  Normalizat = 1.03083
  Prefactor  = 0.736245
 **********
 **   18 **HESSE 
 **********

 FCN=   4743.340     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     63.232        56.937        .10093E-04   -1.4116    
   2  Index         2.0817        .71261        .38458E-03   -.62324    
   3  Normalizat    1.0308        .25474        .10685E-04   -.92005    
   4  Prefactor     .73625        .20200        .98805E-05   -1.0212    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.36948e-11
Minuit parameter uncertainties:
  1  56.986
  2  0.716319
  3  0.255037
  4  0.202197
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/258353': 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) = 4743.34008263
delta logL = 0.198966596022

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  6.323e+01  5.699e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.082e+00  7.163e-01  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:  7.362e-01  2.022e-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:  1.031e+00  2.550e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.21
Ra Dec: 81.173 -28.329
Photon Index (Free Index): 2.08 +/- 0.72
Photon Flux (Free Index): 3.98e-08 +/- 4.37e-08
Energy Flux (Free Index): 2.27e-05 +/- 2.94e-05

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/258353/cmap_HighResolution_380332801_380592001_4FGL_J0524.6-2819_daily_bin544.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.37e-02', comment='SUCCESS', photon_flux='5.47e-08', energy_flux2='2.27e-05', photon_flux_error='5.03e-08', dlogl='1.99e-01', energy_flux='1.47e-05', photon_flux2='3.98e-08', job_status='DONE', time_completed='2021-08-22 13:25:17.912192', photon_index_error2='0.72', photon_index2='2.08', ts='2.82', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='1.75e-07', energy_flux_error2='2.94e-05', EG='1.01', time_epoch_completed='1629663917.91', return_code='0', job_id='258353', GAL2='0.74', EG2='1.03', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='4.37e-08', ts2='3.21', photon_index='2.57' WHERE bin_id='544' AND source_name='4FGL J0524.6-2819' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 13:25:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0262>
Subject: Job 258353: <4FGL_J0524.6-2819_daily_bin544> in cluster <slac> Done

Job <4FGL_J0524.6-2819_daily_bin544> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Aug 22 13:10:46 2021
Job was executed on host(s) <bullet0262>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 22 13:10:47 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:10:47 2021
Terminated at Sun Aug 22 13:25:21 2021
Results reported at Sun Aug 22 13:25:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0524.6-2819_daily_bin544 81.1732 -28.3288 380332801 380592001 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 :                                   852.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             238.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            875 sec.

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

