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


Performing analysis on: 4FGL_J0524.6-2819_daily_bin1057
RA = 81.1732, Dec = -28.3288
tmin = 513302401, tmax = 513561601
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='261602', job_status='RUN', time_executed='2021-08-22 13:22:54.766392', time_epoch_executed='1629663774.77' WHERE source_name='4FGL J0524.6-2819' and cadence='daily' and bin_id='1057'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261602

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261602/ft1_4FGL_J0524.6-2819_daily_bin1057.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261602/ft2_4FGL_J0524.6-2819_daily_bin1057.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261602/ft1_4FGL_J0524.6-2819_daily_bin1057.fits outfile=/scratch/kocevski/261602/ft1_filteredMKT_4FGL_J0524.6-2819_daily_bin1057.fits ra=81.1732 dec=-28.3288 rad=12.0 tmin=513302401.0 tmax=513561601.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 9.47
user 5.13
sys 4.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/261602/ft2_4FGL_J0524.6-2819_daily_bin1057.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/261602/ft1_filteredMKT_4FGL_J0524.6-2819_daily_bin1057.fits evtable="EVENTS" outfile="/scratch/kocevski/261602/ft1_filtered_4FGL_J0524.6-2819_daily_bin1057.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 4.54
user 0.33
sys 4.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261602/ft1_filtered_4FGL_J0524.6-2819_daily_bin1057.fits" evtable="EVENTS" scfile=/scratch/kocevski/261602/ft2_4FGL_J0524.6-2819_daily_bin1057.fits sctable="SC_DATA" outfile=/scratch/kocevski/261602/ltcube_513302401_513561601_4FGL_J0524.6-2819_daily_bin1057.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/261602/ft2_4FGL_J0524.6-2819_daily_bin1057.fits
.....................!
real 16.68
user 11.80
sys 4.83

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261602/ft1_filtered_4FGL_J0524.6-2819_daily_bin1057.fits evtable="EVENTS" scfile=/scratch/kocevski/261602/ft2_4FGL_J0524.6-2819_daily_bin1057.fits sctable="SC_DATA" expcube=/scratch/kocevski/261602/ltcube_513302401_513561601_4FGL_J0524.6-2819_daily_bin1057.fits outfile=/scratch/kocevski/261602/expmap_513302401_513561601_4FGL_J0524.6-2819_daily_bin1057.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/261602/ltcube_513302401_513561601_4FGL_J0524.6-2819_daily_bin1057.fits
.....................!
real 196.30
user 186.54
sys 9.37

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/261602/ft1_filtered_4FGL_J0524.6-2819_daily_bin1057.fits scfile=/scratch/kocevski/261602/ft2_4FGL_J0524.6-2819_daily_bin1057.fits outfile=/scratch/kocevski/261602/cmap_513302401_513561601_4FGL_J0524.6-2819_daily_bin1057.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 4.09
user 0.36
sys 3.69

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261602/ft1_filtered_4FGL_J0524.6-2819_daily_bin1057.fits scfile=/scratch/kocevski/261602/ft2_4FGL_J0524.6-2819_daily_bin1057.fits outfile=/scratch/kocevski/261602/cmap_HighResolution_513302401_513561601_4FGL_J0524.6-2819_daily_bin1057.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 4.54
user 0.38
sys 4.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261602/ft1_filtered_4FGL_J0524.6-2819_daily_bin1057.fits evtable="EVENTS" scfile=/scratch/kocevski/261602/ft2_4FGL_J0524.6-2819_daily_bin1057.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261602/Model_4FGL_J0524.6-2819_daily_bin1057.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/261602/ft1_filtered_4FGL_J0524.6-2819_daily_bin1057.fits.....................!
real 65.23
user 58.58
sys 6.36

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/261602/ft1_filtered_4FGL_J0524.6-2819_daily_bin1057.fits', '/scratch/kocevski/261602/ft2_4FGL_J0524.6-2819_daily_bin1057.fits', expMap='/scratch/kocevski/261602/expmap_513302401_513561601_4FGL_J0524.6-2819_daily_bin1057.fits', expCube='/scratch/kocevski/261602/ltcube_513302401_513561601_4FGL_J0524.6-2819_daily_bin1057.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/261602/Model_4FGL_J0524.6-2819_daily_bin1057.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/261602/ft1_filtered_4FGL_J0524.6-2819_daily_bin1057.fits
Spacecraft file(s): /scratch/kocevski/261602/ft2_4FGL_J0524.6-2819_daily_bin1057.fits
Exposure map: /scratch/kocevski/261602/expmap_513302401_513561601_4FGL_J0524.6-2819_daily_bin1057.fits
Exposure cube: /scratch/kocevski/261602/ltcube_513302401_513561601_4FGL_J0524.6-2819_daily_bin1057.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/261602/Model_4FGL_J0524.6-2819_daily_bin1057.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4404.6856044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    103.25       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.6868       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11878       1.0000         .10000E-03   10000.    
     5 'norm      '    .36083       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.1644       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.204       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .82633       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.2261       1.0000         .10000E-03   10000.    
    18 'norm      '    18.101       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2194       1.0000         .10000E-03   10000.    
    20 'Prefactor '    131.87       1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.666       1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.754       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1635       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97861       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=   4404.663     FROM MIGRAD    STATUS=CONVERGED    592 CALLS     2942 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          103.20        146.87       -.10256E-05   -.36718E-04
   2  Prefactor     .10000E-03    27.008       -.39436E-06** at limit **
   3  norm          9.6817        5.7203        .46099E-06    .16433E-04
   4  Prefactor     .20843        4.8001        .16409E-06    .44642E-04
   5  norm          .36091        .20727        .32201E-07   -.16039E-04
   6  Prefactor     .10000E-03    21.174        .75278E-07** at limit **
   7  Prefactor     .10000E-03    12.836       -.38365E-06** at limit **
   8  norm          .10000E-03    81.726       -.32236E-06** at limit **
   9  Prefactor     .10000E-03    2.3474       -.38300E-06** at limit **
  10  norm          3.1656        2.8890        .19849E-05    .31572E-03
  11  Prefactor     18.230        36.158        .15322E-05    .48022E-04
  12  Prefactor     .10000E-03    4.8425       -.35089E-06** at limit **
  13  Prefactor     .10000E-03    9.7625       -.43039E-06** at limit **
  14  Prefactor     .10000E-03    5.9520       -.91241E-07** at limit **
  15  norm          .83323        4.4931       -.17368E-06   -.17761E-03
  16  Prefactor     .10000E-03    11.847        .10220E-06** at limit **
  17  norm          1.2266        1.7445        .31141E-06    .88246E-04
  18  norm          18.108        19.824       -.81684E-06   -.78431E-04
  19  Prefactor     1.2303        67.129        .75203E-05    .95662E-05
  20  Prefactor     131.90        130.19       -.13928E-05   -.23883E-05
  21  Prefactor     17.696        61.951        .25248E-05    .44357E-04
  22  Prefactor     16.810        44.859        .28054E-05    .10272E-03
  23  Prefactor     .10000E-03    52.641        .33909E-05** at limit **
  24  Normalizat    1.1627        .29447       -.64460E-05    .83970E-04
  25  Prefactor     .97899        .21736        .35458E-05   -.25309E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 103.201
  Prefactor  = 0.0001
  norm       = 9.68167
  Prefactor  = 0.208429
  norm       = 0.36091
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.1656
  Prefactor  = 18.2298
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.833226
  Prefactor  = 0.0001
  norm       = 1.22663
  norm       = 18.1082
  Prefactor  = 1.23029
  Prefactor  = 131.9
  Prefactor  = 17.696
  Prefactor  = 16.8096
  Prefactor  = 0.0001
  Normalizat = 1.16266
  Prefactor  = 0.978988
 **********
 **   18 **HESSE 
 **********

 FCN=   4404.663     FROM HESSE     STATUS=OK           429 CALLS     3371 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          103.20        146.99        .19785E-03   -1.3673    
   2  Prefactor     .10000E-03    27.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.6817        5.7118        .11298E-03   -1.5086    
   4  Prefactor     .20843        60.333        .27070E-02   -1.5617    
   5  norm          .36091        .20608        .21932E-04   -1.5588    
   6  Prefactor     .10000E-03    21.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    81.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.3763        .99433E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.1656        2.9334        .50834E-03   -1.5352    
  11  Prefactor     18.230        36.209        .93872E-04   -1.4854    
  12  Prefactor     .10000E-03    4.8837        .14265E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.8012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.9538        .15806E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .83323        13.108        .24834E-02   -1.5525    
  16  Prefactor     .10000E-03    11.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.2266        1.7088        .10052E-03   -1.5486    
  18  norm          18.108        19.648        .94140E-04   -1.4857    
  19  Prefactor     1.2303        65.018        .40858E-03   -1.5486    
  20  Prefactor     131.90        128.50        .17532E-03   -1.3406    
  21  Prefactor     17.696        61.940        .95291E-04   -1.4866    
  22  Prefactor     16.810        45.030        .97848E-04   -1.4888    
  23  Prefactor     .10000E-03    52.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1627        .33596        .27419E-03   -.87765    
  25  Prefactor     .97899        .25105        .24430E-03   -.93433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19398e-09
