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


Performing analysis on: 4FGL_J0524.6-2819_daily_bin1085
RA = 81.1732, Dec = -28.3288
tmin = 520560001, tmax = 520819201
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='261650', job_status='RUN', time_executed='2021-08-22 13:21:55.550978', time_epoch_executed='1629663715.55' WHERE source_name='4FGL J0524.6-2819' and cadence='daily' and bin_id='1085'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261650

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261650/ft1_4FGL_J0524.6-2819_daily_bin1085.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261650/ft2_4FGL_J0524.6-2819_daily_bin1085.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261650/ft1_4FGL_J0524.6-2819_daily_bin1085.fits outfile=/scratch/kocevski/261650/ft1_filteredMKT_4FGL_J0524.6-2819_daily_bin1085.fits ra=81.1732 dec=-28.3288 rad=12.0 tmin=520560001.0 tmax=520819201.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 6.01
user 4.86
sys 1.09

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/261650/ft2_4FGL_J0524.6-2819_daily_bin1085.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/261650/ft1_filteredMKT_4FGL_J0524.6-2819_daily_bin1085.fits evtable="EVENTS" outfile="/scratch/kocevski/261650/ft1_filtered_4FGL_J0524.6-2819_daily_bin1085.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.29
user 0.33
sys 0.88

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261650/ft1_filtered_4FGL_J0524.6-2819_daily_bin1085.fits" evtable="EVENTS" scfile=/scratch/kocevski/261650/ft2_4FGL_J0524.6-2819_daily_bin1085.fits sctable="SC_DATA" outfile=/scratch/kocevski/261650/ltcube_520560001_520819201_4FGL_J0524.6-2819_daily_bin1085.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/261650/ft2_4FGL_J0524.6-2819_daily_bin1085.fits
.....................!
real 12.78
user 11.54
sys 1.17

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261650/ft1_filtered_4FGL_J0524.6-2819_daily_bin1085.fits evtable="EVENTS" scfile=/scratch/kocevski/261650/ft2_4FGL_J0524.6-2819_daily_bin1085.fits sctable="SC_DATA" expcube=/scratch/kocevski/261650/ltcube_520560001_520819201_4FGL_J0524.6-2819_daily_bin1085.fits outfile=/scratch/kocevski/261650/expmap_520560001_520819201_4FGL_J0524.6-2819_daily_bin1085.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/261650/ltcube_520560001_520819201_4FGL_J0524.6-2819_daily_bin1085.fits
.....................!
real 192.70
user 186.24
sys 5.98

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/261650/ft1_filtered_4FGL_J0524.6-2819_daily_bin1085.fits scfile=/scratch/kocevski/261650/ft2_4FGL_J0524.6-2819_daily_bin1085.fits outfile=/scratch/kocevski/261650/cmap_520560001_520819201_4FGL_J0524.6-2819_daily_bin1085.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 1.23
user 0.37
sys 0.84

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261650/ft1_filtered_4FGL_J0524.6-2819_daily_bin1085.fits scfile=/scratch/kocevski/261650/ft2_4FGL_J0524.6-2819_daily_bin1085.fits outfile=/scratch/kocevski/261650/cmap_HighResolution_520560001_520819201_4FGL_J0524.6-2819_daily_bin1085.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 1.24
user 0.40
sys 0.84

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261650/ft1_filtered_4FGL_J0524.6-2819_daily_bin1085.fits evtable="EVENTS" scfile=/scratch/kocevski/261650/ft2_4FGL_J0524.6-2819_daily_bin1085.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261650/Model_4FGL_J0524.6-2819_daily_bin1085.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/261650/ft1_filtered_4FGL_J0524.6-2819_daily_bin1085.fits.....................!
real 66.00
user 63.70
sys 2.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    212.44       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.9119       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .23274       1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.059       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.8377       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.2063       1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.251       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5950       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   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      '    3.4270       1.0000         .10000E-03   10000.    
    18 'norm      '    16.526       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    54.250       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10200E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.4382       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0551       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .88894       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.

 FCN=   5300.770     FROM MIGRAD    STATUS=CONVERGED    570 CALLS     2888 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          212.44        196.31        .69350E-03    .83774E-03
   2  Prefactor     .10000E-03    32.048        .90712E-02** at limit **
   3  norm          8.9119        4.0635        .33566E-02    .12092E-03
   4  Prefactor     .10000E-03    1.7816        .90712E-02** at limit **
   5  norm          .23272        .17008        .54119E-02    .11191E-02
   6  Prefactor     28.059        36.159        .18908E-02   -.11161E-03
   7  Prefactor     .10000E-03    20.727        .90712E-02** at limit **
   8  norm          3.8377        340.90        .51503E-02    .95275E-04
   9  Prefactor     .10000E-03    3.9299        .90712E-02** at limit **
  10  norm          4.2064        2.2192        .49122E-02    .12861E-03
  11  Prefactor     28.254        38.609        .18844E-02   -.48038E-03
  12  Prefactor     2.5947        4.0798        .63321E-02    .21402E-03
  13  Prefactor     .10000E-03    4.4166        .90712E-02** at limit **
  14  Prefactor     .10000E-03    3.5221        .90712E-02** at limit **
  15  norm          .10000E-03    1.6378        .90712E-02** at limit **
  16  Prefactor     .10000E-03    16.268        .90712E-02** at limit **
  17  norm          3.4269        2.5547        .54626E-02    .31695E-03
  18  norm          16.526        11.666        .24631E-02   -.52955E-04
  19  Prefactor     .10000E-03    3.2925        .90712E-02** at limit **
  20  Prefactor     54.250        69.787        .13614E-02   -.15375E-03
  21  Prefactor     .10000E-03    31.944        .90712E-02** at limit **
  22  Prefactor     .10000E-03    126.92        .90712E-02** at limit **
  23  Prefactor     2.4350        145.93        .65508E-02   -.76442E-04
  24  Normalizat    1.0551        .20775        .58183E-01    .43192E-04
  25  Prefactor     .88892        .16994        .44864E-01    .52592E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 212.439
  Prefactor  = 0.0001
  norm       = 8.91187
  Prefactor  = 0.0001
  norm       = 0.232724
  Prefactor  = 28.0595
  Prefactor  = 0.0001
  norm       = 3.83775
  Prefactor  = 0.0001
  norm       = 4.20639
  Prefactor  = 28.2536
  Prefactor  = 2.59474
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.42693
  norm       = 16.5261
  Prefactor  = 0.0001
  Prefactor  = 54.2505
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.43498
  Normalizat = 1.05508
  Prefactor  = 0.888917
 **********
 **   18 **HESSE 
 **********

 FCN=   5300.770     FROM HESSE     STATUS=OK           423 CALLS     3311 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          212.44        196.47        .13870E-03   -1.2782    
   2  Prefactor     .10000E-03    32.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.9119        4.0779        .94070E-04   -1.5111    
   4  Prefactor     .10000E-03    1.7902        .94884E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .23272        .16551        .24524E-03   -1.5612    
   6  Prefactor     28.059        36.153        .75632E-04   -1.4648    
   7  Prefactor     .10000E-03    20.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.8377        344.34        .10301E-02   -1.5316    
   9  Prefactor     .10000E-03    4.0532        .28091E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.2064        2.2187        .75034E-04   -1.5298    
  11  Prefactor     28.254        38.839        .75374E-04   -1.4644    
  12  Prefactor     2.5947        4.0592        .17873E-03   -1.5386    
  13  Prefactor     .10000E-03    4.4224        .14942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.5251        .13344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.6469        .90960E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    16.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.4269        2.5525        .92788E-04   -1.5338    
  18  norm          16.526        11.675        .98523E-04   -1.4895    
  19  Prefactor     .10000E-03    3.3000        .12901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     54.250        69.854        .54458E-04   -1.4234    
  21  Prefactor     .10000E-03    32.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    127.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.4350        144.01        .26203E-03   -1.5396    
  24  Normalizat    1.0551        .25165        .25730E-03   -.91207    
  25  Prefactor     .88892        .20530        .23364E-03   -.96529    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52258e-08
