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


Performing analysis on: 4FGL_J0524.6-2819_daily_bin965
RA = 81.1732, Dec = -28.3288
tmin = 489456001, tmax = 489715201
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='261444', job_status='RUN', time_executed='2021-08-22 13:21:15.084044', time_epoch_executed='1629663675.08' WHERE source_name='4FGL J0524.6-2819' and cadence='daily' and bin_id='965'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261444

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261444/ft1_4FGL_J0524.6-2819_daily_bin965.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261444/ft2_4FGL_J0524.6-2819_daily_bin965.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261444/ft1_4FGL_J0524.6-2819_daily_bin965.fits outfile=/scratch/kocevski/261444/ft1_filteredMKT_4FGL_J0524.6-2819_daily_bin965.fits ra=81.1732 dec=-28.3288 rad=12.0 tmin=489456001.0 tmax=489715201.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 5.81
user 4.87
sys 0.88

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261444/ft1_filtered_4FGL_J0524.6-2819_daily_bin965.fits" evtable="EVENTS" scfile=/scratch/kocevski/261444/ft2_4FGL_J0524.6-2819_daily_bin965.fits sctable="SC_DATA" outfile=/scratch/kocevski/261444/ltcube_489456001_489715201_4FGL_J0524.6-2819_daily_bin965.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/261444/ft2_4FGL_J0524.6-2819_daily_bin965.fits
.....................!
real 13.17
user 12.04
sys 1.08

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261444/ft1_filtered_4FGL_J0524.6-2819_daily_bin965.fits evtable="EVENTS" scfile=/scratch/kocevski/261444/ft2_4FGL_J0524.6-2819_daily_bin965.fits sctable="SC_DATA" expcube=/scratch/kocevski/261444/ltcube_489456001_489715201_4FGL_J0524.6-2819_daily_bin965.fits outfile=/scratch/kocevski/261444/expmap_489456001_489715201_4FGL_J0524.6-2819_daily_bin965.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/261444/ltcube_489456001_489715201_4FGL_J0524.6-2819_daily_bin965.fits
.....................!
real 191.88
user 186.09
sys 5.36

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/261444/ft1_filtered_4FGL_J0524.6-2819_daily_bin965.fits scfile=/scratch/kocevski/261444/ft2_4FGL_J0524.6-2819_daily_bin965.fits outfile=/scratch/kocevski/261444/cmap_489456001_489715201_4FGL_J0524.6-2819_daily_bin965.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=81.1732 yref=-28.3288 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 1.23
user 0.37
sys 0.82

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261444/ft1_filtered_4FGL_J0524.6-2819_daily_bin965.fits scfile=/scratch/kocevski/261444/ft2_4FGL_J0524.6-2819_daily_bin965.fits outfile=/scratch/kocevski/261444/cmap_HighResolution_489456001_489715201_4FGL_J0524.6-2819_daily_bin965.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.21
user 0.37
sys 0.83

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261444/ft1_filtered_4FGL_J0524.6-2819_daily_bin965.fits evtable="EVENTS" scfile=/scratch/kocevski/261444/ft2_4FGL_J0524.6-2819_daily_bin965.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261444/Model_4FGL_J0524.6-2819_daily_bin965.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/261444/ft1_filtered_4FGL_J0524.6-2819_daily_bin965.fits.....................!
real 59.30
user 56.88
sys 2.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    38.351       1.0000         .10000E-03   10000.    
     3 'norm      '    5.2854       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.7121       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .84264E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11960E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.0696       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11472E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    27.470       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    24.975       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15165E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.4641       1.0000         .10000E-03   10000.    
    18 'norm      '    4.8185       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .71048E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1330       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98421       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=   4387.621     FROM MIGRAD    STATUS=CONVERGED    642 CALLS     2929 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    91.357        .14831E-05** at limit **
   2  Prefactor     38.529        85.384       -.41415E-04    .12972E-04
   3  norm          5.2804        6.7668       -.46805E-06   -.24513E-03
   4  Prefactor     .10000E-03    2.7587        .11388E-07** at limit **
   5  norm          1.7121        .42738        .27451E-06   -.11410E-02
   6  Prefactor     .13054E-03    62.951       -.41812E-05** at limit **
   7  Prefactor     .10000E-03    28.309       -.22250E-06** at limit **
   8  norm          .10000E-03    52.087       -.55367E-06** at limit **
   9  Prefactor     .10000E-03    4.5343       -.54366E-06** at limit **
  10  norm          7.0720        4.1298       -.49066E-06    .26577E-03
  11  Prefactor     .10000E-03    21.834        .77279E-06** at limit **
  12  Prefactor     .10000E-03    5.6866       -.24290E-06** at limit **
  13  Prefactor     27.508        26.660        .61118E-05    .68071E-04
  14  Prefactor     .10000E-03    11.699        .43136E-07** at limit **
  15  norm          24.967        11.122       -.63375E-06    .90740E-04
  16  Prefactor     .10000E-03    38.191       -.86856E-07** at limit **
  17  norm          1.4637        3.5296       -.92140E-06   -.71704E-03
  18  norm          4.8190        7.4128       -.27620E-06   -.46941E-04
  19  Prefactor     .10000E-03    5.2358       -.33520E-07** at limit **
  20  Prefactor     .10000E-03    230.82        .25670E-04** at limit **
  21  Prefactor     .10000E-03    25.587        .75321E-07** at limit **
  22  Prefactor     .10000E-03    14.188       -.20900E-07** at limit **
  23  Prefactor     .10000E-03    21.816       -.84796E-06** at limit **
  24  Normalizat    1.1333        .29060        .32281E-05    .79574E-04
  25  Prefactor     .98419        .21160       -.40979E-06    .18920E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 38.5291
  norm       = 5.28043
  Prefactor  = 0.0001
  norm       = 1.71212
  Prefactor  = 0.000130541
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 7.07201
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.5082
  Prefactor  = 0.0001
  norm       = 24.9672
  Prefactor  = 0.0001
  norm       = 1.46366
  norm       = 4.81902
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.13328
  Prefactor  = 0.984191
 **********
 **   18 **HESSE 
 **********

 FCN=   4387.621     FROM HESSE     STATUS=OK           431 CALLS     3360 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    91.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     38.529        85.266        .64721E-04   -1.4466    
   3  norm          5.2804        6.8281        .17483E-03   -1.5248    
   4  Prefactor     .10000E-03    2.7633        .10742E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.7121        .42845        .19458E-04   -1.5446    
   6  Prefactor     .13054E-03    60.795        .15805       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    28.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    52.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.5938        .26650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.0720        4.0616        .93020E-04   -1.5176    
  11  Prefactor     .10000E-03    21.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.7229        .15420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     27.508        26.538        .76436E-04   -1.4659    
  14  Prefactor     .10000E-03    11.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          24.967        11.163        .80156E-04   -1.4708    
  16  Prefactor     .10000E-03    38.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.4637        3.5329        .17914E-03   -1.5466    
  18  norm          4.8190        7.4075        .18327E-03   -1.5269    
  19  Prefactor     .10000E-03    5.2537        .14803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    231.80        .20971E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    25.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    14.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    21.819        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1333        .34752        .31072E-03   -.88691    
  25  Prefactor     .98419        .25207        .26017E-03   -.93258    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13271e-09