Minuit parameter uncertainties:
  1  147.511
  2  9.94156e-05
  3  5.7121
  4  7.09782
  5  0.206077
  6  9.10213e-05
  7  7.77168e-05
  8  2.51126e-05
  9  1.70897e-05
  10  2.9335
  11  36.253
  12  1.16799e-05
  13  4.26016e-05
  14  2.54588e-06
  15  6.61103
  16  6.39393e-05
  17  1.70889
  18  19.6547
  19  17.9074
  20  128.768
  21  62.1661
  22  45.1211
  23  3.3097e-05
  24  0.336587
  25  0.251348
Done.

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

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  1.823e+01  3.625e+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:  9.790e-01  2.513e-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.163e+00  3.366e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/261602/likelihoodResults_513302401_513561601_4FGL_J0524.6-2819_daily_bin1057.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) = 4404.66148431
delta logL = 0.00128499671791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4404.66109135
delta logL = 0.00167795609468

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.193       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6483       1.0000          .0000       10.000    
     3 'Normalizat'    1.1609       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98010       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=   4404.661     FROM MIGRAD    STATUS=CONVERGED     77 CALLS      254 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.191        41.446        .96593E-04    .21753E-03
   2  Index         2.6483        1.3691        .12196E-01    .78798E-04
   3  Normalizat    1.1613        .29455        .27434E-03   -.13844E-03
   4  Prefactor     .97983        .24214        .24421E-03   -.13826E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.191
  Index      = 2.6483
  Normalizat = 1.16125
  Prefactor  = 0.979832
 **********
 **   18 **HESSE 
 **********

 FCN=   4404.661     FROM HESSE     STATUS=OK            25 CALLS      279 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.191        39.129        .19319E-04   -1.4878    
   2  Index         2.6483        1.2944        .48786E-03   -.48968    
   3  Normalizat    1.1613        .29487        .54869E-04   -.87809    
   4  Prefactor     .97983        .24233        .48842E-04   -.93405    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.22884e-10
