/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 9 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 = 7443
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0524.6-2819_daily_bin49
RA = 81.1732, Dec = -28.3288
tmin = 252028801, tmax = 252288001
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='255403', job_status='RUN', time_executed='2021-08-22 13:01:47.068282', time_epoch_executed='1629662507.07' WHERE source_name='4FGL J0524.6-2819' and cadence='daily' and bin_id='49'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/255403

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/255403/ft1_4FGL_J0524.6-2819_daily_bin49.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/255403/ft2_4FGL_J0524.6-2819_daily_bin49.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/255403/ft1_4FGL_J0524.6-2819_daily_bin49.fits outfile=/scratch/kocevski/255403/ft1_filteredMKT_4FGL_J0524.6-2819_daily_bin49.fits ra=81.1732 dec=-28.3288 rad=12.0 tmin=252028801.0 tmax=252288001.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 3.65
user 1.23
sys 2.39

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/255403/ft1_filtered_4FGL_J0524.6-2819_daily_bin49.fits" evtable="EVENTS" scfile=/scratch/kocevski/255403/ft2_4FGL_J0524.6-2819_daily_bin49.fits sctable="SC_DATA" outfile=/scratch/kocevski/255403/ltcube_252028801_252288001_4FGL_J0524.6-2819_daily_bin49.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/255403/ft2_4FGL_J0524.6-2819_daily_bin49.fits
.....................!
real 15.07
user 12.19
sys 2.83

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/255403/ft1_filtered_4FGL_J0524.6-2819_daily_bin49.fits evtable="EVENTS" scfile=/scratch/kocevski/255403/ft2_4FGL_J0524.6-2819_daily_bin49.fits sctable="SC_DATA" expcube=/scratch/kocevski/255403/ltcube_252028801_252288001_4FGL_J0524.6-2819_daily_bin49.fits outfile=/scratch/kocevski/255403/expmap_252028801_252288001_4FGL_J0524.6-2819_daily_bin49.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/255403/ltcube_252028801_252288001_4FGL_J0524.6-2819_daily_bin49.fits
.....................!
real 195.13
user 187.60
sys 7.16

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/255403/ft1_filtered_4FGL_J0524.6-2819_daily_bin49.fits scfile=/scratch/kocevski/255403/ft2_4FGL_J0524.6-2819_daily_bin49.fits outfile=/scratch/kocevski/255403/cmap_252028801_252288001_4FGL_J0524.6-2819_daily_bin49.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 2.72
user 0.37
sys 2.32

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/255403/ft1_filtered_4FGL_J0524.6-2819_daily_bin49.fits scfile=/scratch/kocevski/255403/ft2_4FGL_J0524.6-2819_daily_bin49.fits outfile=/scratch/kocevski/255403/cmap_HighResolution_252028801_252288001_4FGL_J0524.6-2819_daily_bin49.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 2.75
user 0.37
sys 2.36

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/255403/ft1_filtered_4FGL_J0524.6-2819_daily_bin49.fits evtable="EVENTS" scfile=/scratch/kocevski/255403/ft2_4FGL_J0524.6-2819_daily_bin49.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/255403/Model_4FGL_J0524.6-2819_daily_bin49.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/255403/ft1_filtered_4FGL_J0524.6-2819_daily_bin49.fits.....................!
real 87.26
user 83.03
sys 4.08

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .13153E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.4108       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .89262       1.0000         .10000E-03   10000.    
     5 'norm      '    1.3854       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.298       1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.0149       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.5949       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2495       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    19.240       1.0000         .10000E-03   10000.    
    16 'Prefactor '    37.028       1.0000         .10000E-03   10000.    
    17 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    14.119       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5964       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    22.442       1.0000         .10000E-03   10000.    
    23 'Prefactor '    26.205       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .49385       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2627       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=   7438.496     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     2516 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    227.93        .27821E-04** at limit **
   2  Prefactor     .10000E-03    111.58       -.15701E-04** at limit **
   3  norm          4.4107        3.6786        .53003E-07    .71666E-05
   4  Prefactor     .89268        3.1216        .22297E-06   -.21952E-04
   5  norm          1.3854        .23693        .27255E-07    .20088E-02
   6  Prefactor     .10000E-03    8.9064       -.71475E-09** at limit **
   7  Prefactor     11.296        13.375        .11991E-06    .12560E-04
   8  norm          .10000E-03    30.155       -.55479E-06** at limit **
   9  Prefactor     .10000E-03    1.4806       -.11016E-07** at limit **
  10  norm          1.0154        1.8359        .41188E-07   -.51110E-04
  11  Prefactor     .10000E-03    16.204        .20831E-08** at limit **
  12  Prefactor     8.5954        7.2166        .20571E-07    .46073E-06
  13  Prefactor     3.2448        15.159        .47331E-06    .18596E-05
  14  Prefactor     .10000E-03    6.2773       -.31731E-07** at limit **
  15  norm          19.240        5.6697        .40168E-07    .26692E-04
  16  Prefactor     37.030        28.556        .39928E-08   -.10832E-05
  17  norm          .10000E-03    .80927       -.64245E-07** at limit **
  18  norm          14.119        9.5599       -.24070E-06   -.66293E-05
  19  Prefactor     2.5976        6.5643        .44582E-05   -.14216E-04
  20  Prefactor     .10000E-03    60.626        .48482E-05** at limit **
  21  Prefactor     .10000E-03    10.809       -.58145E-07** at limit **
  22  Prefactor     22.442        21.168        .24317E-08   -.11909E-05
  23  Prefactor     26.203        33.214        .10618E-06   -.52403E-06
  24  Normalizat    .49389        .18582        .28592E-06    .66099E-04
  25  Prefactor     1.2627        .15580       -.49439E-06    .12240E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.41066
  Prefactor  = 0.89268
  norm       = 1.38545
  Prefactor  = 0.0001
  Prefactor  = 11.2963
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.01535
  Prefactor  = 0.0001
  Prefactor  = 8.59544
  Prefactor  = 3.24478
  Prefactor  = 0.0001
  norm       = 19.2397
  Prefactor  = 37.0304
  norm       = 0.0001
  norm       = 14.1187
  Prefactor  = 2.59762
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.4416
  Prefactor  = 26.2027
  Normalizat = 0.493891
  Prefactor  = 1.26273
 **********
 **   18 **HESSE 
 **********

 FCN=   7438.496     FROM HESSE     STATUS=OK           427 CALLS     2943 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    228.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    112.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.4107        3.6627        .14013E-03   -1.5288    
   4  Prefactor     .89268        3.0365        .27154E-03   -1.5519    
   5  norm          1.3854        .23704        .16511E-04   -1.5473    
   6  Prefactor     .10000E-03    8.9070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.296        13.371        .11919E-03   -1.5036    
   8  norm          .10000E-03    30.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.4964        .10232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.0154        1.7860        .14506E-03   -1.5506    
  11  Prefactor     .10000E-03    16.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.5954        7.1683        .13673E-03   -1.5122    
  13  Prefactor     3.2448        14.719        .22468E-03   -1.5348    
  14  Prefactor     .10000E-03    6.2901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          19.240        5.6543        .91311E-04   -1.4830    
  16  Prefactor     37.030        28.512        .65863E-04   -1.4490    
  17  norm          .10000E-03    .84740        .15122E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          14.119        9.5727        .10660E-03   -1.4956    
  19  Prefactor     2.5976        6.5677        .12660E-02   -1.5386    
  20  Prefactor     .10000E-03    60.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     22.442        21.158        .84553E-04   -1.4760    
  23  Prefactor     26.203        33.207        .78256E-04   -1.4684    
  24  Normalizat    .49389        .20077        .36076E-03   -1.1270    
  25  Prefactor     1.2627        .17080        .20546E-03   -.84422    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06037e-10