Minuit parameter uncertainties:
  1  6.44976e-07
  2  85.5378
  3  6.82907
  4  1.79965e-06
  5  0.428449
  6  0.0862682
  7  2.77981e-05
  8  5.58367e-06
  9  0.000175418
  10  4.06172
  11  1.58037e-06
  12  5.173e-05
  13  26.5494
  14  1.08019e-05
  15  11.1637
  16  0.000243003
  17  3.53335
  18  7.40894
  19  5.68239e-06
  20  0.000391331
  21  1.43861e-05
  22  5.07664e-06
  23  3.84359e-06
  24  0.348229
  25  0.252372
Done.

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

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  1.580e-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:  9.842e-01  2.524e-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.133e+00  3.482e-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: 1.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.07e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/261444/likelihoodResults_489456001_489715201_4FGL_J0524.6-2819_daily_bin965.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) = 4387.62093126
delta logL = -0.000217964205149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4387.62071587
delta logL = -2.57643387158e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11934E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.0977       1.0000          .0000       10.000    
     3 'Normalizat'    1.1333       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98419       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=   4387.621     FROM MIGRAD    STATUS=CONVERGED    113 CALLS      296 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    83.751        .18142E-01** at limit **
   2  Index         2.0797        8.0099        .50000        .13129E-06
   3  Normalizat    1.1333        .11829E-01    .31072E-03    .78591E-04
   4  Prefactor     .98419        .93571E-02    .26017E-03    .97577E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100027
  Index      = 2.07968
  Normalizat = 1.13328
  Prefactor  = 0.984189
 **********
 **   18 **HESSE 
 **********

 FCN=   4387.621     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      325 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    443.49        .33999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0797        7.6476        .50000       -.62373    
   3  Normalizat    1.1333        .27751E-01    .12429E-04   -.88690    
   4  Prefactor     .98419        .21953E-01    .10407E-04   -.93258    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.41215e-09
Minuit parameter uncertainties:
  1  0.00702447
  2  1091.98
  3  0.0277517
  4  0.0219532
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261444': 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) = 4387.62071282
delta logL = 4.7911908041e-07

Extracting fit parameters...

4FGL J0524.6-2819
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  7.024e-03  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.080e+00  1.092e+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:  9.842e-01  2.195e-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:  1.133e+00  2.775e-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/261444/cmap_HighResolution_489456001_489715201_4FGL_J0524.6-2819_daily_bin965.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.07e-03', job_status='DONE', photon_flux_upper_limit='1.16e-07', time_completed='2021-08-22 13:31:30.021394', job_id='261444', GAL2='0.98', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1629664290.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='4.79e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='965' AND source_name='4FGL J0524.6-2819' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 22 13:31:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 261444: <4FGL_J0524.6-2819_daily_bin965> in cluster <slac> Done

Job <4FGL_J0524.6-2819_daily_bin965> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Aug 22 13:20:40 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 22 13:20:41 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:41 2021
Terminated at Sun Aug 22 13:31:30 2021
Results reported at Sun Aug 22 13:31:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0524.6-2819_daily_bin965 81.1732 -28.3288 489456001 489715201 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 :                                   620.51 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             361.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   649 sec.
    Turnaround time :                            650 sec.

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