Minuit parameter uncertainties:
  1  39.1873
  2  1.31368
  3  0.295289
  4  0.242602
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261602': 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) = 4404.66109071
delta logL = 0.00167859793964

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  1.719e+01  3.919e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.648e+00  1.314e+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:  9.798e-01  2.426e-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.161e+00  2.953e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.33
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/261602/cmap_HighResolution_513302401_513561601_4FGL_J0524.6-2819_daily_bin1057.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', job_status='DONE', photon_flux_upper_limit='1.31e-07', time_completed='2021-08-22 13:34:03.084853', job_id='261602', GAL2='0.98', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1629664443.08', return_code2='0', ts='0.33', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='1.68e-03', ts2='0.33', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='1057' AND source_name='4FGL J0524.6-2819' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 13:34:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0144>
Subject: Job 261602: <4FGL_J0524.6-2819_daily_bin1057> in cluster <slac> Done

Job <4FGL_J0524.6-2819_daily_bin1057> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 22 13:20:48 2021
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 22 13:20:49 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:49 2021
Terminated at Sun Aug 22 13:34:04 2021
Results reported at Sun Aug 22 13:34:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0524.6-2819_daily_bin1057 81.1732 -28.3288 513302401 513561601 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 :                                   722.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   794 sec.
    Turnaround time :                            796 sec.

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

