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


Performing analysis on: 4FGL_J0524.6-2819_daily_bin554
RA = 81.1732, Dec = -28.3288
tmin = 382924801, tmax = 383184001
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='258368', job_status='RUN', time_executed='2021-08-22 13:12:32.355191', time_epoch_executed='1629663152.36' WHERE source_name='4FGL J0524.6-2819' and cadence='daily' and bin_id='554'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/258368

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/258368/ft1_4FGL_J0524.6-2819_daily_bin554.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/258368/ft2_4FGL_J0524.6-2819_daily_bin554.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/258368/ft1_4FGL_J0524.6-2819_daily_bin554.fits outfile=/scratch/kocevski/258368/ft1_filteredMKT_4FGL_J0524.6-2819_daily_bin554.fits ra=81.1732 dec=-28.3288 rad=12.0 tmin=382924801.0 tmax=383184001.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 10.15
user 4.26
sys 5.84

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/258368/ft1_filtered_4FGL_J0524.6-2819_daily_bin554.fits" evtable="EVENTS" scfile=/scratch/kocevski/258368/ft2_4FGL_J0524.6-2819_daily_bin554.fits sctable="SC_DATA" outfile=/scratch/kocevski/258368/ltcube_382924801_383184001_4FGL_J0524.6-2819_daily_bin554.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/258368/ft2_4FGL_J0524.6-2819_daily_bin554.fits
.....................!
real 17.98
user 11.29
sys 6.64

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/258368/ft1_filtered_4FGL_J0524.6-2819_daily_bin554.fits evtable="EVENTS" scfile=/scratch/kocevski/258368/ft2_4FGL_J0524.6-2819_daily_bin554.fits sctable="SC_DATA" expcube=/scratch/kocevski/258368/ltcube_382924801_383184001_4FGL_J0524.6-2819_daily_bin554.fits outfile=/scratch/kocevski/258368/expmap_382924801_383184001_4FGL_J0524.6-2819_daily_bin554.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/258368/ltcube_382924801_383184001_4FGL_J0524.6-2819_daily_bin554.fits
.....................!
real 197.57
user 184.97
sys 11.54

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/258368/ft1_filtered_4FGL_J0524.6-2819_daily_bin554.fits scfile=/scratch/kocevski/258368/ft2_4FGL_J0524.6-2819_daily_bin554.fits outfile=/scratch/kocevski/258368/cmap_382924801_383184001_4FGL_J0524.6-2819_daily_bin554.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 6.02
user 0.39
sys 5.58

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/258368/ft1_filtered_4FGL_J0524.6-2819_daily_bin554.fits scfile=/scratch/kocevski/258368/ft2_4FGL_J0524.6-2819_daily_bin554.fits outfile=/scratch/kocevski/258368/cmap_HighResolution_382924801_383184001_4FGL_J0524.6-2819_daily_bin554.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 6.17
user 0.39
sys 5.65

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/258368/ft1_filtered_4FGL_J0524.6-2819_daily_bin554.fits evtable="EVENTS" scfile=/scratch/kocevski/258368/ft2_4FGL_J0524.6-2819_daily_bin554.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/258368/Model_4FGL_J0524.6-2819_daily_bin554.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/258368/ft1_filtered_4FGL_J0524.6-2819_daily_bin554.fits.....................!
real 83.05
user 74.17
sys 8.52

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .12700E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.5631       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.3951       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.3084       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14792E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.2102       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8841       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.4633       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .34294       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.5412       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.0428       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    37.081       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .83972       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1196       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=   6431.731     FROM MIGRAD    STATUS=CONVERGED    580 CALLS     2904 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    87.526        .79932E-06** at limit **
   2  Prefactor     .10000E-03    16.320       -.12823E-06** at limit **
   3  norm          .10000E-03    2.3251        .11609E-06** at limit **
   4  Prefactor     .10000E-03    3.8236       -.78747E-07** at limit **
   5  norm          2.5632        .33971        .16476E-07   -.22430E-03
   6  Prefactor     6.3876        23.727        .24423E-07   -.27618E-05
   7  Prefactor     .10000E-03    10.377       -.25833E-06** at limit **
   8  norm          4.2111        214.96        .15369E-04   -.19465E-05
   9  Prefactor     .10000E-03    2.0415        .18502E-07** at limit **
  10  norm          4.2093        2.2722       -.13744E-06   -.14282E-03
  11  Prefactor     .10000E-03    10.901       -.12052E-06** at limit **
  12  Prefactor     3.8813        5.3602        .46001E-06    .14407E-04
  13  Prefactor     .10000E-03    8.0946        .54547E-06** at limit **
  14  Prefactor     .10000E-03    4.5803       -.19040E-07** at limit **
  15  norm          4.4639        4.2719        .15294E-06   -.20081E-04
  16  Prefactor     .10000E-03    7.3669       -.40383E-07** at limit **
  17  norm          .34280        1.3244        .16479E-06    .43232E-04
  18  norm          .10000E-03    2.9453        .21901E-07** at limit **
  19  Prefactor     6.5396        9.6264        .67794E-06    .24484E-04
  20  Prefactor     .10000E-03    83.313       -.95246E-06** at limit **
  21  Prefactor     3.0380        73.726        .11129E-05    .90456E-07
  22  Prefactor     .10000E-03    15.286        .10238E-06** at limit **
  23  Prefactor     37.069        44.764        .62142E-06   -.81721E-07
  24  Normalizat    .83969        .20932       -.17339E-05   -.25330E-04
  25  Prefactor     1.1197        .17350        .69918E-06   -.10026E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.56315
  Prefactor  = 6.38765
  Prefactor  = 0.0001
  norm       = 4.21105
  Prefactor  = 0.0001
  norm       = 4.20934
  Prefactor  = 0.0001
  Prefactor  = 3.88132
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.46393
  Prefactor  = 0.0001
  norm       = 0.342796
  norm       = 0.0001
  Prefactor  = 6.53959
  Prefactor  = 0.0001
  Prefactor  = 3.038
  Prefactor  = 0.0001
  Prefactor  = 37.0693
  Normalizat = 0.839689
  Prefactor  = 1.11966
 **********
 **   18 **HESSE 
 **********

 FCN=   6431.731     FROM HESSE     STATUS=OK           427 CALLS     3331 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    87.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.7705        .23341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.9010        .15292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.5632        .33986        .16111E-04   -1.5388    
   6  Prefactor     6.3876        23.698        .15872E-03   -1.5202    
   7  Prefactor     .10000E-03    10.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.2111        218.34        .19408E-03   -1.5298    
   9  Prefactor     .10000E-03    12.175        .21026E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.2093        2.2359        .82645E-04   -1.5298    
  11  Prefactor     .10000E-03    10.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.8813        5.3812        .10237E-02   -1.5314    
  13  Prefactor     .10000E-03    8.1693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.5832        .16743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.4639        4.2624        .15230E-03   -1.5285    
  16  Prefactor     .10000E-03    7.3679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .34280        1.3224        .17297E-03   -1.5591    
  18  norm          .10000E-03    2.9457        .13442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.5396        9.6168        .78456E-03   -1.5196    
  20  Prefactor     .10000E-03    83.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.0380        73.817        .23260E-03   -1.5359    
  22  Prefactor     .10000E-03    15.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     37.069        44.763        .65816E-04   -1.4490    
  24  Normalizat    .83969        .23498        .29932E-03   -.98613    
  25  Prefactor     1.1197        .19960        .22787E-03   -.88841    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.7584e-11