Minuit parameter uncertainties:
  1  0.000486881
  2  0.00016896
  3  3.66288
  4  3.03707
  5  0.237036
  6  5.3633e-07
  7  13.375
  8  5.91673e-06
  9  8.82878e-07
  10  1.78608
  11  8.28572e-06
  12  7.16902
  13  13.8273
  14  2.28854e-06
  15  5.65442
  16  28.5224
  17  1.43541e-06
  18  9.57373
  19  6.56952
  20  1.96956e-05
  21  2.98157e-06
  22  21.1652
  23  33.2302
  24  0.20106
  25  0.170875
Done.

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

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  8.286e-06  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.263e+00  1.709e-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:  4.939e-01  2.011e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 81.173 -28.329
Photon Flux Upper Limit: 5.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/255403/likelihoodResults_252028801_252288001_4FGL_J0524.6-2819_daily_bin49.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) = 7438.49588858
delta logL = -0.000292625461043

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7438.49559796
delta logL = -2.01134389499e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.4170       1.0000          .0000       10.000    
     3 'Normalizat'    .49388       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2627       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7438.496     FROM MIGRAD    STATUS=FAILED        96 CALLS      276 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11368E-03    155.16        .36285E-02** at limit **
   2  Index         2.8794        6.1748        .50000        .84919E-05
   3  Normalizat    .49389        .13481E-01    .36076E-03   -.36429E-04
   4  Prefactor     1.2627        .11923E-01    .20546E-03   -.37129E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7438.496     FROM SIMPLEX   STATUS=PROGRESS     126 CALLS      402 TOTAL
                     EDM=   .67E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10184E-03    155.16        .56316E-03** at limit **
   2  Index         2.8777        6.1748        .53503E-03    .84919E-05
   3  Normalizat    .49388        .13481E-01    .52697E-05   -.36429E-04
   4  Prefactor     1.2627        .11923E-01    .25063E-05   -.37129E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7438.496     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      455 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    143.63        .72569E-02** at limit **
   2  Index         2.4231        8.7776        .50000        .12778E-07
   3  Normalizat    .49389        .12226E-01    .14430E-04   -.21256E-03
   4  Prefactor     1.2627        .10813E-01    .82183E-05   -.31457E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.4231
  Normalizat = 0.49389
  Prefactor  = 1.26273
 **********
 **   18 **HESSE 
 **********

 FCN=   7438.496     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      484 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    929.70        .14514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4231        5.1500        .50000       -.54145    
   3  Normalizat    .49389        .33423E-01    .28861E-05   -1.1270    
   4  Prefactor     1.2627        .29562E-01    .16437E-05   -.84422    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.00617e-08
