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


Performing analysis on: 4FGL_J0524.6-2819_daily_bin1468
RA = 81.1732, Dec = -28.3288
tmin = 619833601, tmax = 620092801
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='267408', job_status='RUN', time_executed='2021-08-22 13:36:59.221263', time_epoch_executed='1629664619.22' WHERE source_name='4FGL J0524.6-2819' and cadence='daily' and bin_id='1468'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/267408

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/267408/ft1_4FGL_J0524.6-2819_daily_bin1468.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/267408/ft2_4FGL_J0524.6-2819_daily_bin1468.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/267408/ft1_4FGL_J0524.6-2819_daily_bin1468.fits outfile=/scratch/kocevski/267408/ft1_filteredMKT_4FGL_J0524.6-2819_daily_bin1468.fits ra=81.1732 dec=-28.3288 rad=12.0 tmin=619833601.0 tmax=620092801.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.34
user 3.18
sys 0.98

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/267408/ft1_filtered_4FGL_J0524.6-2819_daily_bin1468.fits" evtable="EVENTS" scfile=/scratch/kocevski/267408/ft2_4FGL_J0524.6-2819_daily_bin1468.fits sctable="SC_DATA" outfile=/scratch/kocevski/267408/ltcube_619833601_620092801_4FGL_J0524.6-2819_daily_bin1468.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/267408/ft2_4FGL_J0524.6-2819_daily_bin1468.fits
.....................!
real 13.81
user 12.42
sys 1.21

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/267408/ft1_filtered_4FGL_J0524.6-2819_daily_bin1468.fits evtable="EVENTS" scfile=/scratch/kocevski/267408/ft2_4FGL_J0524.6-2819_daily_bin1468.fits sctable="SC_DATA" expcube=/scratch/kocevski/267408/ltcube_619833601_620092801_4FGL_J0524.6-2819_daily_bin1468.fits outfile=/scratch/kocevski/267408/expmap_619833601_620092801_4FGL_J0524.6-2819_daily_bin1468.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/267408/ltcube_619833601_620092801_4FGL_J0524.6-2819_daily_bin1468.fits
.....................!
real 193.36
user 186.27
sys 5.24

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/267408/ft1_filtered_4FGL_J0524.6-2819_daily_bin1468.fits scfile=/scratch/kocevski/267408/ft2_4FGL_J0524.6-2819_daily_bin1468.fits outfile=/scratch/kocevski/267408/cmap_619833601_620092801_4FGL_J0524.6-2819_daily_bin1468.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.32
user 0.38
sys 0.92

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/267408/ft1_filtered_4FGL_J0524.6-2819_daily_bin1468.fits scfile=/scratch/kocevski/267408/ft2_4FGL_J0524.6-2819_daily_bin1468.fits outfile=/scratch/kocevski/267408/cmap_HighResolution_619833601_620092801_4FGL_J0524.6-2819_daily_bin1468.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.32
user 0.39
sys 0.92

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/267408/ft1_filtered_4FGL_J0524.6-2819_daily_bin1468.fits evtable="EVENTS" scfile=/scratch/kocevski/267408/ft2_4FGL_J0524.6-2819_daily_bin1468.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/267408/Model_4FGL_J0524.6-2819_daily_bin1468.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/267408/ft1_filtered_4FGL_J0524.6-2819_daily_bin1468.fits.....................!
real 99.38
user 93.27
sys 2.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    38.989       1.0000         .10000E-03   10000.    
     2 'Prefactor '    26.670       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10628E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.1846       1.0000         .10000E-03   10000.    
     6 'Prefactor '    22.637       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .14268E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10406E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    1.8211       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.2538       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.150       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.2624       1.0000         .10000E-03   10000.    
    15 'norm      '    .17341E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.0537       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.3945       1.0000         .10000E-03   10000.    
    21 'Prefactor '    48.570       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.607       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .83080       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99570       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=   8618.459     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     2951 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          39.014        71.524        .33825E-04   -.21558E-06
   2  Prefactor     26.665        36.916       -.56843E-05   -.43776E-05
   3  norm          .10000E-03    .95358        .88005E-07** at limit **
   4  Prefactor     .10011E-03    1.8738        .25737E-06** at limit **
   5  norm          1.1845        .19963        .21950E-07   -.40928E-03
   6  Prefactor     22.642        21.780        .10531E-05    .24068E-05
   7  Prefactor     .10000E-03    12.701        .74867E-06** at limit **
   8  norm          .10000E-03    63.894       -.21983E-06** at limit **
   9  Prefactor     .10000E-03    1.2693       -.33158E-07** at limit **
  10  norm          1.8240        1.7039       -.21461E-06   -.95662E-03
  11  Prefactor     7.2584        21.001        .54066E-06   -.34567E-04
  12  Prefactor     .10000E-03    2.2681        .14879E-07** at limit **
  13  Prefactor     10.160        9.1222       -.61520E-06   -.11232E-04
  14  Prefactor     5.2723        5.0804       -.14410E-05    .17669E-04
  15  norm          .10000E-03    1.6877        .35564E-06** at limit **
  16  Prefactor     .10000E-03    28.346       -.45610E-05** at limit **
  17  norm          .10000E-03    .50284       -.50409E-08** at limit **
  18  norm          5.0568        4.8820        .47530E-05    .94337E-04
  19  Prefactor     .10000E-03    2.2981        .74128E-07** at limit **
  20  Prefactor     2.3681        96.111       -.68123E-04   -.14243E-04
  21  Prefactor     48.575        29.891        .32993E-05    .30235E-04
  22  Prefactor     14.597        19.241       -.14485E-05    .49016E-05
  23  Prefactor     .10000E-03    20.672       -.23663E-05** at limit **
  24  Normalizat    .83090        .15136        .28672E-06   -.47286E-04
  25  Prefactor     .99571        .12673        .46572E-06   -.48106E-07
                               ERR DEF=  .500    