Minuit parameter uncertainties:
  1  197.081
  2  0.000234015
  3  4.07804
  4  3.58206e-07
  5  0.165512
  6  36.1817
  7  2.3901e-05
  8  73.1415
  9  6.25594e-07
  10  2.21871
  11  38.8738
  12  4.05962
  13  1.17125e-06
  14  5.2471e-07
  15  7.7209e-07
  16  8.61018e-06
  17  2.55257
  18  11.6771
  19  7.87551e-07
  20  69.9597
  21  0.000169061
  22  1.1945e-05
  23  37.5467
  24  0.251938
  25  0.20548
Done.

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

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  2.825e+01  3.887e+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:  8.889e-01  2.055e-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.055e+00  2.519e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/261650/likelihoodResults_520560001_520819201_4FGL_J0524.6-2819_daily_bin1085.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): 102
logL (Free Index) = 5298.5076
delta logL = 2.2622385735

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5298.31859795
delta logL = 2.45124062562

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16890E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    8.6993       1.0000          .0000       10.000    
     3 'Normalizat'    .94556       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96275       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.

 FCN=   5298.319     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      415 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16505E-02    .16906E-01    .43348E-03** at limit **
   2  Index         8.7118        2.6667        .13370        .65394E-04
   3  Normalizat    .94522        .66676E-01    .45481E-01   -.70841E-06
   4  Prefactor     .96316        .56580E-01    .45800E-01    .12232E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00165049
  Index      = 8.71182
  Normalizat = 0.945217
  Prefactor  = 0.963159
 **********
 **   18 **HESSE 
 **********

 FCN=   5298.319     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      448 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16505E-02    .28567E-01    .16533E-04   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.7118        7.8510        .58532E-03    .83659    
   3  Normalizat    .94522        .21556        .26897E-03   -.94889    
   4  Prefactor     .96316        .18078        .22551E-03   -.93968    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.90239e-08