Minuit parameter uncertainties:
  1  0.00354633
  2  2405.2
  3  0.0334243
  4  0.0295625
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/255403': 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) = 7438.49559591
delta logL = 3.96812538384e-08

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  3.546e-03  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.423e+00  2.405e+03  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.263e+00  2.956e-02  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:  4.939e-01  3.342e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 81.173 -28.329

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/255403/cmap_HighResolution_252028801_252288001_4FGL_J0524.6-2819_daily_bin49.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-03', job_status='DONE', photon_flux_upper_limit='5.59e-08', time_completed='2021-08-22 13:14:41.019065', job_id='255403', GAL2='1.26', fit_tolerance='1e-08', EG2='0.49', EG='0.49', time_epoch_completed='1629663281.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='3.97e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='49' AND source_name='4FGL J0524.6-2819' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 13:14:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 255403: <4FGL_J0524.6-2819_daily_bin49> in cluster <slac> Done

Job <4FGL_J0524.6-2819_daily_bin49> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 22 13:00:51 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 22 13:00: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:00:52 2021
Terminated at Sun Aug 22 13:14:42 2021
Results reported at Sun Aug 22 13:14:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0524.6-2819_daily_bin49 81.1732 -28.3288 252028801 252288001 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 :                                   808.53 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             342.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   829 sec.
    Turnaround time :                            831 sec.

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

