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


Performing analysis on: 4FGL_J0524.6-2819_daily_bin1265
RA = 81.1732, Dec = -28.3288
tmin = 567216001, tmax = 567475201
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='263165', job_status='RUN', time_executed='2021-08-22 13:28:46.622206', time_epoch_executed='1629664126.62' WHERE source_name='4FGL J0524.6-2819' and cadence='daily' and bin_id='1265'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/263165

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/263165/ft1_4FGL_J0524.6-2819_daily_bin1265.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/263165/ft2_4FGL_J0524.6-2819_daily_bin1265.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/263165/ft1_4FGL_J0524.6-2819_daily_bin1265.fits outfile=/scratch/kocevski/263165/ft1_filteredMKT_4FGL_J0524.6-2819_daily_bin1265.fits ra=81.1732 dec=-28.3288 rad=12.0 tmin=567216001.0 tmax=567475201.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.82
user 2.66
sys 9.08

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/263165/ft2_4FGL_J0524.6-2819_daily_bin1265.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/263165/ft1_filteredMKT_4FGL_J0524.6-2819_daily_bin1265.fits evtable="EVENTS" outfile="/scratch/kocevski/263165/ft1_filtered_4FGL_J0524.6-2819_daily_bin1265.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 9.47
user 0.35
sys 9.02

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/263165/ft1_filtered_4FGL_J0524.6-2819_daily_bin1265.fits" evtable="EVENTS" scfile=/scratch/kocevski/263165/ft2_4FGL_J0524.6-2819_daily_bin1265.fits sctable="SC_DATA" outfile=/scratch/kocevski/263165/ltcube_567216001_567475201_4FGL_J0524.6-2819_daily_bin1265.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/263165/ft2_4FGL_J0524.6-2819_daily_bin1265.fits
.....................!
real 24.28
user 13.56
sys 10.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/263165/ft1_filtered_4FGL_J0524.6-2819_daily_bin1265.fits evtable="EVENTS" scfile=/scratch/kocevski/263165/ft2_4FGL_J0524.6-2819_daily_bin1265.fits sctable="SC_DATA" expcube=/scratch/kocevski/263165/ltcube_567216001_567475201_4FGL_J0524.6-2819_daily_bin1265.fits outfile=/scratch/kocevski/263165/expmap_567216001_567475201_4FGL_J0524.6-2819_daily_bin1265.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/263165/ltcube_567216001_567475201_4FGL_J0524.6-2819_daily_bin1265.fits
.....................!
real 204.03
user 185.44
sys 15.70

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/263165/ft1_filtered_4FGL_J0524.6-2819_daily_bin1265.fits scfile=/scratch/kocevski/263165/ft2_4FGL_J0524.6-2819_daily_bin1265.fits outfile=/scratch/kocevski/263165/cmap_567216001_567475201_4FGL_J0524.6-2819_daily_bin1265.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 9.35
user 0.39
sys 8.92

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/263165/ft1_filtered_4FGL_J0524.6-2819_daily_bin1265.fits scfile=/scratch/kocevski/263165/ft2_4FGL_J0524.6-2819_daily_bin1265.fits outfile=/scratch/kocevski/263165/cmap_HighResolution_567216001_567475201_4FGL_J0524.6-2819_daily_bin1265.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 9.36
user 0.40
sys 8.92

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/263165/ft1_filtered_4FGL_J0524.6-2819_daily_bin1265.fits evtable="EVENTS" scfile=/scratch/kocevski/263165/ft2_4FGL_J0524.6-2819_daily_bin1265.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/263165/Model_4FGL_J0524.6-2819_daily_bin1265.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/263165/ft1_filtered_4FGL_J0524.6-2819_daily_bin1265.fits.....................!
real 72.44
user 58.86
sys 13.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    153.80       1.0000         .10000E-03   10000.    
     3 'norm      '    4.0052       1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.215       1.0000         .10000E-03   10000.    
     5 'norm      '    .35225       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12412E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    11.850       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.0519       1.0000         .10000E-03   10000.    
    11 'Prefactor '    57.412       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.4677       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .17608E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    82.142       1.0000         .10000E-03   10000.    
    22 'Prefactor '    24.663       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .16131E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0206       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0266       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=   5207.619     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2892 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    72.118        .11594E-06** at limit **
   2  Prefactor     153.80        96.169        .34681E-06   -.23152E-05
   3  norm          4.0046        3.8126        .10775E-06   -.11734E-04
   4  Prefactor     23.212        8.6643        .94372E-07   -.78194E-04
   5  norm          .35217        .27273        .10847E-07    .27760E-04
   6  Prefactor     .10000E-03    69.185        .86869E-06** at limit **
   7  Prefactor     .10001E-03    66.335       -.87352E-05** at limit **
   8  norm          11.688        175.54       -.37570E-05   -.11969E-04
   9  Prefactor     .10000E-03    2.7531        .14914E-06** at limit **
  10  norm          1.0518        1.8760        .51753E-06    .31292E-03
  11  Prefactor     57.399        37.694        .18017E-06   -.73743E-04
  12  Prefactor     .10000E-03    1.8651        .58784E-07** at limit **
  13  Prefactor     .10000E-03    3.8635        .60553E-07** at limit **
  14  Prefactor     .10000E-03    6.8846        .23052E-06** at limit **
  15  norm          5.4664        4.8172       -.32459E-07   -.14565E-03
  16  Prefactor     .10000E-03    5.9858        .41120E-07** at limit **
  17  norm          .10000E-03    1.8680        .87483E-06** at limit **
  18  norm          .10000E-03    5.4196        .24011E-07** at limit **
  19  Prefactor     .10000E-03    9.0990        .15041E-06** at limit **
  20  Prefactor     .10000E-03    63.220        .57337E-09** at limit **
  21  Prefactor     82.137        52.030       -.71175E-08   -.32604E-04
  22  Prefactor     24.654        35.912       -.39708E-06   -.36037E-04
  23  Prefactor     .10000E-03    126.04       -.77869E-06** at limit **
  24  Normalizat    1.0211        .25579       -.36591E-05   -.11040E-03
  25  Prefactor     1.0263        .20360        .25409E-05   -.19793E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 153.797
  norm       = 4.0046
  Prefactor  = 23.2121
  norm       = 0.352171
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 11.6877
  Prefactor  = 0.0001
  norm       = 1.05184
  Prefactor  = 57.3986
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.46644
  Prefactor  = 0.0001
  norm       = 0.000100005
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 82.1369
  Prefactor  = 24.6535
  Prefactor  = 0.0001
  Normalizat = 1.02107
  Prefactor  = 1.02628
 **********
 **   18 **HESSE 
 **********

 FCN=   5207.619     FROM HESSE     STATUS=OK           419 CALLS     3311 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    72.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     153.80        95.689        .32505E-04   -1.3221    
   3  norm          4.0046        3.8094        .13038E-03   -1.5308    
   4  Prefactor     23.212        8.6854        .83135E-04   -1.4744    
   5  norm          .35217        .26820        .29951E-04   -1.5589    
   6  Prefactor     .10000E-03    69.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    69.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          11.688        177.42        .11637E-03   -1.5024    
   9  Prefactor     .10000E-03    2.8563        .23298E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.0518        1.8583        .12522E-03   -1.5503    
  11  Prefactor     57.399        37.714        .52945E-04   -1.4191    
  12  Prefactor     .10000E-03    1.8728        .96234E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.8677        .13851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.8947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.4664        4.8018        .13945E-03   -1.5240    
  16  Prefactor     .10000E-03    5.9866        .17244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.1188        .16945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.4220        .16409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.1503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    63.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     82.137        52.043        .44318E-04   -1.3893    
  22  Prefactor     24.654        35.879        .80660E-04   -1.4715    
  23  Prefactor     .10000E-03    126.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0211        .28083        .29400E-03   -.92328    
  25  Prefactor     1.0263        .22303        .24386E-03   -.91859    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.14865e-09