Minuit parameter uncertainties:
  1  0.0133105
  2  4.17399
  3  0.215753
  4  0.180892
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261650': 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): 102
logL (Free Index) = 5298.31859066
delta logL = 2.4512479151

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  1.650e-03  1.331e-02  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  8.712e+00  4.174e+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.632e-01  1.809e-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:  9.452e-01  2.158e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.93
Ra Dec: 81.173 -28.329
Photon Index (Free Index): 8.71 +/- 4.17
Photon Flux (Free Index): 1.03e-07 +/- 5.59e-08
Energy Flux (Free Index): 1.18e-05 +/- 6.69e-06

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/261650/cmap_HighResolution_520560001_520819201_4FGL_J0524.6-2819_daily_bin1085.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', comment='SUCCESS', energy_flux2='1.18e-05', dlogl='2.45e+00', photon_flux2='1.03e-07', job_status='DONE', time_completed='2021-08-22 13:33:19.482514', photon_index_error2='4.17', photon_index2='8.71', ts='0.68', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.30e-07', energy_flux_error2='6.69e-06', EG='1.06', time_epoch_completed='1629664399.48', return_code='0', job_id='261650', GAL2='0.96', EG2='0.95', return_code2='102', photon_flux_error2='5.59e-08', ts2='5.93', photon_index='2.57' WHERE bin_id='1085' AND source_name='4FGL J0524.6-2819' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 13:33:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 261650: <4FGL_J0524.6-2819_daily_bin1085> in cluster <slac> Done

Job <4FGL_J0524.6-2819_daily_bin1085> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 22 13:20:50 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 22 13:20:52 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:52 2021
Terminated at Sun Aug 22 13:33:21 2021
Results reported at Sun Aug 22 13:33:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0524.6-2819_daily_bin1085 81.1732 -28.3288 520560001 520819201 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 :                                   686.12 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             304.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   747 sec.
    Turnaround time :                            751 sec.

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

