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


Performing analysis on: 4FGL_J0524.6-2819_daily_bin828
RA = 81.1732, Dec = -28.3288
tmin = 453945601, tmax = 454204801
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='261188', job_status='RUN', time_executed='2021-08-22 13:20:59.092854', time_epoch_executed='1629663659.09' WHERE source_name='4FGL J0524.6-2819' and cadence='daily' and bin_id='828'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261188

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261188/ft1_4FGL_J0524.6-2819_daily_bin828.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261188/ft2_4FGL_J0524.6-2819_daily_bin828.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261188/ft1_4FGL_J0524.6-2819_daily_bin828.fits outfile=/scratch/kocevski/261188/ft1_filteredMKT_4FGL_J0524.6-2819_daily_bin828.fits ra=81.1732 dec=-28.3288 rad=12.0 tmin=453945601.0 tmax=454204801.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 4.40
user 3.81
sys 0.45

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261188/ft1_filtered_4FGL_J0524.6-2819_daily_bin828.fits" evtable="EVENTS" scfile=/scratch/kocevski/261188/ft2_4FGL_J0524.6-2819_daily_bin828.fits sctable="SC_DATA" outfile=/scratch/kocevski/261188/ltcube_453945601_454204801_4FGL_J0524.6-2819_daily_bin828.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/261188/ft2_4FGL_J0524.6-2819_daily_bin828.fits
.....................!
real 12.30
user 11.66
sys 0.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261188/ft1_filtered_4FGL_J0524.6-2819_daily_bin828.fits evtable="EVENTS" scfile=/scratch/kocevski/261188/ft2_4FGL_J0524.6-2819_daily_bin828.fits sctable="SC_DATA" expcube=/scratch/kocevski/261188/ltcube_453945601_454204801_4FGL_J0524.6-2819_daily_bin828.fits outfile=/scratch/kocevski/261188/expmap_453945601_454204801_4FGL_J0524.6-2819_daily_bin828.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/261188/ltcube_453945601_454204801_4FGL_J0524.6-2819_daily_bin828.fits
.....................!
real 190.33
user 185.21
sys 4.75

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/261188/ft1_filtered_4FGL_J0524.6-2819_daily_bin828.fits scfile=/scratch/kocevski/261188/ft2_4FGL_J0524.6-2819_daily_bin828.fits outfile=/scratch/kocevski/261188/cmap_453945601_454204801_4FGL_J0524.6-2819_daily_bin828.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 0.79
user 0.37
sys 0.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261188/ft1_filtered_4FGL_J0524.6-2819_daily_bin828.fits scfile=/scratch/kocevski/261188/ft2_4FGL_J0524.6-2819_daily_bin828.fits outfile=/scratch/kocevski/261188/cmap_HighResolution_453945601_454204801_4FGL_J0524.6-2819_daily_bin828.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 0.79
user 0.38
sys 0.39

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261188/ft1_filtered_4FGL_J0524.6-2819_daily_bin828.fits evtable="EVENTS" scfile=/scratch/kocevski/261188/ft2_4FGL_J0524.6-2819_daily_bin828.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261188/Model_4FGL_J0524.6-2819_daily_bin828.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/261188/ft1_filtered_4FGL_J0524.6-2819_daily_bin828.fits.....................!
real 74.99
user 73.30
sys 1.49

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    11.101       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.5708       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      '    49.997       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.3776       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.5076       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3759       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .36178E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.4926       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.5963       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.8566       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.547       1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.524       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3963       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .80394       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=   6001.894     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2866 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    85.554       -.70870E-05** at limit **
   2  Prefactor     .10000E-03    26.131        .16631E-04** at limit **
   3  norm          11.100        5.7731       -.52462E-06   -.11947E-03
   4  Prefactor     .10000E-03    2.2251        .16949E-06** at limit **
   5  norm          1.5707        .32617       -.29738E-07   -.32638E-03
   6  Prefactor     .10000E-03    20.669       -.16045E-04** at limit **
   7  Prefactor     .10000E-03    8.0220        .51859E-05** at limit **
   8  norm          49.996        58.960       -.18605E-05   -.32814E-05
   9  Prefactor     .10000E-03    1.0912       -.95886E-07** at limit **
  10  norm          2.3772        2.5529       -.56459E-06   -.26841E-03
  11  Prefactor     3.4993        108.46       -.24706E-04   -.95480E-05
  12  Prefactor     2.3763        4.7392       -.32633E-05   -.41525E-03
  13  Prefactor     .10000E-03    7.4329       -.23090E-05** at limit **
  14  Prefactor     .10002E-03    9.2239       -.39762E-05** at limit **
  15  norm          2.4961        5.9996        .44960E-05    .65892E-03
  16  Prefactor     .10000E-03    10.423       -.59625E-05** at limit **
  17  norm          2.5958        2.5387        .11649E-06   -.77707E-04
  18  norm          .10000E-03    3.8944       -.37820E-07** at limit **
  19  Prefactor     2.8565        7.2166       -.80592E-06   -.31701E-03
  20  Prefactor     13.545        42.365       -.30467E-05   -.19404E-05
  21  Prefactor     23.524        31.085       -.66962E-06    .18181E-05
  22  Prefactor     .10000E-03    8.8256       -.31588E-05** at limit **
  23  Prefactor     .10000E-03    12.631        .10317E-04** at limit **
  24  Normalizat    1.3964        .22799        .94777E-06    .24634E-03
  25  Prefactor     .80387        .17198        .40616E-06    .26039E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.1
  Prefactor  = 0.0001
  norm       = 1.57075
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 49.9957
  Prefactor  = 0.0001
  norm       = 2.37721
  Prefactor  = 3.49935
  Prefactor  = 2.37625
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  norm       = 2.49615
  Prefactor  = 0.0001
  norm       = 2.5958
  norm       = 0.0001
  Prefactor  = 2.8565
  Prefactor  = 13.545
  Prefactor  = 23.5238
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.3964
  Prefactor  = 0.803867
 **********
 **   18 **HESSE 
 **********

 FCN=   6001.894     FROM HESSE     STATUS=OK           425 CALLS     3291 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    85.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.100        5.8138        .12025E-03   -1.5042    
   4  Prefactor     .10000E-03    2.2305        .11283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.5707        .32665        .19230E-04   -1.5457    
   6  Prefactor     .10000E-03    20.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.9999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          49.996        59.013        .56715E-04   -1.4293    
   9  Prefactor     .10000E-03    1.0934        .78992E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.3772        2.5402        .11983E-03   -1.5400    
  11  Prefactor     3.4993        108.27        .21587E-03   -1.5334    
  12  Prefactor     2.3763        4.7543        .23181E-03   -1.5400    
  13  Prefactor     .10000E-03    7.4412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    24.154        .40172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.4961        5.3409        .24202E-03   -1.5392    
  16  Prefactor     .10000E-03    10.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.5958        2.5215        .11138E-03   -1.5386    
  18  norm          .10000E-03    3.8965        .14931E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.8565        7.2143        .24054E-03   -1.5370    
  20  Prefactor     13.545        42.391        .10883E-03   -1.4972    
  21  Prefactor     23.524        31.102        .82587E-04   -1.4738    
  22  Prefactor     .10000E-03    8.8288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3964        .27179        .26429E-03   -.80733    
  25  Prefactor     .80387        .20305        .27027E-03   -.99586    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84408e-09