Minuit parameter uncertainties:
  1  7.3776e-05
  2  95.7862
  3  3.80961
  4  8.68586
  5  0.268197
  6  0.000164488
  7  0.00126453
  8  91.4008
  9  1.18986e-06
  10  1.8584
  11  37.7294
  12  1.60823e-06
  13  1.06892e-06
  14  9.84011e-06
  15  4.80211
  16  4.0091e-06
  17  0.000319013
  18  1.2549e-06
  19  1.27869e-05
  20  7.24657e-05
  21  52.0721
  22  35.9102
  23  0.000153913
  24  0.281233
  25  0.223235
Done.

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

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  5.740e+01  3.773e+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.026e+00  2.232e-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.021e+00  2.812e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.86
Ra Dec: 81.173 -28.329
Photon Index (Fixed Index): 2.57 +/- 0.00
Photon Flux (Fixed Index): 6.74e-08 +/- 4.43e-08
Energy Flux (Fixed Index): 1.81e-05 +/- 1.19e-05

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) = 5207.43563519
delta logL = 0.183671002728

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5207.43556145
delta logL = 0.18374475081

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    67.451       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1357       1.0000          .0000       10.000    
     3 'Normalizat'    1.0537       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0077       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=   5207.436     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      304 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     67.443        46.800        .24435E-03    .79094E-05
   2  Index         2.1355        .68011        .94896E-02    .48053E-05
   3  Normalizat    1.0537        .26659        .28991E-03    .31097E-04
   4  Prefactor     1.0077        .21992        .24578E-03    .18132E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 67.443
  Index      = 2.13555
  Normalizat = 1.0537
  Prefactor  = 1.00768
 **********
 **   18 **HESSE 
 **********

 FCN=   5207.436     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     67.443        46.670        .97741E-05   -1.4064    
   2  Index         2.1355        .67772        .37958E-03   -.61003    
   3  Normalizat    1.0537        .26675        .11597E-04   -.91252    
   4  Prefactor     1.0077        .22010        .98313E-05   -.92474    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83587e-12