Final values: 
  norm       = 39.0139
  Prefactor  = 26.6649
  norm       = 0.0001
  Prefactor  = 0.000100111
  norm       = 1.18452
  Prefactor  = 22.6418
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.82404
  Prefactor  = 7.25842
  Prefactor  = 0.0001
  Prefactor  = 10.1597
  Prefactor  = 5.2723
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.05676
  Prefactor  = 0.0001
  Prefactor  = 2.36812
  Prefactor  = 48.5747
  Prefactor  = 14.5967
  Prefactor  = 0.0001
  Normalizat = 0.830899
  Prefactor  = 0.995712
 **********
 **   18 **HESSE 
 **********

 FCN=   8618.459     FROM HESSE     STATUS=OK           437 CALLS     3388 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          39.014        71.443        .64191E-04   -1.4458    
   2  Prefactor     26.665        36.940        .77573E-04   -1.4675    
   3  norm          .10000E-03    .96730        .88419E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10011E-03    30.031        .24099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.1845        .20012        .16026E-04   -1.5490    
   6  Prefactor     22.642        21.761        .84187E-04   -1.4756    
   7  Prefactor     .10000E-03    12.766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    64.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.418        .19585E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.8240        1.6498        .10784E-03   -1.5438    
  11  Prefactor     7.2584        20.937        .14893E-03   -1.5169    
  12  Prefactor     .10000E-03    2.2868        .13646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.160        9.0718        .12577E-03   -1.5070    
  14  Prefactor     5.2723        5.0073        .17521E-03   -1.5249    
  15  norm          .10000E-03    3.0390        .22783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    28.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .82322        .12586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.0568        4.8901        .17887E-03   -1.5258    
  19  Prefactor     .10000E-03    2.3314        .13742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.3681        97.700        .26465E-03   -1.5400    
  21  Prefactor     48.575        29.868        .57539E-04   -1.4313    
  22  Prefactor     14.597        19.213        .10480E-03   -1.4944    
  23  Prefactor     .10000E-03    20.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .83090        .17103        .26683E-03   -.98933    
  25  Prefactor     .99571        .14769        .21519E-03   -.92873    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84624e-09
Minuit parameter uncertainties:
  1  71.6
  2  36.9719
  3  4.73373e-06
  4  0.00365001
  5  0.200115
  6  21.7686
  7  4.49045e-06
  8  3.35317e-05
  9  0.000236373
  10  1.64981
  11  20.9579
  12  2.80785e-06
  13  9.07306
  14  5.0077
  15  4.26075e-05
  16  4.24594e-05
  17  8.07736e-06
  18  4.89052
  19  4.64794e-06
  20  30.4741
  21  29.8771
  22  19.2213
  23  3.6889e-05
  24  0.171138
  25  0.147749
Done.

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

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  7.258e+00  2.096e+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:  9.957e-01  1.477e-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.309e-01  1.711e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/267408/likelihoodResults_619833601_620092801_4FGL_J0524.6-2819_daily_bin1468.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) = 8618.38020386
delta logL = 0.0787068840982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8618.37393187
delta logL = 0.0849788724299

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.321       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0884       1.0000          .0000       10.000    
     3 'Normalizat'    .83436       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99199       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=   8618.374     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      283 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.330        27.440        .10975E-03   -.15953E-04
   2  Index         2.0897        .97918        .16290E-01    .17257E-04
   3  Normalizat    .83435        .16708        .26630E-03   -.49521E-04
   4  Prefactor     .99200        .14678        .21552E-03   -.14880E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.3301
  Index      = 2.08965
  Normalizat = 0.834347
  Prefactor  = 0.992004
 **********
 **   18 **HESSE 
 **********

 FCN=   8618.374     FROM HESSE     STATUS=OK            23 CALLS      306 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.330        27.213        .43898E-05   -1.4978    
   2  Index         2.0897        .97113        .65161E-03   -.62127    
   3  Normalizat    .83435        .16723        .10652E-04   -.98807    
   4  Prefactor     .99200        .14688        .43105E-04   -.92997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.18952e-11
Minuit parameter uncertainties:
  1  27.2386
  2  0.980606
  3  0.167329
  4  0.146939
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/267408': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8618.37393101
delta logL = 0.0849797314295

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  1.333e+01  2.724e+01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.090e+00  9.806e-01  0.000e+00  1.000e+01 (-1.000e+00)
258        Scale:  7.597e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
562    Prefactor:  9.920e-01  1.469e-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.343e-01  1.673e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.14
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/267408/cmap_HighResolution_619833601_620092801_4FGL_J0524.6-2819_daily_bin1468.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.42e-03', job_status='DONE', photon_flux_upper_limit='6.94e-08', time_completed='2021-08-22 13:51:49.023361', job_id='267408', GAL2='0.99', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1629665509.02', return_code2='0', ts='0.14', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='8.50e-02', ts2='0.31', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='1468' AND source_name='4FGL J0524.6-2819' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 13:51:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 267408: <4FGL_J0524.6-2819_daily_bin1468> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0524.6-2819_daily_bin1468 81.1732 -28.3288 619833601 620092801 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 :                                   890.37 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             310.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            987 sec.

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