Minuit parameter uncertainties:
  1  6.31635e-06
  2  6.47665e-06
  3  5.81411
  4  1.75569e-06
  5  0.326649
  6  7.97272e-06
  7  5.36971e-07
  8  59.0823
  9  3.98996e-06
  10  2.54034
  11  39.0059
  12  4.75507
  13  1.32765e-05
  14  0.00130186
  15  5.34194
  16  2.69171e-05
  17  2.52159
  18  7.27464e-08
  19  7.21647
  20  42.4854
  21  31.1239
  22  4.09739e-06
  23  2.5248e-06
  24  0.272068
  25  0.203236
Done.

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

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  3.499e+00  3.901e+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.039e-01  2.032e-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.396e+00  2.721e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/261188/likelihoodResults_453945601_454204801_4FGL_J0524.6-2819_daily_bin828.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) = 6001.60984348
delta logL = 0.284483391934

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6001.56802849
delta logL = 0.326298383865

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .76413       1.0000         .10000E-03   10000.    
     2 'Index     '    5.0863       1.0000          .0000       10.000    
     3 'Normalizat'    1.3251       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84246       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=   6001.568     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      239 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .76362        18.466        .12306E-01    .11007E-02
   2  Index         5.0889        3.5750        .15023        .12137E-03
   3  Normalizat    1.3252        .44493E-01    .61080E-01   -.62115E-06
   4  Prefactor     .84243        .35837E-01    .44267E-01    .10407E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.763618
  Index      = 5.08888
  Normalizat = 1.32516
  Prefactor  = 0.842434
 **********
 **   18 **HESSE 
 **********

 FCN=   6001.568     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      272 TOTAL
                     EDM=   .94E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .76362        62.046        .84717E-04   -1.5533    
   2  Index         5.0889        7.3739        .78515E-02    .17776E-01
   3  Normalizat    1.3252        .20470        .27015E-03   -.82818    
   4  Prefactor     .84243        .15996        .26472E-03   -.98183    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.37788e-07
Minuit parameter uncertainties:
  1  13.7804
  2  9.79881
  3  0.204821
  4  0.160045
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261188': 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) = 6001.5680231
delta logL = 0.32630376762

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  7.636e-01  1.378e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  5.089e+00  9.799e+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:  8.424e-01  1.600e-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.325e+00  2.048e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/261188/cmap_HighResolution_453945601_454204801_4FGL_J0524.6-2819_daily_bin828.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.11e-03', job_status='DONE', photon_flux_upper_limit='1.17e-07', time_completed='2021-08-22 13:32:36.330000', job_id='261188', GAL2='0.84', fit_tolerance='1e-08', EG2='1.33', EG='1.40', time_epoch_completed='1629664356.33', return_code2='102', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='3.26e-01', ts2='0.73', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='828' AND source_name='4FGL J0524.6-2819' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 13:32:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 261188: <4FGL_J0524.6-2819_daily_bin828> in cluster <slac> Done

Job <4FGL_J0524.6-2819_daily_bin828> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 22 13:20:24 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 22 13:20:25 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:25 2021
Terminated at Sun Aug 22 13:32:37 2021
Results reported at Sun Aug 22 13:32:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0524.6-2819_daily_bin828 81.1732 -28.3288 453945601 454204801 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 :                                   698.40 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             352.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   731 sec.
    Turnaround time :                            733 sec.

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