Minuit parameter uncertainties:
  1  1.35293e-05
  2  1.60587e-07
  3  3.58916e-05
  4  8.43159e-06
  5  0.339856
  6  23.733
  7  1.20428e-05
  8  60.8798
  9  5.21423e-05
  10  2.23593
  11  2.77783e-06
  12  5.38189
  13  4.54438e-06
  14  1.43197e-06
  15  4.2627
  16  9.92645e-08
  17  1.32252
  18  3.11501e-07
  19  9.61909
  20  2.80451e-05
  21  29.9915
  22  1.73436e-06
  23  44.8033
  24  0.235268
  25  0.19973
Done.

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

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  2.778e-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.120e+00  1.997e-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:  8.397e-01  2.353e-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.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/258368/likelihoodResults_382924801_383184001_4FGL_J0524.6-2819_daily_bin554.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) = 6431.73108304
delta logL = -0.000436264451309

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6431.7306484
delta logL = -1.63132972375e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12495E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5539       1.0000          .0000       10.000    
     3 'Normalizat'    .83992       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1195       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=   6431.731     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      245 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10238E-03    14.748        .18142E-01** at limit **
   2  Index         2.4638        7.7599        .50000        .11516E-04
   3  Normalizat    .83969        .52782E-02    .29933E-03   -.23434E-04
   4  Prefactor     1.1197        .46029E-02    .22787E-03   -.21354E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102381
  Index      = 2.46379
  Normalizat = 0.839688
  Prefactor  = 1.11966
 **********
 **   18 **HESSE 
 **********

 FCN=   6431.731     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10238E-03    109.09        .26820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4638        7.9261        .50000       -.53198    
   3  Normalizat    .83969        .14474E-01    .11973E-04   -.98613    
   4  Prefactor     1.1197        .12622E-01    .91147E-05   -.88841    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.73408e-09
Minuit parameter uncertainties:
  1  0.0322894
  2  501.707
  3  0.0144741
  4  0.0126223
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/258368': 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) = 6431.73064654
delta logL = 2.30525074585e-07

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  1.024e-04  3.229e-02  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.464e+00  5.017e+02  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.120e+00  1.262e-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:  8.397e-01  1.447e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/258368/cmap_HighResolution_382924801_383184001_4FGL_J0524.6-2819_daily_bin554.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.60e-03', job_status='DONE', photon_flux_upper_limit='5.88e-08', time_completed='2021-08-22 13:26:07.186187', job_id='258368', GAL2='1.12', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1629663967.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='2.31e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='554' AND source_name='4FGL J0524.6-2819' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 13:26:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 258368: <4FGL_J0524.6-2819_daily_bin554> in cluster <slac> Done

Job <4FGL_J0524.6-2819_daily_bin554> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Aug 22 13:10:47 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 22 13:10:48 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:10:48 2021
Terminated at Sun Aug 22 13:26:08 2021
Results reported at Sun Aug 22 13:26:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0524.6-2819_daily_bin554 81.1732 -28.3288 382924801 383184001 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 :                                   899.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             333.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            921 sec.

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