Minuit parameter uncertainties:
  1  46.6956
  2  0.680847
  3  0.267086
  4  0.220297
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/263165': 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) = 5207.4355614
delta logL = 0.183744800305

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  6.744e+01  4.670e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.136e+00  6.808e-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:  1.008e+00  2.203e-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.054e+00  2.671e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.20
Ra Dec: 81.173 -28.329
Photon Index (Free Index): 2.14 +/- 0.68
Photon Flux (Free Index): 4.51e-08 +/- 4.54e-08
Energy Flux (Free Index): 2.30e-05 +/- 2.19e-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/263165/cmap_HighResolution_567216001_567475201_4FGL_J0524.6-2819_daily_bin1265.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.74e-08', energy_flux2='2.30e-05', photon_flux_error='4.43e-08', dlogl='1.84e-01', energy_flux='1.81e-05', photon_flux2='4.51e-08', job_status='DONE', time_completed='2021-08-22 13:41:06.492350', photon_index_error2='0.68', photon_index2='2.14', ts='5.86', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='2.19e-05', EG='1.02', time_epoch_completed='1629664866.49', return_code='0', job_id='263165', GAL2='1.01', EG2='1.05', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='4.54e-08', ts2='6.20', photon_index='2.57' WHERE bin_id='1265' AND source_name='4FGL J0524.6-2819' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 13:41:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 263165: <4FGL_J0524.6-2819_daily_bin1265> in cluster <slac> Done

Job <4FGL_J0524.6-2819_daily_bin1265> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 22 13:25:58 2021
Job was executed on host(s) <bullet0272>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 22 13:26:00 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:26:00 2021
Terminated at Sun Aug 22 13:41:08 2021
Results reported at Sun Aug 22 13:41:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0524.6-2819_daily_bin1265 81.1732 -28.3288 567216001 567475201 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 :                                   846.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             249.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            910 sec.

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

